/* ==========================================================================
   NINJA IPTV PREMIUM DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Color Palette */
  --bg-primary: #08080a;
  --bg-secondary: #0f0f13;
  --bg-tertiary: #16161c;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #aa7c11 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.25);
  
  --accent-red: #e50914;
  --accent-purple: #8a2be2;
  --accent-gradient: linear-gradient(135deg, #e50914 0%, #8a2be2 100%);
  
  --text-main: #f3f4f6;
  --text-muted: #d1d5db;
  --text-dark: #1f2937;
  
  --card-border: rgba(212, 175, 55, 0.1);
  --card-border-hover: rgba(212, 175, 55, 0.35);
  --glass-bg: rgba(15, 15, 19, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  /* Fonts */
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Outfit', 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Reset & Defaults --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Dynamic Fonts & Direction based on Language */
body {
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.lang-en {
  font-family: var(--font-en);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* --- Canvas Particle Background --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* --- Global Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-btn {
  position: relative;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-30deg);
  transition: 0.75s;
}

.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.glow-btn:hover::before {
  left: 120%;
}

.sec-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sec-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(8, 8, 10, 0.95);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Language and Currency Switchers */
.control-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.control-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: var(--gold-glow);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   SERVICE STATUS BANNER
   ========================================================================== */
.status-banner {
  margin-top: var(--header-height);
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  display: none; /* Shown dynamically via JS */
  animation: slideDown 0.5s ease-out forwards;
}

.status-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px 0;
  overflow: hidden;
}

/* Hero Background Glows */
.hero-glow-1 {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 10px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating Device Visualizer */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tv-mockup {
  width: 100%;
  max-width: 500px;
  background: #111116;
  border: 4px solid #1a1a24;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-smooth);
}

.tv-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-5deg);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tv-screen-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.tv-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(8,8,10,0.95) 100%),
              radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.tv-overlay-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[dir="rtl"] .tv-overlay-info {
  direction: rtl;
}

.tv-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.tv-live-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: pulseRed 1.5s infinite;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.fb-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.floating-badge.fb-2 {
  bottom: 10%;
  right: -25px;
  animation-delay: 2s;
}

.fb-icon {
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.fb-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.fb-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LATEST CONTENT SECTION (AUTO-UPDATE SCROLLER)
   ========================================================================== */
.latest-content {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-tag {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.95rem;
}

/* Marquee Scroller */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Content Poster Card */
.content-card {
  width: 180px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.content-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.content-card:hover .poster-img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(8,8,10,0.95) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  z-index: 2;
}

.content-card:hover .poster-overlay {
  opacity: 1;
}

.card-rating {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.9);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.card-meta-overlay {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-type {
  color: var(--gold-light);
  font-weight: 600;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
  padding: 80px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 35px 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--gold-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(170,124,17,0.05) 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   PRICING & PLANS SECTION
   ========================================================================== */
.pricing {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.pricing-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.switch-wrap {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 50px;
  position: relative;
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
}

.switch-btn.active {
  color: var(--bg-primary);
  font-weight: 700;
}

.switch-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--gold-gradient);
  border-radius: 50px;
  transition: var(--transition-smooth);
  z-index: 1;
}

/* Price Switch slider RTL/LTR movement logic in JS */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: transparent;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(212,175,55,0.1);
  transform: scale(1.03);
}

.pricing-card.popular::before {
  background: var(--gold-gradient);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.04);
}

.plan-label {
  align-self: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-card.popular .plan-label {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
}

.plan-duration {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.plan-price-wrap {
  margin-bottom: 25px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
}

.plan-currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: right;
}

body.lang-en .plan-features {
  text-align: left;
}

.plan-feature-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-feature-item::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: 900;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-light);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pricing-card.popular .plan-btn, .plan-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

/* ==========================================================================
   SUPPORTED DEVICES
   ========================================================================== */
.devices {
  padding: 80px 0;
  position: relative;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.device-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.device-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.device-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: inline-block;
  transition: var(--transition-smooth);
}

.device-card:hover .device-icon {
  transform: scale(1.15);
}

.device-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.device-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.device-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* ==========================================================================
   SEARCH & REQUEST QUICK LINKS
   ========================================================================== */
.quick-links {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.03) 0%, rgba(138,43,226,0.03) 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quick-link-box {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  padding: 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .quick-link-box {
  direction: rtl;
}

.quick-link-box:hover {
  border-color: var(--gold-primary);
  transform: scale(1.01);
  box-shadow: var(--gold-glow);
}

.ql-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ql-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.ql-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ql-btn {
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--card-border-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: var(--transition-fast);
}

body.lang-en .faq-question {
  text-align: left;
}

.faq-question:hover {
  color: var(--gold-light);
}

.faq-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  color: var(--gold-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.01);
}

.faq-answer-inner {
  padding: 0 25px 20px 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--gold-primary);
}

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

.faq-item.active .faq-answer {
  /* Dynamic max-height set in JS */
}

/* ==========================================================================
   CONTACT & DISTRIBUTORS SECTION
   ========================================================================== */
.contact {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.contact-card-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-fast);
}

.contact-card-box:hover {
  border-color: var(--gold-primary);
  transform: translateX(-5px);
}

body.lang-en .contact-card-box:hover {
  transform: translateX(5px);
}

.cc-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.cc-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cc-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Agents Layout */
.agents-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agents-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.agents-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.agent-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .agent-card {
  direction: rtl;
}

.agent-card:hover {
  border-color: var(--gold-primary);
  background: rgba(212,175,55,0.02);
}

.agent-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.agent-role {
  font-size: 0.8rem;
  color: var(--gold-light);
}

.agent-contact {
  display: flex;
  gap: 10px;
}

.agent-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agent-btn.tg {
  background: #0088cc;
  color: #fff;
}

.agent-btn.wa {
  background: #25d366;
  color: #fff;
}

.agent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #040405;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 25px 0;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-gradient);
}

body[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a, .footer-links span {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

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

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quality-badges {
  display: flex;
  gap: 8px;
}

.qb {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.qb.q-4k {
  color: var(--gold-primary);
  border-color: rgba(212,175,55,0.3);
}

/* ==========================================================================
   MOBILE & DRAWER NAVIGATION
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #0f0f13;
  border-left: 1px solid var(--card-border);
  z-index: 1100;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

body[dir="ltr"] .mobile-nav {
  right: auto;
  left: -300px;
  border-left: none;
  border-right: 1px solid var(--card-border);
  box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}

.mobile-nav.open {
  right: 0;
}

body[dir="ltr"] .mobile-nav.open {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.mobile-link:hover, .mobile-link.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body[dir="rtl"] .marquee-track {
  /* In RTL, scroll direction matches logical layouts */
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
    padding-top: 20px;
  }
  
  .hero-badge {
    align-self: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-col h4 {
    margin-bottom: 12px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .floating-badge.fb-1 {
    left: 10px;
    top: 5%;
  }
  
  .floating-badge.fb-2 {
    right: 10px;
    bottom: 5%;
  }
  
  .quick-link-box {
    flex-direction: column;
    text-align: center;
  }
  
  .quick-link-box .glow-btn, .quick-link-box .sec-btn {
    width: 100%;
    justify-content: center;
  }
}
