@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/NotoKufiArabic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #eef4fa;
  --ink-2: #f6fafe;
  --ink-3: #ffffff;
  --ink-4: #dce8f4;
  --gold: #15324d;
  --gold-2: #0f2740;
  --gold-dim: rgba(21, 50, 77, 0.10);
  --gold-line: rgba(21, 50, 77, 0.16);
  --glow: #4a7aaa;
  --cream: #f4f8fc;
  --muted: #5b6e7e;
  --text: #12202e;
  --text-dim: #4a5c6d;
  --whatsapp: #25d366;
  --whatsapp-ink: #08391a;
  --danger: #a14a32;
  --radius: 20px;
  --header-h: 72px;
  --bottom-bar: 80px;
  --shadow: 0 14px 36px rgba(15, 40, 70, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, .brand-name {
  font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.glow-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(74, 122, 170, 0.16), transparent 60%),
    radial-gradient(700px 400px at 10% 20%, rgba(21, 50, 77, 0.06), transparent 55%),
    radial-gradient(600px 500px at 50% 110%, rgba(74, 122, 170, 0.08), transparent 50%);
}
main, .header, .footer, .bottom-bar, .cat-bar, .mobile-nav { position: relative; z-index: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(246, 250, 254, 0.9);
  border-bottom: 1px solid var(--gold-line);
}
.header-inner {
  height: 100%;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
  margin: 0;
  background: transparent;
  box-shadow: 0 4px 16px rgba(15, 40, 70, 0.18);
  object-fit: cover;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 15px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-sub { font-size: 11px; color: var(--muted); display: none; }
.nav { margin-inline-start: auto; display: none; gap: 22px; }
.nav a { color: var(--text-dim); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.header-cta { margin-inline-start: 8px; display: none !important; }
.menu-btn {
  margin-inline-start: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold-2);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--gold-line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 8px; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #1e3f5e, var(--gold));
  color: #f4f8fc;
  box-shadow: 0 8px 20px rgba(15, 40, 70, 0.22);
}
.btn-ghost {
  border-color: var(--gold-line);
  color: var(--gold-2);
  background: rgba(21, 50, 77, 0.06);
}
.btn-wa {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
}
.btn-lg { padding: 14px 28px; font-size: 17px; }

.demo-banner {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--gold-line);
  color: var(--gold-2);
  font-size: 12px;
  margin-bottom: 16px;
  background: rgba(21, 50, 77, 0.05);
}
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 8px;
}
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 6px;
}
.lede { color: var(--text-dim); max-width: 46rem; }
.is-placeholder {
  outline: 1px dashed rgba(21, 50, 77, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero {
  padding: 28px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero h1 span {
  color: var(--gold-2);
}
.hero-lead { font-size: 1.08rem; color: var(--text-dim); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-stage {
  position: relative;
  min-height: 320px;
}
.hero-orb {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 122, 170, 0.45), rgba(21, 50, 77, 0.08) 45%, transparent 70%);
  filter: blur(8px);
  animation: pulse 6s ease-in-out infinite;
}
.hero-shot {
  position: absolute;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  background: var(--ink);
}
.hero-shot img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.hero-shot-main {
  width: 72%;
  height: 260px;
  inset-inline-end: 0;
  top: 20px;
  animation: float 8s ease-in-out infinite;
}
.hero-shot-a {
  width: 38%;
  height: 120px;
  top: 0;
  inset-inline-start: 0;
  animation: float 7s ease-in-out infinite 0.4s;
}
.hero-shot-b {
  width: 34%;
  height: 110px;
  bottom: 8px;
  inset-inline-start: 4%;
  animation: float 9s ease-in-out infinite 0.8s;
}
.hero-shot-c {
  width: 30%;
  height: 96px;
  bottom: 0;
  inset-inline-end: 8%;
  animation: float 7.5s ease-in-out infinite 0.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.section { padding: 64px 0; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.feature-card {
  display: block;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(21, 50, 77, 0.12);
}
.feature-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, #7aa3c7, var(--gold) 40%, transparent 41%),
    linear-gradient(160deg, var(--gold-dim), transparent);
  box-shadow: 0 0 18px rgba(74, 122, 170, 0.28);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  min-height: 220px;
}
.about-visual img { width: 100%; height: 100%; object-fit: contain; max-height: 420px; background: var(--ink); }
.about-glow {
  position: absolute;
  inset: auto -10% -30% 20%;
  height: 60%;
  background: radial-gradient(circle, rgba(21, 50, 77, 0.35), transparent 70%);
  pointer-events: none;
}
.about-points { padding: 0; margin: 0 0 24px; list-style: none; }
.about-points li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.about-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(74, 122, 170, 0.45);
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px;
  border-radius: 28px;
  background:
    radial-gradient(500px 200px at 80% 0%, rgba(21, 50, 77, 0.2), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--gold-line);
}
.cta-box h2 { margin-bottom: 8px; }

.contact-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0 24px;
}
.contact-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--gold-line);
}
.contact-card h3 { color: var(--gold-2); font-size: 1rem; }
.contact-card p:last-child { margin-bottom: 0; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  font-size: 14px;
}
.social-row a.is-placeholder { opacity: 0.7; }

.footer {
  padding: 40px 0 110px;
  border-top: 1px solid var(--gold-line);
  background: var(--ink-2);
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
}
.footer strong { color: var(--text); display: block; margin-bottom: 6px; }
.copyright { font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 1px solid rgba(21, 50, 77, 0.12); }

.bottom-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 250, 254, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-line);
}
.bottom-bar .btn { flex: 1; }

[dir="ltr"], [dir="ltr"] * { unicode-bidi: isolate; }

.shop-hero { padding: 28px 0 16px; }
.shop-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.cat-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(246, 250, 254, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  color: var(--text-dim);
  font-size: 14px;
  background: var(--ink-3);
}
.cat-tab[aria-current="true"] {
  color: #f4f8fc;
  background: linear-gradient(180deg, #1e3f5e, var(--gold));
  border-color: transparent;
}
.shop-cat { padding: 40px 0; scroll-margin-top: calc(var(--header-h) + 58px); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.card {
  background: var(--ink-3);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  aspect-ratio: 1 / 1;
  background: var(--ink);
  position: relative;
}
.card-photo {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.card-photo img, .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
}
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(21, 50, 77, 0.04) 10px, rgba(21, 50, 77, 0.04) 20px);
}
.thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  overflow-x: auto;
}
.thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.thumb.is-active, .thumb:hover { border-color: var(--gold); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-desc, .card-specs { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.card-note {
  margin: 0;
  font-size: 12px;
  color: var(--gold-2);
}
.option-label { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--gold-line);
  background: var(--ink-4);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-2);
}
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.price { font-weight: 700; color: var(--gold-2); font-size: 1.05rem; }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.lightbox-dialog {
  position: relative;
  width: min(920px, calc(100% - 24px));
  max-height: 90vh;
  display: grid;
  place-items: center;
}
.lightbox-image { max-width: 100%; max-height: 78vh; border-radius: 12px; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(12, 20, 30, 0.8);
  color: var(--cream);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.lightbox-close { top: -8px; inset-inline-start: -8px; }
.lightbox-prev { inset-inline-start: 0; top: 45%; }
.lightbox-next { inset-inline-end: 0; top: 45%; }
.lightbox-caption { margin-top: 10px; color: var(--text-dim); text-align: center; }
body.lb-open { overflow: hidden; }

@media (min-width: 720px) {
  .logo-sub { display: block; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { min-height: 400px; }
  .hero-shot-main { height: 320px; }
  .cta-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 36px; }
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex !important; }
  .menu-btn, .mobile-nav, .mobile-nav.open, .bottom-bar { display: none; }
  .footer { padding-bottom: 40px; }
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-stage { min-height: 460px; }
  .hero-shot-main { height: 360px; width: 74%; }
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb, .hero-shot { animation: none; }
  .btn, .feature-card { transition: none; }
}

/* Order modal */
.order-modal[hidden] { display: none; }
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 16px;
}
.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.order-dialog {
  position: relative;
  width: min(460px, 100%);
  background: var(--ink-3);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
}
.order-dialog h2 { font-size: 1.25rem; margin-bottom: 8px; }
.order-summary { color: var(--text-dim); font-size: 0.95rem; }
.order-dialog label {
  display: block;
  margin: 12px 0;
  color: var(--gold-2);
  font-size: 13px;
}
.order-dialog input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--ink);
  color: var(--text);
}
.order-error { color: var(--danger); font-size: 13px; }
.order-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* Admin dashboard */
.page-admin .wrap-admin { width: min(1200px, calc(100% - 28px)); margin-inline: auto; }
.admin-login {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.login-card {
  width: min(420px, 100%);
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.6rem; }
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 28px;
}
.kpi {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
}
.kpi b { display: block; font-size: 1.45rem; color: var(--gold-2); }
.kpi span { color: var(--muted); font-size: 13px; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.admin-toolbar input, .admin-toolbar select, .notes-input {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
  color: var(--text);
}
.chart-box, .table-card, .list-card {
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
}
.chart-box h2, .table-card h2, .list-card h2, .split-lists h2 { font-size: 1.1rem; }
.chart-svg { width: 100%; height: 180px; display: block; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.dot-gold { background: var(--gold); }
.dot-cream { background: #3d4553; }
.split-lists {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 50, 77, 0.12);
  color: var(--text-dim);
  font-size: 14px;
}
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th, table.data td {
  text-align: right;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(21, 50, 77, 0.14);
  vertical-align: top;
  white-space: nowrap;
}
table.data th { color: var(--gold-2); font-weight: 600; }
.status-select { font-size: 12px; padding: 6px 8px; }
.visitors-id { font-family: ui-monospace, monospace; font-size: 11px; direction: ltr; unicode-bidi: isolate; }
.admin-msg { color: var(--danger); font-size: 14px; }
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .split-lists { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .split-lists { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.page-admin .header-cta { display: inline-flex !important; }
.admin-login[hidden],
#login-view[hidden],
#dash-view[hidden],
#admin-header-actions[hidden] { display: none !important; }
