/* ============================================================
   FIX.CSS — IPTV Smart HD
   Pricing cards (pcard system) + Navbar fix
   ============================================================ */

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108,99,255,0.08);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #6c63ff;
  background: rgba(108,99,255,0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- SECTION WRAPPER ---------- */
.pricing-section-v2 {
  background: #F8F7FF;
  padding: 80px 0;
}

/* ---------- 3-COLUMN GRID ---------- */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- CARD BASE ---------- */
.pcard {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  border: 2px solid #E5E7EB;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(108, 60, 225, 0.18);
}

/* --- FEATURED (PREMIUM) card --- */
.pcard.featured {
  border-color: #6C3CE1;
  box-shadow: 0 10px 40px rgba(108, 60, 225, 0.18);
}

/* --- VIP card --- */
.pcard.vip {
  border-color: #FFD700;
  background: linear-gradient(135deg, #FFFEF0, #FFFFF8);
}
.pcard.vip:hover {
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

/* ---------- BADGE (Populaire / Meilleur) ---------- */
.pcard-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 22px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.pcard-badge.popular {
  background: #6C3CE1;
  color: #ffffff;
}
.pcard-badge.best {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1E1B4B;
}

/* ---------- CARD HEADER ---------- */
.pcard-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  margin-top: 8px;
}
.pcard-tagline {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-bottom: 16px;
}

/* ---------- DEVICE ICONS ---------- */
.pcard-devices {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pcard-device {
  font-size: 1.35rem;
  line-height: 1;
}

/* ---------- FEATURES LIST ---------- */
.pcard-features {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.pcard-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
}
.pcard-features li:last-child {
  border-bottom: none;
}
.pcard-features li.feat-no {
  color: #9CA3AF;
}
.feat-icon {
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.feat-icon.yes {
  color: #10B981;
}
.feat-icon.no {
  color: #EF4444;
}

/* ---------- DIVIDER ---------- */
.pcard-divider {
  border: none;
  border-top: 2px solid #E5E7EB;
  margin: 24px 0;
}

/* ---------- SCREEN TOGGLE (1 ecran / Multi-ecran) ---------- */
.pcard-screen-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.screen-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #E5E7EB;
  background: #ffffff;
  color: #374151;
  transition: all 0.2s;
  font-family: inherit;
}
.screen-btn:hover {
  border-color: #6C3CE1;
  color: #6C3CE1;
}
.screen-btn.active {
  background: #6C3CE1;
  color: #ffffff;
  border-color: #6C3CE1;
}

/* ---------- DURATION SELECT (fond sombre) ---------- */
.dur-block {
  margin-bottom: 14px;
}
.dur-sel {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  border: 2px solid #1E1B4B;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #1E1B4B;
  color: #ffffff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23ffffff' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: inherit;
  transition: border-color 0.2s;
}
.dur-sel:focus {
  border-color: #6C3CE1;
}
.dur-sel option {
  background: #1E1B4B;
  color: #ffffff;
}

/* ---------- MULTI-CONNECTION TOGGLE ---------- */
.multi-block {
  margin-bottom: 16px;
}
.conn-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.conn-toggle {
  display: flex;
  gap: 8px;
}
.conn-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #E5E7EB;
  background: #ffffff;
  color: #374151;
  transition: all 0.2s;
  font-family: inherit;
}
.conn-btn:hover {
  border-color: #6C3CE1;
  color: #6C3CE1;
}
.conn-btn.active {
  background: #6C3CE1;
  color: #ffffff;
  border-color: #6C3CE1;
}

/* ---------- PRICE BLOCK ---------- */
.pcard-price-block {
  margin-bottom: 20px;
  text-align: center;
}
.pcard-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: #1E1B4B;
  line-height: 1;
}
.pcard-price-sub {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 4px;
}

/* ---------- ORDER BUTTON ---------- */
.pcard-order-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
  font-family: inherit;
}
.pcard-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 60, 225, 0.45);
}

/* VIP button = gold */
.pcard.vip .pcard-order-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1E1B4B;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.pcard.vip .pcard-order-btn:hover {
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .pricing-section-v2 {
    padding: 60px 0;
  }
  .pcard {
    padding: 28px 24px;
  }
}