 
/* =================================================================
   AURA INTERACTIVE — A Masterpiece by the World's Best Designer
   ================================================================= */
/* =================================================================
   [0] رموز التصميم الأساسية (CORE & AESTHETIC TOKENS) - مشتركة للجميع
   ================================================================= */
:root {
  --bg-primary: #020409;
  --bg-secondary: #0A0D15;
  --bg-glass: rgba(14, 21, 39, 0.6);
  --ink-primary: #F0F4FF;
  --ink-secondary: #A0ABC2;
  --ink-muted: #6B7A99;
  
  --brand-primary: #8A3FFC; /* Electric Violet */
  --brand-secondary: #33B1FF; /* Luminous Blue */
  --brand-accent: #E62E8A;   /* Neon Pink */
  --brand-success: #23d196;
  
  --glow-intense: rgba(138, 63, 252, 0.35);
  --glow-subtle: rgba(138, 63, 252, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: #8A3FFC;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

  font-family: 'Manrope', 'Tajawal', system-ui, sans-serif;
  color-scheme: dark;
}

/* =================================================================
   [1] الإعدادات الأساسية والتخطيط (BASE & LAYOUT) - مشتركة
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg-primary);
  color: var(--ink-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
}

.wrap { max-width: 1200px; margin-inline: auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; margin-inline: auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 16px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink-primary); }
h1 { font-size: clamp(1rem, 3vw, 3rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

p { margin: 0 0 24px; color: var(--ink-secondary); max-width: 65ch; }
a { color: inherit; text-decoration: none; }

/* =================================================================
   [2] تأثيرات الخلفية والمؤشر (AURA & POINTER) - مشتركة
   ================================================================= */
.aura-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -2; overflow: hidden; }
.aura-background::before, .aura-background::after { content: ''; position: absolute; border-radius: 50%; filter: blur(150px); mix-blend-mode: screen; }
.aura-background::before { width: 600px; height: 600px; background: var(--glow-intense); top: -10%; right: -15%; animation: drift 20s ease-in-out infinite alternate; }
.aura-background::after { width: 500px; height: 500px; background-color: var(--brand-secondary); opacity: 0.2; bottom: -15%; left: -10%; animation: drift 25s ease-in-out infinite alternate-reverse; }
.pointer-aura { position: fixed; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle at center, rgba(138, 63, 252, 0.08), transparent 60%); z-index: -1; pointer-events: none; transform: translate(-50%, -50%); transition: background 0.2s linear; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(100px, 50px) scale(1.2); } }

/* =================================================================
   [3] المكونات المشتركة (SHARED COMPONENTS)
   ================================================================= */

/* --- رؤوس الأقسام --- */
.sec-head { text-align: right; margin-bottom: 64px; }
.sec-head p { margin: 0 auto; font-size: 1.1rem; }

/* --- تصميم الكاروسيل وبطاقات الخدمات (موحد للصفحتين) --- */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.section-header h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.carousel-nav { display: flex; gap: 12px; }
.nav-arrow { width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-glass); color: var(--ink-primary); cursor: pointer; transition: all var(--transition-fast); display:grid; place-items:center; }
.nav-arrow:hover { border-color: var(--border-hover); transform: scale(1.1); }

.services-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc(25.333% - 18px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: none; }
.services-carousel::-webkit-scrollbar { display: none; }

.service-card { background: var(--bg-secondary); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); scroll-snap-align: start; transition: transform var(--transition-fast), box-shadow var(--transition-fast); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.card-image { position: relative; aspect-ratio: 1 / 1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 16px; left: 16px; background-color: var(--brand-accent); color: #fff; padding: 6px 14px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 700; }

.card-content { padding: 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0 0 12px; color: var(--ink-primary); min-height: 58px; }
.card-price { display: flex; justify-content:center; gap: 8px; align-items: baseline; font-weight: 700; margin-bottom: 20px; }
.card-current-price { color: var(--brand-success); font-size: 1.5rem; }
.card-original-price { color: var(--ink-muted); text-decoration: line-through; }
.add-to-cart-card-btn { display: block; width: 100%; text-align: center; padding: 14px; font-weight: 700; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); color: var(--ink-primary); transition: all var(--transition-fast); margin-top: auto; }
.add-to-cart-card-btn:hover { transform: scale(1.05); }


/* =================================================================
   [4] أنماط خاصة بالصفحة الرئيسية (HOMEPAGE ONLY)
   ================================================================= */
/* --- قسم Hero --- */
.hero-service { padding: 120px 0; overflow: hidden; }
.hero-service-grid { display: grid; grid-template-columns: 1fr 0.9fr; align-items: center; gap: 64px; }
.hero-service-content { text-align: right; }
.hero-service-title { background: linear-gradient(90deg, #fff, #b4c2e3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 24px; }
.hero-service-subtitle { font-size: 1rem; max-width: 50ch; margin: 0 0 32px auto; }
.hero-service-cta { display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.hero-service-visual { perspective: 1500px; }
.mockup-card { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--border-color); background: var(--bg-secondary); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.mockup-card img { display: block; width: 100%; height: auto; border-radius: inherit; }
.mockup-glow { position: absolute; bottom: -50%; left: -25%; width: 150%; height: 100%; background: radial-gradient(ellipse at center, var(--glow-intense), transparent 70%); filter: blur(50px); z-index: -1; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 100px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all var(--transition-fast); }
.btn-primary { color: var(--ink-primary); background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); box-shadow: 0 8px 30px rgba(138, 63, 252, 0.3); }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(138, 63, 252, 0.4); }

/* --- قسم "لماذا تختار منصة سلة؟" (البطاقات الزجاجية) --- */
.glass-card { position: relative; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform var(--transition-slow), border-color var(--transition-slow); padding: 32px; }
.glass-card:hover { border-color: var(--border-hover); }
.glass-card::before, .glass-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--transition-slow); }
.glass-card::before { border: 1px solid transparent; background: linear-gradient(var(--brand-secondary), var(--brand-primary)) border-box; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass-card::after { background: radial-gradient(400px at var(--mx, 50%) var(--my, 50%), var(--glow-subtle), transparent 80%); }
.glass-card:hover::before, .glass-card:hover::after { opacity: 1; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card { padding: 24px; } /* تخصيص الـ padding هنا */
.feature-card .icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius-md); margin-bottom: 20px; background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary)); font-size: 1.5rem; color: white; }
.feature-card h4 { font-size: 1.3rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-secondary); font-size: 1rem; margin: 0; line-height: 1.6; }

/* --- قسم العملية (الجدول الزمني) --- */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.process-timeline::before { content: ''; position: absolute; top: 41px; right: 5%; left: 5%; height: 2px; background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent); z-index: -1; }
.process-step { text-align: center; }
.step-number { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 24px; border: 1px solid var(--border-color); background: var(--bg-secondary); font-size: 1.8rem; font-weight: 800; transition: all var(--transition-fast); }
.process-step:hover .step-number { border-color: var(--brand-primary); box-shadow: 0 0 20px var(--glow-subtle); transform: scale(1.05); }

/* --- قسم "لماذا تختار ابتكار تك" (معزول بالكامل) --- */
.why-us{ --ink:#EAF0FF; --muted:#9AA3B2; --card-bg:#0E1527; --brand1:#7A36FF; --brand2:#00CFFF; --brand3:#FF3DA0; --radius:22px; --shadow:0 14px 40px rgba(0,0,0,.30); color:var(--ink); }
.why-us .wrap{max-width:1200px;margin-inline:auto;padding:36px 16px}
.why-us .head{ text-align:center; margin-bottom:26px }
.why-us .head h2{ margin:0 0 8px; font-weight:800; font-size:clamp(22px,3.6vw,36px) }
.why-us .head p{ margin:0; color:var(--muted); max-width:70ch; margin-inline:auto }
@media (min-width: 1025px) { .why-us .grid{ display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 14px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 10px 30px; margin: 0 -10px; cursor: grab; } .why-us .grid::-webkit-scrollbar{ height: 12px; } .why-us .grid::-webkit-scrollbar-thumb{ background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3)); border-radius: 10px; } }
@media (min-width: 769px) and (max-width: 1024px) { .why-us .grid{ display: grid; grid-auto-flow: column; grid-auto-columns: calc(33.333% - 12px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 10px 30px; margin: 0 -10px; } }
@media (max-width: 768px){ .why-us .grid{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(280px, 1fr); gap:14px; overflow-x:auto; padding: 20px 10px 30px; margin: 0 -10px; } }
.why-us .card{ position:relative; padding:28px 24px 32px; border-radius:var(--radius); background:var(--card-bg); text-align:center; box-shadow:var(--shadow); scroll-snap-align:start; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; min-height: 320px; }
.why-us .card::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background: conic-gradient(from 140deg, var(--brand1), var(--brand2), var(--brand3), var(--brand1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.85; }
.why-us .card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.why-us .ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius-md); margin-bottom: 20px; background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary)); font-size: 1.5rem; color: white; }
.why-us .ic svg { width: 28px; height: 28px; stroke: #EAF0FF; stroke-width: 1.8; fill: none; }
.why-us h3{ margin:6px 0 10px; font-size:18px; font-weight:700; transition: all 0.3s ease }
.why-us p{ margin:0; color:var(--muted); font-size:15px; line-height:1.8 }
.why-us .num{ position:absolute; bottom:14px; inset-inline-start:18px; font-weight:700; font-size:13px; color:var(--muted); }

/* --- قسم الأسئلة الشائعة --- */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: var(--bg-glass); transition: all var(--transition-fast); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 24px; cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq-icon { transition: transform var(--transition-fast); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: var(--ink-secondary); }

/* --- قسم النداء الأخير --- */
.final-cta { background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); padding: 48px; border-radius: var(--radius-xl); text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.8); margin: 0 auto 32px; }

/* =================================================================
   [5] أنماط خاصة بالصفحة الفرعية (SUBPAGE/PRODUCT ONLY)
   ================================================================= */
.product-hero-section { padding: 60px 0; }
.breadcrumbs { margin-bottom: 24px; font-size: 0.9rem; color: var(--ink-muted); }
.breadcrumbs a { color: var(--ink-secondary); transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: var(--brand-secondary); }
.breadcrumbs span { margin: 0 8px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.product-image-container img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.product-title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.3; margin-bottom: 6px; padding-top: 6px;}
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 14px; }
.product-category a { color: var(--brand-secondary); font-weight: 700; }
.product-reviews { display: flex; align-items: center; gap: 8px; }
.star-rating { display: flex; color: #ffc107; }
.star-rating svg { width: 20px; height: 20px; }
.review-count { color: var(--ink-muted); font-size: 0.9rem; }
.product-price { margin-bottom: 24px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; }
.product-price .current-price { font-size: 2.5rem; color: var(--brand-success); }
.product-price .original-price { font-size: 1.5rem; color: var(--ink-muted); text-decoration: line-through; }
.product-description { color: var(--ink-secondary); margin-bottom: 32px; max-width: 60ch; }

.option-group { margin-bottom: 32px; }
.option-label { display: block; margin-bottom: 12px; font-weight: 700; }
.option-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.option-chip { padding: 10px 20px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; transition: all var(--transition-fast); }
.option-chip:hover { background-color: var(--bg-glass); border-color: var(--border-hover); }
.option-chip.active { background-color: var(--brand-primary); border-color: var(--border-active); box-shadow: 0 0 20px var(--glow-subtle); }

.add-to-cart-btn { width: 100%; padding: 20px; font-size: 1.2rem; font-weight: 800; border: none; border-radius: var(--radius-md); cursor: pointer; color: var(--ink-primary); background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); box-shadow: 0 8px 30px rgba(138, 63, 252, 0.3); transition: all var(--transition-fast); margin-bottom: 24px; }
.add-to-cart-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(138, 63, 252, 0.4); }
.trust-badges { display: flex; align-items: center; justify-content: center; gap: 16px; filter: grayscale(1) brightness(1.5); opacity: 0.6; }

/* --- زر المشاركة والقائمة المنبثقة --- */
.share-container { position: relative; }
.share-button { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--border-color); color: var(--ink-secondary); display: grid; place-items: center; cursor: pointer; transition: all var(--transition-fast); }
.share-button:hover { border-color: var(--border-hover); color: var(--ink-primary); }
.share-popup { position: absolute; bottom: calc(100% + 12px); right: 50%; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; display: flex; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transform: translateX(50%) translateY(10px) scale(0.95); transition: all var(--transition-fast); z-index: 10; }
.share-popup.active { opacity: 1; pointer-events: auto; transform: translateX(50%) translateY(0) scale(1); }
.social-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background-color: var(--bg-glass); transition: transform var(--transition-fast); }
.social-icon:hover { transform: scale(1.1); }

/* --- نموذج الكوبون --- */
.coupon-form { margin-bottom: 24px; }
.coupon-label { display: block; font-weight: 700; margin-bottom: 12px; }
.coupon-input-group { display: flex; }
.coupon-input { flex-grow: 1; border: 1px solid var(--border-color); background-color: var(--bg-secondary); color: var(--ink-primary); padding: 14px 16px; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 1rem; transition: border-color var(--transition-fast); }
.coupon-input:focus { outline: none; border-color: var(--border-active); }
.coupon-apply-btn { border: 1px solid var(--border-color); background: var(--bg-glass); color: var(--ink-secondary); padding: 14px 24px; font-weight: 700; border-radius: var(--radius-md) 0 0 var(--radius-md); cursor: pointer; border-left-width: 0; transition: all var(--transition-fast); }
.coupon-apply-btn:hover { background-color: var(--bg-secondary); color: var(--ink-primary); }


/* =================================================================
   [6] الحركات والاستجابة (ANIMATIONS & RESPONSIVE) - مشتركة
   ================================================================= */
[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
[data-anim].is-visible { opacity: 1; transform: translateY(0); }
[data-anim-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.is-visible[data-anim-stagger] > * { opacity: 1; transform: translateY(0); }
.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 992px) {
  .hero-service-grid, .product-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-service-visual { order: -1; }
  .hero-service-content { text-align: right ; }
  .hero-service-subtitle { margin: 0 auto 32px; }
  .hero-service-cta { justify-content:start; }
  .services-carousel { grid-auto-columns: calc(50% - 12px); }
  .process-timeline { grid-template-columns: 1fr 1fr; }
  .process-timeline::before { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  section { padding: 80px 0; }
  .services-carousel { grid-auto-columns: 80%; }
  .process-timeline { grid-template-columns: 1fr; }
}

/* ================== WHY US (Isolated + Mobile Horizontal Slider) ================== */
.why-us{
  --ink:#EAF0FF; --muted:#9AA3B2;
   --card-bg:#0E1527;
  --brand1:#7A36FF; --brand2:#00CFFF; --brand3:#FF3DA0;
  --radius:22px; --shadow:0 14px 40px rgba(0,0,0,.30);
  color:var(--ink);
}
.why-us .wrap{max-width:1200px;margin-inline:auto;padding:36px 16px}
.why-us .head{ text-align:center; margin-bottom:26px }
.why-us .head h2{ margin:0 0 8px; font-weight:800; font-size:clamp(22px,3.6vw,36px) }
.why-us .head p{ margin:0; color:var(--muted); max-width:70ch; margin-inline:auto }

/* ===== Desktop: عرض 4 بطاقات فقط مع إمكانية السحب ===== */
@media (min-width: 1025px) {
  .why-us .grid{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 14px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding: 20px 10px 30px;
    margin: 0 -10px;
    scroll-padding: 0 16px;
    cursor: grab;
  }
  
  .why-us .grid::-webkit-scrollbar{ 
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
  }
  .why-us .grid::-webkit-scrollbar-thumb{ 
    background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(122, 54, 255, 0.5);
    border: 2px solid rgba(255,255,255,0.1);
  }
  .why-us .grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin: 0 10px;
  }
  
  .why-us .grid{ 
    scrollbar-width: thin; 
    scrollbar-color: var(--brand1) rgba(255,255,255,.03);
  }
  
  .why-us .desktop-scroll-indicator {
    display: block;
  }
}

/* ===== Tablet: عرض 3 بطاقات ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-us .grid{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 12px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding: 20px 10px 30px;
    margin: 0 -10px;
    scroll-padding: 0 16px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px){
  .why-us .grid{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(280px, 1fr);
    gap:14px;
    overflow-x:auto; overflow-y:visible;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    padding: 20px 10px 30px;
    margin: 0 -10px;
    scroll-padding: 0 16px;
  }
}

/* ===== Card ===== */
.why-us .card{
  position:relative; padding:28px 24px 32px; border-radius:var(--radius);
  background:var(--card-bg); text-align:center; isolation:isolate; overflow:hidden;
  box-shadow:var(--shadow);
  scroll-snap-align:start;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  min-height: 320px;
}
.why-us .card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: conic-gradient(from 140deg, var(--brand1), var(--brand2), var(--brand3), var(--brand1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; opacity:.85;
  transition: all 0.4s ease;
}
.why-us .card::after{
  content:""; position:absolute; bottom:0; left:0; width:74px; height:54px;
  border-left:1.5px solid var(--brand2); border-bottom:1.5px solid var(--brand2);
  border-bottom-left-radius:var(--radius); opacity:.45; pointer-events:none;
  transition: all 0.4s ease;
}

/* تأثير Hover إبداعي */
.why-us .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.why-us .card:hover::before {
  opacity: 1;
  padding: 2px;
  background: conic-gradient(from 140deg, var(--brand1), var(--brand2), var(--brand3), var(--brand2), var(--brand1));
}
.why-us .card:hover::after {
  width: 100%;
  height: 100%;
  opacity: 0.8;
  border-radius: var(--radius);
  border: 1.5px solid var(--brand2);
  border-bottom: 1.5px solid var(--brand2);
  border-left: 1.5px solid var(--brand2);
}
.why-us .card:hover .ic {
  transform: scale(1.1);
}
.why-us .card:hover .ic::before {
  opacity: 1;
}
.why-us .card:hover h3 {
  background: linear-gradient(90deg, var(--brand2), var(--brand1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Icon with gradient border === */
.why-us .ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius-md); margin-bottom: 20px; background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary)); font-size: 1.5rem; color: white; }
.why-us .ic::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1.2px;
  background:conic-gradient(var(--brand2), var(--brand1), var(--brand3), var(--brand2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:.95; pointer-events:none;
  transition: opacity 0.3s ease;
}

/* إصلاح مشكلة ظهور الأيقونات */
.why-us .ic svg {
  width: 28px;
  height: 28px;
  stroke: #EAF0FF; /* استخدام لون ثابت بدلاً من المتغير */
  stroke-width: 1.8;
  fill: none;
  opacity: 0.95;
}

.why-us h3{ margin:6px 0 10px; font-size:18px; font-weight:700; transition: all 0.3s ease }
.why-us p{ margin:0; color:var(--muted); font-size:15px; line-height:1.8 }

.why-us .num{
  position:absolute; bottom:14px; inset-inline-start:18px;
  font-weight:700; font-size:13px; color:var(--muted); letter-spacing:.6px;
  transition: all 0.3s ease;
}
.why-us .card:hover .num {
  color: var(--brand2);
  transform: scale(1.1);
}

/* مؤشر التمرير لشاشات الكمبيوتر */
.why-us .desktop-scroll-indicator {
  text-align: center;
  margin-top: 20px;
  padding: 10px 0;
  display: none;
}

.why-us .desktop-scroll-indicator .bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  max-width: 200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.why-us .desktop-scroll-indicator .bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 3px;
  animation: scrollPulse 2s infinite;
}

.why-us .desktop-scroll-indicator .text {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(150%); }
}

/* مؤشر التمرير للجوال */
.why-us .mobile-scroll-indicator {
  text-align: center;
  margin-top: 20px;
  padding: 10px 0;
  display: none;
}

.why-us .mobile-scroll-indicator .text {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.why-us .mobile-scroll-indicator .arrow {
  color: var(--brand2);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
  40% {transform: translateX(-5px);}
  60% {transform: translateX(-3px);}
}

/* إظهار مؤشرات التمرير المناسبة */
@media (min-width: 1025px) {
  .why-us .desktop-scroll-indicator {
    display: block;
  }
}

@media (max-width: 1024px) {
  .why-us .mobile-scroll-indicator {
    display: block;
  }
}

/* ظلال الجوانب للإشارة إلى إمكانية التمرير */
.why-us .wrap {
  position: relative;
}

@media (min-width: 769px) {
  .why-us .wrap::before,
  .why-us .wrap::after {
    content:""; 
    position:absolute; 
    top:0; 
    bottom:30px; 
    width:40px; 
    z-index:2;
    pointer-events:none;
    transition: opacity 0.3s ease;
  }
  .why-us .wrap::before {
    right:0; 
    background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
  }
  .why-us .wrap::after {
    left:0; 
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
  }
  
  .why-us .grid.at-start ~ .wrap::before {
    opacity: 0;
  }
  .why-us .grid.at-end ~ .wrap::after {
    opacity: 0;
  }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .why-us .grid {
    grid-auto-columns: 85%;
    padding: 15px 5px 25px;
    margin: 0 -5px;
  }
  .why-us .card {
    min-height: 300px;
    padding: 24px 20px 28px;
  }
}



/* =================================================================
   [7] أنماط خاصة بصفحة الأرشيف/التصنيف (CATEGORY/ARCHIVE PAGE)
   ================================================================= */

/* --- قسم الهيرو لصفحة التصنيف --- */
.category-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}
.category-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(90deg, #fff, #b4c2e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.category-description {
    font-size: 1.1rem;
    color: var(--ink-secondary);
    max-width: 60ch;
    margin-inline: auto;
}

/* --- قسم شبكة الخدمات (Grid Layout) --- */
.services-grid-section {
    padding-top: 0; /* إزالة المسافة العلوية لتلتصق بالهيرو */
}
.services-grid {
    display: grid;
    /* responsive grid: يبدأ بعمود واحد ويتوسع تلقائيًا */
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

/* رسالة عدم وجود خدمات */
.no-services-message {
    grid-column: 1 / -1; /* تجعل العنصر يمتد على كامل عرض الشبكة */
    text-align: center;
    color: var(--ink-secondary);
    font-size: 1.2rem;
    padding: 80px 30px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
}

/* =================================================================
   [8] أنماط خاصة بصفحة المنصة (PLATFORM PAGE SECTIONS)
   ================================================================= */

/* --- قسم التنقل (Breadcrumbs) --- */
.breadcrumbs-section {
    padding-top: 90px;
    border-bottom: 1px solid var(--border-color);
   padding-bottom:0;
}
.breadcrumbs {
    font-size: 0.٦rem;
    color: var(--ink-muted);
}
.breadcrumbs a {
    color: var(--ink-secondary);
    transition: color var(--transition-fast);
}
.breadcrumbs a:hover {
    color: var(--brand-secondary);
}
.breadcrumbs span {
    margin: 0 8px;
}

/* تعديل بسيط للهيرو في هذه الصفحة */
.platform-hero {
    padding-top: 60px;
}

/* --- قسم التصنيفات الإبداعية (Carousel) --- */
.creative-categories {
    position: relative;
    overflow: hidden;
}
.creative-categories::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(138, 63, 252, 0.1), transparent 70%);
    z-index: -1;
}

/* رأس القسم (نص يمين، قائمة يسار) */
.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.categories-header__text {
    text-align: right;
}
.categories-header__text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 12px;
}
.categories-header__text p {
    color: var(--ink-secondary);
    max-width: 50ch;
    margin: 0;
}
.categories-header__nav {
    flex-shrink: 0;
}

/* تصميم القائمة المنسدلة (Select) */
.select-wrapper {
    position: relative;
    min-width: 280px;
}
.custom-select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 14px 48px 14px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--ink-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.custom-select:hover {
    border-color: var(--border-hover);
}
.custom-select:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 15px rgba(51, 177, 255, 0.2);
}
.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    left: 20px; /* ليتناسب مع dir=rtl */
    transform: translateY(-50%);
    color: var(--ink-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

/* حاوية الكاروسيل */
.cat-carousel-wrapper {
    position: relative;
}
.cat-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 60px;
    margin: 0 -60px;
    scrollbar-width: none;
}
.cat-carousel::-webkit-scrollbar {
    display: none;
}
@media (min-width: 1024px) {
    .cat-carousel {
        cursor: grab;
    }
    .cat-carousel.active {
        cursor: grabbing;
    }
}

/* بطاقة التصنيف (الدائرية) */
.cat-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 200px;
    height: 220px;
    position: relative;
    background: rgba(14, 21, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--ink-primary);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.cat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.cat-card__image-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
    padding: 5px;
    margin-bottom: 20px;
    transform: translateZ(30px); /* 3D effect */
}
.cat-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}
.cat-card__title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    transform: translateZ(15px); /* 3D effect */
}

/* استجابة رأس قسم التصنيفات للشاشات الصغيرة */
@media (max-width: 768px) {
    .categories-header {
        flex-direction: column;
        align-items: flex-start; /* محاذاة لليمين */
        text-align: right;
    }
    .categories-header__text,
    .categories-header__nav {
        width: 100%;
    }
    .select-wrapper {
        min-width: 100%;
    }
}




/* HERO SECTION & SELECTOR */
.category-hero { padding: 120px 0 60px; text-align: center; }
.hero-subtitle { color: var(--ink-secondary); margin-bottom: 12px; font-size: 1.1rem; }
.select-wrapper { position: relative; max-width: 400px; margin: 0 auto; }
.custom-select { appearance: none; -webkit-appearance: none; width: 100%; padding: 14px 40px; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); color: var(--ink-primary); font-size: 1.1rem; font-weight: 700; cursor: pointer; text-align: center; transition: border-color var(--transition-fast); }
.select-wrapper::before { content: '▼'; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.select-wrapper::after { content: ''; }

/* SERVICES GRID & CARDS DESIGN */
.services-grid-section { padding-top: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); transition: all var(--transition-fast); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5); border-color: var(--border-hover); }
.card-image { position: relative; aspect-ratio: 1 / 1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 16px; left: 16px; background-color: var(--brand-accent); color: #fff; padding: 6px 14px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 700; }
.card-content { padding: 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin: 0 0 6px; color: var(--ink-primary); min-height: 60px; flex-grow: 1; }
.card-price { display:flex; gap: 8px; align-items: baseline;  margin-bottom: 10px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
.product-grid { grid-template-columns: 1fr; gap: 32px; }
.services-grid { grid-auto-columns: calc(50% - 12px); }

}
/*
.price-item { display: flex; flex-direction: column; }

*/
.current-price { color: var(--brand-success); font-size: 1.2rem; font-weight: 800; }
.original-price { color: var(--ink-muted); text-decoration: line-through; font-size: 1rem; }
.price-currency { font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; }
.card-cta-btn { display: block; width: 100%; text-align: center; padding: 14px; font-weight: 700; font-size: 1rem; border-radius: 30px; border: none; background: linear-gradient(90deg, #D436FF, #F55580); color: #fff; transition: all var(--transition-fast); }
.service-card:hover .card-cta-btn { box-shadow: 0 8px 25px rgba(212, 54, 255, 0.3); }
.no-services-message { grid-column: 1 / -1; text-align: center; color: var(--ink-secondary); font-size: 1.2rem; padding: 60px 0; border: 1px dashed var(--border-color); border-radius: var(--radius-lg); }

