@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #F8F9FA;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --burgundy: #9E1B43;
  --burgundy-dark: #7E1434;
  --green-wa: #166534;
  --green-wa-hover: #14532D;
  --border: #E5E7EB;
  --hero-grad: linear-gradient(135deg, #FDF2F4 0%, #F9FAFB 55%, #F3F4F6 100%);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 25px rgba(17, 24, 39, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}
html[dir="rtl"] body { font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 92%; max-width: 1180px; margin: 0 auto; }

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.4px;
  color: var(--text-main);
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--burgundy); font-weight: 700; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-switch a.current {
  background: #111827;
  color: #FFFFFF;
}
.btn-wa-nav {
  background: var(--green-wa);
  color: #FFFFFF !important;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}
.btn-wa-nav:hover { background: var(--green-wa-hover); }

/* Hero Section (Matching Screenshot 1) */
.hero {
  background: var(--hero-grad);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 14px;
}
.hero p.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-burgundy { background: var(--burgundy); color: #FFFFFF; }
.btn-burgundy:hover { background: var(--burgundy-dark); }
.btn-green { background: var(--green-wa); color: #FFFFFF; }
.btn-green:hover { background: var(--green-wa-hover); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--burgundy); color: var(--burgundy); }

.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.hero-stat-card .mini-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--burgundy);
  text-transform: uppercase;
}
.hero-stat-card .big-num {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 6px 0 4px;
  color: var(--text-main);
}
.hero-stat-card .countries {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Sections */
section { padding: 54px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 1.65rem; font-weight: 800; color: var(--text-main); }
.sec-head p { color: var(--text-muted); font-size: 0.96rem; margin-top: 4px; }

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.server-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.server-header img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #F9FAFB; padding: 4px; border: 1px solid var(--border); }
.server-header h3 { font-size: 1.15rem; font-weight: 800; }

.price-big { font-size: 2rem; font-weight: 900; color: var(--burgundy); margin: 4px 0; }
.sub-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }

.check-list { list-style: none; margin-bottom: 20px; }
.check-list li {
  font-size: 0.88rem;
  color: #374151;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-list li::before { content: "✓"; color: var(--burgundy); font-weight: 900; }

/* Server App Groups (Screenshot 2 Style) */
.group-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}
.group-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.app-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.app-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FAFAFA;
}
.app-mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.app-mini h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.dl-code { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.dl-code strong { color: var(--burgundy); font-weight: 800; }
.app-desc { font-size: 0.78rem; color: var(--text-muted); }

.badge-free { display: inline-block; background: #DCFCE7; color: #166534; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.badge-paid { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }

/* TV Box Showcase */
.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.box-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.box-gallery img { border-radius: 12px; border: 1px solid var(--border); background: #FFFFFF; padding: 8px; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
summary { font-weight: 700; cursor: pointer; font-size: 0.98rem; }
details p { margin-top: 10px; color: var(--text-muted); font-size: 0.92rem; }

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0 80px;
  margin-top: 40px;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--burgundy); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--green-wa);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.35);
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wa-float:hover { background: var(--green-wa-hover); transform: translateY(-2px); }
html[dir="rtl"] .wa-float { right: auto; left: 20px; }

@media (max-width: 768px) {
  .hero-grid, .box-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.95rem; }
}
