/* ============================================================
   ABOALI MARKETING — واجهة الموقع العام
   ============================================================ */

/* ---------------------------- الخلفية ---------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 82% -5%, rgba(233, 196, 106, 0.13), transparent 62%),
    radial-gradient(55% 45% at 6% 8%, rgba(34, 211, 238, 0.09), transparent 60%),
    radial-gradient(60% 55% at 50% 105%, rgba(139, 92, 246, 0.09), transparent 65%);
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora .a1 { width: 460px; height: 460px; top: -120px; right: -80px; background: rgba(233, 196, 106, 0.18); }
.aurora .a2 { width: 380px; height: 380px; top: 34%; left: -140px; background: rgba(34, 211, 238, 0.12); animation-delay: -7s; }
.aurora .a3 { width: 420px; height: 420px; bottom: -160px; right: 30%; background: rgba(139, 92, 246, 0.13); animation-delay: -13s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 50px, 0) scale(1.12); }
  100% { transform: translate3d(30px, -30px, 0) scale(0.95); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------- شريط التقدم ---------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-3));
  box-shadow: 0 0 18px rgba(233, 196, 106, 0.7);
  transition: width 0.1s linear;
}

/* ---------------------------- الهيدر ---------------------------- */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 70;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 6, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 20px 50px -30px #000;
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: #141006;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 10px 26px -12px rgba(233, 196, 106, 0.8);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.brand:hover .brand-mark::after { transform: translateX(120%); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-name b { color: var(--gold); font-weight: 900; }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--muted-2);
  font-weight: 700;
  font-family: var(--font-head);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 50%;
  transform: translateX(50%) scaleX(0);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { transform: translateX(50%) scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.05rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 13, 0.97);
  backdrop-filter: blur(20px);
  padding: 12px 20px 22px;
  max-height: calc(100svh - 78px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}
.mobile-link:last-of-type { border-bottom: 0; }
.mobile-link i { color: var(--gold); font-size: 0.8rem; }
.mobile-link:hover { color: #fff; }

/* ---------------------------- الهيرو ---------------------------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, 0.25);
  background: linear-gradient(90deg, rgba(233, 196, 106, 0.12), rgba(233, 196, 106, 0.03));
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 26px;
}
.eyebrow .pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulseRing 2s ease-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .muted-line { color: #d9dae2; }

.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.85;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 12, 19, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.stat {
  padding: 14px 26px;
  border-inline-start: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-inline-start: 0; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.42rem;
  color: var(--gold);
  line-height: 1.1;
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
}

/* المشهد البصري */

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.2), transparent 65%);
  filter: blur(20px);
  animation: floatY 9s ease-in-out infinite;
}

.ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 196, 106, 0.18);
  animation: spinSlow 40s linear infinite;
}
.ring::before,
.ring::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(233, 196, 106, 0.9);
}
.ring::before { top: -4px; left: 50%; }
.ring::after { bottom: 40px; right: 24px; background: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, 0.8); }

.visual-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(24, 24, 36, 0.94), rgba(12, 12, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease);
}
.hero-visual:hover .visual-card { transform: rotate(0deg) translateY(-6px); }

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.visual-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.visual-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 50% { opacity: 0.35; } }

.visual-metric { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.metric-label { font-size: 0.72rem; color: var(--muted-2); display: block; }
.metric-value {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.metric-delta {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 700;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding: 10px 0 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}
.bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(233, 196, 106, 0.9), rgba(233, 196, 106, 0.15));
  transform-origin: bottom;
  animation: barGrow 1.4s var(--ease) both;
  animation-delay: var(--d, 0s);
}
.bars span:nth-child(2n) { background: linear-gradient(180deg, rgba(34, 211, 238, 0.8), rgba(34, 211, 238, 0.1)); }
@keyframes barGrow { from { transform: scaleY(0.05); opacity: 0.3; } }

.visual-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.avatars { display: flex; }
.avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #14141f;
  margin-inline-start: -8px;
  background: linear-gradient(135deg, #3a3a4a, #22222e);
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--gold);
}
.avatars span:first-child { margin-inline-start: 0; }
.visual-foot small { font-size: 0.7rem; color: var(--muted-2); }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(18, 18, 28, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px #000;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #e9e9ef;
  backdrop-filter: blur(12px);
  animation: floatY 7s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip i { font-size: 1rem; }
.chip-1 { top: 6%; left: -4%; animation-delay: -1s; }
.chip-1 i { color: #4f8ef7; }
.chip-2 { bottom: 16%; right: -6%; animation-delay: -3s; }
.chip-2 i { color: #ff4d4d; }
.chip-3 { bottom: 2%; left: 4%; animation-delay: -5s; }
.chip-3 i { color: var(--green); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  font-family: var(--font-head);
  font-weight: 700;
}
.hero-scroll .mouse {
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
}
.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ---------------------------- الشريط المتحرك ---------------------------- */

.marquee-section {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(10, 10, 16, 0.5);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #5f6473;
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item i { color: #4b5060; font-size: 1.1rem; }
.marquee-item:hover { color: var(--gold); }
.marquee-item:hover i { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------- عناوين الأقسام ---------------------------- */

.section { position: relative; padding: 110px 0; }
.section.tight { padding: 80px 0; }

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head.right { margin-inline: 0; text-align: right; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before,
.kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* ---------------------------- الخدمات ---------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(19, 19, 30, 0.9), rgba(11, 11, 18, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at top right, rgba(233, 196, 106, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 196, 106, 0.28);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(233, 196, 106, 0.18), rgba(233, 196, 106, 0.04));
  border: 1px solid rgba(233, 196, 106, 0.22);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 20px;
  transition: 0.35s;
}
.service-card:hover .service-icon {
  background: linear-gradient(140deg, var(--gold-3), var(--gold));
  color: #171105;
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }

.service-num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
}

/* ---------------------------- الأعمال ---------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 38px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233, 196, 106, 0.3);
  box-shadow: 0 36px 70px -36px #000;
}
.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101018;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.work-card:hover .work-media img { transform: scale(1.07); filter: brightness(0.75); }

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 6, 10, 0.88));
}

.work-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(6, 6, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--gold);
}

.work-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.work-card:hover .work-play { opacity: 1; }
.work-play span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(233, 196, 106, 0.95);
  color: #171105;
  font-size: 1.1rem;
  padding-right: 3px;
  box-shadow: 0 0 0 8px rgba(233, 196, 106, 0.18);
}

.work-body {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 2;
  padding: 18px 20px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.work-body h3 { font-size: 1.02rem; color: #fff; margin-bottom: 3px; }
.work-body p { font-size: 0.74rem; color: var(--muted); }
.work-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.75rem;
  transition: 0.3s;
}
.work-card:hover .work-arrow { background: var(--gold); border-color: var(--gold); color: #171105; transform: rotate(-45deg); }

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state i { font-size: 2rem; color: var(--muted-2); margin-bottom: 12px; display: block; }

/* ---------------------------- الإعلانات ---------------------------- */

.ads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.ad-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.ad-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 30px 60px -36px #000;
}
.ad-cover {
  position: relative;
  overflow: hidden;
  background: #0b0b12;
  display: grid;
  place-items: center;
}
.ad-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.85; }
.ad-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(11, 11, 18, 0.85));
}
.platform-icon {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(6, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.platform-facebook { color: #4f8ef7; }
.platform-youtube { color: #ff4d4d; }
.platform-instagram { color: #e16bb5; }
.platform-google { color: #fbbc05; }
.platform-tiktok { color: #7be0e6; }
.platform-website { color: var(--gold); }

.ad-body { padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ad-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ad-body h3 { font-size: 1.05rem; }
.ad-body p { color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.ad-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 800;
  width: fit-content;
}
.ad-link i { transition: transform 0.3s; }
.ad-card:hover .ad-link i { transform: translateX(-4px); }

/* ---------------------------- الألعاب ---------------------------- */

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.game-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 34px 70px -38px #000;
}
.game-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b12; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.game-card:hover .game-cover img { transform: scale(1.06); }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 10, 0.1), rgba(6, 6, 10, 0.85)); }

.play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
}
.play-btn span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  padding-right: 4px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(233, 196, 106, 0.95));
  color: #171105;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.game-card:hover .play-btn span { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(233, 196, 106, 0.14); }

.game-body { padding: 18px 20px 20px; }
.game-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #b8a4fb;
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 800;
  margin-bottom: 9px;
}
.game-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.game-body p { color: var(--muted); font-size: 0.8rem; line-height: 1.65; }

/* ---------------------------- الدردشة ---------------------------- */

.chat-section { position: relative; }
.chat-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: 540px;
}

.chat-side {
  position: relative;
  padding: 34px 30px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(233, 196, 106, 0.22), transparent 65%),
    linear-gradient(170deg, #191922, #0d0d15);
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
}
.chat-side::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 196, 106, 0.2);
  bottom: -110px;
  left: -90px;
}
.chat-side h3 { font-size: 1.5rem; margin-bottom: 10px; }
.chat-side > div > p { color: var(--muted); font-size: 0.88rem; line-height: 1.8; }
.chat-features { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.chat-feature { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #cfd2db; }
.chat-feature i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(233, 196, 106, 0.12); color: var(--gold); font-size: 0.72rem; }
.chat-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  width: fit-content;
}
.chat-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseDot 1.8s infinite; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; background: #0a0a11; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.chat-head-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--gold-3), var(--gold-2));
  color: #171105;
  font-weight: 900;
  font-family: var(--font-head);
}
.chat-head-info b { display: block; font-family: var(--font-head); font-size: 0.86rem; }
.chat-head-info small { color: var(--muted-2); font-size: 0.68rem; }
.chat-head .badge { flex-shrink: 0; }

.chat-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 420px;
  min-height: 320px;
  scroll-behavior: smooth;
}

.msg { display: flex; gap: 10px; max-width: 85%; }
.msg.self { margin-inline-start: auto; flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #1d1d29;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
}
.msg.admin .msg-avatar { background: linear-gradient(140deg, var(--gold), var(--gold-2)); color: #171105; border-color: transparent; }
.msg.self .msg-avatar { background: rgba(34, 211, 238, 0.15); color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); }

.msg-body { min-width: 0; }
.msg-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.msg-name { font-family: var(--font-head); font-size: 0.7rem; font-weight: 800; color: var(--muted); }
.msg.admin .msg-name { color: var(--gold); }
.msg-time { font-size: 0.6rem; color: #5b6172; }
.msg-bubble {
  padding: 9px 13px;
  border-radius: 4px 14px 14px 14px;
  background: #15151f;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #dcdde4;
  word-break: break-word;
  white-space: pre-wrap;
}
.msg.self .msg-bubble {
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.05));
  border-color: rgba(34, 211, 238, 0.25);
  border-radius: 14px 4px 14px 14px;
  color: #e6f8fb;
}
.msg.admin .msg-bubble { background: rgba(233, 196, 106, 0.07); border-color: rgba(233, 196, 106, 0.22); }

.chat-form { border-top: 1px solid var(--line); padding: 14px 16px; background: rgba(255, 255, 255, 0.015); }
.chat-identity {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.chat-identity .input { padding: 0.55rem 0.85rem; font-size: 0.82rem; border-radius: 10px; }
.chat-identity .btn { padding: 0.55rem 1rem; font-size: 0.78rem; border-radius: 10px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row .input { padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.86rem; }
.chat-send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(140deg, var(--gold-3), var(--gold-2));
  color: #171105;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.chat-send:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(233, 196, 106, 0.8); }
.chat-hint { font-size: 0.64rem; color: var(--muted-2); margin-top: 8px; text-align: center; }
.chat-disabled { padding: 16px; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* ---------------------------- لماذا نحن ---------------------------- */

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: 0.35s;
}
.why-card:hover { background: rgba(255, 255, 255, 0.035); border-color: rgba(233, 196, 106, 0.25); transform: translateY(-4px); }
.why-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(233, 196, 106, 0.1);
  border: 1px solid rgba(233, 196, 106, 0.2);
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------------------------- خطوات العمل ---------------------------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 196, 106, 0.35), transparent);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0c0c13;
  border: 1px solid rgba(233, 196, 106, 0.35);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { font-size: 1rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.82rem; line-height: 1.7; }

/* ---------------------------- التواصل ---------------------------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(233, 196, 106, 0.1), transparent 65%),
    linear-gradient(170deg, #12121c, #0a0a11);
}
.contact-info h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-info > p { color: var(--muted); font-size: 0.88rem; line-height: 1.8; margin-bottom: 10px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.25s;
}
.contact-line:hover { border-color: rgba(233, 196, 106, 0.3); background: rgba(233, 196, 106, 0.05); }
.contact-line i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(233, 196, 106, 0.12);
  color: var(--gold);
  font-size: 0.9rem;
}
.contact-line small { display: block; color: var(--muted-2); font-size: 0.66rem; margin-bottom: 1px; }
.contact-line b { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; direction: ltr; display: inline-block; }
.contact-socials { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: 0.25s;
}
.social-btn:hover { background: var(--gold); color: #171105; border-color: var(--gold); transform: translateY(-3px); }

.contact-form {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 0.7rem; color: var(--muted-2); margin-top: 12px; text-align: center; }
.form-note i { color: var(--green); margin-inline-end: 4px; }

/* ---------------------------- الدعوة الأخيرة ---------------------------- */

.cta-band {
  position: relative;
  padding: 64px 48px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, 0.28);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(233, 196, 106, 0.18), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(150deg, #15151f, #0b0b12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 196, 106, 0.22);
  top: -160px;
  left: -80px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-band p { color: var(--muted); font-size: 0.95rem; max-width: 560px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------------------------- الفوتر ---------------------------- */

.footer {
  position: relative;
  padding: 70px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 16, 0.9));
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.85; margin: 18px 0 20px; max-width: 320px; }
.footer h4 {
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.84rem; transition: 0.25s; width: fit-content; }
.footer-links a:hover { color: var(--gold); transform: translateX(-4px); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.82rem; }
.footer-contact i { color: var(--gold); font-size: 0.78rem; width: 16px; }
.footer-contact b { direction: ltr; font-weight: 500; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.75rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }
.footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
}
.footer-admin:hover { border-color: rgba(233, 196, 106, 0.35); color: var(--gold) !important; }

/* ---------------------------- زر الأعلى ---------------------------- */

.back-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 28, 0.9);
  color: var(--gold);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold); color: #171105; border-color: var(--gold); }

/* ---------------------------- نافذة المشروع ---------------------------- */

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08080d;
  overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media iframe { width: 100%; height: 100%; border: 0; }
.project-body { padding: 28px; }
.project-body .badge { margin-bottom: 12px; }
.project-body h2 { font-size: 1.5rem; margin-bottom: 10px; }
.project-body > p { color: var(--muted); font-size: 0.9rem; line-height: 1.85; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-meta div small { display: block; color: var(--muted-2); font-size: 0.65rem; margin-bottom: 2px; }
.project-meta div b { font-family: var(--font-head); font-size: 0.84rem; }

/* نافذة اللعبة */
.game-frame-wrap { position: relative; background: #05050a; }
.game-frame-wrap iframe { width: 100%; height: min(70vh, 620px); border: 0; display: block; }
.game-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.game-modal-head h2 { font-size: 1rem; }

/* ---------------------------- استجابة ---------------------------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 30px; }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
  .nav-link { padding: 0.5rem 0.55rem; font-size: 0.78rem; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0.7rem 0.9rem; }
  .services-grid, .works-grid, .games-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-contact-col { grid-column: 1 / -1; }
  .ad-card { grid-template-columns: 150px 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { padding-top: 130px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { min-height: 420px; order: 2; }
  .hero-sub { max-width: 100%; }
  .hero-stats { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 12px 8px; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: 0.62rem; }
  .hero-scroll { display: none; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 38px; }
  .services-grid, .works-grid, .games-grid, .ads-grid { grid-template-columns: 1fr; }
  .ad-card { grid-template-columns: 130px 1fr; min-height: 150px; }
  .ad-body { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .float-chip { font-size: 0.64rem; padding: 8px 11px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 50px; }
  .cta-band { padding: 36px 24px; }
  .contact-info, .contact-form { padding: 24px; }
  .back-top { bottom: 18px; right: 18px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 118px; padding-bottom: 60px; }
  .hero-title { font-size: 2.05rem; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .visual-card { padding: 20px; transform: none; }
  .ring { width: 320px; height: 320px; }
  .orb { width: 300px; height: 300px; }
  .metric-value { font-size: 2.1rem; }
  .chat-side { padding: 26px 22px; }
  .chat-messages { padding: 14px; max-height: 360px; }
  .msg { max-width: 92%; }
  .chat-form { padding: 12px; }
  .project-body { padding: 20px; }
  .ad-card { grid-template-columns: 1fr; }
  .ad-cover { height: 130px; }
  .ad-cover::after { background: linear-gradient(180deg, transparent, rgba(11, 11, 18, 0.9)); }
  .filters { gap: 6px; }
  .chip { padding: 0.42rem 0.75rem; font-size: 0.72rem; }
}
