/*
Theme Name: Hello Elementor Child - TREX IPTV Redesign
Theme URI: https://iptv-trex.ca/
Description: Complete modern Obsidian & Cyber-Emerald redesign with Glassmorphism, Bento-grid and fresh typography.
Author: Elementor Expert
Template: hello-elementor
Version: 2.0.0
*/

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES (OBSIDIAN & CYBER EMERALD)
   ========================================================================== */
:root {
  /* Brand Palette */
  --c1: #12151d;               /* Elevated Card Surface */
  --c2: #00f0a8;               /* Vibrant Cyber Emerald */
  --c4: #1a1e29;               /* Inner Card / Elevated Elements */
  --c5: #00d2ff;               /* Neon Cyan Accent */
  --c6: #08090c;               /* Obsidian Canvas Background */
  --c7: #8e98a8;               /* Muted Silver Text */
  --c8: rgba(243, 245, 249, 0.9);
  --white-color: #f3f5f9;       /* Crisp Light Text */
  --body-color: #a2adc0;        /* Secondary Body Text */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: #00f0a8;
  --accent-purple: #7b61ff;     /* Hyper Violet Glow */

  /* Shadows & Glows */
  --sh-card: 0 20px 50px rgba(0, 0, 0, 0.55);
  --sh-sticky: 0 10px 30px rgba(0, 0, 0, 0.7);
  --sh-emerald: 0 0 30px rgba(0, 240, 168, 0.3);
  --sh-cyan: 0 0 25px rgba(0, 210, 255, 0.25);
  --sh-purple: 0 0 30px rgba(123, 97, 255, 0.25);
  --sh-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography Scale */
  --title-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --tech-font: 'Space Grotesk', monospace, sans-serif;

  --fs-hero: 52px;
  --fs-hero-mobile: 32px;
  --fs-sec-title: 44px;
  --fs-sec-title-mobile: 28px;
  --fs-sec-sub: 16px;
  --fs-card-title: 22px;
  --fs-body: 16px;
  --fs-small: 13px;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Spacing Scale */
  --section-space: 120px;
  --section-space-mobile: 75px;
  --container-max-width: 1360px;
  --container-gutter: 24px;
  --grid-gap: 28px;

  /* Border Radii */
  --r1: 24px;                  /* Large glass cards */
  --r2: 14px;                  /* Medium badges / inputs */
  --r3: 8px;                   /* Small tags */
  --r4: 50px;                  /* Capsule pill buttons & nav */
  --r-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body.page-wrapper {
  background-color: var(--c6);
  color: var(--white-color);
  font-family: var(--body-font);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Radial Glows */
body.page-wrapper::before {
  content: '';
  position: fixed;
  top: -15%;
  right: 10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.12) 0%, rgba(8, 9, 12, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

body.page-wrapper::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 168, 0.08) 0%, rgba(8, 9, 12, 0) 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  position: relative;
  z-index: 2;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  color: var(--white-color);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--body-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Section Headings */
.sec-head {
  text-align: center;
  margin-bottom: 50px;
}

.sec-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tech-font);
  font-size: var(--fs-sec-sub);
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--fw-semibold);
  background: rgba(0, 240, 168, 0.08);
  border: 1px solid rgba(0, 240, 168, 0.2);
  padding: 6px 18px;
  border-radius: var(--r4);
  margin-bottom: 14px;
}

.sec-title {
  font-size: var(--fs-sec-title);
  color: var(--white-color);
  margin-bottom: 15px;
}

.sec-title span.highlight {
  background: linear-gradient(135deg, var(--c2) 0%, var(--c5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--c7);
}

/* ==========================================================================
   3. MODERN BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: var(--fw-bold);
  border-radius: var(--r4);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-orange, .btn-primary {
  background: linear-gradient(135deg, var(--c2) 0%, var(--c5) 100%);
  color: #08090c;
  box-shadow: 0 4px 20px rgba(0, 240, 168, 0.35);
}

.btn-orange:hover, .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 240, 168, 0.55);
  color: #000;
}

.btn-white, .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-white:hover, .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 240, 168, 0.4);
  color: var(--c2);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   4. LIVE NETWORK PULSE BAR & FLOATING CAPSULE HEADER
   ========================================================================== */
.network-pulse-strip {
  background: rgba(0, 240, 168, 0.05);
  border-bottom: 1px solid rgba(0, 240, 168, 0.12);
  padding: 7px 0;
  font-family: var(--tech-font);
  font-size: 13px;
  color: var(--c2);
  position: relative;
  z-index: 100;
}

.pulse-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--c2);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 240, 168, 0.7);
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 168, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 240, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 168, 0); }
}

.pulse-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--c7);
}

.pulse-metrics span {
  color: var(--white-color);
  font-weight: 600;
}

/* Floating Detached Capsule Navbar */
.site-header {
  position: sticky;
  top: 15px;
  z-index: 999;
  padding: 0 var(--container-gutter);
}

.floating-nav-capsule {
  max-width: var(--container-max-width);
  margin: 0 auto;
  background: rgba(18, 21, 29, 0.8);
  backdrop-filter: blur(24px) -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r4);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--sh-card);
  transition: var(--transition-normal);
}

.site-header.is-sticky .floating-nav-capsule {
  border-color: rgba(0, 240, 168, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 168, 0.15);
  background: rgba(10, 12, 17, 0.92);
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c7);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--c2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c2), var(--c5));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-icon:hover {
  background: rgba(0, 240, 168, 0.15);
  border-color: var(--c2);
  color: var(--c2);
}

/* ==========================================================================
   5. ASYMMETRIC HERO SECTION (STREAM INTERFACE & BOLD DISPLAY)
   ========================================================================== */
.hero-section {
  padding: 70px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--r4);
  font-family: var(--tech-font);
  font-size: 13px;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.hero-badge-live i {
  color: var(--c2);
}

.hero-title {
  font-size: var(--fs-hero);
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 40%, var(--c2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--c7);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 21, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--r4);
  font-size: 14px;
  color: var(--white-color);
}

.hero-tag i {
  color: var(--c2);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-trust-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c7);
  font-size: 14px;
}

.hero-trust-guarantee i {
  color: var(--c2);
  font-size: 18px;
}

/* Hero Right: Modern Glass Interface Card */
.hero-visual {
  position: relative;
}

.hero-glass-canvas {
  background: rgba(18, 21, 29, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r1);
  padding: 16px;
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
}

.hero-glass-canvas img.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r1) - 6px);
  display: block;
}

/* Floating Status Pills on Hero Image */
.floating-stream-pill {
  position: absolute;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 168, 0.3);
  border-radius: var(--r4);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--sh-emerald);
}

.pill-top-left {
  top: 30px;
  left: -20px;
}

.pill-bottom-right {
  bottom: 30px;
  right: -20px;
}

.pill-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 240, 168, 0.15);
  color: var(--c2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pill-text h5 {
  font-size: 13px;
  margin-bottom: 2px;
}

.pill-text span {
  font-size: 11px;
  color: var(--c2);
  font-family: var(--tech-font);
}

/* ==========================================================================
   6. LIVE TRUST METRICS STRIP
   ========================================================================== */
.metrics-strip-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 21, 29, 0.4);
  margin-bottom: var(--section-space);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.metric-item h3 {
  font-family: var(--tech-font);
  font-size: 38px;
  color: var(--c2);
  margin-bottom: 6px;
}

.metric-item p {
  font-size: 14px;
  color: var(--c7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   7. BENTO-GRID FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 0 0 var(--section-space);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.bento-card {
  background: rgba(18, 21, 29, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--r1);
  padding: 40px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(0, 240, 168, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 168, 0.1);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 168, 0.1);
  border: 1px solid rgba(0, 240, 168, 0.25);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c2);
  font-size: 24px;
  margin-bottom: 24px;
}

.bento-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--c7);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   8. CHANNELS & VOD SHOWCASE
   ========================================================================== */
.channels-section, .movies-section {
  padding: 0 0 var(--section-space);
}

.channel-card, .movie-card {
  background: rgba(18, 21, 29, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--r2);
  padding: 16px;
  text-align: center;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.channel-card:hover, .movie-card:hover {
  border-color: var(--c2);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.channel-card img, .movie-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r3);
  display: block;
  margin: 0 auto;
}

.movie-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.95), transparent);
  text-align: left;
}

.movie-rating {
  display: inline-block;
  color: var(--c2);
  font-family: var(--tech-font);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ==========================================================================
   9. REDESIGNED PRICING PLANS
   ========================================================================== */
.pricing-section {
  padding: 0 0 var(--section-space);
}

.pricing-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 21, 29, 0.8);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--r4);
  max-width: 520px;
  margin: 0 auto 50px;
}

.pricing-tab-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--r4);
  border: none;
  background: transparent;
  color: var(--c7);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.pricing-tab-btn.active {
  background: var(--c2);
  color: #08090c;
  box-shadow: 0 4px 15px rgba(0, 240, 168, 0.35);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.pricing-card {
  background: rgba(18, 21, 29, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--r1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card.featured {
  border-color: var(--c2);
  box-shadow: 0 0 40px rgba(0, 240, 168, 0.2);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--c2), var(--c5));
  color: #08090c;
  font-family: var(--tech-font);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--r4);
  letter-spacing: 1px;
}

.price-val {
  font-family: var(--tech-font);
  font-size: 46px;
  color: var(--white-color);
  margin: 18px 0;
}

.price-val sup {
  font-size: 24px;
  color: var(--c2);
}

.pricing-features-list {
  list-style: none;
  margin: 25px 0 35px;
  flex-grow: 1;
}

.pricing-features-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--body-color);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features-list li i {
  color: var(--c2);
}

/* ==========================================================================
   10. STEP PROCESS, FAQ & FOOTER
   ========================================================================== */
.process-section, .faq-section {
  padding: 0 0 var(--section-space);
}

.faq-item {
  background: rgba(18, 21, 29, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--r2);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 600;
}

.faq-question i {
  color: var(--c2);
  transition: var(--transition-fast);
}

.faq-answer {
  padding: 0 28px 22px;
  color: var(--c7);
  display: none;
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active {
  border-color: rgba(0, 240, 168, 0.35);
  background: rgba(18, 21, 29, 0.85);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer Styling */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--white-color);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: var(--c7);
  font-size: 14px;
}

.footer-menu a:hover {
  color: var(--c2);
  padding-left: 5px;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c7);
  font-size: 13px;
}

/* Floating Back to Top & Chat */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--c2);
  color: #08090c;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 240, 168, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.floating-chat-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-feature-tags, .hero-ctas {
    justify-content: center;
  }
  .bento-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 34px;
    --fs-sec-title: 30px;
    --section-space: 70px;
  }
  .bento-grid, .pricing-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-stream-pill {
    position: static;
    margin: 10px 0;
  }
  .pulse-inner {
    justify-content: center;
  }
}
