/* أكاديمية تايرو — قسم الرعاة: باقات الرعاية السنوية (2026-11-29).
   كل باقة لها معدنها: --m1..--m3 تدرّج اللوحة، --mc لون الأيقونات والإطارات، --mt حبر النص فوق المعدن.
   ⚠️ الأسماء بلا كلمة "card" عمدًا: refresh.css يمسح التدرّجات عن أي [class*="card"]. */
.sp-bronze { --m1: #F6D2AE; --m2: #C98B5C; --m3: #7E4A2A; --mc: #E0A57A; --mt: #2A150A; }
.sp-silver { --m1: #FFFFFF; --m2: #C7CED6; --m3: #7F8995; --mc: #D7DEE6; --mt: #121A24; }
.sp-gold   { --m1: #FFF0B8; --m2: #E6B83F; --m3: #9C6C12; --mc: #F0C75A; --mt: #241703; }

#sponsors .sec-lead { color: var(--mut); max-width: 60ch; margin: 0 0 18px; font-size: var(--s2); line-height: 1.75; }

/* ---------- أزرار الباقات (تبويبات) ---------- */
.sp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 520px; margin: 0 auto 16px; }
.sp-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px 9px; border-radius: 14px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1.5px solid transparent;
  font: inherit; transition: border-color .2s, background .2s, transform .15s;
}
.sp-tab i { width: 26px; height: 8px; border-radius: 4px; background: linear-gradient(100deg, var(--m1), var(--m2) 55%, var(--m3)); }
.sp-tab b { font-size: var(--s2); font-weight: 700; }
.sp-tab small { font-size: var(--s1); color: var(--mut); }
.sp-tab[aria-selected="true"] { border-color: var(--mc); background: color-mix(in srgb, var(--mc) 12%, var(--card)); }
.sp-tab[aria-selected="true"] small { color: var(--mc); }
.sp-tab:active { transform: scale(.97); }
.sp-tab:focus-visible { outline: 2px solid var(--mc); outline-offset: 2px; }

/* ---------- المسرح: مسار أفقي + سهمان ---------- */
.sp-stage { position: relative; }
.sp-track {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 6px max(16px, calc(50% - 210px)) 14px;   /* البطاقة الأولى والأخيرة تقفان في الوسط */
  margin-inline: -18px;                             /* المسار يلمس حافة الشاشة على الهاتف */
}
.sp-track::-webkit-scrollbar { display: none; }
.sp-arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(5, 14, 34, .82); color: var(--ink); font-size: 1.2rem; cursor: pointer;
  display: none; place-items: center; backdrop-filter: blur(6px);
}
.sp-prev { inset-inline-start: 0; } .sp-next { inset-inline-end: 0; }
.sp-arrow:disabled { opacity: .25; cursor: default; }
@media (min-width: 760px) { .sp-arrow { display: grid; } .sp-track { margin-inline: 0; } }

.sp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.sp-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
.sp-dots i.on { width: 26px; background: linear-gradient(100deg, var(--m1), var(--m2) 55%, var(--m3)); }

/* ---------- بطاقة الباقة ---------- */
.sp-pack {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 0 0 min(420px, calc(100vw - 52px)); scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 20px 20px; border-radius: 22px;
  background: linear-gradient(180deg, #0B1F4A 0%, #06122B 46%, #050E22 100%);
  border: 1px solid color-mix(in srgb, var(--mc) 32%, transparent);
  transition: opacity .3s, transform .3s;
}
.sp-pack:not(.on) { opacity: .45; transform: scale(.95); cursor: pointer; }
/* أضواء الملعب: وهجان علويان + عشب خافت — CSS فقط، بلا صور */
.sp-lights {
  position: absolute; inset: 0 0 auto; height: 260px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  background:
    radial-gradient(120px 90px at 12% 0%, rgba(255, 244, 210, .30), transparent 70%),
    radial-gradient(120px 90px at 88% 0%, rgba(255, 244, 210, .30), transparent 70%),
    radial-gradient(70% 90px at 50% 62%, rgba(70, 150, 70, .22), transparent 75%);
}
.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sp-head img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 3px; }
.sp-head span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.sp-head b { font-size: var(--s3); font-weight: 700; color: #fff; }
.sp-head small { font-size: var(--s1); color: var(--mc); }

/* اللوحة المعدنية المائلة */
.sp-plate {
  width: 100%; padding: 12px 16px; margin: 4px 0 10px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(100deg, var(--m3), var(--m2) 22%, var(--m1) 50%, var(--m2) 78%, var(--m3));
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  border-radius: 6px;
}
.sp-plate h3 { margin: 0; font-size: clamp(1.45rem, 6.4vw, 1.9rem) !important; font-weight: 700; color: var(--mt); }

.sp-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; color: #fff; line-height: 1; margin: 6px 0 10px; }
.sp-price b { font-size: clamp(3rem, 15vw, 4.1rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-price span { font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 700; }
.sp-period { display: inline-block; padding: 4px 22px; border: 1.5px solid var(--mc); border-radius: 999px; color: #fff; font-size: var(--s2); font-weight: 600; margin-bottom: 18px; }

.sp-perks { list-style: none; margin: 0 0 18px; padding: 0; width: 100%; display: grid; gap: 10px; text-align: start; }
.sp-perks li { display: flex; align-items: center; gap: 12px; color: #fff; font-size: var(--s2); font-weight: 500; line-height: 1.5; }
.sp-perks i { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--mc); border: 1.5px solid color-mix(in srgb, var(--mc) 70%, transparent); background: color-mix(in srgb, var(--mc) 8%, transparent); }

.sp-foot { margin-top: auto; width: 100%; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--mc) 55%, transparent); display: grid; gap: 10px; }
.sp-foot > span { color: #fff; font-weight: 600; font-size: var(--s2); }
.sp-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px;
  border: 1.5px solid var(--mc); border-radius: 999px; color: #fff !important;
  font-size: clamp(1.15rem, 5vw, 1.4rem); font-weight: 700; transition: background .2s;
}
.sp-cta svg { color: var(--wa, #25D366); }
.sp-cta:hover, .sp-cta:focus-visible { background: color-mix(in srgb, var(--mc) 14%, transparent); }

/* ---------- شريط «كن راعيًا» في الدليل ---------- */
.sp-strip {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 16px;
  border-radius: var(--r); color: var(--ink) !important;
  background: linear-gradient(100deg, rgba(240, 199, 90, .16), rgba(215, 222, 230, .08) 50%, rgba(224, 165, 122, .14));
  border: 1px solid rgba(240, 199, 90, .38);
}
.sp-strip .sps-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #F0C75A; background: rgba(240, 199, 90, .12); }
.sp-strip .sps-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sp-strip .sps-t b { font-size: var(--s3); font-weight: 700; }
.sp-strip .sps-t small { color: var(--mut); }
.sp-strip .sps-chips { display: flex; gap: 6px; margin-inline-start: auto; }
.sp-strip .sps-chips em { font-style: normal; font-size: var(--s1); font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--mt); background: linear-gradient(100deg, var(--m3), var(--m2) 30%, var(--m1) 60%, var(--m2)); }
.sp-strip .da { font-style: normal; color: #F0C75A; }
@media (max-width: 520px) { .sp-strip { flex-wrap: wrap; } .sp-strip .sps-chips { margin-inline-start: 56px; width: 100%; } .sp-strip .da { display: none; } }

@media (prefers-reduced-motion: reduce) { .sp-pack, .sp-tab, .sp-dots i { transition: none; } .sp-track { scroll-behavior: auto; } }
/* English (i18n.js sets dir=ltr): arrows point the other way */
html[dir="ltr"] .sp-arrow { transform: scaleX(-1); }
html[dir="ltr"] .sp-strip .da { transform: scaleX(-1); }

/* ---------- زر «الرعاة» العائم (يتبع المستخدم) — مقابل زر واتساب ---------- */
#spFab {
  position: fixed; z-index: 60;
  bottom: calc(24px + env(safe-area-inset-bottom)); inset-inline-start: 16px;
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding-block: 6px; padding-inline: 8px 18px;
  border-radius: 999px; color: #241703 !important; font-weight: 700; font-size: var(--s2);
  background: linear-gradient(100deg, #9C6C12, #E6B83F 30%, #FFF0B8 55%, #E6B83F 80%, #9C6C12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 240, 184, .5) inset;
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
#spFab.show { opacity: 1; transform: none; pointer-events: auto; }
#spFab:active { transform: scale(.95); }
#spFab .spf-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(36, 23, 3, .9); color: #F0C75A; }
#spFab .spf-ic svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { #spFab { transition: none; } }

/* ---------- زر الواجهة الثالث: «الاشتراك عبر الموقع — قريبًا» (غير مفعّل بعد) ---------- */
.btn-soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: rgba(242, 245, 250, .72);
  padding: 11px 22px 13px; border-radius: 99px; border: 1.5px dashed rgba(242, 245, 250, .38);
  background: rgba(6, 13, 26, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: default; user-select: none;
}
.btn-soon em {
  font-style: normal; font-size: .78rem; font-weight: 700; line-height: 1;
  padding: 5px 10px 6px; border-radius: 99px; color: #241703;
  background: linear-gradient(100deg, #E6B83F, #FFF0B8 55%, #E6B83F);
}
.hero-cta .btn-soon { flex-basis: 100%; max-width: max-content; margin-inline: auto; }
#spFab .spf-t { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
#spFab .spf-t b { font-size: 1rem; font-weight: 700; }
#spFab .spf-t small { font-size: .72rem; font-weight: 700; letter-spacing: .04em !important; opacity: .85; color: #241703 !important; }
