/* ============================================================
   YOURFLIX IPTV — PERFORMANCE & ORANGE EDITION
   ============================================================ */

:root {
  --primary:       #f97316;
  --primary-dark:  #ea580c;
  --accent:        #fbbf24;
  --bg:            #080705;
  --bg-card:       #110e0a;
  --bg-alt:        #0e0b08;
  --border:        #2a2318;
  --text:          #fdf8f3;
  --text-muted:    #b5a898;
  --font-main:     'Inter', system-ui, sans-serif;
  --font-head:     'Outfit', system-ui, sans-serif;
  --radius:        12px;
  --transition:    all 0.2s ease-in-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-alt { background-color: var(--bg-alt); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; }
.accent { color: var(--primary); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { display: inline-block; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(249, 115, 22, 0.1); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; background: rgba(8, 7, 5, 0.95); border-bottom: 1px solid var(--border); z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-family: var(--font-head); font-weight: 800; color: #fff; }
.logo-icon { color: var(--primary); }
.nav-desktop { display: flex; gap: 20px; }
.nav-desktop a { font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-desktop a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-switcher { background: transparent; color: #fff; border: 1px solid var(--border); padding: 5px; border-radius: 4px; font-family: var(--font-main); cursor: pointer; }
.lang-switcher option { background: var(--bg-card); color: #fff; }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 3px; }
.nav-mobile { display: none; background: var(--bg); padding: 20px; border-bottom: 1px solid var(--border); flex-direction: column; gap: 15px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); color: var(--text-muted); }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a.btn { color: #fff; padding: 12px 24px; border-bottom: none; }
.nav-mobile a.btn:hover { background: var(--primary-dark); color: #fff; }

/* Hero */
.hero { padding: 100px 0; background: radial-gradient(circle at center, rgba(249,115,22,0.1) 0%, var(--bg) 60%); text-align: center; }
.hero-badge { display: inline-block; background: rgba(249, 115, 22, 0.15); color: var(--primary); padding: 6px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }
.hero-cta-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.hero-trust { color: var(--text-muted); font-size: 0.9rem; }
.hero-stars { color: var(--accent); margin-bottom: 5px; font-size: 1.1rem; }
.hero-image-wrapper { margin-top: 50px; }
.hero-image { max-width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* Stats */
.stats { padding: 40px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.stat-number { font-size: 2.5rem; color: #fff; font-weight: 800; }
.stat-card p { color: var(--text-muted); font-weight: 600; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { background: var(--bg-card); padding: 40px 30px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); position: relative; }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; }
.step-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; margin-top: 10px; }
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; margin-bottom: 40px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 30px; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border-color: var(--primary); transform: scale(1.05); background: linear-gradient(180deg, rgba(249,115,22,0.1) 0%, var(--bg-card) 100%); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--primary); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.plan-duration { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
.plan-price { text-align: center; margin-bottom: 30px; }
.plan-price .currency { font-size: 1.5rem; font-weight: 700; }
.plan-price .amount { font-size: 3.5rem; font-weight: 800; color: #fff; }
.plan-price .period { color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.plan-features li:last-child { border-bottom: none; }
.plan-features i { color: var(--primary); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.pricing-note i { color: var(--primary); margin-right: 5px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: var(--bg-card); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); }
.feature-icon { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); }

/* Devices */
.devices-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.device-item { background: var(--bg-card); border: 1px solid var(--border); padding: 20px 30px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px; }
.device-item i { font-size: 2.5rem; color: var(--primary); }
.device-item span { font-weight: 600; color: #fff; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 20px; text-align: left; font-size: 1.1rem; font-weight: 600; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { color: var(--primary); transition: var(--transition); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: var(--transition); color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 300px; }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { color: var(--text-muted); margin-top: 15px; max-width: 300px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.9rem; }

/* Forms & Modals */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); }
.form-control { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: #fff; font-family: var(--font-main); }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control option { background: var(--bg); color: #fff; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); width: 90%; max-width: 400px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-title { margin-bottom: 20px; font-size: 1.5rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Extreme Trust Elements */
.trust-badges-row { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; opacity: 0.7; filter: grayscale(100%); transition: var(--transition); }
.trust-badges-row:hover { opacity: 1; filter: grayscale(0%); }
.trust-badge-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; }

.review-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.review-card { background: var(--bg-card); padding: 25px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.reviewer-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 1.2rem; }
.reviewer-info h4 { margin: 0; font-size: 1rem; color: #fff; }
.reviewer-info span { font-size: 0.8rem; color: var(--text-muted); }
.review-stars { color: #00b67a; font-size: 1rem; margin-top: 5px; }
.review-body { font-style: italic; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6; }
.review-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 15px; }
.verified-tag { color: #00b67a; font-weight: 700; display: flex; align-items: center; gap: 5px; }

/* Comparison Table */
.comparison-table-wrapper { overflow-x: auto; margin-top: 40px; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: center; }
.comparison-table th, .comparison-table td { padding: 20px; border: 1px solid var(--border); }
.comparison-table th { background: var(--bg-card); font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.comparison-table th.highlight { background: rgba(249, 115, 22, 0.1); color: var(--primary); border-top: 3px solid var(--primary); }
.comparison-table td.highlight { background: rgba(249, 115, 22, 0.05); font-weight: 700; color: #fff; }
.comparison-table .fa-check { color: #22c55e; font-size: 1.2rem; }
.comparison-table .fa-times { color: #ef4444; font-size: 1.2rem; }

/* Live Sales Toast */
.live-toast { position: fixed; bottom: 20px; left: 20px; background: var(--bg-card); border: 1px solid var(--primary); padding: 15px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 15px; z-index: 9999; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transform: translateY(150%); opacity: 0; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.live-toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { background: rgba(249, 115, 22, 0.2); color: var(--primary); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.toast-content p { margin: 0; font-size: 0.9rem; color: #fff; }
.toast-content span { font-size: 0.75rem; color: var(--text-muted); }

/* WhatsApp Proof Section (Carousel) */
.wa-carousel-wrapper { overflow: hidden; width: 100%; white-space: nowrap; margin-top: 40px; padding: 20px 0; position: relative; }
.wa-carousel-wrapper::before, .wa-carousel-wrapper::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.wa-carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.wa-carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.wa-carousel-track { display: inline-block; animation: scroll-wa 30s linear infinite; }
.wa-carousel-track:hover { animation-play-state: paused; }
.wa-proof-card { display: inline-block; width: 300px; background: var(--bg-card); padding: 15px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.4); text-align: center; margin-right: 30px; white-space: normal; vertical-align: top; }
.wa-proof-card img { width: 100%; border-radius: 12px; height: auto; display: block; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.wa-proof-card p { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin: 0; line-height: 1.4; }

@keyframes scroll-wa {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Trending Library Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(249,115,22,0.3);
}
.gallery-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}
.gallery-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-poster {
  transform: scale(1.08);
}
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 7, 5, 0.85);
  backdrop-filter: blur(4px);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(249,115,22,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}
.gallery-info {
  padding: 15px;
  text-align: left;
}
.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.gallery-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}
.gallery-card:hover .gallery-play-btn {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .stats-grid, .steps-grid, .pricing-grid, .features-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: scale(1); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wa-carousel-wrapper::before, .wa-carousel-wrapper::after { width: 50px; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .hero-cta-row { flex-direction: column; }
  .stats-grid, .steps-grid, .pricing-grid, .features-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .trust-badges-row { flex-direction: column; gap: 15px; }
  .review-wall { grid-template-columns: 1fr; }
  .wa-proof-card { width: 250px; margin-right: 15px; }
}
