/* الألوان الأساسية والمتغيرات */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent-cyan: #00ffcc;
    --accent-pink: #e94560;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --transition: all 0.3s ease;
}

/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* الهيدر */
.main-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
}

.logo img {
    height: 45px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-cyan);
}

/* قسم Hero */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* الأزرار */
.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}

.btn-login {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-login:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    transition: var(--transition);
}

/* معرض الوسائط - Grid */
.gallery-section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--accent-cyan);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* الباقات - Pricing */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.plan-card .price {
    font-size: 2.5rem;
    margin: 20px 0;
    color: var(--accent-cyan);
}

.plan-card .price span { font-size: 1rem; color: var(--text-gray); }

/* الفوتر */
.main-footer {
    background: #070b14;
    padding: 50px 0;
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links a {
    color: var(--text-white);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover { color: var(--accent-pink); }

/* ============================================================
   الحاوية الكبرى للمعرض
   زدنا ارتفاعها لتسع العنوان فوق الصورة
   ============================================================ */
.stack-carousel {
    position: relative;
    height: 510px; /* زيادة 60px لاستيعاب العنوان فوق الصورة */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* المسار الذي يحتوي الصور */
.stack-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* ============================================================
   الغلاف الخارجي = العنوان + الصورة معاً
   هو الذي يتحرك ويتلقى كلاسات active/prev/next/hidden
   ============================================================ */
.media-item-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.7s ease,
                filter 0.7s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

/* ============================================================
   العنوان - يظهر فوق الصورة من الخارج تماماً
   ============================================================ */
.media-item-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    padding: 6px 20px;
    background: rgba(255 255 255 / 0%);
    border-radius: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* إخفاء العنوان في الصور الجانبية */
.media-item-wrapper:not(.active) .media-item-title {
    opacity: 0;
}

.media-item-wrapper.active .media-item-title {
    opacity: 1;
}

/* ============================================================
   الصورة أو الفيديو - داخل الغلاف، بدون overflow يقطع العنوان
   ============================================================ */
.media-item {
    position: relative;
    width: 500px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.media-item {
  
  background: linear-gradient(90deg, #e94560, #00ffcc, #e94560);
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;

}

/* منع الوميض داخل الصور والفيديوهات عند النقر */
.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* أزرار التحكم */
.stack-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--accent-pink, #e94560);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.stack-btn:hover {
    background: #ff4d6d;
    transform: translateY(-50%) scale(1.1);
}

.prev { right: 5%; }
.next { left: 5%; }

/* ============================================================
   حالات الغلاف (الحركة والانزلاق)
   ============================================================ */
.media-item-wrapper.active {
    z-index: 100;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
    visibility: visible;
}

.media-item-wrapper.prev-card {
    z-index: 50;
    transform: translate3d(220px, 0, -250px) rotateY(-25deg);
    opacity: 0.6;
    filter: blur(2px);
    visibility: visible;
}

.media-item-wrapper.next-card {
    z-index: 50;
    transform: translate3d(-220px, 0, -250px) rotateY(25deg);
    opacity: 0.6;
    filter: blur(2px);
    visibility: visible;
}

.media-item-wrapper.hidden {
    transform: translate3d(0, 0, -500px) scale(0.5);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    visibility: hidden;
}

/* ============================================================
   حاوية الخطط
   ============================================================ */
.plans-carousel {
    height: 550px;
}

/* تنسيق كارت الخطة */
.plan-card {
    position: absolute;
    width: 350px;
    min-height: 480px;
    background: var(--card-bg, #1a1f3c);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.7s ease,
                filter 0.7s ease;
    backface-visibility: hidden;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plan-card.active {
    z-index: 100;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    border-color: var(--accent-pink);
    
}


.plan-card.prev-card {
    z-index: 50;
    transform: translate3d(250px, 0, -200px) rotateY(-15deg);
    opacity: 0.6;
    filter: blur(1px);
}

.plan-card.next-card {
    z-index: 50;
    transform: translate3d(-250px, 0, -200px) rotateY(15deg);
    opacity: 0.6;
    filter: blur(1px);
}

.plan-card.hidden {
    transform: translate3d(0, 0, -400px) scale(0.5);
    opacity: 0;
    visibility: hidden;
}

/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }

/* تصميم النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #1a1f3c;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 70%;
    max-width: 800px;
    color: white;
    position: relative;
    border: 1px solid var(--accent-pink);
}
.close-btn {
    position: absolute;
    left: 20px; top: 10px;
    font-size: 28px; cursor: pointer; color: #94a3b8;
}
.modal-text { line-height: 1.8; margin-top: 20px; max-height: 400px; overflow-y: auto; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
/* بعد */
.modal-card {
    background: #1a1f3c;
    color: white;
    border-radius: 12px;
    width: 95%;
    max-width: 780px;        /* عريضة */
    max-height: 75vh;        /* لا تتجاوز 75% من ارتفاع الشاشة */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e94560;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding: 16px 20px;
    flex-shrink: 0;           /* لا يتقلص الهيدر */
}

.modal-body {

    padding: 20px;
    overflow-y: auto;       /* سكرول داخلي للمحتوى الطويل */
    flex: 1;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #333; margin-bottom: 15px;
}
.close-btn { cursor: pointer; font-size: 24px; color: #e94560; }

.modal-text-content p {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
}

/* مشهد ثلاثي الأبعاد */
.carousel-3d-scene {
  position: relative;
  width: 100%;
  height: 800px !important;
  perspective: 2500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-style: preserve-3d;
}

/* الصورة المركزية الثابتة */
#center-logo {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) translateZ(-10px) !important;
  width: 500px !important;
  height: 500px !important;
  min-width: 500px !important;
  object-fit: contain !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 1 !important;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(253, 177, 0));
}

/* المحور الذي يحمل الكروت */
.carousel-3d-track {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform-style: preserve-3d;
  animation: rotateCarousel 25s linear infinite;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2 !important;
}

/* حركة الدوران */
@keyframes rotateCarousel {
  from { transform: translate(-50%, -50%) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateY(360deg); }
}

/* تنسيق الكروت الدائرية */
.rest-card {
  position: absolute;
  width: 160px;
  height: 160px;
  background: #1e293b;
  border: 2px solid rgba(253, 173, 0);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  backface-visibility: visible;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  transition: border-color 0.3s;
}
.rest-card:hover {
  border-color: #ffd000;
  box-shadow: 0 15px 35px rgba(236, 210, 63, 0.726);
}
.carousel-3d-track:hover {
  animation-play-state: paused;
}

/* تنسيق اللوجو داخل الكرت */
.rest-logo-wrap {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 5px;
}

.rest-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rest-name { font-size: 0.8rem; color: #fff; font-weight: 600; text-align: center; }

/* ---------- قسم التعليقات ---------- */
.testimonials-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f172a 0%, #080e1a 100%);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,255,204,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-header { text-align: center; margin-bottom: 50px; }
.t-badge-label {
  display: inline-block;
  background: rgba(0,255,204,0.08);
  color: #00ffcc;
  border: 1px solid rgba(0,255,204,0.2);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.t-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 10px;
}

.t-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 40px;
  flex-wrap: wrap;
}
.t-stat { text-align: center; padding: 0 40px; }
.t-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #00ffcc;
  line-height: 1;
  margin-bottom: 6px;
}
.t-stat-label { color: #64748b; font-size: 0.85rem; }
.t-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.06);
}

.t-rating-bar-wrap {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.t-overall-score { text-align: center; flex-shrink: 0; }
.t-big-score { font-size: 3.5rem; font-weight: bold; color: white; line-height: 1; }
.t-big-stars { color: #f59e0b; font-size: 1.3rem; margin: 8px 0; letter-spacing: 3px; }
.t-score-count { color: #64748b; font-size: 0.8rem; }
.t-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.t-bar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #64748b; }
.t-bar-row > span:first-child { width: 12px; text-align: right; }
.t-track { flex: 1; height: 7px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.t-fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.t-fill-low { background: #334155; }
.t-bar-num { width: 35px; font-size: 12px; }

.t-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 50px;
}
.t-review-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
  animation: t-fadeIn 0.4s ease forwards;
  opacity: 0;
}
.t-review-card:hover {
  border-color: rgba(0,255,204,0.15);
  transform: translateY(-2px);
}
@keyframes t-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.t-rev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(0,255,204,0.1);
  border: 1px solid rgba(0,255,204,0.2);
  color: #00ffcc;
}
.t-rev-body { flex: 1; }
.t-rev-text {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.t-rev-text::before { content: '"'; color: #00ffcc; font-size: 1.3em; }
.t-rev-text::after  { content: '"'; color: #00ffcc; font-size: 1.3em; }
.t-rev-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-rev-name { color: white; font-weight: 600; font-size: 13.5px; }
.t-rev-sep  { color: #334155; }
.t-rev-store { color: #64748b; font-size: 12.5px; }
.t-verified {
  background: rgba(0,255,204,0.08);
  color: #00ffcc;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.t-stars-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.t-stars-right .stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.t-rev-date { color: #475569; font-size: 12px; }

.t-cta-wrap { text-align: center; margin-top: 20px; }

.t-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0,255,204,0.1);
  border-top-color: #00ffcc;
  border-radius: 50%;
  animation: t-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes t-spin { to { transform: rotate(360deg); } }

/* ============================================================
   MOBILE - الهيدر hamburger
   ============================================================ */
.hamburger-btn {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.15);
  color: var(--text-white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
  padding: 10px 0;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-cyan); padding-right: 30px; }

/* ============================================================
   Responsive 768px
   ============================================================ */
@media (max-width: 768px) {

  nav { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .main-header .btn-primary { display: none; }
  .main-header .container { padding: 0 16px; }

  .hero-section { padding: 100px 0 50px; }
  .hero-section h1 { font-size: 1.9rem; padding: 0 12px; line-height: 1.3; }
  .hero-section p { font-size: 0.95rem; padding: 0 16px; }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin-right: 0;
  }

  .section-title { font-size: 1.6rem; margin-bottom: 28px; padding: 0 10px; }

  /* كاروسيل المعرض */
  .stack-carousel {
    height: 370px !important; /* 280 صورة + 60 عنوان + هامش */
    perspective: 800px !important;
  }

  .media-item {
    width: 80vw !important;
    height: 190px !important;
  }

  .media-item-title {
    font-size: 0.82rem !important;
    padding: 4px 14px !important;
  }

  .media-item-wrapper.prev-card {
    transform: translate3d(55px, 0, -120px) rotateY(-18deg) !important;
    opacity: 0.3 !important;
    filter: blur(1px) !important;
  }

  .media-item-wrapper.next-card {
    transform: translate3d(-55px, 0, -120px) rotateY(18deg) !important;
    opacity: 0.3 !important;
    filter: blur(1px) !important;
  }

  .stack-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }

  /* كاروسيل الباقات */
  .plans-carousel { height: 520px !important; }
  .plan-card {
    width: 80vw !important;
    min-height: unset !important;
    padding: 22px 16px !important;
  }
  .plan-card.prev-card {
    transform: translate3d(50px, 0, -180px) rotateY(-10deg) !important;
    opacity: 0.3 !important;
    filter: blur(1px) !important;
  }
  .plan-card.next-card {
    transform: translate3d(-50px, 0, -180px) rotateY(10deg) !important;
    opacity: 0.3 !important;
    filter: blur(1px) !important;
  }

  /* قسم المطاعم 3D */
  .carousel-3d-scene {
    height: 380px !important;
    perspective: 600px !important;
    overflow: hidden !important;
  }
  #center-logo {
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    /* تأتي الكروت عند translateZ(155px) كحد أقصى، نضع الشعار أمامها */
    transform: translate(-50%, -50%) translateZ(220px) !important;
  }
  .rest-card { width: 85px !important; height: 85px !important; padding: 6px !important; }
  .rest-logo-wrap { width: 44px !important; height: 44px !important; margin-bottom: 3px !important; }
  .rest-name { font-size: 0.55rem !important; }

  /* التعليقات */
  .testimonials-section { padding: 60px 0; }
  .testimonials-header { margin-bottom: 30px; }
  .t-stats-row { flex-direction: column !important; gap: 0 !important; padding: 0 !important; }
  .t-stat { padding: 16px 20px !important; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; }
  .t-stat:last-child { border-bottom: none; }
  .t-stat-divider { display: none !important; }
  .t-rating-bar-wrap { flex-direction: column !important; gap: 20px !important; padding: 20px !important; }
  .t-review-card { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .t-stars-right { flex-direction: row !important; align-items: center; width: 100%; justify-content: flex-start; gap: 10px; }

  /* المودال */
  .modal-content { width: 94% !important; margin: 15% auto !important; padding: 18px !important; }

  /* واتساب */
  .whatsapp-float { bottom: 14px; right: 14px; padding: 9px 14px; font-size: 0.82rem; }

  /* فوتر */
  .main-footer { padding: 30px 0; margin-top: 40px; }
  .footer-links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
}

/* ============================================================
   Responsive 480px
   ============================================================ */
@media (max-width: 480px) {

  .hero-section h1 { font-size: 1.55rem; }

  .stack-carousel { height: 330px !important; }

  .media-item {
    width: 88vw !important;
    height: 165px !important;
  }

  .media-item-wrapper.prev-card,
  .media-item-wrapper.next-card {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .plans-carousel { height: 500px !important; }
  .plan-card { width: 88vw !important; }
  .plan-card.prev-card,
  .plan-card.next-card {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .carousel-3d-scene { height: 300px !important; perspective: 400px !important; }
  #center-logo {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    /* الكروت عند translateZ(110px) كحد أقصى، الشعار يظهر أمامها */
    transform: translate(-50%, -50%) translateZ(160px) !important;
  }
  .rest-card { width: 68px !important; height: 68px !important; }
  .rest-logo-wrap { width: 34px !important; height: 34px !important; }
  .rest-name { font-size: 0.48rem !important; }
}

/* ===================================================
   قسم التعريف بالمنصة - Platform About Section
   =================================================== */

/* ===================================================
   قسم التعريف بالمنصة - Platform Carousel
   =================================================== */

.platform-about-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #0a0f1e 0%, #0d1527 50%, #0a0f1e 100%);
  position: relative;
  overflow: hidden;
}

.platform-about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(233,69,96,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 70%, rgba(0,255,204,0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.platform-badge {
  display: inline-block;
  background: rgba(233,69,96,0.15);
  color: #e94560;
  border: 1px solid rgba(233,69,96,0.3);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.platform-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== Carousel Container ===== */
.platform-carousel-outer {
  position: relative;
  width: 100%;
}

/* أزرار التنقل — تظهر دائماً */
.platform-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15,25,35,0.85);
  border: 1px solid rgba(233,69,96,0.4);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  backdrop-filter: blur(6px);
}

.platform-nav-btn:hover {
  background: #e94560;
  border-color: #e94560;
  transform: translateY(-50%) scale(1.1);
}

.platform-nav-btn.prev { right: -24px; }
.platform-nav-btn.next { left: -24px; }

/* النافذة المرئية */
.platform-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
}

/* التراك المتحرك */
.platform-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ===== كل Slide ===== */
.platform-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 10px 4px;
  box-sizing: border-box;
}

.platform-slide.layout-media-left .platform-media-col {
  order: -1;
}

/* عمود الميديا */
.platform-media-col {
  position: relative;
}

.platform-media-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1923;
  aspect-ratio: 16 / 10;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 20px 50px rgba(0,0,0,0.5),
    0 0 60px rgba(233,69,96,0.07);
}

.platform-media-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e94560, #00ffcc, #e94560);
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;
  z-index: 2;
}

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

.platform-media-wrapper img,
.platform-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.platform-media-wrapper:hover img,
.platform-media-wrapper:hover video {
  transform: scale(1.03);
}

.platform-media-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* عمود النص */
.platform-text-col {
  padding: 8px 0;
}

.platform-block-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e94560;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-block-number::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(233,69,96,0.4);
}

.platform-block-divider {
  width: 55px;
  height: 3px;
  background: linear-gradient(90deg, #e94560, transparent);
  border-radius: 2px;
  margin-bottom: 22px;
}

.platform-block-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  margin-bottom: 16px;
}

.platform-block-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.platform-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.platform-features-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(0,255,204,0.1);
  border: 1px solid rgba(0,255,204,0.25);
  border-radius: 50%;
  color: #00ffcc;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== Dots ===== */
.platform-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}

.platform-dot.active {
  background: #e94560;
  width: 24px;
  border-radius: 4px;
}

/* حالة التحميل */
.platform-loading {
  text-align: center;
  padding: 80px 0;
  color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .platform-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .platform-slide.layout-media-left .platform-media-col {
    order: 0;
  }

  .platform-block-title {
    font-size: 1.3rem;
  }

  .platform-nav-btn.prev { right: 4px; }
  .platform-nav-btn.next { left: 4px; }

  .platform-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    top: auto;
    bottom: -52px;
    transform: none;
  }

  .platform-nav-btn:hover {
    transform: scale(1.08);
  }

  .platform-carousel-outer {
    padding-bottom: 70px;
  }
}

@media (max-width: 500px) {
  .platform-block-title { font-size: 1.15rem; }
  .platform-about-section { padding: 60px 0; }
}