/* ════════════════════════════════════════════════════════════════════
   Wolf IPTV — Pricing Section (M1.6 Step Builder Wizard)
   ════════════════════════════════════════════════════════════════════

   File:    wolf-home-pricing.css
   Loaded:  via index.php extra_css (after wolf-home-whyus.css)
   Scoped:  .pricing-section, .pricing-wrap, .pricing-srv, .pricing-pkg,
            .pricing-summary, .pricing-wa-btn, .pricing-srcollable-data

   Quality standards (per Mohamed's enterprise philosophy):
     • Zero CDN dependencies
     • Pure CSS variables (defined in wolf-foundation.css)
     • Compound selectors for state — no !important
     • Reduced-motion accessibility honored
     • Mobile-first responsive (≥520px, ≥640px breakpoints)

   Structure:
     1. Section base (.pricing-section)
     2. Wrap container with brand-tinted backdrop
     3. Progress indicator (2 steps)
     4. Server picker (radio group, 1-col → 2-col @ 640px)
     5. Package picker (column list)
     6. Gift + Savings badges
     7. Summary card with WhatsApp CTA
     8. AEO/SEO visually-hidden text
     9. Reduced motion
    10. Mobile responsive (≤520px)
   ════════════════════════════════════════════════════════════════════ */


/* ── 1. Section base + 2. Wrap container ─────────────────────────── */
.pricing-section { /* uses .section base styles */ }

.pricing-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.pricing-wrap::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-tint), transparent 65%);
  pointer-events: none;
}


/* ── 3. Progress indicator ───────────────────────────────────────── */
.pricing-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

.pricing-progress__step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-progress__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.pricing-progress__step.is-done .pricing-progress__num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pricing-progress__step.is-done {
  color: var(--brand-soft);
}

.pricing-progress__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ── 4. Steps wrapper ─────────────────────────────────────────────── */
.pricing-step {
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

.pricing-step__label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}


/* ── 5. Server picker ────────────────────────────────────────────── */
.pricing-srvs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .pricing-srvs { grid-template-columns: 1fr 1fr; }
}

.pricing-srv {
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
  text-align: start;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 84px;
  color: inherit;
}

.pricing-srv:hover { border-color: var(--border-brand); }

.pricing-srv:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pricing-srv.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.pricing-srv__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--brand);
}

.pricing-srv__icon svg { width: 24px; height: 24px; }

.pricing-srv__info { flex: 1; min-width: 0; }

.pricing-srv__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
  display: block;
}

.pricing-srv__pitch {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.55;
  display: block;
}

.pricing-srv__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  color: #fff;
}

.pricing-srv.is-selected .pricing-srv__check {
  background: var(--brand);
  border-color: var(--brand);
}

.pricing-srv__check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pricing-srv.is-selected .pricing-srv__check svg { opacity: 1; }


/* ── 6. Package list ─────────────────────────────────────────────── */
.pricing-pkgs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.pricing-pkgs__group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.pricing-pkg {
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
  text-align: start;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 64px;
  color: inherit;
  position: relative;
}

.pricing-pkg:hover { border-color: var(--border-brand); }

.pricing-pkg:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pricing-pkg.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.pricing-pkg--best {
  border-color: rgba(245, 182, 66, 0.40);
}

/* When .pricing-pkg--best is also .is-selected, the brand color wins.
   Compound selector (0,2,0) beats single-class (0,1,0) — no !important. */
.pricing-pkg.pricing-pkg--best.is-selected {
  border-color: var(--brand);
}

.pricing-pkg__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pricing-pkg__dur {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-pkg__dur-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.pricing-pkg__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.pricing-pkg__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.4px;
  line-height: 1;
}

.pricing-pkg__cur {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}


/* ── 7. Gift badge + Savings badge ───────────────────────────────── */
.pricing-gift {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(245, 182, 66, 0.12);
  border: 1px solid rgba(245, 182, 66, 0.40);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.pricing-gift::before {
  content: '★';
  font-size: 11px;
}

.pricing-save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  color: #1A1206;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 182, 66, 0.30);
}

.pricing-save::before {
  content: '−';
  font-weight: 900;
  font-size: 13px;
}


/* ── 8. Summary card with CTA ────────────────────────────────────── */
.pricing-summary {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-darker) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
  margin-top: var(--sp-5);
}

@media (max-width: 520px) {
  .pricing-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.pricing-summary__info { min-width: 0; }

.pricing-summary__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pricing-summary__detail {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pricing-summary__total {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.6px;
  line-height: 1;
}

.pricing-summary__cur {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 700;
}


/* ── 9. WhatsApp CTA button ──────────────────────────────────────── */
.pricing-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-height: 50px;
}

/* Override anchor's inherited color (specificity 0,1,1 beats 0,1,0 generic 'a') */
a.pricing-wa-btn {
  color: #fff;
}

.pricing-wa-btn:hover {
  background: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.pricing-wa-btn:active { transform: translateY(0); }

.pricing-wa-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pricing-wa-btn:disabled {
  background: var(--bg-elev);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.pricing-wa-btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}


/* ── 10. AEO/SEO: Visually hidden but accessible to crawlers ────── */
.pricing-srcollable-data {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── 11. Reduced motion accessibility ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pricing-srv,
  .pricing-pkg,
  .pricing-wa-btn,
  .pricing-srv__check,
  .pricing-srv__check svg {
    transition: none;
  }
  .pricing-wa-btn:hover { transform: none; }
}


/* ── 12. Responsive: mobile padding ──────────────────────────────── */
@media (max-width: 520px) {
  .pricing-wrap { padding: var(--sp-5) var(--sp-4); }
  .pricing-step__label { font-size: 16px; }
  .pricing-srv { padding: var(--sp-4); min-height: 76px; }
  .pricing-srv__name { font-size: 15px; }
  .pricing-srv__pitch { font-size: 12px; }
  .pricing-summary__total { font-size: 26px; }
}
