/* =========================================================
   Opplex IPTV - Main Stylesheet
   Premium, minimal, glassmorphism, mobile-first
   ========================================================= */

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --accent: #06B6D4;
  --gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.10);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --transition: all .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
p { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
  font-size: .95rem;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 20px rgba(59,130,246,.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px rgba(59,130,246,.45); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800; font-size: 1.35rem;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); cursor: pointer; position: relative; color: var(--text);
  transition: var(--transition);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--gradient); color: #fff; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at top, rgba(59,130,246,.08), transparent 60%);
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 span {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; margin: 20px 0 30px; max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  padding: 6px 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--text-muted);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gradient);
  aspect-ratio: 4/3;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(6,182,212,.2));
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { margin-top: 10px; font-size: 1.05rem; }

/* Stats */
.stats {
  background: var(--bg-soft);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
  background: #fff; padding: 32px 20px; border-radius: var(--radius-lg);
  text-align: center; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 2.4rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-muted); font-weight: 500; margin-top: 6px; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
  background: #fff; padding: 32px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59,130,246,.3); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(6,182,212,.12));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); margin-bottom: 18px;
  font-size: 1.4rem;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; align-items: stretch;
}
.price-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
  border: 1px solid var(--border); position: relative;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.popular {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    var(--gradient) border-box;
  transform: scale(1.03);
}
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: .75rem;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .5px;
}
.plan-name { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); }
.plan-price { margin: 12px 0 4px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.plan-price .old { text-decoration: line-through; color: var(--text-muted); font-size: 1.05rem; margin-left: 8px; }
.plan-saving { color: #10b981; font-weight: 600; font-size: .85rem; margin-bottom: 20px; }
.plan-features { list-style: none; margin: 20px 0; flex: 1; }
.plan-features li {
  padding: 8px 0; padding-left: 26px; position: relative; color: var(--text-muted);
  font-size: .92rem;
}
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--primary); font-weight: 700;
}
.plan-actions { display: flex; flex-direction: column; gap: 8px; }
.plan-actions .btn { width: 100%; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(59,130,246,.3); }
.faq-q {
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 300;
  transition: transform .25s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--text-muted); }

/* CTA Band */
.cta-band {
  background: var(--gradient); color: #fff; text-align: center;
  border-radius: var(--radius-xl); padding: 60px 30px;
  margin: 60px auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 12px auto 24px; max-width: 600px; }
.cta-band .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.cta-band .btn-primary:hover { color: var(--primary-dark); }

/* Page header */
.page-header {
  padding: 80px 0 40px;
  background: radial-gradient(ellipse at top, rgba(59,130,246,.10), transparent 70%);
  text-align: center;
}
.page-header p { max-width: 640px; margin: 14px auto 0; font-size: 1.05rem; }
.breadcrumb { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }

/* Devices row */
.devices-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px; text-align: center;
}
.device-chip {
  padding: 20px 10px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 500; color: var(--text);
  transition: var(--transition);
}
.device-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Blog */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card .thumb-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.blog-card:hover .thumb-img { transform: scale(1.05); }
.blog-card .body { padding: 22px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }

/* Article */
.article { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.article h1 { margin-bottom: 16px; }
.article .meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.article .hero-image {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  background: var(--gradient); margin-bottom: 32px;
}
.article h2 { margin-top: 32px; }
.article h3 { margin-top: 22px; }
.article p, .article li { color: var(--text); margin-bottom: 14px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 24px 0;
}
.toc strong { display: block; margin-bottom: 10px; }
.toc ol { padding-left: 20px; }
.toc a { color: var(--text); }

/* Contact + Cart + Checkout */
.two-col {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; font-size: .95rem; font-family: inherit; background: #fff; color: var(--text);
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.cart-table th { font-size: .8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: .5px; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; }
.qty-controls button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--text);
}
.remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; }

/* Payment methods */
.payment-methods { display: grid; gap: 12px; }
.payment-method {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; transition: var(--transition);
}
.payment-method:hover, .payment-method.active { border-color: var(--primary); background: rgba(59,130,246,.03); }
.payment-method h4 { display: flex; justify-content: space-between; align-items: center; }
.payment-details { margin-top: 10px; font-size: .9rem; color: var(--text-muted); }

/* Footer */
.footer {
  background: #0f172a; color: #cbd5e1; padding: 60px 0 24px; margin-top: 60px;
}
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: var(--primary); }
.footer-brand p { color: #94a3b8; margin-top: 12px; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px;
  text-align: center; color: #64748b; font-size: .85rem;
}
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a {
  width: 36px; height: 36px; background: #1e293b; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* 404 */
.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 {
  font-size: 8rem;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Utility */
.text-center { text-align: center; }
.mt-6 { margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.visual-block {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: var(--gradient); box-shadow: var(--shadow-md);
  width: 100%; overflow: hidden; display: block;
}
.about-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Setup guide */
.guide-list { display: grid; gap: 24px; }
.guide-item {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.guide-item .device-visual {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 700; font-size: 1.1rem; padding: 20px; text-align: center;
}
.guide-item ol { padding-left: 20px; }
.guide-item li { margin-bottom: 6px; color: var(--text); }
.tip {
  margin-top: 12px; padding: 12px 16px; background: rgba(59,130,246,.06);
  border-left: 3px solid var(--primary); border-radius: 8px; font-size: .9rem;
}
