/* ========== هوية خطوة ========== */
:root {
  --sky: #bfe0f6;
  --sky-deep: #6f9fd6;
  --peach: #fbe4d8;
  --sage: #d6ddb4;
  --sage-deep: #b9c38c;
  --cream: #f7ead9;
  --ink: #2b2b2b;
  --ink-soft: #4b4b4b;
  --font: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; }

/* ========== الصندوق البكسلي (زوايا مدرّجة مثل ملف الهوية) ========== */
.px-box {
  --fill: var(--cream);
  --s: 6px;               /* حجم درجة الزاوية */
  --b: 5px;               /* سماكة الإطار */
  --steps: polygon(
    calc(var(--s) * 2) 0, calc(100% - var(--s) * 2) 0,
    calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s),
    calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2),
    100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2),
    calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)),
    calc(100% - var(--s) * 2) 100%, calc(var(--s) * 2) 100%,
    calc(var(--s) * 2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)),
    var(--s) calc(100% - var(--s) * 2), 0 calc(100% - var(--s) * 2),
    0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2),
    var(--s) var(--s), calc(var(--s) * 2) var(--s));
  --shadow: 8px;
  position: relative;
  isolation: isolate;
  padding: 30px 34px;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
/* طبقة الخلفية (إطار + لون + ظل) منفصلة عن النص، حتى يبقى الخط حاد ونظيف */
.px-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  filter: drop-shadow(0 var(--shadow) 0 rgba(43, 43, 43, .2));
  transition: filter .3s;
}
.px-bg::before, .px-bg::after { content: ""; position: absolute; clip-path: var(--steps); }
.px-bg::before { inset: 0; background: var(--ink); }
.px-bg::after {
  inset: var(--b);
  background: var(--fill);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, .6), inset 0 -7px 0 rgba(43, 43, 43, .09);
}
.px-box.lift:hover { transform: translateY(-8px); }
.px-box.lift:hover > .px-bg { --shadow: 16px; }
.px-box--sage { --fill: var(--sage); }
.px-box--sky { --fill: var(--sky); }

/* ========== الأزرار ========== */
.px-btn {
  --bg: var(--ink);
  --fg: var(--sage);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 17px/1 var(--font);
  color: var(--fg); background: var(--bg);
  border: 0; cursor: pointer; text-decoration: none;
  padding: 16px 26px;
  margin: 4px;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink),
    -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    0 10px 0 0 rgba(43, 43, 43, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.px-btn:hover { transform: translateY(-4px); box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink),
    -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    0 14px 0 0 rgba(43, 43, 43, .25); }
.px-btn:active { transform: translateY(4px); box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink),
    -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    0 4px 0 0 rgba(43, 43, 43, .25); }
.px-btn:disabled { opacity: .55; cursor: default; transform: none; }
.px-btn--light { --bg: var(--sage); --fg: var(--ink); }
.px-btn--small { padding: 10px 14px; font-size: 16px; }

/* ========== الشريط العلوي ========== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 48px;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: var(--sky); padding-block: 8px; box-shadow: 0 4px 0 0 var(--ink); }
.nav-logo img { height: 46px; width: auto; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.1); }
.nav-links { display: flex; gap: 10px; margin-inline-start: auto; }

/* أزرار الشريط العلوي: نفس الصندوق المدرّج، نفس المقاس، بدون ظل */
.nav-box {
  --fill: var(--cream);
  --s: 4px;
  --b: 3px;
  height: 46px;
  min-width: 96px;
  padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--font);
  color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  --shadow: 0px;
}
.nav-box > .px-bg { filter: none; }
.nav-box > .px-bg::after { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(43, 43, 43, .08); }
.nav-box:hover { --fill: var(--sage); transform: translateY(-3px); }
.nav-box.active { --fill: var(--sage); }
.nav-box:active { transform: translateY(1px); }

.cart-btn { padding: 0 12px; }
.cart-icon { display: grid; }
.cart-icon svg { width: 28px; height: 28px; shape-rendering: crispEdges; }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 4px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--sage);
  font: 700 14px/1 var(--font);
}
.cart-btn:hover .cart-icon { animation: cart-roll .5s steps(4); }
@keyframes cart-roll { 50% { transform: translateX(-4px) rotate(-6deg); } }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(.95); } }

/* ========== البداية ========== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 20px 140px;
}
.hero-bg {
  position: absolute; inset: -40px;
  background: url("assets/hero-clean.webp") center 40% / cover no-repeat;
  image-rendering: pixelated;
  transition: transform .2s ease-out;
  will-change: transform;
}
.hero-content { position: relative; z-index: 2; width: min(640px, 100%); text-align: center; }
.hero-card { padding: 56px 40px 38px; }
.hero-logo {
  position: absolute; top: -40px; left: 50%; translate: -50% 0;
  height: 70px; width: auto;
  filter: drop-shadow(0 4px 0 rgba(43, 43, 43, .25));
  transition: transform .3s cubic-bezier(.3, 1.8, .5, 1);
}
.hero-logo:hover { transform: rotate(-5deg) scale(1.08); }
.hero-card h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.35; }
.hero-card p { margin: 0 0 24px; font-size: 20px; font-weight: 500; color: var(--ink-soft); }
.brand { color: #4f7dc0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* زر النزول للأسفل */
.scroll-hint {
  --s: 4px; --b: 4px; --shadow: 6px;
  position: absolute; bottom: 52px; left: 50%; z-index: 3;
  width: 58px; height: 58px; margin-left: -29px; padding: 0;
  display: grid; place-items: center;
  animation: hint-bob 1.6s steps(4) infinite;
}
.scroll-hint svg { width: 30px; height: 30px; shape-rendering: crispEdges; }
.scroll-hint:hover { --fill: var(--sage); animation-play-state: paused; transform: translateY(4px); }
@keyframes hint-bob { 50% { translate: 0 8px; } }

/* غيوم بكسل متحركة */
.cloud {
  position: absolute; z-index: 1; width: 12px; height: 12px; pointer-events: none;
  color: var(--cream);
  box-shadow:
    24px 0, 36px 0, 48px 0,
    12px 12px, 24px 12px, 36px 12px, 48px 12px, 60px 12px, 72px 12px,
    0 24px, 12px 24px, 24px 24px, 36px 24px, 48px 24px, 60px 24px, 72px 24px, 84px 24px;
  opacity: .9;
  animation: drift linear infinite;
}
.c1 { top: 16%; animation-duration: 48s; }
.c2 { top: 28%; animation-duration: 70s; animation-delay: -30s; transform: scale(.7); }
.c3 { top: 8%; animation-duration: 60s; animation-delay: -12s; }
@keyframes drift { from { left: -140px; } to { left: 105%; } }

/* ========== حواف بكسل بين الأقسام ========== */
/* تلال بكسل منتظمة: لون القسم التالي يطلع فوق القسم السابق */
.px-edge, .hero-edge { --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 4h2v2H0zM2 3h2v3H2zM4 2h2v4H4zM6 1h4v5H6zM10 2h2v4h-2zM12 3h2v3h-2zM14 4h2v2h-2z'/%3E%3C/svg%3E"); }
.px-edge { position: relative; height: 24px; margin-top: -1px; background: var(--prev); }
.px-edge::before, .hero-edge::before {
  content: ""; position: absolute; inset: 0; background: var(--next);
  -webkit-mask: var(--hills) 0 100% / 64px 24px repeat-x;
          mask: var(--hills) 0 100% / 64px 24px repeat-x;
}
.hero-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; z-index: 2; --next: var(--peach); }
.px-edge--peach-sage { --prev: var(--peach); --next: var(--sage-deep); }
.px-edge--sage-sky { --prev: var(--sage-deep); --next: var(--sky); }

/* ========== الأقسام ========== */
.section { padding: 70px 64px 90px; }
.peach { background: var(--peach); }
.sage { background: var(--sage-deep); }
.sky { background: var(--sky); }
.section-title { text-align: center; margin: 0 0 8px; font-size: 40px; line-height: 1.35; }
.section-sub { text-align: center; margin: 0 0 44px; font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.section-title + :not(.section-sub) { margin-top: 44px; }

/* وش بتستفيد منا */
.benefits {
  max-width: 1080px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 36px;
}
.benefit { --fill: var(--sage); text-align: center; padding: 36px 28px 32px; cursor: default; }
.benefit p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.75; }
.icon-tile {
  --fill: var(--cream); --s: 5px; --b: 4px;
  --shadow: 5px;
  width: 84px; height: 84px; padding: 0; margin: 0 auto 18px;
  display: grid; place-items: center;
}
.icon-tile svg { width: 56px; height: 56px; shape-rendering: crispEdges; }
.benefit:hover .icon-tile { animation: hop .6s steps(6); }
@keyframes hop { 35% { transform: translateY(-14px) rotate(-6deg); } 70% { transform: translateY(-4px) rotate(4deg); } }

/* ========== المنتج ========== */
.product {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center;
  padding: 44px;
}
.product-media { perspective: 900px; }
.product-frame {
  background: var(--sky);
  padding: 14px;
  box-shadow:
    0 -5px 0 0 var(--ink), 0 5px 0 0 var(--ink), -5px 0 0 0 var(--ink), 5px 0 0 0 var(--ink),
    10px 14px 0 0 rgba(43, 43, 43, .2);
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
}
.product-frame img { width: 100%; aspect-ratio: 1616 / 2000; object-fit: cover; }
.product-info h3 { margin: 0 0 10px; font-size: 32px; line-height: 1.4; }
.product-info > p { margin: 0 0 18px; font-size: 18px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tag {
  font-size: 15px; font-weight: 600; padding: 4px 12px; background: var(--sky);
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  margin: 3px;
}
/* قائمة المميزات المرقّمة */
.features {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.features li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.5; }
.num {
  flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  font: 700 15px/1 var(--font);
  color: var(--ink); background: var(--sage);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 -6px 0 0 rgba(43, 43, 43, .12);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), background .2s;
}
.features li:hover .num { background: var(--sky); transform: rotate(-8deg) scale(1.12); }

/* صندوق السعر والشراء */
.buy-box {
  --fill: var(--sky); --shadow: 6px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
}
.price-tag { display: grid; gap: 2px; }
.price-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.price { display: inline-flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 700; line-height: 1.1; direction: ltr; justify-content: flex-end; }
.price-note { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.add-btn { gap: 10px; padding: 16px 22px; }
.btn-icon { display: grid; }
.btn-icon svg { width: 24px; height: 24px; shape-rendering: crispEdges; }
.add-btn:hover .btn-icon { animation: cart-roll .5s steps(4); }
.coin {
  width: 26px; height: 26px; background: #f2c94c; position: relative;
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  animation: coin 1.4s steps(6) infinite;
}
.coin::after { content: ""; position: absolute; inset: 6px 10px; background: #c99a1e; }
@keyframes coin { 50% { transform: scaleX(.15); } }

/* ========== الروابط ========== */
.socials {
  max-width: 780px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px;
}
.social {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 600; font-size: 19px;
  padding: 30px 16px 26px;
}
.social .icon-tile { margin: 0; width: 88px; height: 88px; --fill: var(--sky); }
.social .icon-tile svg { width: 60px; height: 60px; }
.social:hover { --fill: var(--sage); }
.social:hover .icon-tile { --fill: var(--cream); animation: hop .6s steps(6); }

/* ========== التذييل ========== */
.footer { background: var(--ink); color: var(--cream); text-align: center; padding: 34px 16px; }
.footer-logo { height: 54px; width: auto; margin: 0 auto 6px; }
.footer p { margin: 0; opacity: .8; font-size: 15px; }

/* ========== السلة ========== */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(43, 43, 43, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 100%; width: min(420px, 100%); overflow-y: auto;
  background: var(--cream); padding: 24px 24px 0;
  display: flex; flex-direction: column;
  border-right: 6px solid var(--ink);
  transform: translateX(-105%); transition: transform .35s cubic-bezier(.3, 1.2, .5, 1);
}
.cart.open { transform: none; }
/* مسافات السلة: كل الأجزاء بينها 24 بكسل */
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cart-head h2 { margin: 0; font-size: 26px; }
.icon-btn { background: none; border: 0; font-size: 32px; cursor: pointer; line-height: 1; transition: transform .2s; }
.icon-btn:hover { transform: rotate(90deg); }
#cart-items { list-style: none; padding: 0; margin: 0; }
#cart-items li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 0 0 20px; border-bottom: 3px dashed rgba(43, 43, 43, .2);
  font-size: 16px; line-height: 1.6;
}
#cart-items li > span:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
#cart-items li b { font-size: 18px; direction: ltr; }
.remove { background: none; border: 0; padding: 0; color: #b3261e; cursor: pointer; font: 600 14px var(--font); }
.total {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 0; font-size: 18px; font-weight: 600;
}
.total strong { font-size: 22px; }
#checkout label { display: block; margin: 18px 0 8px; font-weight: 600; }
#checkout input {
  width: 100%; padding: 12px; margin-bottom: 18px;
  font: 16px var(--font); direction: ltr; text-align: right;
  border: 4px solid var(--ink); background: #fff; outline: none;
}
#checkout input:focus { background: #fffdf5; box-shadow: 0 0 0 4px var(--sage-deep); }
/* الدفع عبر Gumroad */
.pay-btn { margin-top: 24px !important; padding: 18px 22px; font-size: 19px; gap: 10px; }
.pay-btn .btn-icon svg { width: 26px; height: 26px; }
.pay-btn:hover .btn-icon { animation: cart-roll .5s steps(4); }

/* رسمة أسفل السلة: منظر الهوية مع تلال بكسل وشعار صغير */
.cart-art {
  position: relative; flex: none;
  margin: auto -24px 0; min-height: 210px;
  background: url("assets/hero-clean.webp") center 70% / cover no-repeat;
  image-rendering: pixelated;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 16px 22px;
}
.cart-art::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 24px; background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h16v2H0zM0 2h2v1H0zM4 2h2v1H4zM6 2h4v2H6zM10 2h2v1h-2zM14 2h2v1h-2z'/%3E%3C/svg%3E") 0 0 / 64px 24px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h16v2H0zM0 2h2v1H0zM4 2h2v1H4zM6 2h4v2H6zM10 2h2v1h-2zM14 2h2v1h-2z'/%3E%3C/svg%3E") 0 0 / 64px 24px repeat-x;
}
.cart-art img { height: 46px; width: auto; filter: drop-shadow(0 4px 0 rgba(43, 43, 43, .35)); animation: float 3s ease-in-out infinite; }
.cart-art span {
  font: 600 14px/1 var(--font); color: var(--ink);
  background: var(--cream); padding: 7px 14px;
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}

/* الدفع بـ PayPal (غير مستخدم حالياً) */
.pay-hint { margin: 4px 0 12px; font-size: 15px; font-weight: 600; }
#paypal-buttons { min-height: 110px; position: relative; z-index: 1; }
.secure-note { margin: 24px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-soft); text-align: center; }

/* خطوات الدفع بالتحويل (غير مستخدمة حالياً) */
.px-btn.wide { width: 100%; margin: 4px 0 0; }
.bank {
  background: var(--sky); border: 4px solid var(--ink);
  box-shadow: 0 6px 0 rgba(43, 43, 43, .18);
  padding: 6px 14px; margin: 18px 0 16px;
}
.bank-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 2px dashed rgba(43, 43, 43, .2);
}
.bank-row:last-child { border-bottom: 0; }
.bank-row span { font-size: 14px; color: var(--ink-soft); min-width: 92px; }
.bank-row b { flex: 1; font-size: 15px; word-break: break-all; }
.bank-row.amount b { font-size: 24px; }
.bank-row.ref b { font-size: 18px; letter-spacing: .5px; }
.copy-btn {
  font: 700 13px var(--font); padding: 5px 10px; cursor: pointer;
  background: var(--cream); border: 3px solid var(--ink); transition: background .15s;
}
.copy-btn:hover { background: var(--sage); }
.transfer-steps { margin: 0 0 14px; padding-right: 20px; font-size: 15px; line-height: 1.9; }
.upload {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px; margin: 0 0 14px !important;
  border: 3px dashed var(--ink); background: #fff; font-weight: 600;
  transition: background .15s;
}
.upload:hover, .upload.has-file { background: var(--sage); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { box-shadow: 0 0 0 4px var(--sage-deep); }
.upload-icon svg { width: 34px; height: 34px; shape-rendering: crispEdges; display: block; }
.link-btn {
  display: block; margin: 12px auto 0; background: none; border: 0; cursor: pointer;
  font: 600 14px var(--font); color: var(--ink-soft); text-decoration: underline;
}

.msg { margin-top: 12px; font-weight: 600; }
.msg.ok { color: #1b7a3a; }
.msg.err { color: #b3261e; }
.empty { color: var(--ink-soft); }

/* ========== شاشة نجاح الدفع ========== */
.success {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(43, 43, 43, .55);
  animation: fade-in .3s ease;
}
.success[hidden] { display: none; }
.success-card {
  width: min(460px, 100%); text-align: center; padding: 40px 30px 32px;
  animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1);
}
.success-card h2 { margin: 6px 0 6px; font-size: 30px; }
.success-card p { margin: 0 0 6px; font-size: 17px; font-weight: 500; color: var(--ink-soft); }
.success-email { font-weight: 700 !important; color: var(--ink) !important; font-size: 18px !important; word-break: break-all; }
.success-note { font-size: 14px !important; margin-bottom: 20px !important; }
.success-icon { --fill: var(--sage); width: 96px; height: 96px; margin-bottom: 12px; animation: hop 1s steps(6) .4s 2; }
.success-icon svg { width: 64px; height: 64px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { 0% { transform: scale(.4) translateY(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute; top: -20px; width: 12px; height: 12px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); }
}

/* ========== ظهور تدريجي ========== */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .6s ease, translate .6s cubic-bezier(.3, 1.4, .5, 1), transform .3s cubic-bezier(.3, 1.6, .5, 1), filter .3s; }
.reveal.in { opacity: 1; translate: none; }

/* ========== الجوال ========== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
  .nav-logo img { height: 36px; }
  .nav-links { order: 3; width: 100%; justify-content: center; margin: 0; }
  .nav-links { gap: 8px; }
  .nav-box { height: 40px; min-width: 0; flex: 1; padding: 0 10px; font-size: 15px; }
  .cart-btn { flex: none; margin-inline-start: auto; }
  .cart-icon svg { width: 24px; height: 24px; }
  .hero { padding: 150px 16px 130px; }
  .hero-bg { inset: -30px; background-position: 40% center; }
  .scroll-hint { bottom: 44px; }
  .hero-card { padding: 46px 18px 30px; }
  .hero-logo { height: 56px; top: -32px; }
  .hero-card h1 { font-size: 28px; }
  .hero-card p { font-size: 17px; }
  .hero-actions { flex-wrap: nowrap; gap: 6px; }
  .hero-actions .px-btn { padding: 13px 16px; font-size: 15px; }
  .section { padding: 56px 18px 70px; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 17px; }
  .product { grid-template-columns: 1fr; gap: 30px; padding: 30px 22px; }
  .product-media { max-width: 320px; margin-inline: auto; }
  .product-info h3 { font-size: 25px; }
  .price { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
  .buy-box { padding: 18px; }
  .add-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
