/* ===== الخصائص الأساسية ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #0D6EFD; /* أزرق */
  --primary-dark: #0B5ED7; /* أزرق أغمق */
  --secondary-color: #0D6EFD; /* أزرق */
  --dark-color: #333333;
  --light-color: #f8f9fa; /* رمادي فاتح للخلفية */
  --gray-color: #4A5568;
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ألوان الوضع الداكن */
  --dark-bg: #000000;
  --dark-surface: #121212;
  --dark-surface-lighter: #1A1A1A;
  --dark-text: #FFFFFF;
  --dark-text-secondary: #AAAAAA;
  --dark-border: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  direction: rtl;
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn.disabled {
  background-color: var(--gray-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== رأس الصفحة ===== */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.main-nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== مبدل اللغة والوضع ===== */
.language-switcher {
  margin-right: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher a {
  color: var(--dark-color);
  text-decoration: none;
  margin: 0 5px;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switcher a::before {
  content: '';
  width: 20px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
}

.language-switcher a[id*="ar-link"]::before {
  background-image: url('https://flagcdn.com/w40/sa.png');
}

.language-switcher a[id*="en-link"]::before {
  background-image: url('https://flagcdn.com/w40/us.png');
}

.language-switcher a[id*="tr-link"]::before {
  background-image: url('https://flagcdn.com/w40/tr.png');
}

.language-switcher a.active {
  font-weight: 700;
  color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.1);
}

/* تنسيق النصوص حسب اللغة */
[lang="ar"] {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}

[lang="tr"] {
  font-family: 'Roboto', sans-serif;
  direction: ltr;
}

/* تعديل اتجاه العناصر حسب اللغة */
[lang="tr"] .header .container {
  flex-direction: row-reverse;
}

[lang="tr"] .main-nav ul li {
  margin-right: 25px;
  margin-left: 0;
}

[lang="tr"] .language-switcher {
  margin-left: 15px;
  margin-right: 0;
}

[lang="tr"] .mode-toggle {
  margin-left: 15px;
  margin-right: 0;
}

/* تعديل اتجاه العناصر في الوضع الداكن للغة التركية */
body.dark-mode [lang="tr"] .language-switcher a {
  color: var(--dark-text);
}

body.dark-mode [lang="tr"] .language-switcher a.active {
  color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.1);
}

.mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-right: 15px;
  transition: var(--transition);
  z-index: 1002;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
}

.mode-toggle:hover {
  transform: scale(1.1);
  background: rgba(13, 110, 253, 0.1);
}

/* ===== الأجهزة المحمولة ===== */
.mobile-menu-btn,
.mobile-menu-overlay,
.mobile-language-switcher,
.mobile-mode-toggle {
  display: none;
}

/* ===== قسم الفوركس ===== */
.forex {
  background-color: var(--light-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.forex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: neonLine 2s linear infinite;
}

.forex .section-header {
  position: relative;
  margin-bottom: 60px;
}

.forex .section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
  animation: glowText 2s ease-in-out infinite alternate;
  margin-bottom: 20px;
}

.forex .section-header p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
  background: var(--light-color);
  border-radius: 15px;
  border: 1px solid #e0e0e0;
  animation: fadeInUp 1s ease-out;
}

.forex-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
}

.forex-feature {
  text-align: center;
  padding: 40px 30px;
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-color);
}

.forex-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.forex-feature:hover::before {
  transform: translateX(100%);
}

.forex-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-color);
}

.forex-feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  position: relative;
  animation: floatIcon 3s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.forex-feature-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.3;
  animation: pulseRing 2s ease-out infinite;
}

.forex-feature:hover .forex-feature-icon {
  transform: scale(1.1) rotate(360deg);
  background-color: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 0 30px rgba(13, 110, 253, 0.4);
}

.forex-feature h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.forex-feature:hover h3 {
  color: var(--primary-color);
  transform: scale(1.05);
}

.forex-feature p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray-color);
  transition: all 0.3s ease;
}

/* تأثيرات الوضع الداكن */
body.dark-mode .forex {
  background-color: var(--dark-bg);
}

body.dark-mode .forex .section-header h2 {
  color: var(--dark-text);
  text-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

body.dark-mode .forex .section-header p {
  background: rgba(13, 110, 253, 0.05);
  color: var(--dark-text-secondary);
  border-color: rgba(13, 110, 253, 0.2);
}

body.dark-mode .forex-feature {
  background-color: var(--dark-surface);
  color: var(--dark-text);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .forex-feature:hover {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

body.dark-mode .forex-feature h3 {
  color: var(--dark-text);
}

body.dark-mode .forex-feature p {
  color: var(--dark-text-secondary);
}

/* تأثيرات حركية إضافية */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIcon {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* ===== الأقسام الرئيسية ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--dark-color);
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: none;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  animation: glowText 2s ease-in-out infinite alternate;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-color);
  font-size: 1.1rem;
}

.features, .forex, .courses, .contact {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light-color);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  font-size: 2rem;
  position: relative;
  animation: floatIcon 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.3;
  animation: pulseRing 2s ease-out infinite;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ===== قسم الفوركس ===== */
.forex {
  background-color: var(--light-color);
}

.forex-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.image-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.image-box:hover {
  transform: scale(1.03);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* إعادة استخدام الأنماط من قسم الفوركس للصور الجديدة */
.forex-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.image-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid #e9ecef;
}

.image-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .image-box { border-color: var(--dark-border); }

/* ===== قسم الدورات ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.course-card {
  background-color: var(--light-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-style: preserve-3d;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-color);
}

.course-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.course-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.course-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.course-price {
  text-align: center;
  padding: 25px 20px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.course-price h4 {
  font-size: 1.4rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
}

.course-price span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(13, 110, 253, 0.2);
  animation: pricePulse 2s infinite;
}

@keyframes pricePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.course-price del {
  position: relative;
  color: var(--gray-color);
  text-decoration: none;
  font-size: 1.2rem;
}

.course-price del::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  animation: strikethrough 1s ease-in-out forwards;
  animation-delay: 0.5s;
}

.course-details {
  padding: 30px 20px;
  background: #ffffff;
  flex-grow: 1;
}

.course-details ul {
  text-align: center;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.course-details ul li {
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.course-details ul li:nth-child(1) { animation-delay: 0.1s; }
.course-details ul li:nth-child(2) { animation-delay: 0.2s; }
.course-details ul li:nth-child(3) { animation-delay: 0.3s; }
.course-details ul li:nth-child(4) { animation-delay: 0.4s; }

.course-details ul li:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.course-details ul li i {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.course-details ul li:hover i {
  transform: scale(1.2) rotate(360deg);
  color: var(--light-color);
}

.course-actions {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.course-actions .btn {
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
  transition: all 0.3s ease;
}

.course-actions .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.3);
}

/* تعديلات الوضع الداكن */
body.dark-mode .course-card {
  background: linear-gradient(145deg, var(--dark-surface), var(--dark-surface-lighter));
  border-color: rgba(254, 209, 0, 0.1);
}

body.dark-mode .course-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

body.dark-mode .course-price {
  background: linear-gradient(to bottom, var(--dark-surface-lighter), var(--dark-surface));
}

body.dark-mode .course-details {
  background: linear-gradient(to bottom, var(--dark-surface), var(--dark-surface-lighter));
}

body.dark-mode .course-details ul li {
  background: rgba(13, 110, 253, 0.05);
  border-color: rgba(13, 110, 253, 0.1);
  color: var(--dark-text);
}

body.dark-mode .course-actions {
  background: linear-gradient(to bottom, var(--dark-surface-lighter), var(--dark-surface));
}

/* ===== قسم الأسئلة الشائعة ===== */
.faq-section {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: neonLine 2s linear infinite;
}

.faq-section .section-header {
  margin-bottom: 40px;
  position: relative;
}

.faq-section .section-header h2 {
  /* تم نقل الأنماط إلى .section-header h2 العام */
}

.faq-section .faq-items details {
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: #FFFFFF;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-section .faq-items details:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-color);
}

.faq-section .faq-items summary {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-section .faq-items summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.faq-section .faq-items details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-section .faq-items details[open] {
  background-color: rgba(13, 110, 253, 0.05);
}

.faq-section .faq-items details[open] summary {
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
}

.faq-section .faq-items p {
  padding: 0 20px 20px;
  line-height: 1.6;
  color: #4a5568;
  animation: fadeIn 0.5s ease-in-out;
}

/* تأثيرات النيون والأنيميشن */
@keyframes glowText {
  from {
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.3),
                 0 0 10px rgba(13, 110, 253, 0.2),
                 0 0 15px rgba(13, 110, 253, 0.1);
  }
  to {
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.5),
                 0 0 20px rgba(13, 110, 253, 0.3),
                 0 0 30px rgba(13, 110, 253, 0.2);
  }
}

@keyframes neonLine {
  0% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تعديلات الوضع الداكن */
body.dark-mode .faq-section {
  background-color: var(--dark-bg);
}

body.dark-mode .faq-section .faq-items details {
  background-color: var(--dark-surface);
  border-color: rgba(13, 110, 253, 0.1);
}

body.dark-mode .faq-section .faq-items details:hover {
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

body.dark-mode .faq-section .faq-items details[open] {
  background-color: rgba(13, 110, 253, 0.1);
}

body.dark-mode .faq-section .faq-items summary {
  color: var(--dark-text);
}

body.dark-mode .faq-section .faq-items p {
  color: var(--dark-text-secondary);
}

/* ===== قسم التذييل ===== */
.footer {
  background-color: var(--light-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--dark-color);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.footer-links h4,
.footer-follow-us h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul li a {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-follow-us .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-follow-us .social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #e2e8f0;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: var(--dark-color);
}

.footer-follow-us .social-link i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.footer-follow-us .social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== الوضع الداكن (Dark Mode) - تحسين الألوان ===== */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode a {
  color: var(--dark-text);
}

/* تحسين رأس الصفحة في الوضع الداكن */
body.dark-mode .header {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo h1 {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

body.dark-mode .main-nav ul li a {
  color: var(--dark-text);
}

body.dark-mode .main-nav ul li a:after {
  background-color: var(--primary-color);
}

body.dark-mode .mode-toggle {
  color: var(--primary-color);
}

/* تحسين الأزرار في الوضع الداكن */
body.dark-mode .btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-color);
}

body.dark-mode .btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* تحسين قسم الفوركس في الوضع الداكن */
body.dark-mode .forex {
  background-color: var(--dark-bg);
}

body.dark-mode .forex-feature {
  background-color: var(--dark-surface);
  color: var(--dark-text);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .forex-feature:hover {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

body.dark-mode .forex-feature-icon {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

/* تحسين عناوين الأقسام في الوضع الداكن */
body.dark-mode .section-header h2 {
  color: var(--dark-text);
}

body.dark-mode .section-header p {
  color: var(--dark-text-secondary);
}

/* تحسين بطاقات الميزات في الوضع الداكن */
body.dark-mode .feature-card {
  background-color: var(--dark-surface);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

body.dark-mode .feature-icon {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

/* تحسين قسم الدورات في الوضع الداكن */
body.dark-mode .course-card {
  background-color: var(--dark-surface);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .course-card:hover {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

body.dark-mode .course-header {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
}

body.dark-mode .course-badge {
  background-color: var(--primary-color);
  color: var(--light-color);
}

body.dark-mode .course-price {
  background-color: var(--dark-surface-lighter);
  border-color: var(--dark-border);
}

body.dark-mode .course-price h4 {
  color: var(--dark-text-secondary);
}

body.dark-mode .course-price del {
  color: var(--dark-text-secondary);
}

body.dark-mode .course-price del::before {
  background-color: var(--primary-color);
}

body.dark-mode .course-details ul li {
  background-color: var(--dark-surface-lighter);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

body.dark-mode .course-details ul li:hover {
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
}

body.dark-mode .course-details ul li i {
  color: var(--primary-color);
}

body.dark-mode .course-meta {
  background-color: var(--dark-surface-lighter);
  border-color: var(--dark-border);
}

body.dark-mode .course-meta p {
  color: var(--dark-text-secondary);
}

body.dark-mode .course-meta p i {
  color: var(--primary-color);
}

/* تحسين قسم التذييل في الوضع الداكن */
body.dark-mode .footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .footer-links ul li a {
  color: var(--dark-text-secondary);
}

body.dark-mode .footer-links ul li a:hover {
  color: var(--primary-color);
}

body.dark-mode .footer-follow-us .social-link {
  background-color: var(--dark-surface-lighter);
  color: var(--dark-text);
}

body.dark-mode .footer-follow-us .social-link:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

body.dark-mode .footer-follow-us .social-link i {
  color: var(--primary-color);
}

body.dark-mode .footer-follow-us .social-link:hover i {
  color: var(--light-color);
}

/* تحسين تجربة المستخدم في الجوال في الوضع الداكن */
@media (max-width: 768px) {
  body.dark-mode .mobile-menu-btn {
    color: var(--primary-color);
  }
}

/* تحديث الوضع الداكن */
body.dark-mode .hero {
  color: var(--light-color);
  background: rgba(0,0,0,0.5); /* خلفية شفافة داكنة فوق الخريطة */
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content h2,
body.dark-mode .hero-content p {
  color: var(--light-color);
}

/* ===== القائمة المتنقلة ===== */
@media (max-width: 768px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .header .language-switcher,
  .header .mode-toggle {
    display: flex;
    align-items: center;
  }

  .language-switcher {
    margin-right: 10px;
  }

  .language-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 13px;
  }

  .language-switcher a::before {
    content: '';
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .language-switcher a[id*="ar-link"]::before {
    background-image: url('https://flagcdn.com/w40/sa.png');
  }

  .language-switcher a[id*="en-link"]::before {
    background-image: url('https://flagcdn.com/w40/us.png');
  }

  .language-switcher a[id*="tr-link"]::before {
    background-image: url('https://flagcdn.com/w40/tr.png');
  }

  .mode-toggle {
    font-size: 18px;
    padding: 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
  }

  .mobile-menu-btn {
    display: block;
    font-size: 20px;
    color: var(--dark-color);
    z-index: 1001;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    right: 0;
  }

  .mobile-menu-btn:hover {
    transform: scale(1.1);
  }

  .mobile-menu-btn.active {
    right: 200px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    background: var(--light-color);
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0 15px;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav .close-menu {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 18px;
    color: var(--dark-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

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

  .main-nav ul {
    flex-direction: column;
    margin: 35px 0 15px 0;
    padding: 0;
  }

  .main-nav ul li {
    margin: 6px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .main-nav.active ul li {
    opacity: 1;
    transform: translateX(0);
  }

  .main-nav ul li:nth-child(1) { transition-delay: 0.1s; }
  .main-nav ul li:nth-child(2) { transition-delay: 0.2s; }
  .main-nav ul li:nth-child(3) { transition-delay: 0.3s; }
  .main-nav ul li:nth-child(4) { transition-delay: 0.4s; }

  .main-nav ul li a {
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--dark-color);
    background: rgba(0, 0, 0, 0.02);
  }

  .main-nav ul li a:hover,
  .main-nav ul li a.active {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
  }

  /* إخفاء مبدل اللغة والوضع من القائمة المتنقلة */
  .mobile-language-switcher,
  .mobile-mode-toggle {
    display: none;
  }

  /* تعديلات الوضع الداكن */
  body.dark-mode .main-nav {
    background: var(--dark-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }

  body.dark-mode .main-nav .close-menu {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.05);
  }

  body.dark-mode .main-nav .close-menu:hover {
    background: var(--primary-color);
    color: var(--light-color);
  }

  body.dark-mode .main-nav ul li a {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.05);
  }

  body.dark-mode .mode-toggle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
  }

  body.dark-mode .language-switcher a {
    color: var(--dark-text);
  }

  body.dark-mode .language-switcher a.active {
    background: var(--primary-color);
    color: var(--light-color);
  }
}

/* ===== زر العودة للأعلى ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
}

/* إخفاء زر الصعود للأعلى عند فتح القائمة المتنقلة */
.main-nav.active ~ .scroll-to-top,
.mobile-menu-btn.active ~ .scroll-to-top {
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
  transform: translateY(-2px);
}

/* تعديلات للغة التركية */
[lang="tr"] .scroll-to-top {
  left: 30px;
  right: auto;
}

/* ===== مبدل الوضع الداكن/الفاتح ===== */
.mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-right: 15px;
  transition: var(--transition);
  z-index: 1002;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
}

.mode-toggle:hover {
  transform: scale(1.1);
  background: rgba(13, 110, 253, 0.1);
}

/* تعديلات الوضع الداكن */
body.dark-mode .mode-toggle {
  color: var(--primary-color);
}

body.dark-mode .mode-toggle:hover {
  background: rgba(13, 110, 253, 0.1);
}

/* تعديلات للغة التركية */
[lang="tr"] .mode-toggle {
  margin-left: 15px;
  margin-right: 0;
}

/* تحديث ألوان الوضع الفاتح */
body:not(.dark-mode) .mode-toggle {
  color: var(--dark-color);
}

body:not(.dark-mode) .mode-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* تأثيرات الانتقال للعناصر */
.header,
.main-nav,
.feature-card,
.course-card,
.forex-feature,
.faq-section,
.footer,
.btn,
.mode-toggle,
.language-switcher a,
.social-link {
  transition: var(--transition);
}

/* تأثير دوران أيقونة الوضع */
.mode-toggle i {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .mode-toggle i {
  transform: rotate(360deg);
}

/* تأثير توهج عند التبديل */
@keyframes modeSwitchGlow {
  0% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
  }
}

.mode-toggle:active {
  animation: modeSwitchGlow 0.5s ease-in-out;
}

/* تأثير تغير لون الخلفية */
.feature-card,
.course-card,
.forex-feature {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير تغير لون النصوص */
h1, h2, h3, h4, p, a, span {
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير تغير لون الأيقونات */
.feature-icon,
.forex-feature-icon {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير تغير لون الأزرار */
.btn {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير تغير لون القائمة */
.main-nav ul li a {
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير تغير لون التذييل */
.footer {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator-benefits {
  padding: 100px 0;
  background-color: var(--light-color);
  transition: var(--transition);
  overflow: hidden;
}

body.dark-mode .indicator-benefits {
  background-color: var(--dark-bg);
}

.indicator-benefits .container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.benefit-image {
  flex: 1;
  min-width: 300px;
  animation: floatImage 4s ease-in-out infinite;
}

.benefit-content {
  flex: 1;
  min-width: 300px;
  animation: fadeInRight 1.5s ease forwards;
}

.benefit-content p {
  font-size: 1.2rem;
  color: var(--gray-color);
  line-height: 1.8;
  margin-bottom: 30px;
}

body.dark-mode .benefit-content p {
  color: var(--dark-text-secondary);
}

/* شرائط المميزات */
.feature-strips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border-radius: 15px;
  background: #FFFFFF;
  border: 1px solid #e9ecef;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  cursor: default;
}

.strip-item i {
  color: var(--primary-color);
  font-size: 1.4rem;
  animation: pulseIcon 2s infinite;
}

.strip-item:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
}

.strip-item:hover i {
  color: var(--light-color);
}

body.dark-mode .strip-item {
  background: rgba(13, 110, 253, 0.05);
  border-color: rgba(13, 110, 253, 0.1);
  color: var(--dark-text);
}

body.dark-mode .strip-item:hover {
  background: var(--primary-color);
  color: var(--light-color);
}

/* أنيميشن */
@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes glowText {
  from {
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.4),
                 0 0 15px rgba(13, 110, 253, 0.3);
  }
  to {
    text-shadow: 0 0 15px rgba(13, 110, 253, 0.7),
                 0 0 25px rgba(13, 110, 253, 0.5);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== قسم مؤشر Hunter ===== */
.indicator-header h2 {
  /* تم نقل الأنماط إلى .section-header h2 العام */
}

.indicator-header .indicator-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 10px;
  animation: glowText 2s ease-in-out infinite alternate, fadeInUp 1s ease-out;
  background: none;
}

.timeframes-container {
  margin-top: 25px;
  animation: fadeInUp 1s ease-out 0.5s;
  animation-fill-mode: both;
}

.timeframes-container > span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  animation: glowText 2s ease-in-out infinite alternate;
  margin-bottom: 15px;
}

.timeframes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.timeframe-tag {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(13, 110, 253, 0.2);
  transition: var(--transition);
  cursor: default;
}

.timeframe-tag:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

body.dark-mode .indicator-header h2 {
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

body.dark-mode .indicator-header p {
  background: rgba(13, 110, 253, 0.05);
  color: var(--dark-text-secondary);
  border-color: rgba(13, 110, 253, 0.2);
}
body.dark-mode .indicator-header .indicator-description {
  background: none;
  color: var(--primary-color);
  border: none;
}

body.dark-mode .timeframes-container > span {
  color: var(--primary-color);
}

/* إخفاء زر إغلاق القائمة في الشاشات الكبيرة */
@media (min-width: 768px) {
  .close-menu {
    display: none !important;
  }
}

.light-mode-img {
  display: none;
}

/* ===== قسم بوت هنتر للفوركس ===== */
.hunter-bot-section {
  padding: 100px 0;
  background-color: var(--light-color);
  overflow: hidden;
}

.hunter-bot-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.hunter-bot-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  animation: fadeInLeft 1.5s ease forwards;
  animation: floatImage 4s ease-in-out infinite;
}

.hunter-bot-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.hunter-bot-features {
  flex: 1.2;
  min-width: 300px;
  animation: fadeInRight 1.5s ease forwards;
}

.hunter-bot-features h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.hunter-bot-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.hunter-bot-features ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  background: #FFFFFF;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.hunter-bot-features ul li:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.hunter-bot-features ul li i {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.hunter-bot-features ul li:hover i {
  color: var(--light-color);
  transform: scale(1.2);
}

.hunter-bot-features .btn {
  width: fit-content;
}

body.dark-mode .hunter-bot-image img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid var(--dark-border);
}

body.dark-mode .hunter-bot-features h3 {
  color: var(--primary-color);
}

body.dark-mode .hunter-bot-features ul li {
  background: var(--dark-surface-lighter);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

body.dark-mode .hunter-bot-features ul li i {
  color: var(--primary-color);
}

body.dark-mode .hunter-bot-features ul li:hover {
  background: var(--primary-color);
  color: var(--light-color);
}

body.dark-mode .hunter-bot-features ul li:hover i {
  color: var(--light-color);
}

/* ===== قسم محادثة تيليجرام (تصميم المستخدم) ===== */
.telegram-container {
  max-width: 420px;
  margin: 0 auto;
  background: #17212b;
  height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.chat-header {
  background: #17212b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #0e1621;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2b5278;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-info {
  flex: 1;
}

.bot-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.bot-status {
  color: #6c7883;
  font-size: 13px;
}

.chat-messages {
  padding: 12px 8px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: url('wal.png');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  position: relative;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #17212b;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: #2b5278;
  border-radius: 6px;
}

.message-bubble {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #1a2631 0%, #253745 50%, #5d6774 100%);
  border-radius: 12px;
  padding: 8px 12px;
  max-width: 90%;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: 8px;
}

.message-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #14242c transparent transparent;
}

.message-time {
  color: #ffffff;
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
  display: block;
}

.signal-content {
  color: #ffffff;
}

.trophy-line {
  color: #ffffff;
  font-size: 13px;
  text-align: left;
  margin: 8px 0;
  letter-spacing: 0.5px;
}

.chart-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  background: #0a0e14;
  min-height: 160px;
  display: block;
}

.signal-details {
  margin: 8px 0;
  line-height: 1.8;
}

.detail-line {
  color: #e8e8e8;
  font-size: 14px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emoji {
  font-size: 15px;
  display: inline-block;
}

.sell-type {
  color: #e8e8e8;
  font-weight: 600;
}

.buy-type {
  color: #e8e8e8;
  font-weight: 600;
}

.rsi-indicator {
  background: transparent;
  border: none;
  padding: 8px 0;
  margin: 8px 0;
  color: #e8e8e8;
  font-size: 13px;
}

.message-input-container {
  background: #17212b;
  padding: 8px 12px;
  border-top: 1px solid #0e1621;
  z-index: 10;
  flex-shrink: 0;
}

.message-input-wrapper {
  background-color: #242f3d;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  height: 48px;
  position: relative;
}

.message-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.message-input::placeholder {
  color: #6c7883;
}

.input-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c7883;
  font-size: 22px;
}
