/* الأساسيات */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --gray-color: #6c757d;
    --white: #ffffff;
    --black: #000000;
    
    --font-primary: 'Tajawal', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    direction: rtl;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
  }
  
  .btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .btn-block {
    display: block;
    width: 100%;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
  }
  
  .section-title span {
    color: var(--primary-color);
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* الهيدر */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
  }
  
  .header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-color);
  }
  
  .logo span {
    color: var(--primary-color);
  }
  
  .navbar {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    margin-left: 30px;
  }
  
  .nav-links li {
    margin-left: 20px;
  }
  
  .nav-links a {
    font-weight: 700;
    padding: 8px 15px;
    transition: var(--transition);
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-color);
  }
  
  .nav-buttons {
    margin-right: 30px;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
  }
  


  .hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
  }
  
  .hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .hero-title span {
    color: var(--primary-color);
  }
  
  .hero-text {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 15px;
  }
  
  .hero-image {
    flex: 1;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
  }
  
  /* قسم المميزات */
  .features-section {
    padding: 100px 0;
    background-color: var(--white);
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .feature-card p {
    color: var(--gray-color);
  }
  

  /* قسم النشرة البريدية */
  .newsletter-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .newsletter-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .newsletter-content {
    flex: 1;
    min-width: 300px;
  }
  
  .newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .newsletter-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    background-color: var(--white);
    border-radius: 50px;
    overflow: hidden;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
  }
  
  .newsletter-form button {
    border-radius: 50px;
    padding: 15px 30px;
  }
  
  /* الفوتر */
  .footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-col ul li {
    margin-bottom: 10px;
  }
  
  .footer-col ul li a {
    transition: var(--transition);
    opacity: 0.8;
  }
  
  .footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
  }
  
  .footer-col p {
    opacity: 0.8;
    margin: 20px 0;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-links {
    display: flex;
    gap: 20px;
  }
  
  .footer-links a {
    opacity: 0.8;
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
  }
  
  /* عناصر UI المساعدة */
  .loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: var(--white);
    display: none;
  }
  
  .loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  
  .modal.active .modal-content {
    transform: translateY(0);
  }
  
  .modal-body {
    padding: 30px;
  }
  
  .close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
  }
  
  .close:hover {
    color: var(--danger-color);
  }
  
  .scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .scroll-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
  }
  
  /* الاستجابة للهاتف */
  @media (max-width: 992px) {
    .hero-section .container {
      flex-direction: column;
      text-align: center;
    }
    
    .hero-content {
      margin-bottom: 50px;
    }
    
    .hero-buttons {
      justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .navbar {
      position: fixed;
      top: 80px;
      right: -100%;
      width: 80%;
      max-width: 350px;
      height: calc(100vh - 80px);
      background-color: var(--white);
      flex-direction: column;
      align-items: flex-start;
      padding: 30px;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      transition: var(--transition);
      overflow-y: auto;
    }
    
    .navbar.active {
      right: 0;
    }
    
    .nav-links {
      flex-direction: column;
      margin-left: 0;
      width: 100%;
    }
    
    .nav-links li {
      margin-left: 0;
      margin-bottom: 15px;
    }
    
    .nav-buttons {
      margin-right: 0;
      margin-top: 20px;
      width: 100%;
    }
    
    .menu-toggle {
      display: block;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .hero-title {
      font-size: 2.2rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero-buttons {
      flex-direction: column;
      gap: 10px;
    }
    
    .btn {
      width: 100%;
    }
    
    .newsletter-form {
      flex-direction: column;
      border-radius: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
      width: 100%;
      border-radius: 10px;
    }

    .horizontal-scroll {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 40px;
      }
      
      .horizontal-scroll::-webkit-scrollbar {
        height: 6px;
      }
      
      .horizontal-scroll::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
      }
      /* تنسيقات نافذة الطلب */
.modal-product-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
  }
  
  .modal-product-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
  }
  
  .order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .form-field {
    margin-bottom: 15px;
  }
  
  .form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .form-field input,
  .form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .form-field input:focus,
  .form-field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
  }
  
.order-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
  
  .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .order-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  /* قسم الملف الشخصي */

  
  .profile-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .wallet-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
  }
  
  .profile-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .profile-option-btn {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    text-align: right;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .profile-option-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-5px);
  }
  
  .profile-option-btn.logout:hover {
    background: var(--danger-color);
  }
  
  .orders-history {
    display: none; /* يظهر عند الطلب */
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }

  /* ======  جعل الفوتر في أسفل الصفحة إذا كان المحتوى قصيراً  ====== */
html, body {
    height: 100%;
  }
  
  html, body {
  overscroll-behavior-y: none; /* يمنع سحب الصفحة وإظهار فراغ */
  background: #0d1021;         /* خلي الخلفية نفس لون موقعك */
}

  body {
    display: flex;
    flex-direction: column;
  }
  
  .footer {
    margin-top: auto;   /* يدفع الفوتر إلى الأسفل تلقائياً */
  }
  
  /* عند فتح القائمة في الهاتف امنع تمرير الخلفية */
  body.nav-open {
    overflow: hidden;
  }
  /* أنماط قسم Unlox SD المحسنة */


.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  line-height: 1.3;
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.hero-title .highlight:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-color);
}

.hero-features i {
  color: var(--primary-color);
}

.hero-image {
  position: relative;
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.floating-animation {
  animation: floating 3s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--box-shadow);
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* قسم كيف يعمل المحسن */
.how-it-works-section {
  padding: 100px 0;
  background-color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.step-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(67, 97, 238, 0.1);
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.step-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
}

.video-guide {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.video-container {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.video-container iframe {
  width: 100%;
  height: 315px;
  border: none;
}

.video-description {
  flex: 1;
  min-width: 300px;
}

.video-description h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.video-description p {
  color: var(--gray-color);
  margin-bottom: 20px;
}

/* قسم شهادات العملاء المحسن */
.testimonials-section {
  padding: 100px 0;
  background: #f8fafd;
}

.testimonials-slider {
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative;
  padding-right: 20px;
}

.testimonial-text:before {
  content: '"';
  position: absolute;
  top: -15px;
  right: 0;
  font-size: 3rem;
  color: rgba(67, 97, 238, 0.1);
  font-family: serif;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user {
  font-weight: 700;
  display: block;
}

.user-title {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.testimonials-cta {
  text-align: center;
  margin-top: 50px;
}

/* تأثيرات إضافية */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

/* الاستجابة للهاتف */
@media (max-width: 992px) {
  .hero-section {
    padding: 150px 0 80px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .video-guide {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
}
  
}

.toast-message {
  position: fixed;
  top: 20px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--danger-color);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
}
