/* 
 * ملف الأنماط الرئيسي الموحد — موقع MobCash Tanzil
 * التصميم: واجهة عصرية فاتحة (Modern Light Fintech Theme)
 * الاتجاه: من اليمين إلى اليسار (RTL)
 * الخط الأساسي: Cairo
 * التصميم متجاوب مع الهواتف أولاً (Mobile-First Responsive Design)
 */

:root {
  /* لوحة الألوان الرئيسية */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f1f5f9;
  --bg-surface-hover: #f8fafc;
  --bg-footer: #0a0f1d;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  /* الألوان التفاعلية الزاهية (Vibrant Accent Colors) */
  --primary: #00b050;
  --primary-bright: #00d662;
  --primary-hover: #009944;
  --primary-dark: #007a36;
  --primary-light: rgba(0, 176, 80, 0.12);
  --primary-gradient: linear-gradient(135deg, #00d662 0%, #00b050 50%, #00873d 100%);
  
  --secondary: #1e40af;
  --secondary-hover: #172554;
  --secondary-light: rgba(30, 64, 175, 0.08);
  
  /* لون تيليجرام الزاهي */
  --telegram: #0088cc;
  --telegram-bright: #29b6f6;
  --telegram-hover: #0077b5;
  --telegram-gradient: linear-gradient(135deg, #29b6f6 0%, #0088cc 50%, #006699 100%);
  
  /* لون الذهب والتنبيه */
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  
  --danger: #ef4444;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;
  
  /* الظلال والتوهجات (Glows & Shadows) */
  --shadow-xs: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
  
  /* توهج أزرار الـ CTA البارزة */
  --glow-primary: 0 10px 25px -4px rgba(0, 176, 80, 0.5), 0 4px 10px -2px rgba(0, 176, 80, 0.3);
  --glow-telegram: 0 10px 25px -4px rgba(0, 136, 204, 0.5), 0 4px 10px -2px rgba(0, 136, 204, 0.3);
  
  /* الانحناءات */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  /* الخطوط */
  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 1. تصفير وإعدادات أساسية (Reset & Base) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 10px;
  padding-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

i.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* 2. الحاوية (Container) */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 3. الترويسة وشريط التنقل (Header & Navigation) */
.site-header, .main-header, .raas {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.logo .cash-accent, .logo .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #00d662 0%, #00b050 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle, .menu-toggle {
  display: none;
}

.nav-toggle-label, .menu-icon, .hamburger-menu {
  display: none;
  font-size: 1.85rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
}

.main-nav, .navbar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links, nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a, nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links li a:hover, nav ul li a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-links li a.active, nav ul li a.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 800;
}

/* زر التحميل في الهيدر */
.btn-header-download, .nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 176, 80, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.btn-header-download:hover, .nav-download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--glow-primary);
}

/* 4. مسار التنقل (Breadcrumb) */
.breadcrumb-container, .breadcrumb-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.breadcrumb, .breadcrumb-container ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.breadcrumb li, .breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb li:not(:last-child)::after {
  content: '\F284'; /* bi-chevron-left */
  font-family: bootstrap-icons;
  font-size: 0.75rem;
  margin-right: 6px;
  color: var(--text-light);
}

.breadcrumb li.active, .breadcrumb li:last-child {
  color: var(--primary);
  font-weight: 700;
}

/* 5. قسم البطل (Hero Section) */
.hero-section, .batal {
  padding: 16px 0 36px;
}

.hero-container, .hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.hero-content {
  flex: 1.3;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.developer-info, .developer-line {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: inline-block;
  background-color: var(--bg-surface-soft);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface-soft) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.stat-item i.bi {
  color: var(--gold);
  font-size: 1.1rem;
}

.stat-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border);
}

/* زر التحميل الرئيسي */
.hero-download-btn, .btn-download-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-size: 1.18rem;
  font-weight: 900;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 14px;
}

.hero-download-btn i, .btn-download-hero i {
  font-size: 1.35rem;
  transition: transform 0.25s ease;
}

.hero-download-btn:hover, .btn-download-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(0, 176, 80, 0.6);
}

.hero-download-btn:hover i, .btn-download-hero:hover i {
  transform: translateY(3px);
}

.file-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.trust-badges, .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge, .security-badge, .partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.security-badge, .badge-safe {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.partner-badge, .badge-partner {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* صورة الموكاب في الهيرو — حجم رشيق ومنظم */
.hero-image {
  flex: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 220px;
  max-height: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
  object-fit: contain;
}

/* 6. بطاقات المحتوى والعناوين (Cards & Sections) */
.page-title {
  font-size: 2.1rem;
  text-align: center;
  margin: 16px 0 20px;
  color: var(--text-main);
  line-height: 1.35;
}

.section-title, .page-content h2, .content-section h2, .article-section h2, .login-steps h2, .get-credentials h2, .why-app h2, .login-issues h2, .new-agent-steps h2 {
  font-size: 1.55rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.section-title i, h2 i {
  color: var(--primary);
  font-size: 1.35rem;
}

.card, .content-card, .article-card, .detail-card, .feature-card, .issue-card, .step-card, .login-steps, .get-credentials, .why-app, .login-issues, .new-agent-steps, .content-section, .article-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 28px;
}

.card:hover, .content-card:hover, .feature-card:hover, .issue-card:hover {
  border-color: rgba(0, 176, 80, 0.35);
  box-shadow: var(--shadow-md);
}

/* 7. التنبيهات وصناديق الملاحظات (Alerts & Callouts) */
.alert, .alert-box, .tanbih {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  border-right: 5px solid;
  box-shadow: var(--shadow-xs);
}

.alert i, .alert-box i, .tanbih i {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert h2, .alert h3, .alert-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.alert p {
  line-height: 1.75;
  font-size: 0.98rem;
}

.alert-warning, .tanbih-tahthir {
  background-color: var(--warning-bg);
  border-color: var(--warning);
  color: #92400e;
}

.alert-warning h2, .alert-warning h3, .alert-warning i {
  color: #b45309;
}

.alert-warning p {
  color: #78350f;
}

.alert-info, .tanbih-malooma {
  background-color: #eff6ff;
  border-color: var(--secondary);
  color: #1e3a8a;
}

.alert-info h2, .alert-info h3, .alert-info i {
  color: var(--secondary);
}

.alert-success, .tanbih-najah {
  background-color: #f0fdf4;
  border-color: var(--primary);
  color: #14532d;
}

.alert-success h2, .alert-success h3, .alert-success i {
  color: var(--primary);
}

/* 8. شبكات العرض والمميزات (Grids & Layouts) */
.details-grid, .app-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 24px 0 6px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 0;
  font-size: 0.94rem;
  border-radius: var(--radius-md);
}

.detail-card i {
  font-size: 1.35rem;
  color: var(--primary);
  background-color: var(--primary-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin: 28px 0 8px;
}

.feature-card {
  text-align: right;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

/* 9. شبكة المشاكل والحلول (Issues Grid) */
.issues-grid, .problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 24px 0 6px;
}

.issue-card, .problem-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-bottom: 0;
  box-shadow: var(--shadow-xs);
}

.issue-card h3, .problem-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.issue-card h3 i, .problem-card h3 i {
  color: var(--secondary);
}

/* 10. الخطوات المترابطة (Step by Step Lists) */
.steps-container, .steps-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.steps-list, ol.steps-list, .login-steps ol {
  position: relative;
  padding-right: 50px;
  margin: 20px 0;
}

.steps-list::before, ol.steps-list::before, .login-steps ol::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 18px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 176, 80, 0.2) 100%);
}

.step-item, li.step-item, .login-steps ol li {
  position: relative;
  margin-bottom: 28px;
}

.step-item:last-child, .login-steps ol li:last-child {
  margin-bottom: 0;
}

.step-number, span.step-number, .login-steps ol li::before {
  position: absolute;
  right: -50px;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--bg-surface), 0 3px 8px rgba(0, 176, 80, 0.3);
}

.login-steps ol {
  counter-reset: step-counter;
}

.login-steps ol li {
  counter-increment: step-counter;
}

.login-steps ol li::before {
  content: counter(step-counter);
}

.step-content {
  padding-right: 10px;
}

.step-content h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

/* شبكة الخطوات الأفقية السريعة */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}

.step-box, .steps-grid .step {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xs);
}

.step-box:hover, .steps-grid .step:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-box i, .steps-grid .step i {
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: inline-block;
}

.step-box p, .steps-grid .step p {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-main);
  margin: 0;
}

/* 11. الأسئلة الشائعة (FAQ Accordion) */
.faq-section {
  margin: 32px 0;
}

details.faq-item, .faq-section details {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

details.faq-item:hover, .faq-section details:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary, .faq-section details summary {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker,
.faq-section details summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after,
.faq-section details summary::after {
  content: '\F282'; /* bi-chevron-down */
  font-family: bootstrap-icons;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

details.faq-item[open] summary::after,
.faq-section details[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}

details.faq-item[open] summary,
.faq-section details[open] summary {
  border-bottom: 1px solid var(--border-light);
  color: var(--primary);
  background-color: rgba(0, 176, 80, 0.04);
}

.faq-answer, .faq-content, details.faq-item p, .faq-section details p {
  padding: 18px 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  background-color: #fafcfb;
}

/* 12. الجداول (Data Tables) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.data-table, .commission-table, .req-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: right;
}

.data-table th, .commission-table th, .req-table th {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.data-table td, .commission-table td, .req-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.data-table tr:last-child td, .commission-table tr:last-child td, .req-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover, .commission-table tr:hover, .req-table tr:hover {
  background-color: var(--primary-light);
}

/* 
 * 13. شبكة لقطات الشاشة المتناسقة (Even 3-Column Screenshots Grid)
 * شبكة متوازنة ومتناسقة تماماً لجميع الشاشات بدون أي تشوه
 */
.screenshots-section {
  padding: 10px 0;
}

.screenshots-gallery, .screenshots-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 16px auto 8px;
  justify-items: center;
  align-items: center;
}

.screenshot-frame, .screenshot-item, .screenshots-gallery > img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 9 / 18.5;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border);
  background: #ffffff;
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.screenshot-frame img, .screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  display: block;
}

.screenshot-frame:hover, .screenshot-item:hover, .screenshots-gallery > img:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* 
 * 14. الصور داخل المحتوى (Organic In-Content Images)
 * مدمجة بحجم مريح ومحكوم وغير طاغٍ على الشاشة
 */
.image-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto;
  text-align: center;
}

.image-center img, .section-img {
  max-width: 380px;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.image-center img:hover, .section-img:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

/* 15. بانرات وأزرار الدعوة لاتخاذ إجراء (CTA Banners & Buttons) */
.cta-section, .earnings-cta, .cta-banner {
  background: linear-gradient(135deg, #0b6e38 0%, #064e26 50%, #022e16 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  margin: 44px 0;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-section::before, .earnings-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 214, 98, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2, .earnings-cta h2, .cta-banner h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 14px;
  justify-content: center;
}

.cta-section p, .earnings-cta p, .cta-banner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.cta-buttons, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* الفئات العامة للأزرار بتصميم لامع وواضح جداً */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* زر التحميل الأخضر الرئيسي (Vibrant Emerald Button) */
.btn-primary, .btn-green, .btn-download {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-green:hover, .btn-download:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px -2px rgba(0, 176, 80, 0.65);
}

/* زر التحميل الأبيض النقي داخل بانرات الـ CTA الخضراء */
.cta-section .btn-primary, .earnings-cta .btn-primary {
  background: #ffffff;
  color: #065f38 !important;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
}

.cta-section .btn-primary:hover, .earnings-cta .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  color: #00b050 !important;
}

/* زر تيليجرام الأزرق الزاهي والواضح جداً */
.btn-telegram {
  background: var(--telegram-gradient);
  color: #ffffff !important;
  box-shadow: var(--glow-telegram);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-telegram:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px -2px rgba(0, 136, 204, 0.65);
}

.btn-large, .btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
}

.manager-contact {
  background-color: var(--bg-surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 20px;
}

.manager-contact p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* 16. بطاقات الأرباح (Earnings Cards) */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.earning-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.earning-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.earning-card h3 {
  color: #fde047;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.earning-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin: 0;
}

/* 17. بطاقات الصفحات والتنقل الداخلي (Page Cards & Links) */
.pages-grid, .internal-links-grid, .bitaqat-safahat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 6px;
}

.page-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.page-card i {
  font-size: 1.4rem;
  color: var(--primary);
  background-color: var(--primary-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0 6px;
}

.features-list li {
  background-color: var(--bg-surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-main);
}

.features-list li i {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.internal-links, .internal-links-section {
  margin-top: 32px;
  margin-bottom: 20px;
}

.internal-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.internal-links ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.96rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.internal-links ul li a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

/* 18. التذييل (Footer) */
.site-footer, .main-footer, footer {
  background-color: var(--bg-footer);
  color: #94a3b8;
  padding-top: 56px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid, .footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col h4, .footer-col h3, .footer-info h4, .footer-info h3, .footer-links h4, .footer-contact h4, .footer-about h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after, .footer-col h3::after, .footer-links h4::after, .footer-contact h4::after, .footer-about h4::after, .footer-info h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.footer-col p, .footer-about p, .footer-info p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-col ul, .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a, .footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover, .footer-links a:hover {
  color: var(--primary-bright);
  transform: translateX(-4px);
}

.footer-bottom {
  background-color: #050811;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
}

.disclaimer {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 8px !important;
}

/* 19. زر الصعود للأعلى (Scroll to top) */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--glow-primary);
  cursor: pointer;
  z-index: 99;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.08);
}

/* 20. شريط التحميل السفلي للهاتف (Sticky Mobile Bar) */
.sticky-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--border);
  z-index: 999;
}

.sticky-download-bar .btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 1.05rem;
}

/* 21. فئات مساعدة (Utilities) */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-4 { padding: 1.5rem; }
.p-5 { padding: 2.5rem; }

.rounded { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.bg-light { background-color: var(--bg-surface-soft); }

/* 
 * 22. التوافق والاستجابة للهواتف المحمولة أولاً (Mobile-First Responsive Rules)
 * منع أي تمدد كامل أو صور عملاقة على الشاشات الصغيرة
 */
@media (max-width: 992px) {
  .footer-grid, .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .hero-container, .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-image img {
    max-width: 190px;
    max-height: 290px;
  }
  
  .stats-row, .trust-badges, .badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .card, .content-card, .login-steps, .get-credentials, .why-app, .login-issues, .new-agent-steps {
    padding: 22px 16px;
    margin-bottom: 20px;
  }
  
  .cta-section, .earnings-cta {
    padding: 32px 18px;
    margin: 32px 0;
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .nav-toggle-label, .menu-icon, .hamburger-menu {
    display: block;
  }
  
  .main-nav, .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 14px;
  }
  
  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .navbar,
  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }
  
  .nav-links, nav ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
  
  .nav-links li, nav ul li {
    width: 100%;
  }
  
  .nav-links li a, nav ul li a {
    width: 100%;
    padding: 10px 14px;
  }
  
  .btn-header-download, .nav-download-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
  }
  
  .footer-grid, .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .sticky-download-bar {
    display: block;
  }
  
  body {
    padding-bottom: 70px;
  }
  
  .steps-list, .login-steps ol {
    padding-right: 42px;
  }
  
  .step-number, .login-steps ol li::before {
    right: -42px;
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }
  
  .btn-large, .btn-lg, .hero-download-btn {
    width: 100%;
    padding: 15px 22px;
    font-size: 1.08rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* شبكة لقطات الشاشة المتناسقة على الشاشات المتوسطة والموبايل */
  .screenshots-gallery, .screenshots-scroll {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 12px auto 6px;
    padding: 0;
  }
  
  .screenshot-frame, .screenshot-item, .screenshots-gallery > img {
    max-width: 100%;
    border-radius: 14px;
    border-width: 2px;
    padding: 2px;
  }
  
  /* منع الصور العادية من الاستيلاء على كامل شاشة الهاتف */
  .image-center img, .section-img {
    max-width: 240px;
    max-height: 180px;
    border-radius: var(--radius-sm);
  }
  
  .hero-image img {
    max-width: 160px;
    max-height: 240px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  
  .hero-card {
    padding: 24px 16px;
  }
  
  .hero-image img {
    max-width: 140px;
  }
  
  .screenshots-gallery, .screenshots-scroll {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .screenshot-frame, .screenshot-item, .screenshots-gallery > img {
    border-radius: 10px;
    border-width: 1.5px;
    padding: 1px;
  }
  
  .image-center img, .section-img {
    max-width: 210px;
    max-height: 160px;
  }
}
