:root{
  --bg:#0b0f16;
  --card:rgba(255,255,255,.025);
  --muted:#9aa7b8;
  --text:#eaf0f7;
  --line:rgba(255,255,255,.06);
  --shadow:0 18px 55px rgba(0,0,0,.45);
  --radius:26px;

  --danger:#ff5a67;

  --topH:56px;
  --botH:78px;
  --pad:16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Arial;
  background:
    radial-gradient(900px 450px at 30% 0%, rgba(86,115,255,.14), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(255,92,122,.10), transparent 65%),
    linear-gradient(180deg, #0b0f16, #0b0f16 45%, #0a0e14 100%);
  color:var(--text);
  padding-top: calc(var(--topH) + 10px);
  padding-bottom: calc(var(--botH) + 16px);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{
  width:min(980px, 100%);
  margin:0 auto;
  padding: 0 var(--pad);
}

.section{ margin-top:18px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardInner{ padding:18px; }

.titleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.h2{ margin:0; font-size:28px; font-weight:900; }
.p{ margin:0; color:var(--muted); line-height:1.8; }

.sp12{ height:12px; }
.sp10{ height:10px; }





/* Copy button style */
.copyWrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.copyBtn{
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,14,20,.55);
  color:#fff;
  font-size:16px;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:.25s ease;
}

.copyBtn:hover{
  background: rgba(255,92,122,.15);
  border-color: rgba(255,92,122,.35);
}

.copyBtn.copied{
  background: rgba(255,92,122,.18);
  border-color: rgba(255,92,122,.40);
}

/* =========================
   ACCORDION (details/summary)
   ========================= */
details.acc{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
}
details.acc > summary{
  list-style:none;
  cursor:pointer;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
details.acc > summary::-webkit-details-marker{ display:none; }

.sumTitle{ display:flex; flex-direction:column; gap:4px; }
.sumTitle h2{ margin:0; font-size:16px; font-weight:1000; }
.sumTitle .sub{ margin:0; font-size:13px; font-weight:800; color:var(--muted); }

.chev{
  width:38px; height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,14,20,.35);
  color:#fff;
  flex:0 0 auto;
  transition:transform .25s ease;
}
details[open] .chev{ transform: rotate(180deg); }

.content{
  padding:0 16px 16px;
  color: rgba(255,255,255,.90);
  line-height:1.9;
}

code{
  font-weight:900;
  direction:ltr;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  padding:4px 10px;
  border-radius:12px;
  display:inline-block;
  margin:6px 0;
  word-break:break-all;
}

.imgWrap img{
  max-width:420px;
  width:100%;
  margin-top:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
  display:block;
  background: rgba(0,0,0,.22);
}



/* Header layout fix (3 columns) */
.topbar{
  position:fixed; top:0; left:0; right:0;
  height:var(--topH);
  padding: env(safe-area-inset-top) 16px 0;
  background: linear-gradient(180deg, rgba(18,26,39,.98), rgba(14,20,31,.92));
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index:50;

  display:grid;
  grid-template-columns: 1fr auto 1fr;   /* ✅ left | center | right */
  align-items:center;
}

.topLeft{ display:flex; justify-content:flex-start; }
.topCenter{ display:flex; justify-content:center; }
.topRight{ display:flex; justify-content:flex-end; }

.brand{
  font-weight:1000;
  letter-spacing:.6px;
  font-size:20px;
  white-space:nowrap;
}

/* Telegram button */
.tgBtn{
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background: linear-gradient(90deg, #229ED9, #1b86c2);
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 20px rgba(34,158,217,.35);
  white-space:nowrap;
}


/* Section Header */
.sectionHeader{
  margin:20px 6px 12px;
  text-align:right;
}
.sectionHeader h2{
  margin:0;
  font-size:30px;
  font-weight:1000;
  letter-spacing:.5px;
}

.imgModal{ position:fixed; inset:0; z-index:9999; display:none; }
.imgModal.open{ display:block; }

.imgModalBackdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.imgModalBox{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 26px);
  max-height: calc(100vh - 26px);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,14,20,.55);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.imgModalBox img{
  display:block;
  width:auto;
  height:auto;
  max-width: calc(100vw - 26px);
  max-height: calc(100vh - 26px);
  object-fit: contain;
}

.imgModalClose{
  position:absolute; top:10px; right:10px;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,14,20,.55);
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

/* FAQ Accordion */
.faqAcc{ margin-top:12px; display:grid; gap:12px; }

.faqItem{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  box-shadow: 0 16px 45px rgba(0,0,0,.20);
  overflow:hidden;
}

.faqQ{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background: transparent;
  border:0;
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-family: inherit;
  font-weight:900;
  font-size:14px;
  text-align:right;
}

.faqIco{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,92,122,.10);
  color:#ff5c7a;
  font-size:18px;
  transition: transform .25s ease;
  flex:0 0 auto;
}

.faqItem.open .faqIco{
  transform: rotate(180deg);
}

.faqA{
  height:0;
  overflow:hidden;
  transition: height .28s ease;
}

.faqAin{
  padding:0 16px 14px;
  font-size:13px; /* نفس خط الكوبي رايت */
  line-height:1.9;
  color: rgba(255,255,255,.68);
}


/* =========================
   STATS (Calculator / ارقامنا)
   ========================= */
.statsGrid{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr;  /* Mobile */
  margin-top:18px;
}

/* ✅ PC: 3 columns */
@media (min-width: 780px){
  .statsGrid{
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.statBox{
  border-radius:20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 45px rgba(0,0,0,.25);
  padding:16px;
  text-align:center;

  /* يعطي ثبات بالشكل + يوزع المحتوى */
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height: 180px;
}

.statIcon{
  width:46px;
  height:46px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,92,122,.08);
  color:#ff5c7a;
  transition:.3s ease;
}
.statIcon svg{ width:22px; height:22px; }
.statBox:hover .statIcon{
  transform:translateY(-4px);
  background: rgba(255,92,122,.15);
}

.statLabel{
  font-weight:900;
  color:rgba(255,255,255,.85);
  margin-bottom:8px;
}

.statNumber{
  font-size:34px;
  font-weight:1000;
  letter-spacing:.5px;
  line-height:1.1;
}

.statHint{
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,.60);
  line-height:1.7;
}

/* Header */
.topbar{
  position:fixed; top:0; left:0; right:0;
  height:var(--topH);
  background: linear-gradient(180deg, rgba(18,26,39,.98), rgba(14,20,31,.92));
  border-bottom:1px solid var(--line);
  z-index:50;
  padding: env(safe-area-inset-top) var(--pad) 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  backdrop-filter: blur(10px);
}
.brand{
  font-weight:1000;
  letter-spacing:.6px;
  font-size:20px;
}

/* =========================
   HERO SLIDER
   ========================= */
.hero{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  isolation:isolate;
}

.heroTrack{
  display:flex;
  flex-wrap:nowrap;
  width:100%;
  direction:ltr;
  will-change: transform;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  backface-visibility:hidden;
  transform-style:preserve-3d;
}

/* slide */
.heroSlide{
  flex:0 0 100%;
  max-width:100%;
  position:relative;
  aspect-ratio:16/10;
  background:#111;
  overflow:hidden;
}

/* anti 1px bleed */
.heroTrack::after{
  content:"";
  flex:0 0 0.5px;
}

.heroSlide::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background: linear-gradient(180deg,
    rgba(0,0,0,.00) 0%,
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.70) 100%);
}

.heroImg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

.heroContent{
  position:absolute;
  inset:50% 18px auto 18px;
  transform: translateY(-50%);
  z-index:3;
  text-align:center;
  max-width:650px;
  margin:0 auto;
}

.heroTitle{ margin:0; font-size:30px; font-weight:1000; line-height:1.1; }
.heroSub{ margin:6px 0 0; color:rgba(255,255,255,.78); font-weight:700; }

.heroBtn{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 22px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,92,122,.95), rgba(255,92,122,.85));
  border:1px solid rgba(255,255,255,.14);
  font-weight:1000;
  letter-spacing:.3px;
  box-shadow: 0 18px 40px rgba(255,92,122,.22);
}

.heroNav{
  position:absolute; top:14px; left:14px; right:14px;
  display:flex; justify-content:space-between; gap:10px;
  z-index:4;
  pointer-events:none;
}

.navBtn{
  pointer-events:auto;
  width:44px; height:44px;
  border-radius:16px;
  background: rgba(10,14,20,.35);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  display:grid; place-items:center;
  cursor:pointer;
  user-select:none;
}

.miniIcon{ width:18px; height:18px; opacity:.95; }

.heroDots{
  position:absolute; bottom:10px; left:0; right:0;
  z-index:4;
  display:flex; gap:8px;
  justify-content:center;
  pointer-events:auto;
}

.dot{ width:8px; height:8px; border-radius:99px; background: rgba(255,255,255,.25); }
.dot.active{ background: rgba(255,255,255,.85); width:18px; }

/* Features mini cards */
.stack{ display:grid; gap:12px; margin-top:12px; }

.miniCard{
  border-radius:20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 45px rgba(0,0,0,.25);
  padding:16px;
}

.miniHeader{
  display:flex;
  align-items:center;
  gap:12px;
}

.miniIcon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background: rgba(255,92,122,.08);
  color: rgba(255,92,122,.95);
  flex:0 0 auto;
}

.miniIcon svg{ width:20px; height:20px; }

.miniTitle{
  font-weight:900;
  font-size:16px;
}

.miniText{
  margin-top:8px;
  font-size:13px;
  line-height:1.9;
  color: rgba(255,255,255,.70);
}

/* Tiles */
.tiles{
  display:flex;
  gap:14px;
  overflow:auto;
  padding: 2px 2px 10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}
.tiles::-webkit-scrollbar{ display:none; }

.tile{
  flex: 0 0 68%;
  scroll-snap-align:start;
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.07);
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}

.tileImg{
  width:100%;
  height:220px;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}

.tile::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.75) 100%);
  pointer-events:none; /* ✅ هذا هو الحل */
}

.tileTxt{ position:absolute; inset:auto 16px 14px 16px; z-index:2; }
.tileTitle{ margin:0; font-size:34px; font-weight:1000; line-height:1; }
.tileSub{ margin:6px 0 0; color:rgba(255,255,255,.75); font-weight:800; }

/* Footer */
.footerCard{ text-align:center; padding:22px 16px 14px; }
.footerBrand{ font-weight:1000; letter-spacing:.8px; font-size:36px; margin:0; }

.footerBy{
  margin:4px 0 14px;
  color:rgba(255,255,255,.42);
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
  font-size:12px;
}
.heart{ color:var(--danger); }

.footerLinks{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px 10px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:10px 0 14px;
  font-weight:900;
  color: rgba(78,161,255,.95);
}

.copyright{
  color:rgba(255,255,255,.40);
  font-weight:800;
  padding-bottom:6px;
}

/* Bottom nav */
.bottombar{
  position:fixed; left:0; right:0; bottom:0;
  height:var(--botH);
  padding: 10px var(--pad) calc(env(safe-area-inset-bottom) + 10px);
  background: linear-gradient(180deg, rgba(12,16,24,.55), rgba(10,13,19,.96));
  border-top:1px solid var(--line);
  z-index:60;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:10px;
  backdrop-filter: blur(10px);
}

.tab{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.45);
  cursor:pointer;
  transition:.25s ease;
}

.tabIcon{
  font-size:24px;
  font-weight:900;
  transition: all .3s cubic-bezier(.22,.61,.36,1);
  color:#ff5c7a;
}

/* active */
.tab.active{ color:#ffffff; }
.tab.active .tabIcon{
  color:#ffffff;
  transform: translateY(-6px) scale(1.15);
}

/* Desktop tweaks */
@media (min-width: 780px){
  .heroSlide{ aspect-ratio:16/7; }
  .tile{ flex-basis:34%; }
}

/* Unified 3-column grid (Features + Calculator) */
.grid3{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr; /* mobile */
}

@media (min-width: 780px){
  .grid3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* optional: make cards same height and centered nicely */
.grid3 > *{
  min-height: 180px;
}

.imgPopup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:20px;
}

.imgPopup.show{
  display:flex;
}

.imgPopup img{
  max-width:95%;
  max-height:95%;
  object-fit:contain;
  border-radius:6px;
}

.imgClose{
  position:absolute;
  top:20px;
  right:20px;
  background:#000;
  color:#fff;
  border:0;
  width:40px;
  height:40px;
  font-size:20px;
  cursor:pointer;
  border-radius:6px;
}



