:root {
  --primary: #2196f3;
  --primary-dark: #1565c0;
  --secondary: #03a9f4;
  --bg-light: #f8f9fa;
  --text-dark: #1c1c1c;
  --text-gray: #5f6368;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 16px;
  --success: #4caf50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 80px;
}

a { 
  text-decoration: none; 
  color: inherit; 
}

.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 30px 15px;
  position: relative;
  color: var(--white);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.app-header-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.app-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.app-info h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.app-category {
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 500;
}

.app-mini-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 50px;
  width: fit-content;
  backdrop-filter: blur(5px);
}

.container {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 15px;
}

.section-header {
  margin-bottom: 25px;
  text-align: center;
}

.section-title { 
  font-size: 22px; 
  font-weight: 800; 
  margin-bottom: 8px; 
  color: var(--text-dark); 
}

.section-subtitle { 
  color: var(--text-gray); 
  font-size: 14px; 
}

.download-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.download-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.version-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 15px;
  background: var(--bg-light);
  border-radius: 12px;
  min-width: 100px;
  flex: 1;
  max-width: 120px;
}

.trust-badge i {
  font-size: 26px;
  color: var(--primary);
}

.trust-badge .badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.trust-badge .badge-desc {
  font-size: 10px;
  color: var(--text-gray);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  margin: 25px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--success), #388e3c);
  color: var(--white);
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
  text-decoration: none;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  font-size: 16px;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--success), #388e3c);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-apkpure {
  background: linear-gradient(135deg, #00c853, #00a344);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
}

.btn-apkpure:hover {
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
}

.btn-mediafire {
  background: linear-gradient(135deg, #1299f3, #0d7ec5);
  box-shadow: 0 4px 16px rgba(18, 153, 243, 0.4);
}

.btn-mediafire:hover {
  box-shadow: 0 6px 20px rgba(18, 153, 243, 0.5);
}

.btn-drive {
  background: linear-gradient(135deg, #4285f4, #3367d6);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
}

.btn-drive:hover {
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-light);
}

.btn-secondary i {
  animation: none;
}

.quick-steps {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(33, 150, 243, 0.1));
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: right;
}

.quick-steps-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.quick-steps-title i {
  color: var(--primary);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: var(--primary);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-dark);
  padding-top: 3px;
  line-height: 1.6;
}

.simple-note {
  background: rgba(33, 150, 243, 0.08);
  border-right: 3px solid var(--primary);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: right;
}

.simple-note p {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
}

.simple-note i {
  color: var(--primary);
  margin-left: 6px;
  font-size: 14px;
}

.simple-note strong {
  color: var(--primary);
  font-weight: 700;
}

/* قسم الشرح المفصل */
.app-description {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.app-description h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 15px;
  text-align: center;
}

.app-description p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: justify;
}

.app-description h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-description h4 i {
  font-size: 18px;
}

.app-description ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px 20px;
}

.app-description ul li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 8px;
  position: relative;
  padding-right: 20px;
}

.app-description ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}

.benefits-list {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
}

.benefits-list h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}

/* In-App Browser Warning */
.in-app-browser-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.warning-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.warning-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon i {
  font-size: 35px;
  color: #ff9800;
}

.warning-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.warning-card > p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.browser-steps {
  text-align: right;
  background: var(--bg-light);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.browser-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.browser-step:last-child {
  margin-bottom: 0;
}

.step-num {
  background: var(--primary);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-txt {
  flex: 1;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
}

.copy-url-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.copy-url-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.copy-url-btn:active {
  transform: translateY(0);
}

.open-in-browser-btn {
  width: 100%;
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-top: 12px;
}

.open-in-browser-btn:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.open-in-browser-btn:active {
  transform: translateY(0);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary);
}

.feature-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-md); 
}

.feature-title { 
  font-weight: 700; 
  font-size: 16px; 
  margin-bottom: 8px; 
  color: var(--primary-dark); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.feature-desc { 
  font-size: 13px; 
  color: var(--text-gray);
  line-height: 1.6;
}

.testimonials {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.testimonial {
  background: var(--bg-light);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 12px;
  border-right: 4px solid var(--primary);
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer {
  text-align: center;
  padding: 30px 15px;
  background: var(--white);
  border-top: 1px solid #eee;
  margin-top: 30px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer p { 
  font-size: 13px; 
  color: var(--text-gray); 
  margin-bottom: 4px; 
}

.footer a { 
  color: var(--primary); 
  font-weight: 600; 
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 10px 15px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee;
}

.mobile-app-info { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.mobile-app-icon { 
  width: 40px; 
  height: 40px; 
  border-radius: 8px;
  overflow: hidden;
}

.mobile-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-app-text h4 { 
  font-size: 13px; 
  margin: 0; 
}

.mobile-app-text span { 
  font-size: 11px; 
  color: var(--text-gray); 
}

.mobile-download-btn {
  padding: 10px 18px !important;
  font-size: 13px !important;
  background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

/* قائمة التحميل المنسدلة للموبايل */
.mobile-download-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-download-menu.active {
  display: block;
  opacity: 1;
}

.download-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.download-menu-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-download-menu.active .download-menu-content {
  transform: translateY(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}

.menu-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.menu-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-dark);
}

.menu-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.menu-close i {
  font-size: 16px;
}

.menu-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: 15px;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.menu-option:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.option-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-icon i {
  font-size: 22px;
}

.option-text {
  flex: 1;
  text-align: right;
}

.option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.option-desc {
  font-size: 12px;
  color: var(--text-gray);
}

.option-arrow {
  font-size: 14px;
  color: var(--text-gray);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .app-header-content { 
    gap: 12px;
  }
  
  .app-logo { 
    width: 60px; 
    height: 60px; 
  }

  .app-info h1 {
    font-size: 18px;
  }

  .download-section {
    padding: 25px 15px;
  }

  .download-section h2 {
    font-size: 20px;
  }

  .trust-badges {
    gap: 8px;
  }

  .trust-badge {
    min-width: 85px;
    padding: 10px 12px;
  }

  .trust-badge i {
    font-size: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .app-description {
    padding: 20px 15px;
  }
  
  .app-description h3 {
    font-size: 18px;
  }
  
  .app-description h4 {
    font-size: 16px;
  }
}

@media (min-width: 601px) {
  .mobile-sticky-bar { 
    display: none; 
  }
  
  body { 
    padding-bottom: 0; 
  }
  
  .mobile-download-menu {
    display: none !important;
  }
}
/* حاوية المعرض */
.app-screenshots-section {
  width: 100%;
  max-width: 1200px; /* أقصى عرض للكمبيوتر */
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
}

/* شريط التمرير السلس */
.scrolling-wrapper {
  display: flex;
  flex-wrap: nowrap; /* يمنع نزول الصور لسطر جديد */
  overflow-x: auto; /* يسمح بالتمرير الأفقي */
  gap: 20px; /* مسافة بين الصور */
  padding: 10px 20px; /* هوامش داخلية */
  
  /* خاصية السناب (المغناطيس) */
  scroll-snap-type: x mandatory; 
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* نعومة فائقة للآيفون */
  
  /* إخفاء شريط التمرير للمتصفحات المختلفة */
  scrollbar-width: none; /* لمتصفح فايرفوكس */
  -ms-overflow-style: none;  /* لمتصفح انترنت اكسبلورر */
}

/* إخفاء شريط التمرير لكروم وسفاري */
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}

/* تنسيق الكارت (الصورة) */
.card {
  flex: 0 0 auto; /* يمنع تقلص الصورة */
  width: 180px; /* عرض ثابت للصورة في الموبايل */
  border-radius: 15px;
  scroll-snap-align: center; /* الصورة تقف في المنتصف عند السحب */
  transition: transform 0.3s ease; /* أنيميشن ناعم */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* ظل خفيف */
  overflow: hidden;
  border: 2px solid #fff;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- تحسينات الكمبيوتر --- */
@media (min-width: 768px) {
  .card {
    width: 220px; /* تكبير الصور على الشاشات الأكبر */
    cursor: pointer;
  }

  /* تأثير عند وقوف الماوس على الكمبيوتر */
  .card:hover {
    transform: translateY(-10px) scale(1.02); /* الصورة تطفو للأعلى */
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.3); /* ظل أزرق */
    border-color: #2196f3; /* إطار أزرق */
  }
}