﻿:root {
  --navy-900: #041224;
  --navy-800: #07233f;
  --navy-700: #0b3a66;
  --cyan-500: #3ad0ff;
  --cyan-300: #8be6ff;
  --sand-200: #e8d8b1;
  --sand-100: #f5edd9;
  --ink-100: #e8f2fb;
  --ink-200: #c5d5e6;
  --line: rgba(138, 189, 231, 0.28);
  --card-bg: rgba(5, 24, 43, 0.78);
  --card-strong: rgba(6, 31, 56, 0.94);
  --ok: #7ef4b7;
  --warn: #ffd88a;
  --danger: #ff8f8f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
  color: var(--ink-100);
  background:
    radial-gradient(circle at 15% 10%, rgba(58, 208, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(5, 124, 255, 0.18), transparent 37%),
    linear-gradient(145deg, #020b18 0%, #041224 36%, #061d37 66%, #07213f 100%);
  min-height: 100%;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.2;
}
a { color: var(--cyan-300); text-decoration: none; }
a:hover { color: #d9f7ff; }
h1, h2, h3, h4 {
  font-family: "Cairo", "Tajawal", sans-serif;
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
p { color: var(--ink-200); }
.top-banner {
  text-align: center;
  padding: 10px 12px;
  background: linear-gradient(90deg, #0d3258, #124c81, #0d3258);
  border-bottom: 1px solid rgba(142, 205, 250, 0.38);
  color: #d9f5ff;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.container { width: min(1180px, 92%); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 22; backdrop-filter: blur(10px);
  background: rgba(3, 17, 31, 0.82);
  border-bottom: 1px solid rgba(132, 194, 236, 0.25);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Cairo", sans-serif; font-size: 1.2rem; color: #f1fbff;
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(169, 223, 255, 0.45);
  object-fit: cover; box-shadow: 0 6px 20px rgba(8, 30, 54, 0.56);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; border: 1px solid transparent;
  color: #bfd6ea; font-size: 0.92rem; transition: 0.22s ease;
}
.nav a.active, .nav a:hover {
  color: #eff9ff; border-color: rgba(148, 214, 255, 0.5); background: rgba(58, 208, 255, 0.12); transform: translateY(-1px);
}
.main { padding-bottom: 34px; }
.hero { padding: 42px 0 30px; }
.hero-wrap { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 16px; }
.hero-main, .hero-side {
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(8, 38, 67, 0.8), rgba(4, 18, 34, 0.86));
  box-shadow: 0 18px 50px rgba(2, 14, 27, 0.6); position: relative; overflow: hidden;
}
.hero-main { padding: 34px; }
.hero-side { padding: 24px; }
.hero-main::after, .hero-side::after {
  content: ""; position: absolute; width: 260px; height: 260px; top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(67, 217, 255, 0.28), rgba(67, 217, 255, 0));
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(146, 212, 255, 0.48);
  color: #d7f4ff; border-radius: 999px; padding: 7px 12px; font-size: 0.8rem; letter-spacing: 0.08em;
}
.hero-main h1 { margin: 14px 0 12px; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.hero-main .lead { max-width: 58ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip {
  border: 1px solid rgba(161, 219, 255, 0.32); border-radius: 999px; padding: 6px 10px;
  color: #d8ebf9; font-size: 0.8rem; background: rgba(11, 54, 95, 0.4);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button, button {
  border: 1px solid rgba(140, 212, 255, 0.5); border-radius: 14px; background: linear-gradient(135deg, #2db4e4, #2375d7);
  color: #f4fcff; font-weight: 700; font-family: inherit; padding: 11px 16px; cursor: pointer; transition: 0.22s ease;
}
.button.alt, button.alt { background: rgba(6, 28, 50, 0.7); color: #dbf4ff; }
.button:hover, button:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 10px 22px rgba(53, 168, 255, 0.3); }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi {
  border-radius: 14px; border: 1px solid rgba(152, 219, 255, 0.25); background: rgba(8, 34, 58, 0.6); padding: 10px;
}
.kpi .value { font-family: "Cairo", sans-serif; font-size: 1.4rem; color: #ebf8ff; }
.section { padding: 26px 0; }
.section-title { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-bottom: 14px; }
.panel { border-radius: 20px; border: 1px solid var(--line); background: var(--card-bg); padding: 20px; }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game-card {
  border-radius: 18px; border: 1px solid rgba(150, 216, 255, 0.24);
  background: linear-gradient(170deg, rgba(10, 42, 72, 0.8), rgba(4, 18, 32, 0.92));
  padding: 16px; position: relative; overflow: hidden; transition: transform 0.24s ease, border-color 0.24s ease;
}
.game-card::before {
  content: ""; position: absolute; inset: auto auto -80px -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 214, 255, 0.26), rgba(95, 214, 255, 0));
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(160, 225, 255, 0.55); }
.game-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  border: 1px solid rgba(159, 222, 255, 0.42); background: rgba(7, 40, 68, 0.7);
}
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.meta {
  border-radius: 999px; border: 1px solid rgba(148, 216, 255, 0.3); color: #d4e9f8; font-size: 0.75rem; padding: 4px 8px;
}
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.steps { display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px;
  border-radius: 14px; border: 1px solid rgba(149, 214, 255, 0.22); background: rgba(7, 33, 55, 0.54);
}
.step-no {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: "Cairo", sans-serif; font-weight: 700; background: linear-gradient(140deg, #1a5a90, #2ea6de);
}
.review-stage { position: relative; overflow: hidden; }
.review-track { display: flex; gap: 12px; transition: transform 0.5s ease; }
.review-card {
  min-width: 280px; max-width: 320px; border-radius: 16px;
  border: 1px solid rgba(154, 220, 255, 0.32); background: var(--card-strong); padding: 14px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #e6f6ff;
  background: linear-gradient(145deg, #2a7bc7, #1f4d82); border: 1px solid rgba(174, 226, 255, 0.45);
}
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 0 rgba(126, 244, 183, 0.6); animation: pulse 1.8s infinite;
}
.footer {
  border-top: 1px solid rgba(145, 211, 255, 0.25); margin-top: 24px; padding: 24px 0 28px; background: rgba(2, 12, 23, 0.55);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
.footer-card {
  border-radius: 14px; border: 1px solid rgba(138, 196, 235, 0.22); background: rgba(4, 24, 43, 0.64); padding: 12px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.small { color: #a9c0d5; font-size: 0.83rem; }
.footer-bottom {
  margin-top: 14px; border-top: 1px solid rgba(145, 211, 255, 0.18); padding-top: 12px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.footer-logos {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(145, 211, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-invert {
  filter: brightness(1) invert(1);
}

.footer-legal {
  margin-top: 14px;
  border-top: 1px solid rgba(145, 211, 255, 0.18);
  padding-top: 14px;
}

.footer-legal p {
  margin: 0 0 8px;
  color: #c6d9ea;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}
.form-card {
  border-radius: 18px; border: 1px solid rgba(143, 208, 246, 0.28); background: var(--card-bg); padding: 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; color: #d7e9f8; }
input, select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(153, 214, 246, 0.28);
  background: rgba(3, 20, 36, 0.82); color: #f1faff; padding: 10px 12px; font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: #45bfff; }
.notice {
  border-radius: 12px; border: 1px solid rgba(255, 216, 142, 0.3); background: rgba(255, 216, 142, 0.08);
  color: #f5e8ce; padding: 10px 12px;
}
.confirmation {
  display: none; margin-top: 14px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(140, 248, 188, 0.4); background: rgba(126, 244, 183, 0.1); color: #d7ffe9;
}
.confirmation.show { display: block; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 244, 183, 0.62); }
  70% { box-shadow: 0 0 0 10px rgba(126, 244, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 244, 183, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 1040px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-wrap, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 0;
    min-height: 64px;
  }
  .form-grid, .kpi-grid, .footer-grid, .games-grid { grid-template-columns: 1fr; }
  .hero-main, .hero-side { padding: 20px; }
  .footer-logo { height: 40px; }
  .footer-legal p { font-size: 0.85rem; }
}

/* Home upgrades */
.hero-creative {
  position: relative;
  overflow: hidden;
}

.aurora {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  pointer-events: none;
}

.aurora.a1 {
  top: -120px;
  right: -80px;
  background: #3ad0ff;
}

.aurora.a2 {
  bottom: -160px;
  left: -100px;
  background: #2f7ce8;
}

.hero-glass {
  backdrop-filter: blur(12px);
  border-color: rgba(157, 220, 255, 0.45);
}

.hero-panel {
  border-color: rgba(157, 220, 255, 0.35);
}

.micro-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.micro-item {
  border-radius: 12px;
  border: 1px solid rgba(145, 214, 255, 0.35);
  background: rgba(8, 36, 62, 0.72);
  padding: 9px;
  display: grid;
  gap: 2px;
}

.micro-item strong {
  font-size: 1rem;
  color: #eff9ff;
}

.micro-item span {
  font-size: 0.76rem;
  color: #c6dbeb;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  border-radius: 18px;
  border: 1px solid rgba(149, 216, 255, 0.25);
  background: linear-gradient(165deg, rgba(8, 37, 63, 0.8), rgba(5, 22, 39, 0.92));
  padding: 16px;
  box-shadow: 0 10px 26px rgba(2, 14, 28, 0.42);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border: 1px solid rgba(160, 223, 255, 0.4);
  background: rgba(10, 45, 76, 0.72);
  margin-bottom: 10px;
}

.games-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.draw-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 215, 255, 0.28);
  overflow: hidden;
  background: rgba(6, 27, 48, 0.85);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.draw-card-visual {
  min-height: 220px;
  background: #07182d;
}

.draw-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.draw-card-body {
  padding: 16px;
  display: grid;
  align-content: start;
}

.reviews-lab {
  border-color: rgba(143, 216, 255, 0.35);
  background: linear-gradient(170deg, rgba(8, 34, 58, 0.82), rgba(5, 21, 38, 0.9));
}

@media (max-width: 1040px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draw-card {
    grid-template-columns: 1fr;
  }

  .draw-card-visual {
    min-height: 200px;
  }
}

@media (max-width: 760px) {
  .micro-strip,
  .why-grid,
  .games-showcase {
    grid-template-columns: 1fr;
  }
}

/* Entry page upgrades */
.game-live {
  border-radius: 24px;
  border: 1px solid rgba(147, 214, 255, 0.35);
  background: linear-gradient(165deg, rgba(7, 34, 58, 0.84), rgba(4, 19, 34, 0.92));
  padding: 18px;
  box-shadow: 0 18px 44px rgba(1, 10, 21, 0.5);
}

.game-live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-badge {
  border-radius: 999px;
  border: 1px solid rgba(149, 217, 255, 0.3);
  background: rgba(9, 43, 74, 0.6);
  color: #dff5ff;
  font-size: 0.76rem;
  padding: 5px 10px;
}

.frame-toolbar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tool-btn {
  border-radius: 12px;
  border: 1px solid rgba(151, 218, 255, 0.38);
  background: rgba(6, 31, 53, 0.78);
  color: #e9f8ff;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.frame-shell {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(149, 217, 255, 0.3);
  overflow: hidden;
  background: #031a30;
  position: relative;
}

.frame-shell iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.frame-shell.mask-top::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 23, 42, 0.98), rgba(3, 23, 42, 0.94));
  border-bottom: 1px solid rgba(143, 211, 255, 0.22);
}

.frame-footnote {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #b8cee0;
}

@media (max-width: 760px) {
  .game-live {
    padding: 14px;
  }
}

/* Responsive header + burger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(149, 217, 255, 0.42);
  background: rgba(7, 36, 61, 0.8);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e6f6ff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header-row {
    position: relative;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(144, 210, 251, 0.35);
    background: rgba(3, 20, 36, 0.96);
    box-shadow: 0 14px 28px rgba(1, 10, 20, 0.55);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 72vh;
    overflow: auto;
  }

  .site-header.menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
  }
}
