/* ============================================================
   خاصية hidden لازم تكسب دايماً
   ------------------------------------------------------------
   أي قاعدة فيها display (زي .admin-tab { display: flex }) بتتغلّب
   على إخفاء المتصفح الافتراضي للعنصر المخفي، فالعنصر يفضل ظاهر
   رغم إن الكود أخفاه. وقعنا في ده مرتين — زرار الصوت وزرار
   "حساب موظف" — فبنقفلها من الأساس هنا.
   ============================================================ */
[hidden] {
  display: none !important;
}

/* ============================================================
   طبقة التصميم — ترقية شكل بس
   ------------------------------------------------------------
   الملف كان بيستخدم ألوان وظلال مكتوبة بإيدنا في كل مكان،
   فالفروقات الصغيرة بتتراكم: كل كارت بظل مختلف، وكل عنوان
   بمقاس مختلف، وكل مسافة بقيمة مختلفة. ده اللي بيخلي الشكل
   حسّه "شغل بيت" مش منتج.
   الطبقة دي بتوحّدهم في مكان واحد. الألوان الأساسية زي ما
   هي (الكحلي والذهبي) — اللي اتغيّر هو الدرجات والظلال
   والإيقاع.
   ============================================================ */

:root {
  /* ---------- هوية الشركة ---------- */
  --navy: #13365f;
  --navy-deep: #0c2440;
  --navy-soft: #1f4b7d;
  --gold: #f0b84a;
  --gold-soft: #f5c96f;
  --green: #27ae60;

  /* ---------- الأسطح والحدود ---------- */
  --surface: #ffffff;
  --surface-sunken: #f7f9fb;
  --page: #f4f6f8;
  --line: #e6ecf1;
  --line-soft: #eef2f5;

  /* ---------- النص ---------- */
  --ink: #17232e;
  --ink-soft: #5a6b7a;
  --ink-mute: #8795a1;

  /* ---------- الظلال: طبقات متدرّجة بدل ظل واحد ثقيل ---------- */
  --lift-1: 0 1px 2px rgba(19, 54, 95, 0.05);
  --lift-2: 0 2px 4px rgba(19, 54, 95, 0.05), 0 6px 16px rgba(19, 54, 95, 0.06);
  --lift-3: 0 4px 8px rgba(19, 54, 95, 0.06), 0 14px 34px rgba(19, 54, 95, 0.1);

  /* ---------- الزوايا ---------- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---------- الحركة ---------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 0.18s var(--ease);
  --slow: 0.34s var(--ease);
}

/* ============================================================
   الأساس
   ============================================================ */

body {
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* العناوين كانت بأوزان ومقاسات متفرقة. المقاس بيتمدّد مع
   الشاشة بدل قيمة ثابتة بتبقى كبيرة على الموبايل */
h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.4px;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

h3 {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.15px;
}

section > h2 {
  font-size: clamp(22px, 3vw, 30px);
}

p {
  line-height: 1.85;
}

/* ============================================================
   تفاصيل بتفرق في الإحساس
   ============================================================ */

/* التحديد بلون الشركة بدل الأزرق الافتراضي */
::selection {
  background: rgba(240, 184, 74, 0.3);
  color: var(--navy-deep);
}

/* إطار تركيز واضح للي بيستخدم الكيبورد — كان مفيش */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* شريط التمرير بلون الموقع */
* {
  scrollbar-color: #c3ced8 transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #c3ced8;
  border-radius: var(--r-pill);
  border: 3px solid var(--page);
}

*::-webkit-scrollbar-thumb:hover {
  background: #a9b7c3;
}

/* اللي بيقفل الحركة من إعدادات جهازه مايشوفش أي حركة */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  text-align: right;
}

h1, h2, h3 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
}

section > h2 {
  font-size: 24px;
  text-align: center;
}

.tracking-demo {
  padding: 30px;
  text-align: center;
}

.tracking-demo > h2 {
  text-align: center;
}

.top-banner {
  background-color: #13365f;
  color: #f0b84a;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}

/* ============================================================
   الشريط العلوي
   ------------------------------------------------------------
   كل اللي جواه بنفس مقاس الخط ونفس المسافات، وكل الأزرار
   بنفس الارتفاع على سطر واحد.
   ============================================================ */
.info-bar {
  background-color: #f4f4f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 12px;
  color: #555;
  gap: 10px;
}

/* بقى رابط بدل نص عادي — بنشيل شكل الرابط الافتراضي عشان
   مايبقاش أزرق ومسطّر وسط الشريط */
.info-bar-help {
  color: #555;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-bar-help:hover {
  color: #13365f;
  text-decoration: underline;
}

.auth-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

/* نفس مقاس زرار اللغة بالظبط (#langToggleBtn تحت) — قبل كده
   كان أكبر شوية فالشريط كان باين غير مظبوط */
.auth-link {
  color: #13365f;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
  line-height: 1.5;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link-primary {
  background-color: #13365f;
  color: white;
}

.auth-link-primary:hover {
  background-color: #1f4b7d;
  text-decoration: none;
}

.auth-link-logout {
  color: #c0392b;
}

.auth-welcome {
  font-weight: 600;
  color: #13365f;
  font-size: 12px;
}

header {
  background-color: #13365f;
  color: white;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

/* الزرار شايل كلاس .btn اللي جواه margin-top: 15px — ده كان
   بينزّله تحت باقي أزرار الشريط بحوالي ٧ بيكسل. */
#langToggleBtn {
  margin: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  background-color: #13365f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.logo-block {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.logo-image {
  width: 55px;
  height: 55px;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 20px;
}


.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  background-color: #13365f;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  text-align: center;
  width: 100%;
  order: 3;
}

.hamburger-menu.open {
  display: flex;
}

.hamburger-menu a {
  color: white;
  text-decoration: none;
  padding: 10px;
  font-size: 14px;
}

.hamburger-menu a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 30px;
}

section {
  margin-top: 20px;
}

footer {
  background-color: #13365f;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background-color: #f0b84a;
  transform: translateY(-3px);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-card {
  text-align: center;
  width: 220px;
}

.service-card:hover .service-image-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(19, 54, 95, 0.15);
}

.service-image-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.service-image.active {
  opacity: 1;
}

.service-icon {
  background-color: white;
  border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(19, 54, 95, 0.15);
}

.service-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.service-card p {
  font-size: 12px;
  color: #777;
  margin: 0;
  line-height: 1.5;
}

.contact {
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 500px;
  margin: 20px auto 0;
  text-align: right;
}

.contact form label {
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}

/* القائمة المنسدلة كانت مستثناة من القاعدة دي، فصفحة الدفع
   كانت بتطلع بقوائم بشكل المتصفح الافتراضي من غير إطار —
   وهي أكتر صفحة محتاجة تبان محترمة. */
.contact form input,
.contact form select,
.contact form textarea {
  padding: 12px 14px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #223;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact form select {
  cursor: pointer;
}

.contact form input:focus,
.contact form select:focus,
.contact form textarea:focus {
  outline: none;
  border-color: #13365f;
  box-shadow: 0 0 0 3px rgba(19, 54, 95, 0.15);
}

.contact form textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   خانة بيانات البطاقة (Stripe)
   ------------------------------------------------------------
   Stripe بيحقن حقوله جوه العنصر ده، وماكانش عليه أي إطار —
   فالعميل كان بيشوف "Card number" سايبة في الفراغ وسط صفحة دفع.
   ============================================================ */
#card-element {
  padding: 14px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: #13365f;
  box-shadow: 0 0 0 3px rgba(19, 54, 95, 0.15);
}

#card-element.StripeElement--invalid {
  border-color: #c0392b;
}

.contact form button {
  margin-top: 20px;
  padding: 12px;
  background-color: #13365f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact form button:hover {
  background-color: #1f4b7d;
}

.tracking-search {
  display: flex;
  gap: 10px;
  width: fit-content;
  margin: 20px auto 40px;
  max-width: 500px;
}

.tracking-search input {
  flex: 1;
  width: 320px;
  padding: 14px 16px;
  border: 2px solid #13365f;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #13365f;
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}

.tracking-search input::placeholder {
  color: #6d8aa3;
}

.tracking-search input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(19, 54, 95, 0.15);
}

.tracking-search button {
  padding: 14px 28px;
  background-color: #13365f;
  color: white;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.tracking-search button:hover {
  background-color: #1f4b7d;
}

.hero {
  background-color: #f0f4f8;
  padding: 50px 30px;
  text-align: center;
}

.hero-slider {
  position: relative;
  background-color: #13365f;
  color: white;
  padding: 90px 30px;
  text-align: center;
  overflow: hidden;
  min-height: 260px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 54, 95, 0.7);
  z-index: 1;
}

.logo-text {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0;
}

.logo-text span {
  color: #f0b84a;
}

.logo-tagline {
  font-size: 11px;
  color: #f0b84a;
  letter-spacing: 0.5px;
  margin-top: 0;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.6s ease-in;
  position: relative;
  z-index: 2;
}

.hero-slide.active {
  display: block;
}

.hero-slide h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: white;
}

.hero-slide p {
  color: #d0dced;
  margin-bottom: 15px;
}

.hero-dots {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}

.hero-floating-card {
  position: relative;
  z-index: 2;
  margin: 25px auto 0;
  max-width: 320px;
  background-color: rgba(19, 54, 95, 0.95);
  border: 1px solid rgba(243, 156, 18, 0.5);
  border-radius: 10px;
  padding: 18px 25px;
}

.hero-since-badge {
  color: #f0b84a;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-floating-btn {
  display: inline-block;
  color: white;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.stats-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  background-color: #13365f;
  padding: 35px 20px;
  text-align: center;
}

.stat-item {
  min-width: 120px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #f0b84a;
}

.stat-plus {
  font-size: 28px;
  font-weight: 800;
  color: #f0b84a;
}

.stat-item p {
  color: #d8e2ee;
  font-size: 13px;
  margin: 4px 0 0 0;
}

.why-us {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border-bottom: 1px solid #eee;
}

.why-us-item {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 25px 20px;
  border-left: 1px solid #eee;
}

.why-us-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.why-us-text h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
}

.why-us-text p {
  font-size: 12px;
  color: #777;
  margin: 0;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background-color: #13365f;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  font-weight: bold;
}

.btn:hover {
  background-color: #1f4b7d;
}

.about {
  background-color: #ffffff;
  padding: 30px;
  border-top: 1px solid #ddd;
}

.about-text-box {
  background-color: #13365f;
  padding: 32px 34px;
  border-radius: 8px;
  /* الصندوق نفسه بيتوسّط الصفحة، والنص بيتوسّط جوّه */
  max-width: 860px;
  margin-inline: auto;
}

.about-text-box p {
  color: white;
  line-height: 1.9;
  margin: 0;
  text-align: center;
}

.tracking-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  position: relative;
}

.point {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ccc;
  margin-bottom: 8px;
}

.point.done .circle {
  background-color: #13365f;
}

.point.current .circle {
  background-color: #27ae60;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

.process-section {
  padding: 0 0 40px 0;
  text-align: center;
  background-color: white;
}

.process-title-bar {
  background-color: #13365f;
  padding: 30px;
  margin-bottom: 30px;
}

.process-title-bar h2 {
  color: white;
  margin: 0;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 0 30px;
}

/* كان عرض ثابت 180px، فالخمس خطوات مع الأسهم مكانوش بيدخلوا
   في سطر واحد والخطوة الخامسة كانت بتقع لوحدها تحت. دلوقتي
   بتتقاسم العرض المتاح وتصغر شوية بدل ما تنزل. */
.process-step {
  flex: 1 1 130px;
  max-width: 190px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #13365f;
  color: #f0b84a;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
  color: #222;
}

.process-step p {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

.process-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  color: #f0b84a;
  align-self: center;
  margin-top: 15px;
}

.products-section {
  padding: 40px 30px;
  text-align: center;
  background-color: white;
}

.products-section > p {
  max-width: 600px;
  margin: 10px auto 0;
  color: #777;
  font-size: 14px;
}

/* ============================================================
   شبكة الأقسام
   ------------------------------------------------------------
   كانت كروت بعرض ثابت 170px مرصوصة flex، فالخمسة مكانوش
   بيدخلوا في سطر واحد وكارت "أي شيء" كان بيقع لوحده تحت.
   دلوقتي خمسة أعمدة بتتقسم على العرض المتاح، وبتنقص لما
   الشاشة تصغر.
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.product-card {
  text-align: center;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover .product-image-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(240, 184, 74, 0.25);
  border-color: #f0b84a;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.product-image.active {
  opacity: 1;
}

.product-card h3 {
  font-size: 14px;
  margin: 10px 0 0 0;
}

.product-any-wrapper {
  background-color: #13365f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #f0b84a;
}

.product-any-icon {
  font-size: 42px;
}

/* الكارت بقى <a>، فبنشيل شكل الرابط ونخليه زي باقي الكروت */
.product-card-any {
  text-decoration: none;
  display: block;
}

.product-card-any h3 {
  color: #f0b84a;
}

.product-any-text {
  font-size: 11px;
  color: #777;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.main-location {
  background-color: #13365f;
  padding: 40px 30px;
  text-align: center;
  color: white;
}

.main-location h2 {
  color: white;
}

.main-location-boxes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.main-location-box {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 184, 74, 0.4);
  border-radius: 10px;
  padding: 25px;
  width: 240px;
}

.main-location-icon {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.main-location-icon-emoji {
  font-size: 36px;
  margin-bottom: 10px;
}

.main-location-box h3 {
  color: #f0b84a;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.main-location-box p {
  font-size: 13px;
  color: #d8e2ee;
  margin: 0;
  line-height: 1.5;
}

.main-location-connector {
  font-size: 26px;
  color: #f0b84a;
}

.sub-location {
  padding: 40px 30px;
  text-align: center;
  background-color: white;
}

.sub-location > p {
  max-width: 600px;
  margin: 10px auto 0;
  color: #777;
  font-size: 14px;
}

.countries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.country-card {
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: white;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(240, 184, 74, 0.25);
  border-color: #f0b84a;
}

.country-flag {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  /* ============================================================
     على الموبايل الروابط كانت بتتركب فوق بعض كل واحدة في سطر،
     مع إن زرار ☰ موجود جنبها أصلاً — يعني قائمة مفتوحة وزرار
     قائمة في نفس الوقت. دلوقتي بيفضل الشعار + زرار عرض السعر
     + ☰، وباقي الروابط جوه القائمة المنسدلة.
     ============================================================ */
  nav a {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }

  .services {
    flex-direction: column;
  }

  .process-steps {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   تبويبات لوحة الأدمن
   ------------------------------------------------------------
   شريط أزرار فوق المحتوى، كل زرار بيفتح قسم. الزرار المفتوح
   بيتلون كحلي بشريط ذهبي تحته.
   ============================================================ */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: #f4f6f8;
  border-bottom: 2px solid #e1e6ea;
  padding: 14px 16px;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-tab {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #13365f;
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.admin-tab:hover {
  background: #13365f;
  color: #fff;
  transform: translateY(-1px);
}

.admin-tab.is-active {
  background: #13365f;
  color: #fff;
  border-color: #13365f;
  box-shadow: inset 0 -3px 0 #f0b84a;
}

.admin-tab:focus-visible {
  outline: 3px solid #f0b84a;
  outline-offset: 2px;
}

/* على الموبايل: الأزرار تملا العرض بالتساوي */
@media (max-width: 600px) {
  .admin-tabs {
    gap: 6px;
    padding: 10px 8px;
  }

  .admin-tab {
    flex: 1 1 calc(50% - 6px);
    font-size: 13px;
    padding: 9px 8px;
  }
}

/* زرار "تحديث الحالة" جوه كارت الشحنة — ذهبي عشان يبان عن زرار المزامنة */
.update-btn {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #13365f;
  background: #f0b84a;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  margin-left: 8px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.update-btn:hover {
  filter: brightness(1.08);
}

.update-btn:focus-visible {
  outline: 3px solid #13365f;
  outline-offset: 2px;
}

/* ============================================================
   لوحة تحكم الأدمن — التصميم
   ============================================================ */

.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.admin-panel section {
  text-align: center;
}

.admin-panel h1,
.admin-panel h2 {
  text-align: center;
  color: #13365f;
  margin: 8px 0 10px;
}

.admin-panel h1 {
  font-size: 30px;
}

.admin-panel > section > p {
  text-align: center;
  color: #6b7a86;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ---------- شبكة كروت الشحنات ---------- */

/* flex مش grid: لما يبقى عدد الكروت فردي، الأخير بيقف في
   نص السطر بدل ما يتزنق في الركن */
.shipments-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin-top: 28px;
}

.shipment-card {
  flex: 1 1 330px;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 10px rgba(19, 54, 95, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.shipment-card:hover {
  box-shadow: 0 10px 26px rgba(19, 54, 95, 0.13);
  transform: translateY(-3px);
}

.shipment-card-head {
  background: #13365f;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.shipment-code {
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: #f0b84a;
  color: #13365f;
}

.status-5 {
  background: #27ae60;
  color: #fff;
}

/* ---------- شريط المراحل الخمسة ---------- */

/* ============================================================
   جسم كارت الشحنة
   ------------------------------------------------------------
   كان جدول صفوف باسم يمين وقيمة شمال وخط منقّط بينهم — شكل
   كشف حساب. دلوقتي الترتيب حسب اللي العميل بيدوّر عليه:
   رايحة فين، واقفة فين، بتوصل إمتى، وبعدين التفاصيل.
   ============================================================ */

.card-body {
  padding: 20px 20px 4px;
  flex: 1;
}

/* ---------- المسار ---------- */

.card-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #13365f;
  margin-bottom: 18px;
}

.route-arrow {
  color: #f0b84a;
  font-size: 20px;
}

/* ============================================================
   مراحل الشحنة على الكارت
   ------------------------------------------------------------
   كان شريط وسطر "المرحلة ٣ من ٥". لما يكون عند العميل كذا
   شحنة، ده مابيوريش الفرق بسرعة — لازم يفتكر المرحلة ٣ دي
   إيه. بالأسماء بيبص مرة واحدة ويعرف كل شحنة واقفة فين.
   ============================================================ */

.card-stages {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 4px;
}

/* الخط الواصل بين المراحل — ورا النقط */
.card-stages-track {
  position: absolute;
  top: 5px;
  right: 34px;
  left: 34px;
  height: 3px;
  background: #eef2f5;
  border-radius: 999px;
}

.card-stages-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #13365f, #27ae60);
  transition: width 0.6s ease;
}

.card-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.card-stage-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #dfe6ec;
  flex: 0 0 auto;
}

.card-stage-name {
  font-size: 10px;
  line-height: 1.35;
  color: #a5b1bc;
}

.card-stage.is-done .card-stage-dot {
  background: #13365f;
  border-color: #13365f;
}

.card-stage.is-done .card-stage-name {
  color: #6b7a86;
}

/* المرحلة الحالية هي اللي العميل بيدوّر عليها — أخضر ونابضة
   زي النقطة الحالية في صفحة التتبع العامة، عشان المكانين
   يبقوا بنفس اللغة البصرية */
.card-stage.is-now .card-stage-dot {
  background: #27ae60;
  border-color: #27ae60;
  animation: pulse 1.6s infinite;
}

.card-stage.is-now .card-stage-name {
  color: #13365f;
  font-weight: 700;
}

.card-cancelled-note {
  margin: -8px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
}

/* ---------- الوصول المتوقع: أهم معلومة للعميل ---------- */

.card-eta {
  background: #f7f9fb;
  border: 1px solid #e9eff4;
  border-radius: 10px;
  padding: 13px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.card-eta-label {
  display: block;
  font-size: 12px;
  color: #8795a1;
  margin-bottom: 3px;
}

.card-eta-value {
  font-size: 15px;
  font-weight: 700;
  color: #13365f;
}

/* ---------- التفاصيل ---------- */

.card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}

.card-facts > div {
  text-align: center;
}

.card-facts dt {
  font-size: 11.5px;
  color: #8795a1;
  margin-bottom: 3px;
}

.card-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #223;
  word-break: break-word;
}

/* ---------- أزرار الكارت ---------- */

.shipment-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 18px 18px;
}

.shipment-actions button {
  flex: 1;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease, background 0.2s ease;
}

.shipment-actions .update-btn {
  background: #f0b84a;
  color: #13365f;
  margin-left: 0;
}

/* ---------- فورمات اللوحة ---------- */

.admin-panel form {
  max-width: 520px;
  margin: 0 auto;
  text-align: right;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(19, 54, 95, 0.06);
}

.admin-panel form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #13365f;
  margin: 16px 0 6px;
}

.admin-panel form label:first-of-type {
  margin-top: 0;
}

.admin-panel form input,
.admin-panel form select {
  width: 100%;
  /* المتصفح بيدي القوايم ارتفاع أكبر من الخانات ٢ بكسل من نفسه،
     فالفورم اللي فيه الاتنين بيطلع مش مستوي. بنثبّت الارتفاع
     عشان يبقوا واحد. ٤٦ هو ارتفاع الخانة الطبيعي أصلاً. */
  height: 46px;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  background: #fbfcfd;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-panel form input:focus,
.admin-panel form select:focus {
  outline: none;
  border-color: #13365f;
  background: #fff;
}

/* المرحلة اللي الشحنة فيها دلوقتي — بتظهر لما تدوس "تحديث
   الحالة" من كارت الشحنة، عشان تختاري وانتي شايفة هي فين */
.admin-panel .current-step-note {
  margin: 18px 0 0;
  padding: 9px 13px;
  border-radius: 8px;
  background: #eef4f8;
  color: #13365f;
  font-size: 13px;
  font-weight: 600;
}

.admin-panel form button {
  width: 100%;
  margin-top: 24px;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #13365f;
  border: none;
  border-radius: 8px;
  padding: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-panel form button:hover {
  background: #0d4e7d;
}

/* رسائل النتيجة تحت الفورم */
.admin-panel form + p {
  max-width: 520px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .admin-panel {
    padding: 0 14px 36px;
  }

  .admin-panel h1 {
    font-size: 24px;
  }

  .shipments-grid {
    grid-template-columns: 1fr;
  }

  .shipment-actions {
    flex-direction: column;
  }
}

/* ============================================================
   الدفعة التانية: البحث · السجل · الرسائل
   ============================================================ */

/* ---------- شريط البحث ---------- */

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.search-bar input[type="search"] {
  flex: 2 1 280px;
}

.search-bar select {
  flex: 1 1 170px;
}

.search-bar input,
.search-bar select {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  background: #fbfcfd;
}

.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: #13365f;
  background: #fff;
}

.result-count {
  text-align: center;
  color: #8795a1;
  font-size: 13px;
  margin: 14px 0 0;
}

/* ---------- حالة الإلغاء ---------- */

.status-cancelled {
  background: #c0392b;
  color: #fff;
}

.shipment-card.is-cancelled {
  opacity: 0.72;
}

.shipment-card.is-cancelled .shipment-card-head {
  background: #6b7a86;
}

/* ---------- أزرار الكارت ---------- */

.shipment-actions {
  flex-wrap: wrap;
}

.shipment-actions .history-btn,
.shipment-actions .edit-btn {
  background: #fff;
  color: #13365f;
  border-color: #cdd7df;
}

.shipment-actions .history-btn:hover,
.shipment-actions .edit-btn:hover {
  background: #f1f5f8;
}

.shipment-actions .cancel-btn {
  background: #fff;
  color: #c0392b;
  border-color: #eccac5;
}

.shipment-actions .cancel-btn:hover {
  background: #fdf1ef;
}

/* ---------- سجل حركة الشحنة ---------- */

.shipment-history {
  border-top: 1px solid #eef2f5;
  padding: 14px 18px;
  background: #fafcfd;
}

.history-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  text-align: right;
}

.history-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f0b84a;
  margin-top: 5px;
  flex-shrink: 0;
}

.history-row strong {
  display: block;
  color: #13365f;
  font-size: 13px;
}

.history-time {
  display: block;
  color: #8795a1;
  font-size: 12px;
  margin-top: 2px;
}

.history-note {
  display: block;
  color: #6b7a86;
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

.history-loading {
  margin: 0;
  font-size: 13px;
  color: #8795a1;
  text-align: center;
}

/* ---------- عدّاد الرسايل الجديدة ---------- */

.unread-badge {
  display: inline-block;
  min-width: 20px;
  margin-right: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- كروت الرسائل ---------- */

.messages-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.message-card {
  background: #fff;
  border: 1px solid #e3e9ee;
  border-right: 4px solid #f0b84a;
  border-radius: 12px;
  padding: 18px;
  text-align: right;
  box-shadow: 0 2px 10px rgba(19, 54, 95, 0.06);
}

.message-card.is-read {
  border-right-color: #e3e9ee;
  opacity: 0.82;
}

.message-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-sender {
  font-size: 17px;
  font-weight: 700;
  color: #13365f;
}

.new-tag {
  font-size: 11px;
  font-weight: 700;
  background: #c0392b;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

.message-date {
  margin: 4px 0 12px;
  font-size: 12px;
  color: #8795a1;
}

.message-contact {
  margin: 0 0 12px;
}

.message-contact > div {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
}

.message-contact dt {
  color: #8795a1;
  min-width: 52px;
}

.message-contact dd {
  margin: 0;
  font-weight: 600;
}

.message-contact a {
  color: #13365f;
  text-decoration: none;
}

.message-contact a:hover {
  text-decoration: underline;
}

.message-body {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f7f9fb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #334;
  white-space: pre-wrap;
}

.message-actions {
  display: flex;
  gap: 8px;
}

.message-actions .wa-btn,
.message-actions .read-btn {
  flex: 1;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.message-actions .wa-btn {
  background: #25d366;
  color: #fff;
}

.message-actions .read-btn {
  background: #fff;
  color: #13365f;
  border-color: #cdd7df;
}

@media (max-width: 600px) {
  .messages-list {
    grid-template-columns: 1fr;
  }

  .search-bar input[type="search"],
  .search-bar select {
    flex: 1 1 100%;
  }
}

/* ---------- خانة الموبايل بكود الدولة ---------- */

.phone-field {
  display: flex;
  gap: 8px;
}

.phone-field select {
  flex: 0 0 auto;
  max-width: 180px;
}

.phone-field input {
  flex: 1;
  direction: ltr;
  text-align: left;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8795a1;
}

@media (max-width: 480px) {
  .phone-field {
    flex-direction: column;
  }

  .phone-field select {
    max-width: none;
  }
}

/* ============================================================
   الدفعة التالتة: الإحصائيات · الدفع · مدير الحساب
   ============================================================ */

/* ---------- كروت الإحصائيات ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(19, 54, 95, 0.06);
  border-top: 4px solid #13365f;
}

.stat-navy  { border-top-color: #13365f; }
.stat-gold  { border-top-color: #f0b84a; }
.stat-green { border-top-color: #27ae60; }
.stat-red   { border-top-color: #c0392b; }
.stat-grey  { border-top-color: #b9c4cd; }

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #13365f;
  line-height: 1.3;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #8795a1;
}

/* ---------- عمودي الرسم والوجهات ---------- */

.stats-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.stats-block {
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(19, 54, 95, 0.06);
}

.stats-block h3 {
  margin: 0 0 18px;
  font-size: 16px;
  color: #13365f;
  text-align: center;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.step-name {
  flex: 0 0 105px;
  font-size: 13px;
  color: #6b7a86;
  text-align: right;
}

.step-bar {
  flex: 1;
  height: 10px;
  background: #eef2f5;
  border-radius: 999px;
  overflow: hidden;
}

.step-bar > span {
  display: block;
  height: 100%;
  background: #13365f;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.step-count {
  flex: 0 0 34px;
  font-size: 14px;
  font-weight: 700;
  color: #13365f;
  text-align: left;
}

.dest-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed #eef2f5;
  font-size: 14px;
}

.dest-row:last-child { border-bottom: none; }
.dest-row strong { color: #13365f; }

.no-price {
  color: #b9760f !important;
  font-weight: 500 !important;
}

/* ---------- صندوق المبالغ في صفحة الدفع ---------- */

.amount-box {
  margin: 18px 0 4px;
  padding: 16px 18px;
  background: #f7f9fb;
  border: 1px solid #e3e9ee;
  border-radius: 10px;
}

.amount-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: #6b7a86;
}

.amount-row strong {
  color: #223;
  font-weight: 600;
}

.amount-row-due {
  border-top: 1px solid #e3e9ee;
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
  color: #13365f;
}

.amount-row-due strong {
  color: #13365f;
  font-size: 19px;
  font-weight: 700;
}

/* ---------- صندوق مدير الحساب ---------- */

.manager-box {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  background: #13365f;
  border-radius: 14px;
  color: #fff;
  text-align: center;
}

.manager-label {
  display: block;
  font-size: 12px;
  color: #b9cede;
  margin-bottom: 4px;
}

.manager-name {
  display: block;
  font-size: 19px;
  margin-bottom: 12px;
}

.manager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.manager-links a {
  font-size: 13px;
  font-weight: 600;
  color: #13365f;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
}

.manager-links .wa-btn {
  background: #25d366;
  color: #fff;
}

/* ---------- زرار التقييم ---------- */

.shipment-actions .rate-btn {
  background: #f0b84a;
  color: #13365f;
}

.shipment-actions .rate-btn:disabled {
  background: #eef2f5;
  color: #8795a1;
  cursor: default;
}

@media (max-width: 600px) {
  .stat-value { font-size: 23px; }
  .step-name { flex-basis: 84px; font-size: 12px; }
}

/* ---------- التبديل بين الدخول وإنشاء الحساب ---------- */

.auth-switch {
  max-width: 520px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid #e3e9ee;
  text-align: center;
  font-size: 14px;
  color: #6b7a86;
}

.auth-switch a {
  color: #13365f;
  font-weight: 700;
  text-decoration: none;
  margin-right: 6px;
  border-bottom: 2px solid #f0b84a;
  padding-bottom: 1px;
}

.auth-switch a:hover {
  color: #f0b84a;
  border-bottom-color: #13365f;
}

/* علامة على العميل اللي مالوش ولا شحنة — أهدى من علامة
   "جديد" عشان دي معلومة مش تنبيه */
.idle-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f5;
  color: #8795a1;
  font-size: 11px;
  font-weight: 600;
}

/* صندوق بيظهر بعد تحديث الحالة برسالة واتساب جاهزة */
.whatsapp-nudge {
  max-width: 520px;
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0f7f2;
  border: 1px solid #d9eade;
  text-align: center;
}

.whatsapp-nudge .nudge-note {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4a6b55;
}

/* ============================================================
   كود العميل
   ------------------------------------------------------------
   بيظهر فوق شحناته. الرقم كبير ومتباعد عشان يتقري بسهولة
   وهو بيقوله في التليفون.
   ============================================================ */

.client-code-box {
  max-width: 520px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #f4f7f9;
  border: 1px solid #e3e9ee;
  text-align: center;
}

.client-code-label {
  display: block;
  font-size: 12px;
  color: #8795a1;
  margin-bottom: 4px;
}

.client-code-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #13365f;
}

.client-code-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8795a1;
}

/* ============================================================
   زرار إظهار كلمة المرور
   ------------------------------------------------------------
   الزرار بموضع مطلق جوه الخانة، فمابياخدش مساحة من التخطيط —
   الخانة بتفضل بنفس عرضها وارتفاعها بالظبط. الحشو الزيادة على
   ناحية الزرار بس عشان النقط ماتدخلش تحته.
   ============================================================ */

.password-field {
  position: relative;
  display: block;
}

/* الخانة جوه الغلاف لازم تفضل زي أي خانة تانية بالظبط.
   الكلاس مع الغلاف عشان التخصيص يكسب على قواعد الفورم العامة. */
.password-field input.password-input {
  width: 100%;
  box-sizing: border-box;
  padding-inline-end: 46px;
}

/* ------------------------------------------------------------
   الزرار

   القواعد العامة للفورم (.contact form button و
   .admin-panel form button) بتحط margin-top وpadding وخلفية
   كاملة على أي زرار جوه فورم — وده كان بيزحزح الزرار ده برّه
   الخانة. فبنسمّي السياق بالكامل عشان التخصيص يكسب، مش
   بنعتمد على ترتيب السطور في الملف.
   ------------------------------------------------------------ */
.password-toggle,
.contact form .password-toggle,
.admin-panel form .password-toggle {
  position: absolute;
  inset-inline-end: 6px;

  /* التوسيط بالهوامش التلقائية مش بـtransform: في الموقع قواعد
     بتغيّر transform على الأزرار وقت الـhover. */
  top: 0;
  bottom: 0;
  margin: auto 0;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8795a1;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle:hover,
.contact form .password-toggle:hover,
.admin-panel form .password-toggle:hover {
  background: #eef3f7;
  color: #13365f;
  transform: none;
  box-shadow: none;
}

.password-toggle.is-visible,
.contact form .password-toggle.is-visible,
.admin-panel form .password-toggle.is-visible {
  color: #13365f;
}

.password-toggle:focus-visible {
  outline: 2px solid #f0b84a;
  outline-offset: -2px;
}

.password-toggle svg {
  display: block;
}

/* ============================================================
   تأكيد البريد وقت التسجيل
   ============================================================ */

/* البريد اللي بعتنا عليه الكود — بيتقري، مش بيتكتب */
.verify-email {
  max-width: 520px;
  margin: 4px auto 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f4f7f9;
  border: 1px solid #e3e9ee;
  text-align: center;
  font-weight: 700;
  color: #13365f;
  word-break: break-all;
}

/* خانة الكود: أرقام متباعدة عشان تتقري وتتراجع بسهولة */
.contact form input.code-input {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 10px;
  padding-right: 14px;
}

/* زرار شكله رابط — "ابعت كود جديد" و"غيّر البريد".
   لازم يكون <button> مش <a> لأنه بيعمل حاجة في الصفحة
   مابيروحش لمكان، وده اللي قارئ الشاشة بيقوله للمستخدم. */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 6px;
  font-family: inherit;
  font-size: inherit;
  color: #13365f;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid #f0b84a;
  padding-bottom: 1px;
}

.link-btn:hover {
  color: #f0b84a;
  border-bottom-color: #13365f;
}

.link-btn:disabled {
  color: #8795a1;
  border-bottom-color: #d5dde3;
  cursor: default;
}

/* رابط "نسيت كلمة المرور؟" — أهدأ من رابط إنشاء الحساب */
.auth-switch-forgot {
  border-top: none;
  padding-top: 0;
  margin-top: 14px;
  margin-bottom: 0;
}

.auth-switch-forgot a {
  font-weight: 500;
  color: #6b7a86;
  border-bottom-color: #cdd7df;
}

.auth-switch-forgot a:hover {
  color: #13365f;
  border-bottom-color: #f0b84a;
}

/* نتيجة إنشاء كلمة المرور المؤقتة */
.fulfill-result {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  word-break: break-all;
}

.fulfill-result:empty {
  margin: 0;
}

.message-actions .fulfill-btn {
  flex: 1;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #f0b84a;
  color: #13365f;
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
}

.message-actions .fulfill-btn:disabled {
  background: #eef2f5;
  color: #8795a1;
  cursor: default;
}

/* حالة طلب عرض السعر */
.quote-status {
  font-size: 11px;
  font-weight: 700;
  background: #eef2f5;
  color: #6b7a86;
  padding: 3px 9px;
  border-radius: 999px;
}

.message-actions .quote-btn,
.message-actions .close-quote-btn,
.message-actions .use-client-btn {
  flex: 1;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.message-actions .quote-btn,
.message-actions .use-client-btn {
  background: #f0b84a;
  color: #13365f;
}

.message-actions .close-quote-btn {
  background: #fff;
  color: #6b7a86;
  border-color: #cdd7df;
}

/* خانة "دولة أخرى" — بتظهر تحت القائمة لما يتم اختيارها */
.country-other {
  margin-top: 8px;
}

/* رابط الرجوع للوحة في الشريط العلوي — بارز عشان يبان بسرعة */
/* بياخد مقاسه من .auth-link — هنا اللون بس */
.auth-link-dash {
  background: #f0b84a;
  color: #13365f !important;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-dash:hover {
  filter: brightness(1.08);
}

/* رابط اللوحة في قائمة الـ3 شرط */
.menu-dash-link {
  color: #f0b84a !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(240, 184, 74, 0.3);
}

/* ============================================================
   لوحة التحكم — واجهة منفصلة عن الموقع
   ============================================================ */

.admin-body {
  background: #f4f6f8;
  min-height: 100vh;
}

/* ---------- الشريط العلوي ---------- */

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #13365f;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(19, 54, 95, 0.18);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}

.admin-brand-text {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user {
  color: #cfe0ec;
  font-size: 14px;
  font-weight: 600;
}

.admin-site-link,
.admin-logout,
.admin-lang {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.admin-site-link {
  background: #f0b84a;
  color: #13365f;
}

.admin-logout {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.admin-logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-lang {
  background: #fff;
  color: #13365f;
  border: none;
}

/* زرار القائمة على الموبايل */
.admin-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.admin-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.admin-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.admin-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.admin-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- التخطيط: قائمة جانبية + محتوى ---------- */

.admin-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 64px);
}

.admin-nav {
  /* nav العام في الموقع معمول flex بمسافات — بنلغي ده هنا
     عشان أزرار الأقسام تنزل تحت بعض */
  display: block;
  text-align: right;
  gap: 0;
  flex: 0 0 240px;
  background: #fff;
  border-left: 1px solid #e3e9ee;
  padding: 20px 0 40px;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.admin-nav-group {
  margin-bottom: 22px;
}

/* آخر مجموعة في الشريط — إعدادات حسابك انتي، مش شغل الشركة.
   الخط الفاصل بيخلي العين تعرف على طول إنها حاجة من نوع تاني،
   من غير ما نغيّر حجم ولا ترتيب أي زرار. */
.admin-nav-group.is-personal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #e9eef2;
}

.admin-nav-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a3b1bd;
  padding: 0 22px 8px;
}

/* أزرار الأقسام — نفس الكلاس القديم بشكل جديد تماماً */
.admin-nav .admin-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #44525e;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 11px 22px;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: none;
}

.admin-nav .admin-tab:hover {
  background: #f4f7f9;
  color: #13365f;
  transform: none;
}

.admin-nav .admin-tab.is-active {
  background: #eaf1f6;
  color: #13365f;
  font-weight: 700;
  box-shadow: inset -4px 0 0 #f0b84a;
  border: none;
}

.admin-nav .admin-tab:focus-visible {
  outline: 2px solid #f0b84a;
  outline-offset: -2px;
}

/* ---------- منطقة المحتوى ---------- */

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.admin-body .admin-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px 56px;
}

/* ---------- الموبايل والتابلت ---------- */

@media (max-width: 900px) {
  .admin-topbar {
    padding: 10px 14px;
  }

  .admin-brand-text {
    font-size: 15px;
  }

  .admin-menu-toggle {
    display: flex;
    order: 2;
  }

  .admin-topbar-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .admin-layout {
    display: block;
  }

  .admin-nav {
    display: none;
    position: static;
    max-height: none;
    width: 100%;
    flex: none;
    border-left: none;
    border-bottom: 1px solid #e3e9ee;
    padding: 14px 0 18px;
  }

  .admin-nav.is-open {
    display: block;
  }

  .admin-body .admin-panel {
    padding: 22px 14px 40px;
  }
}

/* ============================================================
   الصفحة الرئيسية — بنية القصة
   ============================================================ */

.section-lead {
  text-align: center;
  color: #6b7a86;
  font-size: 17px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 36px;
}

.section-link {
  display: block;
  text-align: center;
  margin-top: 34px;
  color: #13365f;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid #f0b84a;
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 2px;
}

.section-link:hover {
  color: #f0b84a;
  border-bottom-color: #13365f;
}

/* ---------- أزرار الهيرو ---------- */

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: #f0b84a;
  color: #13365f;
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ---------- 2) المشكلة ---------- */

.problem {
  background: #f7f9fb;
  padding: 72px 20px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  max-width: 1050px;
  margin: 0 auto;
}

.problem-card {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.problem-num {
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: "Courier New", monospace;
  font-size: 34px;
  font-weight: 700;
  color: #eef2f6;
  line-height: 1;
}

.problem-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #13365f;
  position: relative;
}

.problem-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #5b6a76;
}

/* ---------- 3) الفيديو ---------- */

.story-video {
  background: #13365f;
  padding: 76px 20px 84px;
}

.story-video h2 {
  color: #fff;
}

.story-video .section-lead {
  color: #bcd3e3;
  font-size: 18px;
}

.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* نسبة 16:9 ثابتة — الإطار مايقفزش وقت التحميل */
.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  background: #04263f;
}

.video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   اللوحة البديلة — بتملا نفس مكان الفيديو
   ============================================================ */
.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: #04263f;
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.video-fallback p {
  color: #bcd3e3;
  font-size: 16px;
  margin: 0;
}

/* ---------- 6) كيف نعمل ---------- */

.how-it-works {
  background: #f7f9fb;
  padding: 72px 20px;
}

.how-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  /* خمس خطوات في صف واحد — القصة بتتقري أسهل لما الخطوات
     تبقى خط واحد متصل مش سطرين */
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

.how-step {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #13365f;
  color: #f0b84a;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.how-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #13365f;
}

.how-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5b6a76;
}

/* ---------- 8) الخطوة الجاية ---------- */

.final-cta {
  background: linear-gradient(135deg, #13365f 0%, #0d4e7d 100%);
  padding: 76px 20px 84px;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 12px;
}

.final-cta p {
  color: #bcd3e3;
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* نسخة أخف لنهاية الصفحات الداخلية — الصفحات دي أقصر من
   الرئيسية، فالقسم الكبير كان هياخد نصها */
.page-cta {
  padding: 54px 20px 58px;
  margin-top: 10px;
}

.page-cta h2 {
  font-size: 26px;
}

.page-cta p {
  font-size: 16px;
}

@media (max-width: 600px) {
  .problem,
  .how-it-works,
  .story-video,
  .final-cta {
    padding: 52px 14px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

/* ============================================================
   زرار واتساب عائم
   ------------------------------------------------------------
   ثابت في الركن، بيتوسّع لما الماوس تعدّي عليه عشان ياخد
   مساحة أقل وقت القراءة العادية.
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  transition: gap 0.25s ease, padding 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.whatsapp-float-label {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.whatsapp-float:hover {
  gap: 10px;
  transform: translateY(-2px);
}

.whatsapp-float:hover .whatsapp-float-label {
  max-width: 140px;
  opacity: 1;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #13365f;
  outline-offset: 3px;
}

/* على الموبايل: دايرة بس — الشاشة ضيقة */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-float-label {
    display: none;
  }
}

/* ============================================================
   صفحة تتبع الشحنة — إعادة تصميم
   ============================================================ */

.tracking-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  text-align: center;
}

.tracking-lead {
  color: #6b7a86;
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 28px;
}

.tracking-page .tracking-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  width: auto;
}

.tracking-page .tracking-search input {
  flex: 1;
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 14px 18px;
  border: 2px solid #d5dde3;
  border-radius: 10px;
  background: #fbfcfd;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tracking-page .tracking-search input:focus {
  outline: none;
  border-color: #13365f;
  background: #fff;
}

.tracking-page .tracking-search button {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #13365f;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tracking-page .tracking-search button:hover {
  background: #0d4e7d;
}

.tracking-page .tracking-search button:disabled {
  background: #9aa9b5;
  cursor: default;
}

#trackingMessage {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
}

/* ---------- الحالة الافتراضية ---------- */

.tracking-hint {
  margin-top: 56px;
  padding: 18px 24px;
  background: #f7f9fb;
  border: 1px dashed #d5dde3;
  border-radius: 14px;
}

.tracking-hint p {
  margin: 0;
  color: #6b7a86;
  font-size: 15px;
  line-height: 1.8;
}

.tracking-hint-sub a {
  color: #13365f;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #f0b84a;
}

/* ---------- كارت النتيجة ---------- */

.tracking-result {
  margin-top: 30px;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(19, 54, 95, 0.08);
  text-align: right;
}

.result-head {
  background: #13365f;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.result-code {
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.result-status {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  background: #f0b84a;
  color: #13365f;
}

.result-status.step-5 {
  background: #27ae60;
  color: #fff;
}

.result-status.is-cancelled {
  background: #c0392b;
  color: #fff;
}

.result-details {
  margin: 0;
  padding: 20px 24px 6px;
}

.result-details > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef2f5;
}

.result-details > div:last-child {
  border-bottom: none;
}

.result-details dt {
  font-size: 14px;
  color: #8795a1;
}

.result-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #223;
  text-align: left;
}

/* ---------- الخط الزمني ---------- */
/* شكل الخط زي ما كان بالظبط — نقطة لكل مرحلة واسمها تحتها.
   القواعد الأساسية فوق (.tracking-line / .point / .circle) هي
   اللي بتتحكم في الشكل، وهنا بنظبط مكانه في الصفحة بس:
   تحت خانة البحث على طول، ظاهر قبل أي بحث. */

.tracking-page .tracking-line {
  max-width: 640px;
  margin: 26px auto 30px;
  padding: 0 10px;
}

.result-footer {
  border-top: 1px solid #eef2f5;
  padding: 16px 24px;
  text-align: center;
  background: #fafcfd;
}

.result-help {
  color: #13365f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #f0b84a;
  padding-bottom: 2px;
}

/* ---------- الموبايل: الرحلة بتبقى رأسية ---------- */

@media (max-width: 620px) {
  .tracking-page {
    padding: 32px 14px 48px;
  }

  .tracking-page .tracking-search {
    flex-direction: column;
  }

  .tracking-page .tracking-line {
    margin: 22px auto 26px;
    padding: 0 4px;
  }

  /* الأسماء بتصغر عشان الخمس مراحل يفضلوا في صف واحد */
  .tracking-page .point {
    font-size: 11px;
  }
}

/* ============================================================
   شاشة صلاحيات الموظفين
   ------------------------------------------------------------
   كارت لكل موظف، وجواه مربّع اختيار لكل صلاحية. كارت المدير
   بيتعرض للقراءة بس عشان محدش يقفل على نفسه اللوحة بالغلط.
   ============================================================ */

.perm-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
  text-align: right;
}

.perm-loading {
  color: #8795a1;
  text-align: center;
  margin: 24px 0;
}

.perm-card {
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  padding: 20px 22px 22px;
  background: #fff;
}

.perm-card.is-admin {
  background: #fafcfd;
  border-style: dashed;
}

.perm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  /* <header> جوه الكارت كان بياخد ستايل هيدر الموقع (خلفية كحلي
     وحشو وظل)، فاسم الموظف الكحلي كان مش باين على الكحلي */
  background: none;
  padding: 0;
  box-shadow: none;
  z-index: auto;
  justify-content: flex-start;
}

.perm-name {
  font-weight: 700;
  font-size: 16px;
  color: #13365f;
}

.perm-role {
  font-size: 12px;
  font-weight: 700;
  color: #13365f;
  background: #f0d878;
  border-radius: 999px;
  padding: 3px 11px;
}

.perm-email {
  margin: 4px 0 16px;
  font-size: 13px;
  color: #8795a1;
  direction: ltr;
  text-align: right;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 18px;
  margin-bottom: 18px;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #223;
  cursor: pointer;
  margin: 0;
}

.perm-item input {
  width: 17px;
  height: 17px;
  accent-color: #13365f;
  cursor: pointer;
  flex: 0 0 auto;
}

.perm-item input:disabled {
  cursor: default;
}

.perm-item input:disabled + span {
  color: #8795a1;
}

.perm-save {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #13365f;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.perm-save:hover {
  filter: brightness(1.15);
}

.perm-save:disabled {
  opacity: 0.6;
  cursor: default;
}

.perm-note {
  margin: 0;
  font-size: 13px;
  color: #8795a1;
}

/* ---------- إيقاف حساب موظف ---------- */

.perm-power-row {
  margin-top: 12px;
  text-align: center;
}

.perm-power {
  background: none;
  border: 1px solid #e0c9c9;
  color: #a8443c;
  border-radius: 8px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.perm-power:hover {
  background: #fdf3f2;
  transform: none;
}

.perm-power.is-off {
  border-color: #cfe3d6;
  color: #1e7a4d;
}

/* تحويل النوع ومسح الحساب — جنب زرار الإيقاف وبنفس حجمه */
.perm-power-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.perm-role-btn,
.perm-delete {
  background: none;
  border: 1px solid #d5dde5;
  color: #13365f;
  border-radius: 8px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.perm-delete {
  border-color: #e9b7b2;
  color: #b03a2e;
  background: #fdf3f2;
}

.perm-role-btn:hover,
.perm-delete:hover {
  transform: none;
  filter: brightness(0.97);
}

.perm-power.is-off:hover {
  background: #f1f8f4;
}

.perm-you {
  font-size: 12px;
  color: #a3b1bd;
}

/* كارت المدير (import@): أول القايمة دايماً (الترتيب من الخادم)،
   وأزرق بعرض القايمة كلها عشان يبان من أول نظرة (طلب العميل ١٣
   أكتوبر ٢٠٢٦). الكلام أبيض عشان يتقري على الأزرق. */
.perm-card.is-owner {
  background: linear-gradient(135deg, #13365f 0%, #1f4b7d 100%);
  border-color: #13365f;
  box-shadow: 0 10px 28px rgba(19, 54, 95, 0.22);
}

.perm-card.is-owner .perm-name {
  color: #fff;
}

.perm-card.is-owner .perm-email,
.perm-card.is-owner .perm-note,
.perm-card.is-owner .perm-item input:disabled + span {
  color: #d3deea;
}

.perm-card.is-owner .perm-you {
  color: #f0b84a;
  font-weight: 700;
}

/* الكارت الموقوف باهت عشان يتفرّق بالعين من مسافة */
.perm-card.is-inactive {
  opacity: 0.62;
}

.perm-off-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f6e9e8;
  color: #a8443c;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .perm-grid {
    grid-template-columns: 1fr;
  }

  .perm-save {
    width: 100%;
  }
}

/* ============================================================
   إعدادات الحساب في صفحة العميل
   ------------------------------------------------------------
   فورم كلمة المرور وفورم البريد كانوا مفتوحين تحت الشحنات
   على طول. دلوقتي سطر واحد بيفتحهم لما العميل يحتاجهم.
   ============================================================ */

.account-settings {
  max-width: 560px;
  margin: 18px auto 40px;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.account-settings > summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #13365f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.account-settings > summary::-webkit-details-marker {
  display: none;
}

/* سهم بيلف لما القسم يتفتح */
.account-settings > summary::after {
  content: "⌄";
  order: 2;
  font-size: 18px;
  line-height: 1;
  color: #8795a1;
  transition: transform 0.2s ease;
}

.account-settings[open] > summary::after {
  transform: rotate(180deg);
}

.account-settings > summary:hover {
  background: #fafcfd;
}

.account-settings .contact {
  padding: 0 22px 10px;
  background: none;
  text-align: center;
}

.account-settings .contact h2 {
  font-size: 17px;
  text-align: center;
}

.account-settings .contact > p {
  font-size: 13px;
  color: #8795a1;
  text-align: center;
  margin: 0;
}

/* الخانات نفسها بتفضل بعرض كامل — ده أنضف من توسيطها
   وسايبة فراغ على الجنبين */
.account-settings .contact form {
  text-align: center;
}

.account-settings .contact form label {
  display: block;
  text-align: center;
}

.account-settings .contact form input {
  text-align: center;
}

.account-settings .contact .field-hint {
  text-align: center;
}

.account-settings .contact form {
  margin-top: 10px;
}

.account-settings .contact:last-of-type {
  padding-bottom: 24px;
  border-top: 1px solid #eef2f5;
  padding-top: 20px;
}

/* ---------- صفحة إنشاء الحساب ---------- */

.register-actions {
  margin: 26px 0 8px;
}

/* ============================================================
   ترويسة صفحة العميل
   ------------------------------------------------------------
   كانت وارثة محاذاة اليمين من .about، فالعنوان يقف في الركن
   والكروت تحته في النص — شكل غير متوازن.
   ============================================================ */

.my-shipments-head {
  text-align: center;
  padding: 44px 20px 0;
}

.my-shipments-head h1 {
  margin: 0 0 8px;
  color: #13365f;
}

.my-shipments-head > p {
  margin: 0;
  color: #8795a1;
  font-size: 16px;
}

.my-shipments-head .shipments-grid {
  max-width: 980px;
  margin: 30px auto 0;
}

/* حالة "مفيش شحنات" كانت سطر نص سايب في الفراغ */
.my-shipments-head #shipmentsMessage:not(:empty) {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 30px 24px;
  background: #fff;
  border: 1px dashed #d5dde3;
  border-radius: 14px;
  color: #8795a1;
  font-size: 15px;
}

@media (max-width: 600px) {
  .my-shipments-head {
    padding: 32px 14px 0;
  }

  .card-body {
    padding: 17px 16px 4px;
  }

  .card-route {
    font-size: 17px;
  }

  /* الكارت بيضيق على الموبايل، فالتفاصيل تبقى تحت بعض
     بدل ما القيم تتقطّع نُصّين */
  .card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
  }

  .card-eta-value {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .card-facts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   قنوات التواصل
   ------------------------------------------------------------
   الصفحة كانت فورم بس. العميل الجاد عايز يكلّم حد دلوقتي،
   وشركات الشحن بالذات بيدوّر على تليفون يطمن بيه.
   ============================================================ */

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 700px;
  margin: 28px auto 0;
}

.contact-channel {
  flex: 1 1 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-channel:hover {
  border-color: #f0b84a;
  box-shadow: 0 8px 20px rgba(19, 54, 95, 0.1);
  transform: translateY(-2px);
}

.contact-channel-label {
  font-size: 12px;
  color: #8795a1;
}

.contact-channel-value {
  font-size: 14.5px;
  font-weight: 700;
  color: #13365f;
  word-break: break-all;
}

.contact-or {
  margin: 30px 0 0;
  color: #8795a1;
  font-size: 14px;
}

@media (max-width: 600px) {
  .contact-channel {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* ============================================================
   سطر شرح المراحل
   ------------------------------------------------------------
   النقط كانت بتظهر من غير عنوان، فالزائر اللي لسه مابحثش
   مايعرفش هي إيه. السطر ده بيخليها معلومة مفيدة قبل البحث.
   ============================================================ */

.stages-intro {
  max-width: 520px;
  margin: 34px auto 4px;
  color: #8795a1;
  font-size: 14px;
  line-height: 1.8;
}

/* بعد ما النتيجة تظهر، الشرح مابقاش ليه لازمة — النقط بقت
   بتقول المرحلة بنفسها */
.tracking-page:has(#trackingResult:not([hidden])) .stages-intro {
  display: none;
}

/* ============================================================
   الروابط المكررة في القائمة المنسدلة
   ------------------------------------------------------------
   أربع روابط (الرئيسية · من نحن · خدماتنا · تتبع الشحنة)
   ظاهرة في القائمة العلوية وفي الـ☰ كمان، فالقائمة بتطول
   من غير داعي على الكمبيوتر.
   بنخفيهم هنا — لكن على الموبايل القائمة العلوية نفسها
   بتختفي، فالـ☰ بيبقى الطريق الوحيد ليهم ولازم يفضلوا.
   ============================================================ */

@media (min-width: 601px) {
  .hamburger-menu .menu-dupe {
    display: none;
  }
}

/* ============================================================
   ترقية المكوّنات
   ------------------------------------------------------------
   بتيجي في آخر الملف عشان تتغلّب على القواعد القديمة من غير
   ما نلمسها — فلو حاجة مانعجبتكيش نشيل الجزء ده وخلاص.
   الشكل بس: مفيش أي تغيير في سلوك ولا محتوى.
   ============================================================ */

/* ---------- الهيدر: عمق بدل لون مسطّح ---------- */

header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--lift-2);
  position: relative;
  z-index: 20;
}

nav a {
  position: relative;
  transition: color var(--fast);
}

/* خط ذهبي بيمتد تحت الرابط بدل التسطير المفاجئ */
nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-pill);
  transform: scaleX(0);
  transition: transform var(--slow);
}

nav a:hover::after {
  transform: scaleX(1);
}

.top-banner {
  background: var(--navy-deep);
  letter-spacing: 0.1px;
}

.info-bar {
  background: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.logo-image {
  transition: transform var(--slow);
}

.logo-block:hover .logo-image {
  transform: scale(1.06);
}

/* ---------- الأزرار ---------- */

.btn,
.btn-primary,
.contact form button,
.auth-link-primary {
  letter-spacing: 0.2px;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), filter var(--fast);
}

.btn:hover,
.contact form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
}

/* الضغطة بترجع الزرار مكانه — إحساس إنه اتضغط فعلاً */
.btn:active,
.contact form button:active,
.auth-link:active {
  transform: translateY(0);
}

.contact form button {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--r-sm);
  font-weight: 700;
}

.contact form button:hover {
  filter: brightness(1.1);
}

/* ---------- الخانات ---------- */

.contact form input,
.contact form select,
.contact form textarea {
  border-color: #dde5eb;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.contact form input:hover,
.contact form select:hover,
.contact form textarea:hover {
  border-color: #c9d5df;
}

.contact form input:focus,
.contact form select:focus,
.contact form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(19, 54, 95, 0.1);
}

.contact form label {
  color: var(--ink-soft);
  letter-spacing: 0.1px;
}

/* ---------- الكروت ---------- */

.shipment-card,
.perm-card,
.contact-channel,
.account-settings,
.tracking-result,
.product-image-wrapper {
  border-color: var(--line);
  box-shadow: var(--lift-1);
  transition: box-shadow var(--slow), transform var(--slow), border-color var(--slow);
}

.shipment-card {
  border-radius: var(--r-lg);
}

.shipment-card:hover {
  box-shadow: var(--lift-3);
  transform: translateY(-4px);
  border-color: #d8e2ea;
}

/* رأس الكارت بتدرّج بدل لون واحد */
.shipment-card-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.shipment-code {
  letter-spacing: 1.5px;
}

/* ---------- الأقسام الملوّنة ---------- */

.story-video,
.final-cta {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}

/* لمعة خفيفة في الخلفية — بتدي إحساس عمق من غير ما تشتّت */
.story-video::before,
.final-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(240, 184, 74, 0.13) 0%, transparent 62%);
  pointer-events: none;
}

.story-video > *,
.final-cta > * {
  position: relative;
  z-index: 1;
}

.video-ratio {
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

/* ---------- صندوق مدير الحساب ---------- */

.manager-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--lift-2);
  border-radius: var(--r-lg);
}

/* ---------- الفوتر ---------- */

footer {
  background: var(--navy-deep);
}

.social-icon {
  transition: transform var(--slow), background var(--fast);
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* ---------- لوحة التحكم ---------- */

.admin-topbar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--lift-2);
}

.admin-nav .admin-tab {
  transition: background var(--fast), color var(--fast), transform var(--fast);
}

.admin-nav .admin-tab:hover {
  transform: translateX(-3px);
}

.stats-grid > * {
  box-shadow: var(--lift-1);
  transition: box-shadow var(--slow), transform var(--slow);
}

.stats-grid > *:hover {
  box-shadow: var(--lift-2);
  transform: translateY(-3px);
}

/* ============================================================
   الموبايل — الشاشة الأولى والمسافات
   ------------------------------------------------------------
   على شاشة ٣٧٥×٨١٢ كان فيه ٢٤٦ بكسل من الأشرطة فوق قبل أول
   كلمة من المحتوى: الشريط الذهبي ٩٠، وشريط الأدوات ٦١،
   والهيدر ٩٥. يعني تلت الشاشة الأولى رايح في لوجو وأزرار،
   والزائر يفتح الموقع مايشوفش غير الهيدر.

   وسبب إن الشريط الذهبي بقى ٩٠ بكسل إنه جملة طويلة بتتلف
   على تلات سطور بمقاس الكمبيوتر. وشريط الأدوات كان بيلف
   جوه الزراير نفسها — "تسجيل" في سطر و"الدخول" تحتيه.

   والعنوان الرئيسي كان لسه ٣٢ بكسل مع إن فيه قاعدة موبايل
   بتحطه ٢٤: القاعدة بتنادي ‎.hero h1‎ والعنصر في الصفحة
   اسمه ‎.hero-slide h1‎ — فماكانتش بتشتغل من الأساس.

   الجزء ده في آخر الملف عن قصد عشان يتغلّب على اللي قبله
   من غير ما نلمسه. لو حاجة مانعجبتكيش، شيلي الجزء ده وبس.
   ============================================================ */

@media (max-width: 600px) {

  /* ---------- الشريط الذهبي ---------- */

  .top-banner {
    padding: 6px 14px;
    font-size: 11px;
    line-height: 1.45;
  }

  /* ---------- شريط الأدوات ---------- */

  /* "هل تحتاج مساعدة؟ تواصل معنا" موجود كمان في الفوتر، وفي
     الـ☰، وفي زرار الواتساب العايم. تلات نسخ على شاشة ٣٧٥
     بكسل كتير — بنسيبه للنسخ التانية وناخد مكانه للزراير. */
  .info-bar-help {
    display: none;
  }

  .info-bar {
    justify-content: flex-start;
    padding: 6px 14px;
    gap: 8px;
  }

  .auth-container {
    margin-right: 0;
    margin-left: auto;
    gap: 8px;
  }

  /* white-space هي اللي بتمنع الزرار يلف جوه نفسه */
  .info-bar .auth-link,
  .info-bar .theme-toggle,
  .info-bar .btn {
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  /* اسم المستخدم بيخلي الشريط يلف لسطرين لما تكوني
     داخلة — وهو أقل حاجة مفيدة فيه، لأنك عارفة نفسك */
  .auth-welcome {
    display: none;
  }

  /* ---------- الهيدر ---------- */

  header {
    padding: 10px 16px;
  }

  .logo-image {
    width: 44px;
    height: 44px;
  }

  /* ---------- الهيرو ---------- */

  .hero-slider {
    padding: 44px 18px;
  }

  .hero-slide h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-slide p {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 10px;
  }

  /* الكارت العايم عرضه ٣٢٠ ثابت — على ٣٧٥ بيلزق في الحواف */
  .hero-floating-card {
    max-width: none;
    padding: 14px 18px;
  }

  /* ---------- الإطار الأبيض حوالين المحتوى ---------- */

  /* main كان بـ٣٠ بكسل حشو من كل ناحية. على ٣٧٥ بكسل ده
     بياكل ٦٠ من العرض — سدس الشاشة أبيض فاضي — وبيحط شريط
     أبيض بطول ٥٠ بكسل بين الهيدر والهيرو (٣٠ حشو + ٢٠
     مارچن القسم). على الكمبيوتر ده تنفيس، على الموبايل
     بيخلي المحتوى مضغوط في نص الشاشة. */
  main {
    padding: 0 14px 20px;
  }

  section {
    margin-top: 12px;
  }

  /* ---------- كروت الخدمات ---------- */

  /* الكارت كان عرضه ٢٢٠ بكسل ثابت. الحاوية flex-direction
     column، فالكارت مابيتمددش — بيقف لاصق في حافة اليمين
     (عربي) وسايب شريط فاضي ١٢٧ بكسل على الشمال. ده كان أوضح
     حاجة وحشة في الصفحة: أربع كروت كلها مزاحة ناحية واحدة.
     والصورة بقت شريط عريض (١٦:٩) مش مربع: المربع بعرض
     الشاشة كان هيطوّل الصفحة ٥٠٠ بكسل زيادة. */
  .service-card,
  .service-image-wrapper,
  .service-icon {
    width: 100%;
  }

  .service-image-wrapper,
  .service-icon {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* ---------- سطر مراحل التتبع ---------- */

  /* الـspan كان بياخد عرض المحتوى مش عرض الخانة، فكلمة زي
     "استلام الشحنة" كانت بتطلع بره الـ٦٢ بكسل بتوعها وتلزق
     في اللي جنبها — خمس كلمات متراكبة فوق بعض.
     align-self: stretch بيدّي الـspan عرض الخانة كامل،
     فالكلمة بتلف سطرين بدل ما تطلع بره. */
  .point span {
    align-self: stretch;
    font-size: 10px;
    line-height: 1.35;
  }

  /* ---------- لوحة التحكم ---------- */

  /* كروت الإحصائيات كانت عمود واحد: تمن كروت × ١٠٤ بكسل =
     ٩٤٣ بكسل، يعني الأدمن بيعمل سكرول تلات شاشات عشان يشوف
     الأرقام. عمودين بيخلوها ٤٢٧ — شاشة ونص — والأرقام نفسها
     صغيرة فمش محتاجة العرض كله. */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-grid > * {
    padding: 16px 10px;
  }

  /* أقسام اللوحة كان جواها ٣٠ بكسل حشو جوه ١٤ بتوع اللوحة
     نفسها — ٤٤ بكسل من كل ناحية على شاشة ٣٧٥ */
  .admin-panel section {
    padding: 18px 14px;
  }

  /* ---------- مسافات الأقسام ---------- */

  /* ٥٢ فوق و٥٢ تحت لكل قسم معناها ١٠٤ بكسل فاضي بين كل
     قسمين — على الكمبيوتر ده تنفيس، على الموبايل ده تطويل
     للصفحة من غير فايدة. */
  .problem,
  .story-video,
  .how-it-works,
  .final-cta {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  /* العناوين الفرعية بتاخد سطرين بمقاس ٢٤ على ٣٧٥ بكسل */
  section h2 {
    font-size: 21px;
    line-height: 1.35;
  }
}

/* ============================================================
   الموبايل — الترتيب والتوسيط
   ------------------------------------------------------------
   الجولة الأولى ظبّطت المقاسات، بس الصفحة لسه حاسّة
   بالهرجلة، وده سببه حاجتين:

   ١) نص الأقسام مش ماشي على قاعدة واحدة. الخدمات والهيرو
      و"من نحن" و"كيف نعمل" كلهم في النص، بينما "المشكلة"
      و"ليه إحنا" مترصّين على الجنب. العين بتحس إن الصفحة
      متلخبطة من غير ما تعرف ليه.

   ٢) كل قسم كان جوّه إطار أبيض: main بـ١٤ بكسل، والقسم
      بـ١٤ كمان، والصندوق جوّه بـ٣٤. نتيجتها إن صندوق
      "من نحن" الكحلي بقى عرضه ٢١٩ بكسل من ٣٧٥ — الكلام
      بينزل طولي في عمود ضيّق بدل ما يتفرد بالعرض.

   الحل: الأقسام تاخد عرض الشاشة كامل وكل قسم يحط مسافته
   بنفسه، والنص كله يتوسّط.
   ============================================================ */

@media (max-width: 600px) {

  /* ---------- الأقسام بعرض الشاشة ---------- */

  /* main مابقاش بيحط مسافة جانبية خالص — كل قسم بقى
     مسؤول عن مسافته. كده أي قسم بخلفية (الهيرو، الفيديو،
     الدعوة الأخيرة) بيفرد لونه من حافة الشاشة للحافة. */
  main {
    padding: 0 0 24px;
  }

  main > section,
  main > details {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* ---------- من نحن ---------- */

  /* الصندوق الكحلي كان محبوس جوه تلات إطارات. دلوقتي بياخد
     الشاشة كلها، فالجملة بتاخد ٣٣٩ بكسل بدل ٢١٩. */
  /* .about بـpadding: 30px مختصرة، وهي أقوى من قاعدة
     main > section فوق — فلازم نظبط جوانبها بنفسنا عشان
     صفحة "شحناتي" تمشي على نفس الـ١٨ بكسل زي باقي الصفحات */
  .about {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* #about مش .about — صفحة "شحناتي" بتستخدم نفس الكلاس
     لقسم عادي من غير الصندوق الكحلي */
  #about {
    padding: 0;
  }

  #about > h2 {
    padding: 0 18px;
  }

  .about-text-box {
    max-width: none;
    margin-inline: 0;
    border-radius: 0;
    padding: 26px 20px;
  }

  /* ---------- كل النصوص في النص ---------- */

  .problem-card,
  .problem-card h3,
  .problem-card p,
  .why-us-item,
  .why-us-item h3,
  .why-us-item p {
    text-align: center;
  }

  /* "ليه إحنا" كان أيقونة جنب الكلام — على ٣٧٥ بكسل
     الأيقونة بتاخد ربع العرض والكلام بيتزنق في الباقي.
     الأيقونة فوق والكلام تحتها أوسع وأهدى. */
  .why-us-item {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .why-us-item h3,
  .why-us-item p {
    width: 100%;
  }

  /* ---------- خطوات "كيف نعمل" ---------- */

  .how-step {
    padding: 18px 16px;
  }

  .how-num {
    width: 34px;
    height: 34px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  /* ---------- صفحة "كيف نعمل" ---------- */

  /* السهم بيتلف ٩٠ درجة ويقعد بين كل خطوتين. خمس خطوات
     معناها أربع أسهم زيادة في عمود طويل أصلاً، والترتيب
     من فوق لتحت بيقول نفس الكلام من غيرهم. */
  .process-arrow {
    display: none;
  }

  /* ---------- خانة البحث في التتبع ---------- */

  /* الخانة عرضها ٣٢٠ ثابت والزرار تحتها بياخد عرض الحاوية
     ٣١٩ — بكسل واحد فرق من كل ناحية، بس كفاية إن حرف
     الخانة وحرف الزرار مايبقوش على خط واحد. */
  .tracking-search input {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   الفروع — صفحة تواصل معنا
   ------------------------------------------------------------
   نفس شكل كروت قنوات التواصل اللي فوقها، بس أعرض شوية لأن
   فيها عنوان كامل. خط ذهبي فوق كل كارت يفصلها بصرياً عن
   القنوات ويقول إن ده مكان فعلي مش وسيلة تواصل.
   ============================================================ */

.branches {
  margin-top: 44px;
}

.branches h2 {
  font-size: 22px;
  color: #13365f;
  margin: 0 0 18px;
}

.branch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.branch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px 18px;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-top: 3px solid #f0b84a;
  border-radius: 12px;
  text-align: center;
}

.branch-city {
  margin: 0 0 2px;
  font-size: 17px;
  color: #13365f;
}

.branch-address {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5b6a76;
}

.branch-line {
  font-size: 14px;
  font-weight: 700;
  color: #13365f;
  text-decoration: none;
  word-break: break-all;
}

.branch-line:hover {
  color: #cc912d;
  text-decoration: underline;
}

/* ============================================================
   اللوجو في الهيدر — أكبر وأوضح
   ------------------------------------------------------------
   طلب العميل (٦ أكتوبر ٢٠٢٦): "اللوجو بشكل أكبر وأوضح، علامة
   فارقة تنطبع في الذاكرة".

   المشكلة ماكانتش الحجم بس. logo.png مربع ١٠٨٠ بكسل، الرمز فيه
   واخد النص تقريباً والباقي فراغ أبيض، وتحته "IMPORT & EXPORT"
   بخط رفيع. في دايرة ٥٥ بكسل الرمز كان بيطلع حوالي ٢٥ بكسل،
   والكلام مستحيل يتقري.

   logo-mark.png هو نفس الرمز مقصوص من غير الفراغ ومن غير
   الكلام، فبيملا الدايرة. واسم الشركة بقى نص حقيقي جنبه —
   واضح في أي حجم، ومحدش محتاج يقرا حروف جوه صورة. logo.png
   فاضل زي ما هو للمشاركة على السوشيال (og:image).
   ============================================================ */

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image {
  width: 68px;
  height: 68px;
  padding: 6px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.15;
  direction: ltr;
  text-align: start;
}

.brand-name small {
  margin-top: 3px;
  color: #f0b84a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

[dir="rtl"] .brand-name {
  text-align: right;
}

@media (max-width: 600px) {
  .logo-link {
    gap: 9px;
  }

  .logo-image {
    width: 50px;
    height: 50px;
    padding: 4px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .brand-name small {
    font-size: 10.5px;
  }
}

/* ============================================================
   الصفحة الرئيسية متحركة
   ------------------------------------------------------------
   طلب العميل (٦ أكتوبر ٢٠٢٦): "الواجهة الرئيسية متحركة".

   الحركة كانت موجودة بس مش باينة: الفيديو ورا طبقة كحلي
   تقيلة، والشرايح بتظهر كلها مرة واحدة بـfade خفيف. وعلى
   آيفون في وضع توفير البطارية الفيديو مابيشتغلش أصلاً، فالهيرو
   بيبان صورة ثابتة.

   - الفيديو بيقرّب ويبعد ببطء (٢٠ ثانية) — حركة مستمرة حتى لو
     الفيديو نفسه واقف.
   - كل شريحة بتدخل على مراحل: العنوان، وبعده الكلام، وبعده
     الزراير. الأنيميشن بيتعاد كل ما الشريحة تظهر، لأن
     display: none ← block بيبدأه من الأول.
   - النقطة الحالية بقت شريط طويل، فباين أنهي شريحة شغّالة.

   اللي قافل الحركة من إعدادات جهازه مش هيشوف حاجة من دي —
   القاعدة العامة فوق في الملف (prefers-reduced-motion) بتوقفها.
   ============================================================ */

.hero-video {
  animation: heroDrift 20s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.1) translateY(-1.5%); }
}

.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .hero-actions {
  animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.active p {
  animation-delay: 0.15s;
}

.hero-slide.active .hero-actions {
  animation-delay: 0.3s;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dot {
  transition: width 0.4s ease, background-color 0.4s ease, border-radius 0.4s ease;
}

.dot.active {
  width: 26px;
  border-radius: 5px;
}

/* ============================================================
   زرار اللغة: العربي على اليمين والإنجليزي على الشمال
   ------------------------------------------------------------
   طلب العميل (٦ أكتوبر ٢٠٢٦). الزرار كان بيعرض لغة واحدة بس —
   اللغة التانية — فالزائر مايعرفش هو على أنهي لغة دلوقتي.

   دلوقتي الاتنين ظاهرين والحالية متلوّنة. dir="ltr" على الزرار
   نفسه بيثبّت الترتيب: English شمال والعربية يمين في الحالتين،
   حتى لما الصفحة كلها تتقلب.

   الزرار لسه بيبدّل بضغطة واحدة في أي حتة فيه — نفس الكود
   القديم في i18n.js، ماتغيرش.
   ============================================================ */

#langToggleBtn.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #13365f;
  border-radius: 5px;
}

.lang-switch .lang-opt {
  padding: 2px 10px;
  border-radius: 3px;
  color: #13365f;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html[lang="ar"] .lang-switch .lang-opt-ar,
html[lang="en"] .lang-switch .lang-opt-en {
  background: #13365f;
  color: #fff;
}

/* ============================================================
   شريط الأخبار المتحرك — الرئيسية
   ------------------------------------------------------------
   طلب العميل (٦ أكتوبر ٢٠٢٦)، والشكل اتعدّل (٧ أكتوبر): "زي
   شريط التليفزيون". النسخة الأولى كانت شريط أبيض رفيع بكلام
   صغير، وماكانتش باينة إنها أخبار.

   دلوقتي زي شريط قنوات الأخبار: خلفية كحلي غامقة بخط دهبي فوق،
   وخانة "آخر الأخبار" حمرا ثابتة على الجنب بحافة مايلة، والكلام
   أبيض وتقيل وأكبر، وبين كل خبر والتاني نجمة دهبي.

   الحركة: المحتوى متكرر مرتين، والشريط بيتحرك نص عرضه بالظبط
   (-50%)، فاللفة بتتقفل من غير قفزة. في العربي الاتجاه بيتعكس
   (+50%)، فالكلام بيدخل من الشمال ويمشي يمين زي قنوات الأخبار
   العربي. الشرح الكامل في news-ticker.js.
   ============================================================ */

.news-ticker {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  background: linear-gradient(180deg, #0d2740 0%, #071a2c 100%);
  border-top: 3px solid #f0b84a;
  box-shadow: 0 4px 14px rgba(7, 26, 44, 0.35);
  overflow: hidden;
}

.news-ticker[hidden] {
  display: none;
}

.news-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px 0 18px;
  background: #c0392b;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  /* حافة مايلة ناحية الكلام — شكل شريط التليفزيون */
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

[dir="rtl"] .news-ticker-label {
  padding: 0 18px 0 22px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}

/* نقطة بيضا بتنبض — "مباشر" */
.news-ticker-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: tickerPulse 1.4s ease-in-out infinite;
}

.news-ticker-label:hover {
  background: #a93226;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

.news-ticker-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.news-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerLtr 40s linear infinite;
}

[dir="rtl"] .news-ticker-track {
  animation-name: tickerRtl;
}

.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track {
  animation-play-state: paused;
}

@keyframes tickerLtr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes tickerRtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

.news-ticker-group {
  display: flex;
  flex-shrink: 0;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

/* فاصل بين الأخبار: نجمة دهبي — نفس نجمة اللوجو */
.news-ticker-item::after {
  content: "★";
  margin: 0 26px;
  color: #f0b84a;
  font-size: 13px;
}

a.news-ticker-item:hover {
  color: #f3d77a;
}

/* اللي قافل الحركة: الشريط بيتسحب بالإيد بدل ما يتحرك لوحده */
@media (prefers-reduced-motion: reduce) {
  .news-ticker-viewport {
    overflow-x: auto;
  }

  .news-ticker-track {
    animation: none;
  }

  .news-ticker-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 600px) {
  .news-ticker {
    min-height: 44px;
  }

  .news-ticker-label {
    padding: 0 16px 0 12px;
    font-size: 13px;
  }

  [dir="rtl"] .news-ticker-label {
    padding: 0 12px 0 16px;
  }

  .news-ticker-item {
    font-size: 15px;
  }

  .news-ticker-item::after {
    margin: 0 18px;
  }
}

/* ---------- لوحة التحكم ← الأخبار ---------- */

/* قواعد الفورم العامة (.contact form label/input) بتخلي الـlabel
   سطر لوحده والـinput بعرض الفورم كله — فالمربع كان بيطلع ضخم
   وفوق الكلام. المحدِّد هنا أدق منها عشان يغلبها. */
.contact form label.news-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  cursor: pointer;
}

.contact form label.news-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #13365f;
}

.news-cancel {
  background: #fff;
  color: #13365f;
  border: 1px solid #cdd7df;
}

.news-hidden-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f5;
  color: #5a6b7a;
}

.message-actions .read-btn.news-delete {
  color: #c0392b;
  border-color: #f0c9c4;
}

/* كارت الهاتف فيه رقمين، كل رقم لينك لوحده (٧ أكتوبر ٢٠٢٦) —
   فالكارت بقى div، والرقم نفسه هو اللي بيتضغط */
a.contact-channel-value {
  text-decoration: none;
}

a.contact-channel-value:hover {
  color: #cc912d;
  text-decoration: underline;
}

/* ============================================================
   الخط الدهبي تحت الصفحة الحالية
   ------------------------------------------------------------
   من التصميم اللي العميل بعته (٧ أكتوبر ٢٠٢٦). الخط ده كان
   بيظهر بالـhover بس (nav a::after فوق). دلوقتي بيفضل ثابت تحت
   الصفحة اللي الزائر فيها — hamburger-menu.js بيحط .is-current.
   ============================================================ */

nav a.is-current {
  font-weight: 700;
}

nav a.is-current::after {
  transform: scaleX(1);
  height: 3px;
}

.hamburger-menu a.is-current {
  color: #f0b84a;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #f0b84a;
}

/* ============================================================
   خلفيات الهيرو: الفيديو و٣ صور بيتبدّلوا
   ------------------------------------------------------------
   طلب العميل (٧ أكتوبر ٢٠٢٦). شكل الهيرو نفسه ماتغيرش — بس اللي
   وراه. الخلفية الظاهرة عليها .is-active (hero-slider.js)، والتبديل
   بـfade، والحركة البطيئة شغّالة على اللي ظاهر بس.
   ============================================================ */

.hero-backdrops {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-bg.is-active {
  opacity: 1;
  animation: heroDrift 20s ease-in-out infinite alternate;
}

/* ============================================================
   من نحن — شريط دهبي كبير
   ------------------------------------------------------------
   طلب العميل (٧ أكتوبر ٢٠٢٦): "من نحن" في مربع كبير زي شريط
   الفيديو اللي فوقها، بس دهبي. نفس الحشو ونفس اللمعة (.story-video
   فوق)، والكلام كحلي عشان يتقري على الدهبي.
   ============================================================ */

.about.about-gold {
  position: relative;
  overflow: hidden;
  padding: 76px 20px 84px;
  background: linear-gradient(140deg, #f5c96f 0%, #f0b84a 45%, #cc912d 100%);
  border: 0;
  text-align: center;
}

.about.about-gold::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 62%);
  pointer-events: none;
}

.about.about-gold > * {
  position: relative;
  z-index: 1;
}

.about-gold h2 {
  color: #0c2440;
}

.about-gold .section-lead {
  color: #13365f;
  font-size: 20px;
  font-weight: 700;
}

.about-gold-box {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 30px 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(12, 36, 64, 0.18);
}

.about-gold-box p {
  margin: 0;
  color: #17232e;
  font-size: 17px;
  line-height: 2;
}

.about-gold-box .about-gold-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 22px;
  background: #13365f;
  color: #f5c96f;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .about.about-gold {
    padding: 36px 14px;
  }

  .about-gold .section-lead {
    font-size: 17px;
  }

  .about-gold-box {
    padding: 22px 18px;
  }

  .about-gold-box p {
    font-size: 15.5px;
  }
}

/* الشريط بقى فوق خالص مكان الجملة الثابتة (١٣ أكتوبر ٢٠٢٦): الخط
   الدهبي تحت، فاصل بينه وبين شريط الأدوات، ومن غير ظل على الهيدر */
.news-ticker.news-ticker-top {
  min-height: 42px;
  border-top: 0;
  border-bottom: 3px solid #f0b84a;
  box-shadow: none;
}

/* من نحن: صورة جنب الكلام جوه الشريط الدهبي (٧ أكتوبر ٢٠٢٦) —
   زي تصميم العميل. أول عمود هو الصورة، فهي بتيجي يمين في العربي
   وشمال في الإنجليزي، والكلام جنبها بيبدأ من ناحية القراءة. */
.about-gold-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  /* center مش stretch: الصورة بتاخد ارتفاعها الطبيعي وتبان كاملة،
     بدل ما تتمط لطول المربع اللي جنبها وتتقص من الجناب */
  align-items: center;
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
}

.about-gold-media {
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 18px 44px rgba(12, 36, 64, 0.25);
  background: #13365f;
}

.about-gold-media img {
  display: block;
  width: 100%;
  height: auto;
}

.about-gold-grid .about-gold-box {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
}

.about-gold-box h2 {
  margin: 0 0 6px;
  color: #cc912d;
  font-size: 18px;
  text-align: start;
}

.about-gold-box h2::after {
  display: none;
}

.about-gold-box .about-gold-lead {
  margin: 0 0 14px;
  color: #0c2440;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .about-gold-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-gold-box .about-gold-lead {
    font-size: 21px;
  }
}

/* صفحة فروعنا (branches.html) — الفروع بقت صفحة لوحدها في قايمة ☰
   (٧ أكتوبر ٢٠٢٦). نفس كروت الفروع اللي كانت في صفحة التواصل،
   بعنوان الصفحة h1 ومسافة من فوق ومن تحت. */
main > .branches {
  margin: 0 auto;
  padding: 40px 20px 30px;
  text-align: center;
}

.branches h1 {
  margin: 0 0 22px;
  color: #13365f;
  font-size: 30px;
}

.theme-dark body .branches h1 {
  color: var(--pm-ink);
}

/* ============================================================
   الهيرو: صور واضحة والكلام على اليمين (٨ أكتوبر ٢٠٢٦)
   ------------------------------------------------------------
   العميل: "شيل البلور، خلي الصور والفيديو كلير، والكلام على
   اليمين"، و"العربي مش على اليمين".

   البلور كان من حاجتين:
   - طبقة كحلي ٧٠٪ فوق الهيرو كله، فالصورة كانت باهتة كلها.
     دلوقتي الغامق ورا الكلام بس (ناحية البداية)، والباقي صافي.
   - الحركة البطيئة كانت بتكبّر الخلفية ١٠٪. الصور ~٧٦٠ بكسل
     والفيديو ٦٤٠×٣٦٠، فالتكبير كان بيزوّد التشويش. بقت ٣٪ بس.

   الكلام بيبدأ من ناحية القراءة: يمين في العربي، شمال في
   الإنجليزي (text-align: start).
   ============================================================ */

.hero-slider {
  text-align: start;
  padding: 90px 56px 80px;
  min-height: 460px;
}

.hero-video-overlay {
  background: linear-gradient(to left, rgba(12, 36, 64, 0.82) 0%, rgba(12, 36, 64, 0.55) 38%, rgba(12, 36, 64, 0.12) 70%, rgba(12, 36, 64, 0) 100%);
}

html[dir="ltr"] .hero-video-overlay {
  background: linear-gradient(to right, rgba(12, 36, 64, 0.82) 0%, rgba(12, 36, 64, 0.55) 38%, rgba(12, 36, 64, 0.12) 70%, rgba(12, 36, 64, 0) 100%);
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}

.hero-slide {
  max-width: 600px;
}

.hero-slide h1 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-slide p {
  font-size: 19px;
  line-height: 1.75;
  color: #f1f5f9;
  margin: 0 0 24px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-slider .hero-actions {
  justify-content: flex-start;
}

.hero-slider .hero-actions .btn {
  margin: 0;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16.5px;
}

/* النقط في نص الهيرو تحت، زي الأول */
.hero-dots {
  text-align: center;
}

/* كارت "خبرة… / تعرّف علينا" تحت الكلام على نفس الناحية */
.hero-floating-card {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 600px) {
  .hero-slider {
    padding: 44px 20px 40px;
    min-height: 0;
  }

  /* على الموبايل الكلام بياخد العرض كله، فالغامق من فوق لتحت */
  .hero-video-overlay,
  html[dir="ltr"] .hero-video-overlay {
    background: linear-gradient(180deg, rgba(12, 36, 64, 0.5) 0%, rgba(12, 36, 64, 0.78) 100%);
  }

  .hero-slide h1 {
    font-size: 28px;
  }

  .hero-slide p {
    font-size: 16px;
  }
}

/* ============================================================
   الكونتينرات — تبويب في لوحة التحكم (admin-containers.js)
   ------------------------------------------------------------
   كارت لكل كونتينر بنفس شكل كارت الشحنة، وجواه الشحنات اللي
   فيه، وخانة إضافة شحنة، وتحديث المرحلة للكل.
   ============================================================ */

.containers-list-title {
  margin: 34px 0 0;
  color: var(--navy);
}

.containers-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.container-card {
  width: 100%;
  max-width: 620px;
  flex: none;
}

/* القايمة والفورمين جوه الكارت بيبدأوا من اليمين، والتفاصيل اللي
   فوق متوسّطة زي كارت الشحنة العادي */
.container-subtitle,
.container-members,
.container-empty,
.container-card form {
  text-align: right;
}

.container-subtitle {
  margin: 14px 18px 6px;
  font-size: 14px;
  color: var(--navy);
}

.container-members {
  list-style: none;
  margin: 0 18px;
  padding: 0;
  border: 1px solid #e3e9ee;
  border-radius: 10px;
}

.container-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f5;
  font-size: 14px;
}

.container-member:last-child {
  border-bottom: 0;
}

.container-member.is-cancelled {
  opacity: 0.55;
  text-decoration: line-through;
}

.container-member-code {
  font-weight: 700;
  color: var(--navy);
  unicode-bidi: isolate;
}

.container-member-goods {
  color: #6b7a86;
}

.container-member .container-remove {
  margin-inline-start: auto;
}

.container-empty {
  margin: 0 18px;
  color: #6b7a86;
  font-size: 14px;
}

/* الفورمين اللي جوه الكارت أصغر من فورم الصفحة */
.contact .container-card form {
  max-width: none;
  margin: 14px 18px 0;
  padding-top: 12px;
  border-top: 1px solid #eef2f5;
}

.contact .container-card form.container-add {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.container-add .container-add-input {
  flex: 1 1 200px;
}

.container-card .container-card-message {
  margin: 10px 18px 0;
  font-size: 14px;
}

.container-card .container-wa {
  margin: 12px 18px 16px;
  max-width: none;
}

.container-card .container-wa .wa-btn {
  margin: 4px;
}

/* ============================================================
   «كل الشحنات»: كارت واحد لكل كونتينر والعملاء جواه
   (طلب العميل ١٦ أكتوبر ٢٠٢٦ — admin.js)
   ============================================================ */

.shipment-card.container-group {
  flex-basis: 100%;
  max-width: 820px;
}

.container-group .group-label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 10px;
  border-radius: 999px;
  background: #f0b84a;
  color: #0c2440;
  font-size: 12px;
  font-weight: 700;
}

.container-group .group-note {
  margin: 0 18px 10px;
  font-size: 12.5px;
  color: #6b7a86;
}

.container-group .group-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 14px 6px;
}

/* العميل جوه الكونتينر: كارت مسطّح من غير الهيدر الكحلي */
.container-group .group-member {
  max-width: none;
  flex: none;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  box-shadow: none;
  background: #fbfcfd;
}

.container-group .group-member .shipment-card-head {
  background: none;
  color: #13365f;
  padding: 10px 12px 0;
}

.container-group .group-member .shipment-code {
  color: #13365f;
  font-size: 14px;
}

.container-group .group-member .shipment-progress {
  display: none;
}

/* فورم تعديل العميل والكونتينر */
.client-edit-form,
.container-edit-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  text-align: right;
}

.client-edit-form label,
.container-edit-form label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.client-edit-form input,
.container-edit-form input {
  padding: 9px 12px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

.client-edit-actions,
.container-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.client-edit-cancel,
.container-edit-cancel {
  background: none;
  border: 1px solid #d5dde5;
  color: #13365f;
  box-shadow: none;
}

.client-edit-message {
  margin: 4px 0 0;
  font-size: 13px;
}

.edit-client-btn,
.container-edit-btn {
  background: none;
  border: 1px solid #d5dde5;
  color: #13365f;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.container-edit-row {
  margin: 0 18px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.container-delete-btn {
  background: #fdf3f2;
  border: 1px solid #e9b7b2;
  color: #b03a2e;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.contact .container-card form.container-edit-form {
  margin: 6px 18px 0;
  max-width: none;
}
