/* ===================================================================
   ALTAIE STORE - PREMIUM IPTV THEME (NETFLIX OBSIDIAN & GOLD/NEON)
   Fully Optimized for Desktop, Tablets & Mobile Screens (iOS & Android)
   =================================================================== */

:root {
  --bg-main: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #141c2e;
  --bg-glass: rgba(14, 19, 31, 0.85);
  --bg-glass-card: rgba(18, 25, 42, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 184, 0, 0.4);
  --border-cyan: rgba(0, 242, 254, 0.4);

  --accent-gold: #f5b800;
  --accent-gold-light: #fff099;
  --accent-gold-glow: rgba(245, 184, 0, 0.3);
  
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.3);
  --accent-green: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gradient-gold: linear-gradient(135deg, #fff2a3 0%, #f5b800 50%, #d48800 100%);
  --gradient-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-hero-bg: radial-gradient(circle at 50% 20%, rgba(245, 184, 0, 0.1) 0%, rgba(0, 242, 254, 0.05) 40%, rgba(7, 9, 14, 1) 85%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --shadow-glow-gold: 0 10px 30px -5px rgba(245, 184, 0, 0.35);
  --shadow-glow-cyan: 0 10px 30px -5px rgba(0, 242, 254, 0.35);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.7);

  --font-en: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family: var(--font-ar); /* Default Arabic */
}

[lang="en"] {
  --font-family: var(--font-en);
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(245, 184, 0, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Global text wrapping protection */
h1, h2, h3, h4, h5, h6, p, span, a, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

/* Ambient Glow Blobs */
.ambient-glow {
  position: absolute;
  width: min(380px, 90vw);
  height: min(380px, 90vw);
  max-width: 100vw;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.ambient-gold {
  background: rgba(245, 184, 0, 0.12);
  top: 100px;
  right: 0;
}

.ambient-cyan {
  background: rgba(0, 242, 254, 0.1);
  top: 400px;
  left: 0;
}

/* ===================================================================
   NAVIGATION HEADER
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(245, 184, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 184, 0, 0.3));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Language Switcher Pill */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 3px;
  cursor: pointer;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--gradient-gold);
  color: #07090e;
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  padding: 130px 0 70px;
  background: var(--gradient-hero-bg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-text-content {
  width: 100%;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(245, 184, 0, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(245, 184, 0, 0.15);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

[dir="rtl"] .hero-title {
  line-height: 1.38;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 620px;
  width: 100%;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  width: 100%;
  max-width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-gold);
  color: #07090e;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 40px;
  box-shadow: var(--shadow-glow-gold);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 184, 0, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 40px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-secondary:hover {
  border-color: var(--border-cyan);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

/* Stats Counter Bar */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.stat-num span {
  color: var(--accent-gold);
}

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

/* Hero Visual Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-visual-frame {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  animation: float 6s ease-in-out infinite;
}

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

/* ===================================================================
   DOWNLOAD SECTION (DYNAMIC APP CARDS)
   =================================================================== */
.download-section {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-main) 0%, #0a0e18 50%, var(--bg-main) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.download-card {
  position: relative;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border-subtle);
  transition: background 0.3s ease;
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

.card-mobile:hover, .card-android:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 16px 40px -10px var(--accent-cyan-glow);
}
.card-mobile::before, .card-android::before {
  background: var(--gradient-cyan);
}

.card-tv:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px -10px var(--accent-gold-glow);
}
.card-tv::before {
  background: var(--gradient-gold);
}

.card-windows:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.25);
}
.card-windows::before {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.card-badge-top {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

[dir="rtl"] .card-badge-top {
  right: auto;
  left: 20px;
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease;
}

.card-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.card-platform-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.card-platform-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.card-specs-list {
  list-style: none;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-specs-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-specs-list li span:last-child {
  color: #fff;
  font-weight: 600;
}

.card-downloader-code {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 184, 0, 0.08);
  border: 1px dashed rgba(245, 184, 0, 0.38);
  text-align: center;
}

.card-downloader-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 700;
}

.card-downloader-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-downloader-value code {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  font-family: inherit;
}

.btn-copy-code {
  border: 1px solid rgba(245, 184, 0, 0.4);
  background: rgba(245, 184, 0, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-copy-code:hover,
.btn-copy-code.copied {
  background: var(--accent-gold);
  color: #07090e;
  border-color: var(--accent-gold);
}

.btn-card-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: auto;
  text-align: center;
  min-height: 48px;
}

.btn-card-download svg {
  width: 18px;
  height: 18px;
}

.btn-download-mobile, .btn-download-android {
  background: var(--gradient-cyan);
  color: #07090e;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.25);
}

.btn-download-tv {
  background: var(--gradient-gold);
  color: #07090e;
  box-shadow: 0 6px 20px rgba(245, 184, 0, 0.25);
}

.btn-download-windows {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.card-footer-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================================
   PRICING / SUBSCRIPTION PLANS SECTION (PREMIUM CARDS)
   =================================================================== */
.pricing-section {
  padding: 85px 0;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(245, 184, 0, 0.06) 0%, transparent 60%);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  background: linear-gradient(180deg, #0e1424 0%, #080c16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 184, 0, 0.35);
  box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.85);
}

/* Featured / Best Value (1 Year) Plan */
.pricing-card.featured {
  background: linear-gradient(180deg, #172138 0%, #0c1122 100%);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 16px 45px -8px var(--accent-gold-glow);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 24px 50px -5px rgba(245, 184, 0, 0.4);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #07090e;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(245, 184, 0, 0.45);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.plan-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.plan-badge-pill {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price-box {
  margin: 12px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-sub-tag {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  margin-top: 4px;
  opacity: 0.9;
}

/* Features List & BULLETPROOF CHECKMARK BADGE */
.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex-grow: 1;
  padding: 0;
}

.plan-features-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Strictly constrained circular badge - CANNOT TAKE OVER SCREEN */
.feat-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.feat-check svg {
  display: block !important;
  width: 11px !important;
  min-width: 11px !important;
  max-width: 11px !important;
  height: 11px !important;
  min-height: 11px !important;
  max-height: 11px !important;
  stroke: #10b981 !important;
  fill: none !important;
}

.pricing-card.featured .feat-check {
  background: rgba(245, 184, 0, 0.15) !important;
  border-color: rgba(245, 184, 0, 0.5) !important;
}

.pricing-card.featured .feat-check svg {
  stroke: #f5b800 !important;
}

.feat-text {
  flex: 1;
}

/* WhatsApp Order Button */
.btn-plan-order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 13px 18px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  text-align: center !important;
  min-height: 48px !important;
  text-decoration: none !important;
}

.btn-plan-order.btn-featured {
  background: var(--gradient-gold) !important;
  color: #07090e !important;
  box-shadow: 0 6px 20px rgba(245, 184, 0, 0.3) !important;
}

.btn-plan-order.btn-featured:hover {
  box-shadow: 0 10px 25px rgba(245, 184, 0, 0.5) !important;
  transform: translateY(-2px);
}

.btn-plan-order.btn-standard {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.btn-plan-order.btn-standard:hover {
  border-color: var(--border-gold) !important;
  background: rgba(245, 184, 0, 0.1) !important;
  color: var(--accent-gold) !important;
  transform: translateY(-2px);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 184, 0, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-gold);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===================================================================
   SCREENSHOTS SECTION & LIGHTBOX
   =================================================================== */
.screenshots-section {
  padding: 80px 0;
  background: #090d16;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.screenshot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
}

.screenshot-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.screenshot-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.screenshot-info {
  padding: 16px 18px;
}

.screenshot-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.modal-content img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ===================================================================
   INSTALLATION STEPS
   =================================================================== */
.guide-section {
  padding: 80px 0;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.step-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

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

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.25s ease;
}

.social-btn.whatsapp:hover {
  background: #25D366;
  color: #000;
  border-color: #25D366;
}

.social-btn.telegram:hover {
  background: #229ED9;
  color: #fff;
  border-color: #229ED9;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===================================================================
   MOBILE & TABLET RESPONSIVE FIXES (Flawless UX on all devices)
   =================================================================== */

@media (max-width: 1080px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 70px;
  }
  .header-inner {
    height: 70px;
    padding: 0 15px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Hero Mobile Layout */
  .hero-section {
    padding: 100px 0 45px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
    padding: 0 4px;
  }

  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 28px;
    gap: 12px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 13px 20px;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-visual-frame {
    max-width: 100%;
  }
}

/* ===================================================================
   MOBILE FIXES (max-width: 768px):
   - Reduced hero font size & description paragraph
   - Side padding on text containers (padding: 0 15px)
   - Flex-wrap and stacking for the stats section
   - Word wrap protection for long Arabic sentences
   =================================================================== */
@media (max-width: 768px) {
  /* Text containers side padding so text never touches screen edge */
  .container {
    padding: 0 15px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-text-content {
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .section-header {
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Significantly reduced font size for hero headline & description paragraph */
  .hero-title {
    font-size: 1.8rem !important; /* Prevents horizontal overflowing */
    line-height: 1.35;
    margin-bottom: 14px;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 0 4px;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Stats Section at bottom: flex-wrap with nice stacking and column gaps */
  .hero-stats-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px 14px !important;
    padding: 18px 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-item {
    flex: 1 1 calc(50% - 14px) !important;
    min-width: 120px !important;
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 8px 6px !important;
  }

  .stat-num {
    font-size: 1.35rem !important;
    justify-content: center !important;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .stat-label {
    font-size: 0.76rem !important;
    text-align: center !important;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 90px 0 35px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.32;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    margin-bottom: 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .download-cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .download-card {
    padding: 22px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
  }

  .pricing-card {
    padding: 26px 16px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .features-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .feature-box {
    padding: 22px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .steps-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .step-item {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-social-links {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-btn {
    flex: 1 1 140px;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem !important; /* approx 24px */
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
  }

  .hero-stats-row {
    gap: 12px 8px !important;
  }

  .stat-item {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 105px !important;
  }

  .stat-num {
    font-size: 1.2rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 380px) {
  .hero-section {
    padding: 85px 0 28px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 1.35rem !important;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .stat-item {
    flex: 1 1 100% !important; /* Clean vertical stack on narrowest screens */
    min-width: 100% !important;
  }

  .footer-social-links {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }
}
