/* ==========================================================================
   IPTV STORE - DARK LUXURY PREMIUM THEME (RTL)
   ========================================================================== */

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

:root {
  --bg-main: #080a0f;
  --bg-surface: #0f131d;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(24, 32, 51, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 192, 86, 0.35);
  --border-cyan: rgba(0, 210, 255, 0.35);

  --gold-primary: #e5a93b;
  --gold-light: #fcd34d;
  --gold-gradient: linear-gradient(135deg, #e5a93b 0%, #f59e0b 50%, #b45309 100%);
  --gold-glow: 0 0 25px rgba(229, 169, 59, 0.35);

  --cyan-primary: #00d2ff;
  --cyan-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --cyan-glow: 0 0 25px rgba(0, 210, 255, 0.35);

  --whatsapp-color: #25D366;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --whatsapp-glow: 0 0 25px rgba(37, 211, 102, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #f6c058;
  --text-cyan: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(229, 169, 59, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(58, 123, 213, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Glassmorphic Navbar */
.navbar-custom {
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom.scrolled {
  background: rgba(8, 10, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--border-gold);
}

.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nav-link-custom {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid var(--gold-primary);
}

/* Announcement Top Bar */
.top-announcement {
  background: linear-gradient(90deg, #1e1b18 0%, #2e2413 50%, #1e1b18 100%);
  border-bottom: 1px solid rgba(229, 169, 59, 0.25);
  font-size: 0.88rem;
  padding: 6px 0;
  color: #fef08a;
}

/* Luxury Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-1 {
  background: rgba(229, 169, 59, 0.15);
  top: -100px;
  right: -50px;
}

.hero-glow-2 {
  background: rgba(0, 210, 255, 0.12);
  bottom: 0;
  left: -100px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fff2cc 0%, #f6c058 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 650px;
  margin-bottom: 35px;
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #0b0d13 !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  box-shadow: var(--gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(229, 169, 59, 0.6);
  color: #000 !important;
}

.btn-cyan {
  background: var(--cyan-gradient);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  box-shadow: var(--cyan-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cyan:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
  color: #fff !important;
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light) !important;
  transform: translateY(-2px);
}

.btn-whatsapp-hero {
  background: var(--whatsapp-gradient);
  color: #fff !important;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  box-shadow: var(--whatsapp-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-whatsapp-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.65);
}

/* Feature Counters / Trust Badges */
.trust-stat-box {
  background: rgba(22, 28, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.trust-stat-box:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  background: rgba(28, 36, 56, 0.7);
}

.trust-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Product Cards (Servers & Applications) */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 169, 59, 0.15);
}

.product-card.featured-card {
  border-color: rgba(229, 169, 59, 0.4);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.product-img-wrapper {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.product-img {
  max-height: 140px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

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

.product-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.product-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.5;
  flex-grow: 1;
}

.server-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Pricing Grid in Modal / Card */
.plan-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.plan-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.plan-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
}

.plan-pill.active {
  background: rgba(229, 169, 59, 0.12);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(229, 169, 59, 0.25);
}

.plan-duration {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-pill.active .plan-duration {
  color: var(--gold-light);
}

.plan-price-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-icon-btn {
  width: 62px;
  height: 62px;
  background: var(--whatsapp-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 32px;
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.whatsapp-icon-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-label {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.3);
  color: var(--gold-light);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Why Choose Us Feature Cards */
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 30px 24px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 26px;
  margin-bottom: 20px;
}

/* Modal Styling */
.modal-custom .modal-content {
  background: #0f1422;
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  color: #fff;
}

.modal-custom .modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 28px;
}

.modal-custom .modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 28px;
}

.btn-close-white {
  filter: invert(1);
}

/* Footer */
.footer-custom {
  background: #06080d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: block;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(-5px);
}

.payment-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #e2e8f0;
  display: inline-block;
  margin: 4px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
  }
  .whatsapp-label {
    display: none;
  }
}
