/* ============================================================
   ProPods - متجر سماعات Apple AirPods Pro 3
   ملف التنسيقات - تصميم احترافي عربي (RTL)
   ============================================================ */

:root {
  /* الألوان */
  --bg:        #0a0e14;
  --bg-2:      #0d121b;
  --surface:   #141b26;
  --surface-2: #1a2330;
  --line:      #283242;
  --line-soft: #1e2733;

  --text:      #e7edf5;
  --muted:     #9aa7b8;
  --muted-2:   #6b7888;

  --primary:   #00d1ff;
  --primary-2: #3b82f6;
  --accent:    #ff2d55;
  --green:     #22c55e;

  --grad: linear-gradient(135deg, #00d1ff 0%, #3b82f6 100%);
  --grad-accent: linear-gradient(135deg, #ff2d55 0%, #ff7a45 100%);

  /* قياسات */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --maxw:      1200px;

  --shadow:    0 18px 50px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
  --glow:      0 0 40px rgba(0,209,255,.35);

  --font:      'Tajawal', system-ui, sans-serif;
  --font-head: 'Cairo', 'Tajawal', sans-serif;

  --ease: cubic-bezier(.4,.0,.2,1);
}

/* ===================== أساسيات ===================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p  { margin: 0 0 1em; }
a  { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.container.narrow { width: min(820px, 92%); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #00121b; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* شريط تقدم التمرير */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 120; transition: width .1s linear;
  box-shadow: var(--glow);
}

/* ===================== الأزرار ===================== */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--text); background: var(--surface-2); position: relative;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad); color: #00121b; border: none;
  box-shadow: 0 10px 26px rgba(0,150,200,.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(0,180,255,.5); }

.btn-ghost {
  background: transparent; border: 1px solid var(--line);
  color: var(--text); backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { --pad: 17px 34px; font-size: 1.05rem; }
.btn-sm { --pad: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===================== الترويسة ===================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(10,14,20,.85);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(0,209,255,.4)); }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .5px; }
.brand-text strong { color: var(--primary); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--muted); font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== الواجهة (Hero) ===================== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: .5;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 480px; height: 480px; background: #0096c7; top: -120px; inset-inline-end: -80px; }
.glow-2 { width: 420px; height: 420px; background: #5b21b6; bottom: -160px; inset-inline-start: -100px; opacity: .4; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; font-size: .85rem; color: var(--muted);
  margin-bottom: 22px; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin-bottom: 26px; }

.price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.price-block { display: flex; align-items: baseline; gap: 12px; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 1.2rem; }
.price-now { font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; color: var(--text); line-height: 1; }
.price-now .cur { font-size: 1.1rem; color: var(--primary); margin-inline-start: 6px; font-weight: 700; }
.badge-discount {
  background: var(--grad-accent); color: #fff; padding: 6px 14px;
  border-radius: 999px; font-weight: 700; font-size: .85rem;
  box-shadow: 0 6px 18px rgba(255,45,85,.35);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); }

/* صورة المنتج */
.hero-visual { display: grid; place-items: center; }
.wheel-stage { position: relative; width: min(520px, 94%); }
.wheel-glow {
  position: absolute; inset: 8% 8% 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,209,255,.4), transparent 65%);
  filter: blur(38px); z-index: 0; animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{opacity:.55; transform:scale(1)} 50%{opacity:.85; transform:scale(1.06)} }
.wheel-svg { position: relative; z-index: 1; animation: floaty 5s ease-in-out infinite; }
.wheel-img {
  position: relative; z-index: 1; width: 100%; height: auto; border-radius: 18px;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.55));
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 46%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 46%, #000 60%, transparent 100%);
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.float-tag {
  position: absolute; z-index: 2;
  background: rgba(20,27,38,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.tag-1 { top: 14%; inset-inline-start: -6%; animation: floaty 4s ease-in-out infinite; }
.tag-2 { bottom: 20%; inset-inline-end: -6%; animation: floaty 4.6s ease-in-out infinite .5s; }

/* ===================== شريط الثقة ===================== */
.trust-bar { border-block: 1px solid var(--line-soft); background: var(--bg-2); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 30px; height: 30px; color: var(--primary); flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

/* ===================== الأقسام العامة ===================== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head.start { text-align: start; margin-inline: 0; }
.kicker {
  display: inline-block; color: var(--primary); font-weight: 700; font-family: var(--font-head);
  font-size: .9rem; letter-spacing: 1px; margin-bottom: 12px;
  padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===================== المميزات ===================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: .8; }
.feature-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,209,255,.16), rgba(59,130,246,.1));
  border: 1px solid rgba(0,209,255,.25); margin-bottom: 18px;
}
.feature-ico svg { width: 28px; height: 28px; color: var(--primary); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===================== المواصفات ===================== */
.specs-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.specs-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec-stat {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
}
.spec-stat .num {
  display: block; font-family: var(--font-head); font-weight: 900;
  font-size: 2.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec-stat .lbl { color: var(--muted); font-size: .9rem; }

.spec-list { display: flex; flex-direction: column; gap: 0; margin: 8px 0 26px; }
.spec-list > div {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
}
.spec-list dt { color: var(--muted); font-weight: 500; margin: 0; }
.spec-list dd { margin: 0; font-weight: 700; font-family: var(--font-head); text-align: end; }

/* ===================== معرض الصور ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-card {
  position: relative; display: block; padding: 0; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  cursor: pointer; aspect-ratio: 4 / 3;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.gallery-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-cap {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 24px 14px 12px; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--text); text-align: start;
  background: linear-gradient(to top, rgba(8,11,16,.92), transparent);
}
.zoom-ico { position: relative; width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.zoom-ico::before {
  content: ''; position: absolute; inset: 0 4px 4px 0; border: 2px solid var(--primary);
  border-radius: 50%;
}
.zoom-ico::after {
  content: ''; position: absolute; inset-inline-end: 0; bottom: 0; width: 7px; height: 2px;
  background: var(--primary); border-radius: 2px; transform: rotate(45deg); transform-origin: 100% 50%;
}

/* ===================== العرض ===================== */
.offer-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 46px; position: relative; overflow: hidden;
}
.offer-card::after {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,209,255,.22), transparent 70%);
  top: -120px; inset-inline-start: -80px; pointer-events: none;
}
.offer-left { position: relative; z-index: 1; }
.offer-includes { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.offer-includes li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.offer-includes li::before {
  content: '✓'; display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; background: rgba(34,197,94,.15); color: var(--green); font-weight: 800; font-size: .85rem;
}
.offer-right { position: relative; z-index: 1; text-align: center; }
.offer-price { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.offer-price .price-now { font-size: 3.4rem; }
.offer-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* ===================== آراء العملاء ===================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.stars { color: #ffc83d; letter-spacing: 3px; font-size: 1.1rem; }
.review-card blockquote { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.8; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #00121b; font-family: var(--font-head); font-weight: 800; flex-shrink: 0;
}
.review-card figcaption strong { display: block; font-family: var(--font-head); }
.review-card figcaption span { color: var(--muted); font-size: .85rem; }

/* ===================== الأسئلة الشائعة ===================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s;
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--primary); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq-icon::before { top: 8px; inset-inline: 0; height: 2px; }
.faq-icon::after  { inset-block: 0; inset-inline-start: 8px; width: 2px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-item p { color: var(--muted); margin: 0; padding: 0 24px 22px; }

/* ===================== التذييل ===================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--text); }
.footer-col a, .footer-col span { display: block; color: var(--muted); margin-bottom: 10px; font-size: .92rem; }
.footer-col a:hover { color: var(--primary); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0;
}
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; text-align: center; }
.footer-bottom p { color: var(--muted-2); font-size: .85rem; margin: 0; }

/* ===================== نافذة الدفع ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(4,7,12,.72); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 30px;
  position: relative; box-shadow: var(--shadow);
  transform: translateY(24px) scale(.97); transition: transform .35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.modal-close {
  position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.modal-title { font-size: 1.5rem; margin-bottom: 18px; }

/* الخطوات */
.checkout-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: .85rem; font-weight: 600; flex: 1; }
.step i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); font-style: normal; font-size: .8rem; flex-shrink: 0;
}
.step.is-active { color: var(--text); }
.step.is-active i { background: var(--grad); color: #00121b; border: none; }
.step.is-done i { background: var(--green); color: #00121b; border: none; }

/* ملخص الطلب */
.order-summary {
  display: flex; align-items: center; gap: 14px; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 22px;
}
.order-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-info { flex: 1; display: flex; flex-direction: column; }
.order-info strong { font-family: var(--font-head); font-size: .98rem; }
.order-info span { color: var(--muted); font-size: .85rem; }
.qty-control { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--text); font-size: 1.2rem; display: grid; place-items: center; transition: background .2s; }
.qty-btn:hover { background: var(--line); }
.qty-control input { width: 34px; text-align: center; background: none; border: none; color: var(--text); font-weight: 700; font-family: var(--font-head); }

/* الحقول */
.step-pane { display: none; border: none; padding: 0; margin: 0; animation: fadeUp .35s var(--ease); }
.step-pane.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,209,255,.15);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239aa7b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 20px; padding-inline-start: 40px; }
.field input.invalid, .field select.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.15); }
.error-msg { display: block; color: var(--accent); font-size: .82rem; margin-top: 5px; min-height: 1px; }

.step-actions { margin-top: 8px; }
.step-actions.two { display: grid; grid-template-columns: auto 1fr; gap: 12px; }

/* طرق الدفع */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.pay-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--muted); font-size: .85rem; font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
}
.pay-tab svg { color: currentColor; }
.pay-tab:hover { color: var(--text); }
.pay-tab.is-active { border-color: var(--primary); color: var(--primary); background: rgba(0,209,255,.08); }

.pay-pane { display: none; animation: fadeUp .3s var(--ease); }
.pay-pane.is-active { display: block; }

/* معاينة البطاقة */
.card-preview {
  position: relative; height: 180px; border-radius: var(--radius);
  background: linear-gradient(135deg, #1b2433, #0e1622); border: 1px solid var(--line);
  padding: 22px; margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.card-preview::after {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,209,255,.25), transparent 70%);
  top: -80px; inset-inline-end: -40px;
}
.card-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f5d58a, #c9a44a); margin-bottom: 26px; }
.card-number { font-family: 'Courier New', monospace; font-size: 1.35rem; letter-spacing: 3px; color: var(--text); direction: ltr; margin-bottom: 18px; }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; direction: ltr; }
.card-brand { position: absolute; top: 22px; inset-inline-end: 22px; font-family: var(--font-head); font-weight: 800; color: var(--primary); }

.demo-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(0,209,255,.07); border: 1px solid rgba(0,209,255,.2);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--muted);
  font-size: .82rem; line-height: 1.6; margin: 4px 0 0;
}
.demo-note svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.alt-pay-box {
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; margin-bottom: 4px;
}
.alt-pay-box strong { font-family: var(--font-head); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.alt-pay-box p { color: var(--muted); margin: 0; font-size: .92rem; }

/* زر الإرسال + سبينر */
#submitBtn { position: relative; }
.btn-spinner {
  position: absolute; width: 20px; height: 20px; border: 2px solid rgba(0,18,27,.3);
  border-top-color: #00121b; border-radius: 50%; display: none;
}
#submitBtn.loading .btn-label { opacity: 0; }
#submitBtn.loading .btn-spinner { display: block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* نجاح */
.success-box { text-align: center; padding: 14px 0; }
.success-check { width: 86px; height: 86px; margin: 0 auto 18px; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawCircle .6s var(--ease) forwards; }
.success-check path { stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawCheck .35s var(--ease) .5s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-box h2 { font-size: 1.5rem; }
.success-sub { color: var(--muted); font-size: .92rem; }

/* ===================== الإشعارات (Toast) ===================== */
.toast-wrap { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 13px 18px; box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 600; max-width: 340px;
  animation: toastIn .3s var(--ease);
}
.toast.error { border-inline-start-color: var(--accent); }
.toast.success { border-inline-start-color: var(--green); }
@keyframes toastIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastOut { to { transform: translateX(-20px); opacity: 0; } }

/* ===================== المعرض المكبّر (Lightbox) ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 350; display: grid; place-items: center;
  background: rgba(4,7,12,.92); backdrop-filter: blur(6px); padding: 5vw;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%; max-height: 88vh; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: scale(.95); transition: transform .3s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, transform .2s; z-index: 2;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(20,27,38,.8);
  color: var(--text); font-size: 2rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox-nav:hover { background: var(--primary); color: #00121b; border-color: var(--primary); }
.lightbox-nav.prev { inset-inline-end: 26px; }
.lightbox-nav.next { inset-inline-start: 26px; }

/* ===================== كشف الظهور (Reveal) ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== الاستجابة (Responsive) ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-inline: auto; }
  .price-row, .hero-cta, .hero-trust { justify-content: center; }
  .specs-wrap { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-card { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(280px, 78%); flex-direction: column;
    background: var(--surface); border-inline-start: 1px solid var(--line); padding: 90px 28px 28px;
    gap: 6px; transform: translateX(-100%); transition: transform .3s var(--ease); z-index: 99;
  }
  /* في RTL القائمة تأتي من اليسار */
  html[dir="rtl"] .main-nav { inset: 0 auto 0 0; border-inline: 0; border-inline-end: 1px solid var(--line); transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; z-index: 101; }
  .header-actions .btn-sm { display: none; }
  .features-grid, .reviews-grid, .trust-grid { grid-template-columns: 1fr; }
  .specs-visual { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 70px; }
  .modal { padding: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .float-tag { display: none; }
  .step-actions.two { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .price-now { font-size: 2.1rem; }
  .pay-methods { grid-template-columns: 1fr; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
