:root{
  --bg:#0A1123;            /* Chinese Black */
  --blue:#3A3E6C;          /* American Blue */
  --ube:#8387C3;           /* Ube */
  --cadet:#959BB5;         /* Cadet Grey */
  --cool:#8A8CAC;          /* Cool Grey */

  --text: rgba(230,231,240,.96);
  --muted: rgba(149,155,181,.78);
  --stroke: rgba(138,140,172,.22);

  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.09);

  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --shadowSoft: 0 14px 36px rgba(0,0,0,.30);

  --r:18px;
  --rlg:26px;

  --container: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);

  /* ✅ أضفنا صورة الباكقراوند فقط (بدون تغيير أي شيء ثاني) */
  background:
    url("../img/space-bg.jpg") center/cover fixed no-repeat,
    radial-gradient(1200px 780px at 85% 12%, rgba(131,135,195,.22), transparent 60%),
    radial-gradient(900px 650px at 15% 25%, rgba(149,155,181,.17), transparent 62%),
    radial-gradient(1000px 720px at 50% 95%, rgba(58,62,108,.55), transparent 58%),
    linear-gradient(180deg, #060a14 0%, #050814 45%, #040611 100%);

  overflow-x:hidden;
}


a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}

.container{
  width:min(var(--container), calc(100% - 34px));
  margin-inline:auto;
}

/* Subtle noise overlay */
.page::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.08;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Cursor glow */
.cursor-glow{
  position:fixed;
  width:520px;height:520px;
  border-radius:50%;
  pointer-events:none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(131,135,195,.18), transparent 65%);
  filter: blur(0px);
  opacity:.85;
  z-index:2;
}

/* Preloader */
.preloader{
  position:fixed; inset:0;
  background: #050815;
  display:grid; place-items:center;
  z-index:999;
}
.preloader__inner{
  width:min(520px, calc(100% - 44px));
  text-align:center;
}
.mark{
  display:flex; justify-content:center; align-items:center; gap:12px;
  font-weight:900;
}
.mark__dot{
  width:14px;height:14px;border-radius:50%;
  background: linear-gradient(135deg, rgba(131,135,195,1), rgba(149,155,181,1));
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.mark__text{letter-spacing:.6px}
.loaderbar{
  height:10px;
  margin:16px auto 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  overflow:hidden;
}
.loaderbar span{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(131,135,195,.95), rgba(58,62,108,.95));
}
.preloader__hint{color:var(--muted); font-weight:800}

/* Nav */
.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(10,17,35,.60);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(138,140,172,.14);
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand__logo{
  width:44px;height:44px;border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(131,135,195,.95), rgba(149,155,181,.55));
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  position:relative; overflow:hidden;
}
.brand__logo::after{
  content:"";
  position:absolute; inset:-45%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 60%);
  transform: rotate(18deg);
}
.brand__meta b{display:block; font-size:1.05rem; font-weight:900}
.brand__meta small{display:block; color:var(--muted); font-weight:800; margin-top:-2px}

.nav__links{
  display:flex; gap:8px; align-items:center;
}
.nav__link{
  padding:10px 12px; border-radius:14px;
  font-weight:900; color: rgba(230,231,240,.86);
  transition:.25s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.nav__link.active{
  background: linear-gradient(135deg, rgba(131,135,195,.18), rgba(58,62,108,.18));
  border:1px solid rgba(131,135,195,.22);
}

.burger{
  display:none;
  width:46px;height:46px;border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(138,140,172,.18);
  cursor:pointer;
  align-items:center; justify-content:center;
}
.burger span{
  width:20px;height:2px;border-radius:2px;
  background: rgba(230,231,240,.86);
  position:relative; transition:.25s ease;
}
.burger span::before,.burger span::after{
  content:"";
  position:absolute; left:0;
  width:20px;height:2px;border-radius:2px;
  background: rgba(230,231,240,.86);
  transition:.25s ease;
}
.burger span::before{top:-6px}
.burger span::after{top:6px}
.burger.active span{background:transparent}
.burger.active span::before{top:0; transform:rotate(45deg)}
.burger.active span::after{top:0; transform:rotate(-45deg)}

.mobile{display:none; padding-bottom:14px;}
.mobile__panel{
  border-radius:18px;
  border:1px solid rgba(138,140,172,.16);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadowSoft);
  overflow:hidden;
}
.mobile__panel a{
  display:flex; padding:14px;
  font-weight:900;
  border-top:1px solid rgba(138,140,172,.12);
  color: rgba(230,231,240,.88);
}
.mobile__panel a:first-child{border-top:none}
.mobile__panel a:hover{background: rgba(255,255,255,.06)}
.mobile__cta{
  padding:14px;
  display:flex; gap:10px; flex-wrap:wrap;
  border-top:1px solid rgba(138,140,172,.12);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:900;
  transition: transform .6s cubic-bezier(.16,1,.3,1), background .25s, box-shadow .6s;
  user-select:none;
  white-space:nowrap;
  position:relative;
}
.btn--primary{
  background: linear-gradient(135deg, rgba(131,135,195,.95), rgba(58,62,108,.92));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  color:#fff;
}
.btn--primary:hover{transform: translateY(-2px)}
.btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(138,140,172,.18);
  color: rgba(230,231,240,.90);
}
.btn--ghost:hover{transform: translateY(-2px); background: rgba(255,255,255,.09)}

/* Panels */
.panel{
  border-radius: var(--rlg);
  border:1px solid rgba(138,140,172,.18);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.panel__shine{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 55%);
  transform: rotate(14deg);
  pointer-events:none;
  opacity:.8;
}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(138,140,172,.18);
  font-weight:900;
  color: rgba(230,231,240,.88);
}
.pill__dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(135deg, rgba(149,155,181,1), rgba(131,135,195,1));
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

.h1{
  margin:14px 0 10px;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  line-height:1.18;
  letter-spacing:.2px;
}
.h2{
  margin:0 0 6px;
  font-size: clamp(1.25rem, 2.7vw, 1.85rem);
  font-weight:900;
}
.grad{
  background: linear-gradient(90deg, rgba(149,155,181,.95), rgba(131,135,195,.95));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.lead{
  margin:0 0 14px;
  color: var(--muted);
  font-weight:800;
  line-height:1.95;
  max-width: 74ch;
}
.muted{color: var(--muted)}
.tiny{font-size:.92rem; line-height:1.9}

/* Home Hero */
.hero{padding:28px 0 12px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:stretch;
}
.panel--hero .hero__content{padding:22px; position:relative}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:8px}
.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
.stat{
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
}
.stat b{display:block; font-weight:900}
.stat span{display:block; margin-top:2px; font-weight:800; color: var(--muted)}

.panel--visual{padding:16px}
.visual__stack{display:grid; gap:12px}
.glasscard{
  border-radius: 24px;
  border:1px solid rgba(138,140,172,.16);
  background: linear-gradient(135deg, rgba(131,135,195,.12), rgba(255,255,255,.05));
  box-shadow: var(--shadowSoft);
  padding:14px;
  position:relative;
  overflow:hidden;
}
.glasscard::after{
  content:"";
  position:absolute; inset:-45%;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,.18), transparent 55%);
  opacity:0;
  transition:.6s;
}
.glasscard:hover::after{opacity:1}

.glasscard__top{display:flex; justify-content:space-between; gap:10px; align-items:center}
.tag{
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(138,140,172,.16);
  background: rgba(255,255,255,.05);
  font-weight:900;
}
.chip{
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(131,135,195,.16);
  font-weight:900;
}
.glasscard__mid{
  display:flex; gap:10px; justify-content:center; margin:12px 0;
}
.logoOrb{
  width:64px;height:64px;border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  display:grid; place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.logoOrb i{font-size:26px; opacity:.92}
.glasscard__bottom b{display:block; font-weight:900}
.glasscard__bottom small{display:block; color: var(--muted); font-weight:800; margin-top:2px}

.miniGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.miniBox{
  border-radius: 20px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
  padding:12px;
}
.miniBox i{opacity:.9}
.miniBox b{display:block; margin-top:6px; font-weight:900}
.miniBox small{display:block; margin-top:2px; color: var(--muted); font-weight:800}

/* Sections */
.section{padding:18px 0}
.section__head{margin: 8px 0 12px}
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.step{
  border-radius: 22px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadowSoft);
  padding:14px;
}
.step__icon{
  width:46px;height:46px;border-radius:18px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(131,135,195,.22), rgba(58,62,108,.18));
  margin-bottom:10px;
}
.step b{font-weight:900}
.step p{margin:8px 0 0; color: var(--muted); font-weight:800; line-height:1.9}

/* Support */
.support__box{
  border-radius: 26px;
  border:1px solid rgba(138,140,172,.18);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Footer */
.footer{
  padding:26px 0 40px;
  border-top:1px solid rgba(138,140,172,.12);
  margin-top:12px;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* FAB */
.fab{
  position:fixed;
  bottom:18px;
  left:18px;
  width:56px;height:56px;
  border-radius:22px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(131,135,195,.95), rgba(58,62,108,.92));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 55px rgba(0,0,0,.45);
  z-index:80;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.fab:hover{transform: translateY(-3px)}
.fab i{font-size:22px}

/* Transition overlay */
.transition{
  position:fixed; inset:0;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(131,135,195,.18), transparent 60%),
              linear-gradient(180deg, rgba(5,8,21,0) 0%, rgba(5,8,21,1) 80%);
  pointer-events:none;
  opacity:0;
  z-index:200;
}

/* Shop */
.shopHero{padding:26px 0 12px}
.shopHero__inner{padding:16px}
.shopHero__head{
  display:grid;
  gap:12px;
}
.shopHero__tools{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.searchbox{
  display:flex; gap:10px; align-items:center;
  padding:12px 12px;
  border-radius: 18px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.06);
}
.searchbox i{opacity:.88}
.searchbox input{
  width:100%;
  border:0; outline:none;
  background: transparent;
  color: rgba(230,231,240,.94);
  font-weight:800;
  font-size:1rem;
}
.searchbox input::placeholder{color: rgba(149,155,181,.60)}

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chip{
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
  color: rgba(230,231,240,.88);
  font-weight:900;
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .6s cubic-bezier(.16,1,.3,1), background .25s;
}
.chip:hover{transform: translateY(-2px); background: rgba(255,255,255,.07)}
.chip.active{
  border-color: rgba(131,135,195,.45);
  background: linear-gradient(135deg, rgba(131,135,195,.24), rgba(58,62,108,.22));
}

/* Products Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
}
.card{
  border-radius: 22px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadowSoft);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  min-height: 270px;
  transform-style: preserve-3d;
}
.card::before{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,.16), transparent 55%);
  opacity:0;
  transition:.6s;
  pointer-events:none;
}
.card:hover::before{opacity:1}

.card__top{
  padding:14px 14px 10px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.badge{
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
  font-weight:900;
  color: rgba(230,231,240,.88);
  font-size:.88rem;
}
.fav{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(138,140,172,.12);
  background: rgba(255,255,255,.05);
  display:grid; place-items:center;
  cursor:pointer;
}
.card__media{
  padding:4px 14px 10px;
  display:grid; place-items:center;
  flex:1;
}
.logoWrap{
  width:92px;height:92px;border-radius:26px;
  border:1px solid rgba(255,255,255,.14);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 55%),
              linear-gradient(135deg, rgba(131,135,195,.20), rgba(149,155,181,.12));
  display:grid; place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  overflow:hidden;
}
.logoWrap img{
  width:68px;height:68px; object-fit:contain;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.35));
}
.logoWrap i{font-size:34px; opacity:.94}
.card__body{padding:0 14px 12px}
.card__body h3{margin:0; font-size:1.05rem; font-weight:900}
.card__body p{margin:6px 0 0; color: var(--muted); font-weight:800; line-height:1.8; font-size:.95rem}
.card__foot{
  padding:12px 14px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-top:1px solid rgba(138,140,172,.10);
  background: rgba(255,255,255,.03);
}
.price{font-weight:900}
.price small{display:block; color: rgba(149,155,181,.70); font-weight:900; margin-top:2px; font-size:.86rem}

/* Product Page */
.productPage{padding:26px 0 12px}
.productPage__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.productPanel{padding:16px}
.sidePanel{padding:16px}
.crumbs{
  display:flex; gap:8px; align-items:center;
  color: rgba(149,155,181,.82);
  font-weight:900;
  margin-bottom:12px;
}
.crumbs a:hover{opacity:.9}
.productTop{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap:14px;
  align-items:start;
}
.productMedia{
  border-radius: 24px;
  border:1px solid rgba(138,140,172,.16);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadowSoft);
  padding:14px;
  min-height: 320px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}
.productMedia__orb{
  width:118px;height:118px;border-radius: 34px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(131,135,195,.22), rgba(58,62,108,.18));
  display:grid; place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.productMedia__orb i{font-size:46px; opacity:.94}
.productMedia img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius: 18px;
}
.productInfo .metaRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin:12px 0 14px;
}
.metaBox{
  border-radius:18px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
  padding:12px;
}
.metaBox b{display:block; font-weight:900}
.metaBox span{display:block; margin-top:2px; color: var(--muted); font-weight:900}

.buyBox{
  border-radius: 22px;
  border:1px solid rgba(138,140,172,.16);
  background: rgba(255,255,255,.05);
  padding:14px;
  box-shadow: var(--shadowSoft);
}
.field{display:grid; gap:6px; margin-bottom:10px}
label{font-weight:900; color: rgba(230,231,240,.88)}
input, select, textarea{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(138,140,172,.18);
  background: rgba(255,255,255,.06);
  color: rgba(230,231,240,.94);
  padding:11px 12px;
  outline:none;
  font-weight:800;
}
textarea{min-height:86px; resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(131,135,195,.55);
  box-shadow: 0 0 0 4px rgba(131,135,195,.16);
}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}

.miniList{display:grid; gap:10px; margin-top:10px}
.rel{
  border-radius: 20px;
  border:1px solid rgba(138,140,172,.14);
  background: rgba(255,255,255,.05);
  padding:12px;
  display:flex; justify-content:space-between; gap:10px; align-items:center;
}
.rel b{font-weight:900}
.rel small{display:block; color: var(--muted); font-weight:800; margin-top:2px}
.rel .go{
  width:44px;height:44px;border-radius:16px;
  border:1px solid rgba(138,140,172,.16);
  background: rgba(255,255,255,.06);
  display:grid; place-items:center;
}

/* Reveal helper (GSAP will handle, but keep for no-js) */
.reveal{opacity:0; transform: translateY(18px)}

/* Responsive */
@media (max-width: 1020px){
  .nav__links{display:none}
  .burger{display:flex}
  .mobile{display:block}
  .hero__grid{grid-template-columns:1fr}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .steps{grid-template-columns:1fr}
  .productPage__grid{grid-template-columns:1fr}
  .productTop{grid-template-columns:1fr}
  .productInfo .metaRow{grid-template-columns:1fr}
  .hero__stats{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .grid{grid-template-columns:1fr}
  .miniGrid{grid-template-columns:1fr}

}