@import url("card-actions.css");
/* ============================================================
   منصة الأوامر الذكية - AI Smart Prompts
   نظام التصميم الرئيسي
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   متغيرات التصميم
   ============================================================ */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #8b5cf6;
  --secondary: #1e1b4b;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #0a0a1a;
  --bg-card: #111128;
  --bg-surface: #16163a;
  --bg-light: #f8faff;
  --text-primary: #ffffff;
  --text-secondary: #a5b4fc;
  --text-muted: #6b7280;
  --text-dark: #1e1b4b;
  --border: rgba(124, 58, 237, 0.2);
  --border-light: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   إعادة ضبط وأساسيات
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  padding-top: 120px;
  font-family: var(--font-ar);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

body.ltr {
  direction: ltr;
  font-family: var(--font-en);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   شريط التمرير المخصص
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   الحاوية
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   الشريط العلوي (Header)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 0 0 0;
  gap: 0;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-ar {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.logo-en {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-en);
  letter-spacing: 0.5px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
  padding: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 6px 0;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  background: rgba(10, 10, 26, 0.6);
}

.nav-link {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.15);
}

.nav-link.active {
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: fit-content;
}

.lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.search-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--primary);
  color: #fff;
}

.btn-login {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   أزرار عامة
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   بطاقات عامة
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   شارات وعلامات
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-free { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-premium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-new { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-hot { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-ai { background: rgba(124, 58, 237, 0.15); color: var(--primary-light); border: 1px solid rgba(124, 58, 237, 0.3); }

/* ============================================================
   عنوان القسم
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   شبكة البطاقات
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ============================================================
   قسم Hero الرئيسي
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
              var(--bg-dark);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  font-size: 14px;
  color: var(--primary-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-search {
  max-width: 680px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 60px;
  padding: 6px 6px 6px 20px;
  gap: 12px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  direction: rtl;
}

.search-box input::placeholder { color: rgba(255,255,255,0.4); }

.search-box button {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.search-box button:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tag {
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.hero-tag:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   أقسام المنصة
   ============================================================ */
.platform-section {
  padding: 100px 0;
}

.platform-section.alt-bg {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(22, 22, 58, 0.5) 50%, var(--bg-dark) 100%);
}

/* ============================================================
   بطاقة الأداة
   ============================================================ */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.tool-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tool-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.tool-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   بطاقة الأمر الذكي
   ============================================================ */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
}

.prompt-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.prompt-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.prompt-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.prompt-preview {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-level {
  font-size: 12px;
  color: var(--text-muted);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-light);
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   بطاقة المقال
   ============================================================ */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.article-image {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-surface), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.article-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card));
}

.article-body {
  padding: 20px;
}

.article-cat {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.article-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   بطاقة الأخبار
   ============================================================ */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: var(--transition);
}

.news-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(-4px);
}

.news-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.news-content { flex: 1; }

.news-source {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-impact {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.news-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================================
   قسم المساعدون الأذكياء
   ============================================================ */
.assistant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.assistant-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-6px);
}

.assistant-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
}

.assistant-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
}

.assistant-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.assistant-specialty {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.assistant-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============================================================
   بطاقة السوق
   ============================================================ */
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.market-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
  transform: translateY(-6px);
}

.market-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-surface), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.market-body { padding: 20px; }

.market-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.market-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--warning);
}

.market-price .currency {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   بطاقة الدورة
   ============================================================ */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.course-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
  transform: translateY(-6px);
}

.course-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.course-body { padding: 20px; }

.course-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.course-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 16px;
}

.course-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34d399);
  border-radius: 2px;
}

/* ============================================================
   قسم المجتمع
   ============================================================ */
.community-post {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.community-post:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.post-author { font-size: 14px; font-weight: 600; color: #fff; }
.post-time { font-size: 12px; color: var(--text-muted); }

.post-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  gap: 16px;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.post-action:hover { color: var(--primary-light); }

/* ============================================================
   شريط البحث العائم
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

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

.search-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 700px;
  max-height: 70vh;
  overflow-y: auto;
}

.search-modal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.search-modal-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 18px;
  font-family: inherit;
}

.search-results-section { margin-bottom: 24px; }
.search-results-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover { background: rgba(124, 58, 237, 0.1); }

/* ============================================================
   الفوتر
   ============================================================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--primary);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   صفحة الأداة التفاعلية
   ============================================================ */
.tool-page { padding-top: 100px; }

.tool-hero {
  padding: 60px 0;
  text-align: center;
}

.tool-interface {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 32px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.1));
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  transition: all 4s ease-in-out;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.breathing-circle.inhale {
  transform: scale(1.4);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.2));
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.5);
}

.breathing-circle.exhale {
  transform: scale(0.8);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(124, 58, 237, 0.1));
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.breathing-text {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #fff;
}

.breathing-phase {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.breathing-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* أداة اتخاذ القرار */
.decision-form { display: flex; flex-direction: column; gap: 20px; }

.decision-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.decision-form input, .decision-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.decision-form input:focus, .decision-form textarea:focus {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  white-space: nowrap;
}

.option-input input {
  border: none;
  background: none;
  padding: 0;
}

.decision-result {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  display: none;
}

.decision-result.show { display: block; }

/* ============================================================
   صفحة المكتبة
   ============================================================ */
.library-page { padding-top: 100px; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ============================================================
   صفحة المقال
   ============================================================ */
.article-page { padding-top: 100px; }

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

.article-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-light);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 20px 24px;
}

.article-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.article-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 16px 20px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: var(--accent);
}

/* ============================================================
   واجهة المساعد الذكي
   ============================================================ */
.chat-interface {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.message.user { margin-right: auto; flex-direction: row-reverse; }
.message.assistant { margin-left: auto; }

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.message.user .message-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

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

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float { animation: float 3s ease-in-out infinite; }

.fade-in-up { animation: fadeInUp 0.6s ease both; }

/* ============================================================
   نظام الإشعارات
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  color: #fff;
  z-index: 9999;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ============================================================
   تجاوب الشاشات
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  
  .main-nav { display: none; flex-direction: column; width: 100%; padding: 8px 0; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-title { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .chat-interface { height: 500px; }
  .tool-interface { padding: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-tags { gap: 8px; }
  .hero-tag { font-size: 12px; padding: 5px 12px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}

/* ============================================================
   المحتوى الخفيف (Light Mode للصفحات الداخلية)
   ============================================================ */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; }

.page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.page-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   شريط التقدم
   ============================================================ */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ============================================================
   نجوم التقييم
   ============================================================ */
.stars {
  display: flex;
  gap: 3px;
  color: var(--warning);
  font-size: 14px;
}

/* ============================================================
   قسم CTA
   ============================================================ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== User Menu Dropdown Fix ===== */
.user-menu-wrapper {
  position: relative;
  z-index: 9999;
}
.user-menu-trigger {
  position: relative;
  z-index: 9999;
  cursor: pointer !important;
  pointer-events: all !important;
}
#userDropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #1e1b4b;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  padding: 8px;
  z-index: 99999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
