/**
 * Fox IPTV Player SaaS Platform
 * Premium Dark Theme Stylesheet
 * 
 * Features:
 * - CSS custom properties for dynamic theming
 * - Dark/light mode support via data-theme attribute
 * - Mobile-first responsive design
 * - RTL language support
 * - Accessibility compliant (WCAG AA)
 * - Hardware-accelerated animations
 * 
 * @version 1.0.0
 * @author Fox IPTV Team
 * @license MIT
 */

:root {
  --bg: #08090e;
  --bg2: #0f1117;
  --bg3: #161820;
  --bg4: #1c1f2a;
  --surface: #222535;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #ff5f2e;
  --accent2: #ff8a57;
  --accent3: #ffb38a;
  --blue: #4f8ef7;
  --blue2: #7aabff;
  --teal: #2ed8a8;
  --purple: #9b6dff;
  --text: #f0f1f5;
  --text2: #a8aab8;
  --text3: #666876;
  --grad: linear-gradient(135deg, #ff5f2e 0%, #ff8a57 50%, #9b6dff 100%);
  --grad2: linear-gradient(135deg, #4f8ef7 0%, #2ed8a8 100%);
  --radius: 12px;
  --radius2: 20px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow2: 0 2px 12px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="light"] {
  --bg: #f8f9fc;
  --bg2: #ffffff;
  --bg3: #f2f4f8;
  --bg4: #e8eaf0;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.12);
  --text: #0d0e14;
  --text2: #555770;
  --text3: #9499b0;
  --shadow: 0 8px 40px rgba(0,0,0,0.1);
  --shadow2: 0 2px 12px rgba(0,0,0,0.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* Firefox scrollbar */
* { scrollbar-color: var(--accent) var(--bg); scrollbar-width: thin; }

/* NAVBAR */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,9,14,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] #navbar { background: rgba(248,249,252,0.8); }
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
}
.nav-logo-text {
  display: inline;
}
.nav-logo-img {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text2); text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--border2); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,95,46,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,95,46,0.5); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 14px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; font-size: 18px; }
#hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
}
#hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); display: block; }
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
#mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--bg);
  padding: 2rem;
  flex-direction: column; gap: 0.5rem;
  border-top: 1px solid var(--border);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: var(--text); text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}
#mobile-menu a:hover { background: var(--surface); border-color: var(--accent); }
#mobile-menu .divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* PAGE SYSTEM */
.page { display: none; }
.page.active { display: block; }

/* HERO */
#hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(255,95,46,0.18) 0%, transparent 70%); animation-delay: 0s; }
.orb2 { width: 500px; height: 500px; top: 100px; right: -200px; background: radial-gradient(circle, rgba(79,142,247,0.15) 0%, transparent 70%); animation-delay: 3s; }
.orb3 { width: 400px; height: 400px; bottom: -100px; left: 50%; background: radial-gradient(circle, rgba(155,109,255,0.12) 0%, transparent 70%); animation-delay: 5s; }
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,95,46,0.1);
  border: 1px solid rgba(255,95,46,0.25);
  color: var(--accent2);
  padding: 0.4rem 1rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text2); max-width: 560px;
  margin: 1.5rem auto 0;
  line-height: 1.7;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-top: 2.5rem;
  animation: fadeUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center;
  margin-top: 4rem;
  animation: fadeUp 0.6s ease 0.4s both;
}
.hero-stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* DEVICE MOCKUPS */
.devices-container {
  position: relative; width: 100%; max-width: 900px; height: 340px;
  margin: 3rem auto 0;
  animation: fadeUp 0.8s ease 0.5s both;
}
.device {
  position: absolute;
  border-radius: var(--radius2);
  background: var(--bg3);
  border: 2px solid var(--border2);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.device-tv {
  width: 520px; height: 300px;
  left: 50%; transform: translateX(-50%);
  border-radius: 16px;
}
.device-phone {
  width: 120px; height: 210px;
  left: 10%; bottom: 0;
  border-radius: 22px;
  z-index: 2;
}
.device-tablet {
  width: 200px; height: 260px;
  right: 8%; bottom: 0;
  border-radius: 18px;
  z-index: 2;
}
.device-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1c28 0%, #0f1117 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.device-logo { font-size: 2rem; margin-bottom: 4px; }
.device-bar { width: 60%; height: 4px; background: var(--grad); border-radius: 2px; animation: barAnim 2s ease-in-out infinite; }
.device-bar2 { width: 40%; height: 3px; background: var(--surface); border-radius: 2px; }
@keyframes barAnim { 0%,100%{width:30%} 50%{width:70%} }
.device-play { font-size: 2.5rem; }
.device-label { font-size: 0.55rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* SECTIONS */
section { padding: 100px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 650px;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--text2); font-size: 1.05rem; max-width: 550px; margin-top: 1rem; line-height: 1.7; }
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,95,46,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(255,95,46,0.15); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(255,95,46,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  border: 1px solid rgba(255,95,46,0.2);
}
.feature-icon.blue { background: rgba(79,142,247,0.1); border-color: rgba(79,142,247,0.2); }
.feature-icon.teal { background: rgba(46,216,168,0.1); border-color: rgba(46,216,168,0.2); }
.feature-icon.purple { background: rgba(155,109,255,0.1); border-color: rgba(155,109,255,0.2); }
.feature-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-desc { color: var(--text2); font-size: 0.9rem; line-height: 1.65; }

/* GLASS CARD */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
}
[data-theme="light"] .glass-card { background: rgba(0,0,0,0.03); }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2.25rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(255,95,46,0.06) 0%, var(--bg2) 60%);
  box-shadow: 0 0 0 1px rgba(255,95,46,0.2), 0 20px 60px rgba(255,95,46,0.15);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  padding: 0.25rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-price {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 800;
  line-height: 1.1; margin: 0.75rem 0 0.25rem;
}
.plan-price span { font-size: 1.1rem; font-weight: 500; color: var(--text2); vertical-align: top; margin-top: 0.6rem; display: inline-block; }
.plan-price .period { font-size: 0.9rem; color: var(--text3); }
.plan-desc { color: var(--text2); font-size: 0.875rem; margin-bottom: 1.75rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text2);
}
.plan-features li .check { color: var(--teal); font-size: 1rem; flex-shrink: 0; }
.plan-features li.muted { opacity: 0.45; }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 1.75rem;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--text2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { color: var(--text3); font-size: 0.8rem; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg2);
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border2); }
.faq-item.open { border-color: rgba(255,95,46,0.3); }
.faq-question {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border2); }
.blog-img {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.blog-content { padding: 1.5rem; }
.blog-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.65rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255,95,46,0.1);
  color: var(--accent2);
  border: 1px solid rgba(255,95,46,0.2);
}
.tag.blue { background: rgba(79,142,247,0.1); color: var(--blue2); border-color: rgba(79,142,247,0.2); }
.tag.teal { background: rgba(46,216,168,0.1); color: var(--teal); border-color: rgba(46,216,168,0.2); }
.blog-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.35; }
.blog-excerpt { color: var(--text2); font-size: 0.875rem; line-height: 1.65; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; color: var(--text3); font-size: 0.8rem; }
.blog-read-btn {
  color: var(--accent); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.blog-read-btn:hover { gap: 8px; }

/* BLOG POST */
#blog-post-page { padding: 120px 2rem 80px; }
#progress-bar {
  position: fixed; top: 64px; left: 0; height: 3px;
  background: var(--grad); z-index: 999;
  transition: width 0.1s ease; width: 0;
}
.post-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 260px; gap: 3rem; }
.post-main {}
.post-toc {
  position: sticky; top: 90px; height: fit-content;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 1.5rem;
}
.toc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 1rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.toc-list a {
  color: var(--text2); text-decoration: none;
  font-size: 0.85rem;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 0.3rem 0.5rem;
  border-radius: 6px; transition: var(--transition);
  border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.active { color: var(--accent); background: rgba(255,95,46,0.06); border-left-color: var(--accent); }
.post-header { margin-bottom: 2.5rem; }
.post-header-img { width: 100%; height: 360px; background: linear-gradient(135deg, #1a1c28, #0f1117); border-radius: var(--radius2); display: flex; align-items: center; justify-content: center; font-size: 6rem; margin-bottom: 2rem; border: 1px solid var(--border); }
.post-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.post-meta { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; color: var(--text3); font-size: 0.85rem; flex-wrap: wrap; }
.post-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--text); }
.post-content h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--text); }
.post-content p { color: var(--text2); line-height: 1.8; margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { color: var(--text2); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.post-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg3); padding: 0.2em 0.5em; border-radius: 4px; color: var(--accent2); }
.post-content pre { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: none; padding: 0; color: var(--text); }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; background: rgba(255,95,46,0.05); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.post-content blockquote p { color: var(--text); font-style: italic; margin-bottom: 0; }
.social-share { display: flex; align-items: center; gap: 0.75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.share-label { font-size: 0.875rem; font-weight: 600; color: var(--text2); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; border: 1px solid var(--border); color: var(--text2); background: var(--bg2); }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.whatsapp:hover { background: rgba(37,211,102,0.1); border-color: #25d366; color: #25d366; }
.share-btn.telegram:hover { background: rgba(36,161,222,0.1); border-color: #24a1de; color: #24a1de; }
.share-btn.twitter:hover { background: rgba(0,0,0,0.05); border-color: #000; color: #000; }

/* DASHBOARD */
#dashboard-page {
  display: flex;
  height: 100vh;
  padding-top: 64px;
}
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 1.5rem 0;
  overflow-y: auto;
}
.sidebar-section { padding: 0 1rem; margin-bottom: 2rem; }
.sidebar-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 0.75rem; border-radius: var(--radius);
  color: var(--text2); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); cursor: pointer;
}
.sidebar-nav a:hover { background: var(--bg3); color: var(--text); }
.sidebar-nav a.active { background: rgba(255,95,46,0.1); color: var(--accent); }
.sidebar-nav a .nav-icon { width: 18px; text-align: center; font-size: 0.95rem; }
.sidebar-nav a .badge {
  margin-left: auto; background: var(--accent);
  color: #fff; border-radius: 100px;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.1rem 0.45rem; min-width: 20px; text-align: center;
}
.dash-content { flex: 1; overflow-y: auto; background: var(--bg); padding: 2rem; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.dash-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.dash-sub { color: var(--text2); font-size: 0.875rem; margin-top: 0.25rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); }
.stat-card-label { font-size: 0.75rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-card-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin: 0.25rem 0; }
.stat-card-change { font-size: 0.8rem; color: var(--teal); font-weight: 600; }
.stat-card-change.neg { color: #f87171; }
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; margin-bottom: 2rem; }
.dash-panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 1.5rem;
}
.panel-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.panel-action { font-size: 0.8rem; color: var(--accent); cursor: pointer; font-weight: 500; }
.playlist-list { display: flex; flex-direction: column; gap: 0.75rem; }
.playlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.playlist-item:hover { border-color: var(--border2); }
.playlist-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,95,46,0.1); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.playlist-name { font-size: 0.875rem; font-weight: 600; }
.playlist-meta { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }
.playlist-status { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-ok { background: var(--teal); }
.status-err { background: #f87171; }
.device-list { display: flex; flex-direction: column; gap: 0.6rem; }
.device-item { display: flex; align-items: center; gap: 10px; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.device-item:last-child { border-bottom: none; }
.device-type { width: 28px; height: 28px; border-radius: 6px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.device-name { font-size: 0.875rem; font-weight: 500; }
.device-info { font-size: 0.75rem; color: var(--text3); }
.device-online { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: var(--teal); }
.device-offline { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: var(--text3); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,95,46,0.1); border: 1px solid rgba(255,95,46,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.contact-info-value { color: var(--text); font-weight: 500; margin-top: 0.2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  transition: var(--transition); resize: vertical;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,95,46,0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-textarea { min-height: 130px; }
.form-error { color: #f87171; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.form-success {
  padding: 1.25rem; border-radius: var(--radius);
  background: rgba(46,216,168,0.1); border: 1px solid rgba(46,216,168,0.3);
  color: var(--teal); font-weight: 600; display: none; margin-top: 1rem;
}

/* BLOG INDEX */
.blog-search-bar {
  display: flex; gap: 0.75rem; margin-bottom: 2rem;
}
.blog-search-bar input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem 1rem;
  color: var(--text); font-size: 0.9rem; font-family: var(--font);
}
.blog-search-bar input:focus { outline: none; border-color: var(--accent); }
.categories-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-btn {
  padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); transition: var(--transition);
}
.cat-btn:hover, .cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.featured-post {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius2); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr;
  margin-bottom: 3rem; transition: var(--transition);
}
.featured-post:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.featured-img { height: 280px; display: flex; align-items: center; justify-content: center; font-size: 5rem; background: linear-gradient(135deg, #1a1c28, #0f1117); }
.featured-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem; }

/* SETTINGS FORM */
.settings-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.settings-sidebar { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 1rem; height: fit-content; }
.settings-nav { list-style: none; }
.settings-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 0.75rem; border-radius: var(--radius);
  color: var(--text2); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.settings-nav li a.active, .settings-nav li a:hover { background: rgba(255,95,46,0.1); color: var(--accent); }
.settings-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 2rem; }
.settings-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.settings-section-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.settings-section-desc { color: var(--text2); font-size: 0.85rem; margin-bottom: 1.5rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-info { }
.toggle-label { font-size: 0.9rem; font-weight: 500; }
.toggle-sub { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  background: var(--surface); border-radius: 12px;
  border: 1px solid var(--border2); cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
}
.toggle-switch.on { background: var(--accent); border-color: var(--accent); }
.toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.25s;
}
.toggle-switch.on .toggle-knob { transform: translateX(20px); }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem; max-width: 1200px; margin: 0 auto;
}
.footer-brand .nav-logo { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { color: var(--text2); font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.social-btn:hover { background: rgba(255,95,46,0.1); border-color: rgba(255,95,46,0.3); color: var(--accent); }
.footer-section h4 { font-weight: 700; font-size: 0.875rem; margin-bottom: 1.25rem; }
.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-section ul a { color: var(--text2); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; cursor: pointer; }
.footer-section ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text3); font-size: 0.8rem; }
.footer-controls {
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-lang-selector {
  position: relative;
}
#footer-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
#footer-lang-btn:hover {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
#footer-lang-btn:active {
  transform: translateY(0);
}
#footer-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
#footer-theme-btn:hover {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
#footer-theme-btn:active {
  transform: translateY(0);
}
.footer-badges { display: flex; gap: 0.5rem; }
.footer-badge {
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text3);
}

/* NOTIFICATION */
#notification {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  display: none; box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}
#notification.show { display: block; }
@keyframes slideIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* LANG TOGGLE & THEME */
.lang-selector { position: relative; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0;
  min-width: 180px; box-shadow: var(--shadow2);
  display: none; z-index: 1001;
  flex-direction: column;
}
.lang-selector.open .lang-dropdown { display: flex; }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  padding: 0.5rem 0.75rem; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; color: var(--text2);
  transition: var(--transition);
}
.lang-option:hover, .lang-option.active { background: var(--bg3); color: var(--text); }

/* LANGUAGE MODAL */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-content {
  position: relative; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius2);
  box-shadow: var(--shadow); max-width: 500px; width: 90%;
  max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg2); z-index: 10;
}
.modal-header h2 {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; margin: 0;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--text2); padding: 0;
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 8px; transition: var(--transition);
}
.modal-close:hover { background: var(--bg3); color: var(--text); }

.modal-body { padding: 1.5rem; }

.lang-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.lang-modal-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg3); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font); color: var(--text2);
}
.lang-modal-option:hover {
  background: var(--bg4); border-color: var(--accent);
  transform: translateY(-2px);
}
.lang-modal-option.active {
  background: rgba(255,95,46,0.1); border-color: var(--accent);
  color: var(--accent);
}
.lang-flag {
  font-size: 2.5rem; line-height: 1;
}
.lang-name {
  font-weight: 600; font-size: 0.9rem;
  text-align: center;
}
.lang-english {
  font-size: 0.75rem; color: var(--text3);
  text-align: center;
}

/* RTL */
[dir="rtl"] .hero-title, [dir="rtl"] .section-title { letter-spacing: 0; }
[dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border); }
/*[dir="rtl"] .post-layout { grid-template-columns: 260px 1fr; }*/
[dir="rtl"] .toc-list a { border-left: none; border-right: 2px solid transparent; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* GRADIENT LINE */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid, .featured-post, .post-layout, .footer-grid, .settings-grid, .dash-grid { grid-template-columns: 1fr; }
  .nav-links, .lang-selector { display: none; }
  #hamburger { display: flex; }
  .nav-actions .btn-outline { display: none; }
  #navbar { padding: 0 1.5rem; }
  .nav-logo { font-size: 1rem; gap: 8px; }
  .nav-logo-img { width: 32px; height: 32px; }
  #dashboard-page { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 0.75rem; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-section { flex-shrink: 0; margin-bottom: 0; padding: 0 0.5rem; }
  .sidebar-title { display: none; }
  .sidebar-nav { display: flex; flex-direction: row; gap: 0.25rem; }
  .dash-content { padding: 1.25rem; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }
  .post-toc { display: none; }
  
  /* TABLET BLOG IMPROVEMENTS */
  #blog-post-page { padding: 100px 1.5rem 80px; }
  .post-layout { gap: 2.5rem; }
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 240px; }
  .featured-content { padding: 2.25rem; }
  
  /* HERO */
  #hero { padding: 100px 1.5rem 70px; }
  .hero-title { font-size: clamp(2.2rem, 5vw, 4rem); }
  
  /* DEVICES */
  .devices-container { height: 320px; }
  .device-tv { width: 100%; max-width: 400px; height: 220px; }
  .device-phone { width: 100px; height: 180px; left: 8%; }
  .device-tablet { width: 160px; height: 220px; right: 8%; }
  
  /* SECTIONS */
  section { padding: 80px 1.5rem; }
  .page-hero { padding: 120px 1.5rem 60px; }
  
  /* FEATURES */
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  
  /* PRICING */
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
  
  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 640px) {
  #navbar { padding: 0 1rem; height: 56px; }
  .nav-logo { font-size: 0.9rem; gap: 6px; }
  .nav-logo-img { width: 28px; height: 28px; }
  .nav-actions { gap: 0.5rem; }
  .btn { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
  .btn-icon { width: 32px; height: 32px; font-size: 16px; }
  
  /* MOBILE BLOG IMPROVEMENTS */
  #blog-post-page { padding: 90px 1.25rem 70px; }
  .post-layout { gap: 2rem; }
  .post-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .post-header-img { height: 260px; }
  .post-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
  .post-content h3 { font-size: 1.05rem; }
  .post-content pre { padding: 1.25rem; font-size: 0.8rem; }
  
  /* BLOG GRID */
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-img { height: 180px; }
  .blog-content { padding: 1.25rem; }
  .blog-title { font-size: 1rem; }
  .blog-excerpt { font-size: 0.85rem; }
  
  /* FEATURED POST */
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 220px; }
  .featured-content { padding: 2rem; }
  
  /* SECTIONS */
  section { padding: 80px 1.25rem; }
  .page-hero { padding: 120px 1.25rem 50px; }
  
  /* HERO */
  #hero { padding: 110px 1.25rem 70px; }
  .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  
  /* DEVICES */
  .devices-container { height: 300px; }
  .device-tv { width: 100%; max-width: 320px; height: 180px; }
  .device-phone { width: 90px; height: 160px; }
  .device-tablet { width: 140px; height: 180px; }
  
  /* FEATURES */
  .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-card { padding: 1.75rem; }
  
  /* PRICING */
  .pricing-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pricing-card { padding: 2rem; }
  .plan-price { font-size: 2.6rem; }
  
  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  
  /* CONTACT */
  .contact-grid { gap: 3rem; }
  
  /* SCROLL TO TOP BUTTON */
  #scroll-to-top { bottom: 1.75rem; right: 1.25rem; width: 42px; height: 42px; font-size: 1.1rem; }
  
  /* FOOTER TABLET */
  .footer-controls { gap: 0.5rem; }
  #footer-lang-btn, #footer-theme-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  
  /* LANGUAGE MODAL TABLET */
  .modal-content { width: 90%; max-width: 450px; }
  .lang-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.9rem; }
}

@media (max-width: 480px) {
  #navbar { padding: 0 0.75rem; height: 52px; }
  .nav-logo { font-size: 0.85rem; gap: 4px; }
  .nav-logo-text { display: none; }
  .nav-logo-img { width: 24px; height: 24px; }
  .nav-actions { gap: 0.25rem; }
  .lang-selector { display: none; }
  #theme-btn { display: none; }
  .btn { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
  .btn-icon { width: 28px; height: 28px; font-size: 14px; }
  .btn-primary, .btn-outline { display: none; }
  .btn-ghost { display: inline-flex; }
  .footer-controls { display: flex; }
  
  /* MOBILE BLOG FIXES */
  #blog-post-page { padding: 80px 1rem 60px; }
  .post-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-toc { display: none; }
  .post-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .post-header-img { height: 240px; font-size: 3rem; }
  .post-meta { gap: 0.75rem; font-size: 0.75rem; }
  .post-content h2 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; }
  .post-content h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
  .post-content p { font-size: 0.9rem; }
  .post-content pre { padding: 1rem; font-size: 0.75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .social-share { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .share-label { width: 100%; }
  .share-btn { width: 100%; justify-content: center; }
  
  /* MOBILE BLOG GRID */
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card { border-radius: 8px; }
  .blog-img { height: 160px; font-size: 2rem; }
  .blog-content { padding: 1rem; }
  .blog-title { font-size: 0.95rem; }
  .blog-excerpt { font-size: 0.8rem; }
  .blog-meta { font-size: 0.7rem; gap: 0.5rem; }
  .blog-read-btn { font-size: 0.75rem; }
  
  /* FEATURED POST */
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 200px; font-size: 3rem; }
  .featured-content { padding: 1.5rem; }
  .featured-content .blog-title { font-size: 1.1rem; }
  
  /* SEARCH & FILTER */
  .blog-search-bar { flex-direction: column; }
  .blog-search-bar input { width: 100%; }
  .blog-search-bar button { width: 100%; }
  .categories-filter { gap: 0.4rem; }
  .cat-btn { padding: 0.35rem 0.8rem; font-size: 0.75rem; }
  
  /* SECTION PADDING */
  section { padding: 60px 1rem; }
  .page-hero { padding: 100px 1rem 40px; }
  .container { padding: 0; }
  
  /* HERO */
  #hero { padding: 100px 1rem 60px; }
  .hero-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta { gap: 0.75rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.6rem; }
  
  /* DEVICES CONTAINER */
  .devices-container { height: 280px; margin-top: 2rem; }
  .device-tv { width: 100%; max-width: 280px; height: 160px; }
  .device-phone { width: 80px; height: 140px; left: 5%; }
  .device-tablet { width: 120px; height: 160px; right: 5%; }
  
  /* FEATURES GRID */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.5rem; }
  .feature-icon { width: 44px; height: 44px; font-size: 1.25rem; }
  .feature-title { font-size: 1rem; }
  .feature-desc { font-size: 0.85rem; }
  
  /* PRICING */
  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pricing-card { padding: 1.5rem; }
  .plan-price { font-size: 2.2rem; }
  
  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial-card { padding: 1.25rem; }
  
  /* FAQ */
  .faq-list { max-width: 100%; }
  .faq-question { padding: 1rem 1.25rem; font-size: 0.9rem; }
  .faq-answer { padding: 0 1.25rem 1rem; }
  
  /* CONTACT */
  .contact-grid { gap: 2rem; }
  .contact-info-item { margin-bottom: 1.5rem; }
  
  /* SCROLL TO TOP BUTTON */
  #scroll-to-top { bottom: 1.5rem; right: 1rem; width: 40px; height: 40px; font-size: 1rem; }
  
  /* FOOTER MOBILE */
  .footer-controls { gap: 0.4rem; }
  .lang-option { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
  
  /* FOOTER BUTTONS MOBILE */
  #footer-lang-btn, #footer-theme-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
  
  /* LANGUAGE MODAL MOBILE */
  .modal-content { width: 95%; max-height: 90vh; }
  .modal-header { padding: 1.25rem; }
  .modal-header h2 { font-size: 1.1rem; }
  .modal-body { padding: 1.25rem; }
  .lang-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; }
  .lang-modal-option { padding: 1rem; }
  .lang-flag { font-size: 2rem; }
  .lang-name { font-size: 0.85rem; }
  .lang-english { font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* FOCUS */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* PAGE HERO */
.page-hero { padding: 140px 2rem 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 0%, rgba(255,95,46,0.12) 0%, transparent 60%); pointer-events:none; }

/* MINI CHART */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 0.75rem; }
.chart-bar { flex: 1; border-radius: 3px 3px 0 0; transition: var(--transition); background: rgba(255,95,46,0.3); }
.chart-bar:hover { background: var(--accent); }

/* XTREAM FORM */
.api-form { background: var(--bg3); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.api-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-group { position: relative; }
.input-group input { padding-right: 2.5rem; }
.input-group .eye-btn { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text3); font-size: 1rem; }

/* EPG TIMELINE */
.epg-timeline { display: flex; flex-direction: column; gap: 0.5rem; }
.epg-row { display: flex; gap: 0.5rem; align-items: center; }
.epg-channel { width: 80px; font-size: 0.75rem; color: var(--text3); font-weight: 600; flex-shrink: 0; }
.epg-programs { flex: 1; display: flex; gap: 4px; height: 32px; }
.epg-program { border-radius: 6px; display: flex; align-items: center; padding: 0 8px; font-size: 0.7rem; color: var(--text2); white-space: nowrap; overflow: hidden; cursor: pointer; transition: var(--transition); }
.epg-program:hover { filter: brightness(1.2); }
.epg-now { background: rgba(255,95,46,0.25); border: 1px solid rgba(255,95,46,0.4); color: var(--accent2); }

/* DONATE CTA */
.donate-cta { background: linear-gradient(135deg, rgba(255,95,46,0.1), rgba(155,109,255,0.1)); border: 1px solid rgba(255,95,46,0.2); border-radius: var(--radius2); padding: 3rem; text-align: center; margin-top: 4rem; }
.donate-cta h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.donate-cta p { color: var(--text2); max-width: 480px; margin: 0 auto 2rem; }

/* SKIP LINK (A11Y) */
.skip-link { position: absolute; top: -44px; left: 0; background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 10000; border-radius: 0 0 8px 0; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* Screenshot Gallery Styles */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.screenshot-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
}

.screenshot-card p {
  color: var(--text2);
  line-height: 1.6;
  font-size: 0.9rem;
}

.screenshot-card > div {
  padding: 1.5rem;
}

/* Responsive adjustments for screenshots */
@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .screenshot-card img {
    height: 180px;
  }
  
  .screenshot-card > div {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .screenshot-card img {
    height: 160px;
  }
  
  .screenshot-card > div {
    padding: 1rem;
  }
  
  .screenshot-card h3 {
    font-size: 1rem;
  }
  
  .screenshot-card p {
    font-size: 0.85rem;
  }
}