/* ==========================================================================
   IPTV UK - STITCH DESIGN SYSTEM CORE STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.iptv-container {
  width: 100%;
  max-width: var(--iptv-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.iptv-container-narrow {
  max-width: 860px;
}

.iptv-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (max-width: 768px) {
  .iptv-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.iptv-text-center { text-align: center; }
.iptv-text-left { text-align: left; }
.iptv-text-right { text-align: right; }

/* Flex & Grid Utilities */
.iptv-flex { display: flex; }
.iptv-flex-center { display: flex; align-items: center; justify-content: center; }
.iptv-flex-between { display: flex; align-items: center; justify-content: space-between; }
.iptv-grid { display: grid; gap: 1.5rem; }

.iptv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.iptv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.iptv-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .iptv-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .iptv-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .iptv-grid-4, .iptv-grid-3, .iptv-grid-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY & BADGES
   -------------------------------------------------------------------------- */
.iptv-h1, h1.iptv-title {
  font-family: var(--iptv-font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--iptv-text-heading);
  letter-spacing: -0.02em;
}

.iptv-h2, h2.iptv-section-title {
  font-family: var(--iptv-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--iptv-text-heading);
  letter-spacing: -0.01em;
}

.iptv-h3, h3.iptv-card-title {
  font-family: var(--iptv-font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--iptv-text-heading);
  line-height: 1.3;
}

.iptv-subtitle {
  font-size: 1.125rem;
  color: var(--iptv-text-muted);
  max-width: 680px;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.iptv-text-highlight {
  color: var(--iptv-primary-hover);
}

/* Stitch Pill Badges */
.iptv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--iptv-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--iptv-surface-elevated);
  color: var(--iptv-text-heading);
  border: 1px solid var(--iptv-border);
}

.iptv-badge-red {
  border-color: rgba(229, 9, 20, 0.4);
  color: var(--iptv-text-heading);
  background: rgba(229, 9, 20, 0.1);
}

.iptv-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--iptv-primary);
  box-shadow: 0 0 8px var(--iptv-primary-hover);
}

.iptv-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   3. BUTTONS & INPUTS
   -------------------------------------------------------------------------- */
.iptv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--iptv-radius-pill);
  font-family: var(--iptv-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.iptv-btn-primary {
  background: var(--iptv-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 20px var(--iptv-primary-glow);
}

.iptv-btn-primary:hover, .iptv-btn-primary:focus-visible {
  background: var(--iptv-primary-hover);
  box-shadow: 0 6px 28px rgba(229, 9, 20, 0.6);
  transform: translateY(-2px);
}

.iptv-btn-secondary {
  background: var(--iptv-surface-elevated);
  color: var(--iptv-text-heading) !important;
  border-color: var(--iptv-border);
}

.iptv-btn-secondary:hover, .iptv-btn-secondary:focus-visible {
  background: var(--iptv-surface-hover);
  border-color: var(--iptv-text-muted);
  transform: translateY(-2px);
}

.iptv-btn-outline {
  background: transparent;
  color: var(--iptv-text-heading) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.iptv-btn-outline:hover {
  border-color: var(--iptv-primary);
  background: rgba(229, 9, 20, 0.1);
  transform: translateY(-2px);
}

.iptv-btn-block {
  width: 100%;
}

.iptv-btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.iptv-btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Inputs */
.iptv-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

.iptv-input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--iptv-text-body);
}

.iptv-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #14161c;
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.iptv-input::placeholder {
  color: var(--iptv-text-muted);
}

.iptv-input:focus {
  border-color: var(--iptv-primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

/* Hero Email Form */
.iptv-hero-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.iptv-hero-form .iptv-input {
  text-align: center;
  background: #12141a;
  border-color: #272a36;
}

/* --------------------------------------------------------------------------
   4. CARDS & STITCH COMPONENTS
   -------------------------------------------------------------------------- */
.iptv-card {
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.iptv-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.15);
}

/* Stitch Feature Card */
.iptv-feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.iptv-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  color: var(--iptv-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 1px solid rgba(229, 9, 20, 0.25);
}

.iptv-feature-card p {
  color: var(--iptv-text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* Platform / Device Card */
.iptv-platform-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #181b24 0%, #12141a 100%);
}

.iptv-platform-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--iptv-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--iptv-text-heading);
}

.iptv-platform-ghost {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 120px;
  height: 120px;
  opacity: 0.06;
  pointer-events: none;
}

.iptv-platform-card .iptv-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

/* Stitch Common Fixes / FAQ Card */
.iptv-fix-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-md);
}

.iptv-fix-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--iptv-text-body);
}

.iptv-fix-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--iptv-primary-hover);
  margin-top: 0.6rem;
}

.iptv-fix-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. PRICING & SPORTS CARDS
   -------------------------------------------------------------------------- */
.iptv-pricing-card {
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.iptv-pricing-card.recommended {
  border: 2px solid var(--iptv-primary);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
  background: linear-gradient(180deg, #1d1b24 0%, #13151b 100%);
}

.iptv-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.iptv-price-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--iptv-text-heading);
}

.iptv-price-amount {
  font-size: 3.25rem;
  font-weight: 900;
  font-family: var(--iptv-font-heading);
  color: var(--iptv-text-heading);
  line-height: 1;
}

.iptv-price-period {
  font-size: 0.9rem;
  color: var(--iptv-text-muted);
}

.iptv-pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.iptv-pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--iptv-text-body);
}

.iptv-pricing-features li svg {
  color: var(--iptv-primary-hover);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. CHECKOUT & ORDER SUMMARY (STITCH LAYOUT)
   -------------------------------------------------------------------------- */
.iptv-checkout-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .iptv-checkout-wrapper {
    grid-template-columns: 1fr;
  }
}

.iptv-summary-card, .iptv-payment-card {
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-lg);
  padding: 2rem;
}

.iptv-summary-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--iptv-border);
  margin-bottom: 1.25rem;
}

.iptv-summary-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--iptv-radius-sm);
  background: #1f2330;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--iptv-border);
}

.iptv-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--iptv-text-muted);
}

.iptv-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--iptv-text-heading);
  padding-top: 1rem;
  border-top: 1px solid var(--iptv-border);
  margin-top: 1rem;
}

.iptv-payment-option {
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.iptv-payment-option.active {
  border-color: var(--iptv-primary);
  background: rgba(229, 9, 20, 0.05);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.15);
}

/* --------------------------------------------------------------------------
   7. ORDER SUCCESS MODAL CARD
   -------------------------------------------------------------------------- */
.iptv-success-card {
  max-width: 650px;
  margin: 3rem auto;
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-primary);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.25);
  border-radius: var(--iptv-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}

.iptv-success-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.iptv-success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  text-align: left;
}

@media (max-width: 600px) {
  .iptv-success-grid { grid-template-columns: 1fr; }
}

.iptv-success-box {
  background: var(--iptv-bg-alt);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-md);
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.iptv-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.iptv-accordion-item {
  background: var(--iptv-surface);
  border: 1px solid var(--iptv-border);
  border-radius: var(--iptv-radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.iptv-accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--iptv-text-heading);
  font-family: var(--iptv-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.iptv-accordion-header:hover {
  color: var(--iptv-primary-hover);
}

.iptv-accordion-icon {
  transition: transform 0.3s ease;
  color: var(--iptv-text-muted);
}

.iptv-accordion-item.active .iptv-accordion-icon {
  transform: rotate(180deg);
  color: var(--iptv-primary-hover);
}

.iptv-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--iptv-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.iptv-accordion-item.active .iptv-accordion-body {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* --------------------------------------------------------------------------
   9. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.iptv-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--iptv-header-height);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

.iptv-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iptv-logo {
  font-family: var(--iptv-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.iptv-logo span {
  color: var(--iptv-primary);
}

.iptv-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.iptv-nav-link {
  color: var(--iptv-text-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}

.iptv-nav-link:hover, .iptv-nav-link.active {
  color: #ffffff;
}

.iptv-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--iptv-primary);
  border-radius: 2px;
}

.iptv-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .iptv-nav-menu {
    display: none;
  }
  .iptv-mobile-toggle {
    display: block;
  }
}

/* Mobile Drawer */
.iptv-mobile-drawer {
  position: fixed;
  top: var(--iptv-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--iptv-bg);
  z-index: 999;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.iptv-mobile-drawer.open {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.iptv-footer {
  background: var(--iptv-bg-alt);
  border-top: 1px solid var(--iptv-border);
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--iptv-text-muted);
}

.iptv-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .iptv-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .iptv-footer-grid {
    grid-template-columns: 1fr;
  }
}

.iptv-footer-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.iptv-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iptv-footer-links a {
  color: var(--iptv-text-muted);
}

.iptv-footer-links a:hover {
  color: #ffffff;
}

.iptv-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--iptv-border);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   12. ELEMENTOR FLEXBOX CONTAINER SUPPORT & STITCH OVERRIDES
   -------------------------------------------------------------------------- */
.elementor-content-container,
.e-con,
.e-parent {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Container Inner Alignment */
.e-con-inner {
  max-width: var(--iptv-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* Stitch Styling for Elementor Containers */
.e-con.iptv-stitch-card,
.elementor-element.iptv-stitch-card {
  background: var(--iptv-surface) !important;
  border: 1px solid var(--iptv-border) !important;
  border-radius: var(--iptv-radius-lg) !important;
  padding: 2rem !important;
  transition: all 0.25s ease !important;
}

.e-con.iptv-stitch-card:hover {
  border-color: rgba(229, 9, 20, 0.4) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.15) !important;
}

.e-con.iptv-stitch-hero {
  background: radial-gradient(circle at top center, rgba(229, 9, 20, 0.18) 0%, rgba(10, 11, 13, 0) 70%) !important;
  border-bottom: 1px solid var(--iptv-border-subtle) !important;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (max-width: 768px) {
  .e-con-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

