/* ==========================================================================
   بترو إنرجي أند غاز (Petro Energy & Gas) - ملف الأنماط الرئيسي الشامل
   ========================================================================== */

/* 1. استيراد الخطوط والمتغيرات العامة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0A2647;
  --primary-dark: #05192D;
  --primary-light: #144272;
  --secondary: #00B4D8;
  --secondary-dark: #0077B6;
  --secondary-light: #90E0EF;
  --accent-gold: #FFB703;
  --accent-gold-dark: #FB8500;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --bg-dark: #061426;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F1F5F9;
  --border-color: #E2E8F0;
  --border-color-dark: #1E293B;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 36px rgba(10, 38, 71, 0.16);
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

/* 2. إعادة الضبط والتأسيس */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-body);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover, a:focus {
  color: var(--secondary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 3. عناصر وأزرار التصميم العامة (Buttons & Utilities) */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.35);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gold-custom {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--primary-dark) !important;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.35);
}

.btn-gold-custom:hover {
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 133, 0, 0.45);
}

.btn-outline-custom {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
}

.btn-outline-custom:hover {
  background: #fff;
  color: var(--primary-dark) !important;
  border-color: #fff;
  transform: translateY(-2px);
}

.section-tag {
  display: inline-block;
  color: var(--secondary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 45px;
}

.layout_padding {
  padding: 85px 0;
}

.bg-light-surface {
  background-color: var(--bg-light);
}

/* 4. الشريط العلوي وشريط التنقل الرئيسي (Topbar & Navbar) */
.topbar_section {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1010;
}

.topbar_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 16px;
}

.topbar_contact {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  white-space: nowrap;
}

.topbar_contact a {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}

.topbar_contact a:hover {
  color: var(--secondary-light);
}

.topbar_contact a i,
.topbar_contact .topbar_coverage i {
  font-size: 0.82rem;
  flex-shrink: 0;
}

.topbar_contact .topbar_coverage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.topbar_contact .topbar_divider {
  opacity: 0.35;
  user-select: none;
}

.topbar_right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--secondary-light);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar_badge i {
  font-size: 0.76rem;
  flex-shrink: 0;
}

.topbar_social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar_social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  flex-shrink: 0;
}

.topbar_social a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.main_navbar {
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(10, 38, 71, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.main_navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 6px 25px rgba(10, 38, 71, 0.14);
}

.brand_box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand_logo_img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand_text_box {
  display: flex;
  flex-direction: column;
}

.brand_title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.1;
}

.brand_subtitle {
  font-size: 0.70rem;
  color: var(--secondary-dark);
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary) !important;
  background-color: rgba(0, 180, 216, 0.08);
}

.navbar-nav .nav-item.active .nav-link {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(10, 38, 71, 0.2);
}

.nav_action_wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 5. قسم العرض الترويجي (Hero Slider Area) */
.hero_area {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(186, 230, 253, 0.65) 0%, rgba(56, 189, 248, 0.88) 55%, rgba(2, 132, 199, 0.95) 100%), linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #0284c7 100%);
  color: #fff;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  border-bottom: 5px solid var(--primary-dark);
  box-shadow: inset 0 2px 8px rgba(10, 38, 71, 0.25);
}

.hero_area.custom_page_header {
  min-height: 320px;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(6, 20, 38, 0.94), rgba(10, 38, 71, 0.88)), url('../images/track-bg.jpg');
  background-size: cover;
  background-position: center;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
}

.page_header_content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page_header_title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.breadcrumb_custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #94A3B8;
}

.breadcrumb_custom a {
  color: var(--secondary);
}

.hero_slide_item {
  padding: 60px 0;
}

.hero_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(10, 38, 71, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero_title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(10, 38, 71, 0.45);
}

.hero_title span {
  color: #ffffff;
}

.hero_desc {
  font-size: 1.05rem;
  color: #F8FAFC;
  margin-bottom: 25px;
  max-width: 550px;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(10, 38, 71, 0.35);
}

.hero_actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero_img_container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero_vessel_img {
  width: 100%;
  height: 336px;
  max-height: 336px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--primary);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -6px;
  box-shadow: 0 15px 35px rgba(10, 38, 71, 0.45), 0 0 25px rgba(56, 189, 248, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  object-fit: cover;
  object-position: center;
}

.hero_vessel_img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(10, 38, 71, 0.55), 0 0 35px rgba(56, 189, 248, 0.45);
}

.hero_logo_slide_box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 275px;
  max-height: 336px;
  padding: 25px 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(10, 38, 71, 0.88) 80%);
  border: 4px solid var(--primary);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -6px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(10, 38, 71, 0.4), 0 0 30px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero_logo_slide_box:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(10, 38, 71, 0.5), 0 0 40px rgba(56, 189, 248, 0.35);
}

.hero_logo_slider_img {
  max-height: 200px;
  max-width: 65%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s ease;
}

.hero_logo_slide_box:hover .hero_logo_slider_img {
  transform: scale(1.05);
}

.hero_float_badge {
  position: absolute;
  bottom: 20px;
  right: 10px;
  background: rgba(6, 20, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.float_badge_icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.float_badge_text h5 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.float_badge_text p {
  color: var(--secondary-light);
  font-size: 0.8rem;
  margin: 0;
}

.hero_carousel .carousel-indicators {
  bottom: 25px;
  right: 0;
  left: 0;
  margin: 0;
  gap: 8px;
}

.hero_carousel .carousel-indicators li {
  width: 36px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  transition: var(--transition);
}

.hero_carousel .carousel-indicators li.active {
  background-color: var(--secondary);
  width: 55px;
}

/* 6. قسم الخدمات المميزة (Services Section) */
.service_card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service_card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.service_img_box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service_img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service_card:hover .service_img_box img {
  transform: scale(1.08);
}

.service_badge_tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(6, 20, 38, 0.8);
  color: var(--secondary-light);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.service_body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service_icon_wrapper {
  width: 52px;
  height: 52px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--secondary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.service_card:hover .service_icon_wrapper {
  background: var(--secondary);
  color: #fff;
}

.service_title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.service_desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service_features_list {
  margin-bottom: 20px;
}

.service_features_list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.service_features_list li i {
  color: var(--accent-green);
  font-size: 0.8rem;
}

/* 7. قسم نبذة عنا والجودة والسلامة (About & HSE Section) */
.about_feature_pill {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-white);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  transition: var(--transition);
}

.about_feature_pill:hover {
  border-color: var(--secondary);
  transform: translateX(-5px);
}

.pill_icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--secondary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pill_text h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pill_text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.hse_card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.hse_card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.hse_icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

/* 8. قسم اتصل بنا والنماذج (Contact Section & Forms) */
.contact_info_box {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.contact_info_title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact_info_item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}

.contact_icon_node {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact_text_node h6 {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact_text_node p,
.contact_text_node a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.form-group-custom {
  margin-bottom: 20px;
}

.form-group-custom label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--primary);
  background-color: var(--bg-light);
  outline: none;
  transition: var(--transition);
}

.form-control-custom:focus {
  border-color: var(--secondary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

/* 9. الفوتر (Footer Section) */
.main_footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer_widget_title {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer_widget_title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: var(--secondary);
  border-radius: var(--radius-full);
}

.footer_links li {
  margin-bottom: 12px;
}

.footer_links li a {
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer_links li a:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

.footer_links li a i {
  font-size: 0.75rem;
  color: var(--secondary);
}

.footer_newsletter_form {
  margin-top: 15px;
}

.footer_input_group {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.footer_input_group input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

.footer_input_group button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  transition: var(--transition);
}

.footer_input_group button:hover {
  background: var(--secondary-dark);
}

.footer_bottom_bar {
  background: #030B14;
  padding: 22px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

/* 10. الأزرار العائمة وتنبيهات التوست (Floating Widgets & Toast) */
.floating_actions_container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
}

.floating_btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.email_float_btn {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  position: relative;
}

.email_float_btn:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

.whatsapp_float_btn {
  background: #25D366;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp_float_btn:hover {
  background: #20BA5C;
  transform: scale(1.1);
}

.scroll_top_btn {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll_top_btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll_top_btn:hover {
  background: var(--secondary);
}

.custom_toast_container {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom_toast {
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 420px;
  border-right: 5px solid var(--secondary);
  animation: slideToast 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom_toast.toast-success { border-right-color: var(--accent-green); }
.custom_toast.toast-error { border-right-color: var(--accent-red); }

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

.toast_icon {
  font-size: 1.4rem;
}
.custom_toast.toast-success .toast_icon { color: var(--accent-green); }
.custom_toast.toast-error .toast_icon { color: var(--accent-red); }

.toast_content h6 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.toast_content p {
  color: #CBD5E1;
  font-size: 0.82rem;
  margin: 0;
}

/* 11. شريط أسعار الطاقة والسلع النفطية المباشر (Live Global Energy Ticker) */
.market_ticker_section {
  background: #040d1a;
  border-bottom: 1px solid rgba(0, 180, 216, 0.25);
  color: #fff;
  padding: 8px 0;
  font-size: 0.86rem;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker_container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker_label_badge {
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  color: #fff;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.5);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.ticker_track_wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  display: flex;
}

.ticker_track {
  display: inline-flex;
  gap: 28px;
  animation: ticker-scroll 35s linear infinite;
}

.ticker_track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.ticker_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.ticker_item.flash_up {
  animation: flash-green 1.3s ease-out;
}

.ticker_item.flash_down {
  animation: flash-red 1.3s ease-out;
}

@keyframes flash-green {
  0% {
    background: rgba(16, 185, 129, 0.35);
    border-color: #10B981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
    transform: scale(1.04);
  }
  100% {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes flash-red {
  0% {
    background: rgba(239, 68, 68, 0.35);
    border-color: #EF4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
    transform: scale(1.04);
  }
  100% {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: scale(1);
  }
}

.ticker_name {
  font-weight: 700;
  color: #E2E8F0;
}

.ticker_price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #FFB703;
  transition: color 0.3s ease;
}

.ticker_change {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.ticker_change.up {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
}

.ticker_change.down {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.ticker_update_time {
  font-size: 0.75rem;
  color: #94A3B8;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker_refresh_btn {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: #38bdf8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticker_refresh_btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}

.ticker_refresh_btn.rotating i {
  animation: spin-refresh 0.6s ease-in-out;
}

@keyframes spin-refresh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

html[dir="ltr"] .ticker_track {
  animation: ticker-scroll-ltr 35s linear infinite;
}

@keyframes ticker-scroll-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ais_live_indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid #10B981;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.ais_live_indicator .live_dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* 12. زر تبديل اللغة المزدوج (Bilingual Language Switcher) */
.lang_switcher_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  line-height: 1.2;
  white-space: nowrap;
  outline: none;
}

.lang_switcher_btn .lang_globe_icon,
.lang_switcher_btn i {
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.25s ease;
  display: inline-block;
}

.lang_switcher_btn:hover .lang_globe_icon,
.lang_switcher_btn:hover i {
  transform: rotate(20deg) scale(1.1);
}

.topbar_section .lang_switcher_btn,
.topbar_right .lang_switcher_btn {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.35);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
}

.topbar_section .lang_switcher_btn .lang_globe_icon,
.topbar_right .lang_switcher_btn .lang_globe_icon {
  color: #38bdf8;
}

.topbar_section .lang_switcher_btn:hover,
.topbar_right .lang_switcher_btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}

.main_navbar .lang_switcher_btn,
.nav_action_wrapper .lang_switcher_btn {
  background: rgba(10, 38, 71, 0.05);
  border: 1.5px solid rgba(10, 38, 71, 0.18);
  color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(10, 38, 71, 0.04);
}

.main_navbar .lang_switcher_btn .lang_globe_icon,
.nav_action_wrapper .lang_switcher_btn .lang_globe_icon {
  color: var(--secondary);
}

.main_navbar .lang_switcher_btn:hover,
.nav_action_wrapper .lang_switcher_btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.22);
}

/* 13. قواعد الاتجاه الأيسر واللغة الإنجليزية (LTR & English Styles) */
html[dir="ltr"], body.ltr-mode {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html[dir="ltr"] h1, 
html[dir="ltr"] h2, 
html[dir="ltr"] h3, 
html[dir="ltr"] h4, 
html[dir="ltr"] h5, 
html[dir="ltr"] h6,
body.ltr-mode h1,
body.ltr-mode h2,
body.ltr-mode h3,
body.ltr-mode h4,
body.ltr-mode h5,
body.ltr-mode h6,
body.ltr-mode .section-title,
body.ltr-mode .hero_title,
body.ltr-mode .page_header_title,
body.ltr-mode .service_title,
body.ltr-mode .footer_widget_title,
body.ltr-mode .brand_title {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  letter-spacing: -0.02em;
  text-align: left;
}

body.ltr-mode .section-title.text-right,
body.ltr-mode .text-right {
  text-align: left !important;
}

body.ltr-mode .section-subtitle,
body.ltr-mode .section-title-wrapper {
  text-align: center;
}

body.ltr-mode .topbar_wrapper {
  direction: ltr;
}

body.ltr-mode .topbar_contact {
  justify-content: flex-start;
  text-align: left;
}

body.ltr-mode .topbar_right {
  justify-content: flex-end;
}

body.ltr-mode .topbar_contact a i,
body.ltr-mode .topbar_contact .topbar_coverage i,
body.ltr-mode .topbar_badge i {
  margin-left: 0;
  margin-right: 0;
}

body.ltr-mode .main_navbar .navbar-nav .nav-link {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

body.ltr-mode .hero_badge {
  margin-right: 0;
}

body.ltr-mode .hero_badge i {
  margin-left: 0;
  margin-right: 6px;
}

body.ltr-mode .service_card {
  text-align: left;
}

body.ltr-mode .service_features_list li i {
  margin-left: 0;
  margin-right: 8px;
}

body.ltr-mode .service_badge_tag {
  right: auto;
  left: 16px;
}

body.ltr-mode .about_floating_card {
  right: auto !important;
  left: 20px !important;
  border-right: none !important;
  border-left: 4px solid var(--secondary) !important;
}

body.ltr-mode .about_feature_pill {
  flex-direction: row;
  text-align: left;
}

body.ltr-mode .about_feature_pill .pill_icon {
  margin-left: 0;
  margin-right: 16px;
}

body.ltr-mode .contact_info_box {
  text-align: left;
}

body.ltr-mode .contact_info_item {
  flex-direction: row;
}

body.ltr-mode .contact_icon_node {
  margin-left: 0;
  margin-right: 16px;
}

body.ltr-mode .footer_links li a i {
  transform: rotate(180deg);
  margin-left: 0;
  margin-right: 8px;
}

body.ltr-mode .footer_links li a:hover {
  transform: translateX(6px);
}

body.ltr-mode .footer_newsletter_form .footer_input_group button {
  left: auto;
  right: 6px;
}

body.ltr-mode .footer_bottom_bar .text-md-right {
  text-align: left !important;
}

body.ltr-mode .footer_bottom_bar .text-md-left {
  text-align: right !important;
}

body.ltr-mode .breadcrumb_custom {
  direction: ltr;
}

body.ltr-mode .floating_actions_container {
  left: auto;
  right: 24px;
}

/* ==========================================================================
   14. أنماط صفحة أسواق الطاقة والبورصة العالمية الحية (Live Markets & Tickers)
   ========================================================================== */

/* شارة مباشر النابضة في القائمة الرئيسية */
.nav_live_market_link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.nav_live_pulse_badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  position: relative;
}

.live_dot_ping {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* هيدر صفحة الأسواق */
.markets_hero_section {
  padding-bottom: 50px !important;
}

.markets_header_action_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.markets_live_status_pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(6, 20, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.live_pulse_indicator {
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 1.6s infinite;
}

body.ltr-mode .live_pulse_indicator {
  margin-left: 0;
  margin-right: 8px;
}

.markets_header_btn_group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* خلفية التدرج الناعم */
.bg-light-gradient {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%);
}

.layout_padding_top {
  padding-top: 70px;
  padding-bottom: 20px;
}

/* بطاقات الـ KPI العلوية */
.market_kpi_card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.market_kpi_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transition: var(--transition);
}

.market_kpi_card.trend-up::before {
  background: linear-gradient(90deg, #10B981, #00B4D8);
}

.market_kpi_card.trend-down::before {
  background: linear-gradient(90deg, #EF4444, #F59E0B);
}

.market_kpi_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 38, 71, 0.12);
}

.kpi_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.kpi_symbol {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(10, 38, 71, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.kpi_name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.35;
}

.kpi_badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.kpi_badge.trend-up {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.kpi_badge.trend-down {
  background: rgba(239, 68, 68, 0.14);
  color: #DC2626;
}

.kpi_price_box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.kpi_price_num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  line-height: 1;
  transition: color 0.3s ease;
}

.kpi_unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.kpi_sparkline_bar {
  margin-bottom: 16px;
}

.sparkline_track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.sparkline_fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.sparkline_fill.trend-up {
  background: linear-gradient(90deg, #34D399, #10B981);
}

.sparkline_fill.trend-down {
  background: linear-gradient(90deg, #F87171, #EF4444);
}

.kpi_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.82rem;
}

.kpi_stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat_label {
  color: var(--text-muted);
}

.stat_val {
  font-weight: 700;
  color: var(--text-dark);
}

/* وميض التحديث اللحظي للـ KPI */
@keyframes tickGlowGreen {
  0% { background-color: rgba(16, 185, 129, 0.3); border-color: #10B981; }
  100% { background-color: #ffffff; border-color: var(--border-color); }
}

@keyframes tickGlowRed {
  0% { background-color: rgba(239, 68, 68, 0.3); border-color: #EF4444; }
  100% { background-color: #ffffff; border-color: var(--border-color); }
}

.market_kpi_card.tick-flash-green {
  animation: tickGlowGreen 1.2s ease-out;
}

.market_kpi_card.tick-flash-red {
  animation: tickGlowRed 1.2s ease-out;
}

/* منصة TradingView التفاعلية */
.tradingview_interactive_box {
  background: #0A2647;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 45px rgba(10, 38, 71, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart_symbol_tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chart_tab_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #F1F5F9;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.chart_tab_btn:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.chart_tab_btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #05192D;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.tradingview_widget_container {
  width: 100%;
  height: 520px;
  background: #05192D;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* جدول الأسعار المباشر */
.markets_table_card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table_controls_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.category_filter_pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category_pill {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.category_pill:hover {
  border-color: var(--secondary);
  color: var(--secondary-dark);
  background: rgba(0, 180, 216, 0.06);
}

.category_pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 38, 71, 0.2);
}

.table_search_box {
  position: relative;
  min-width: 280px;
}

.table_search_box .search_icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

body.ltr-mode .table_search_box .search_icon {
  right: auto;
  left: 14px;
}

.table_search_input {
  padding: 10px 38px 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  background: #ffffff;
  transition: var(--transition);
}

body.ltr-mode .table_search_input {
  padding: 10px 16px 10px 38px;
}

.table_search_input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.18);
  outline: none;
}

.markets_table_responsive {
  margin: 0;
}

.markets_data_table {
  margin: 0;
  width: 100%;
}

.markets_data_table thead th {
  background: #0A2647;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 16px 18px;
  border: none;
  white-space: nowrap;
}

.markets_data_table tbody tr {
  transition: background-color 0.25s ease, transform 0.25s ease;
  border-bottom: 1px solid var(--border-color);
}

.markets_data_table tbody tr:hover {
  background-color: #F1F5F9;
}

.markets_data_table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
}

.table_symbol_badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  color: #0A2647;
  background: #E0F2FE;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #BAE6FD;
  letter-spacing: 0.5px;
}

.table_commodity_name {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.table_price_val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.table_unit_badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 4px;
}

.table_change_pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.table_change_pill.trend-up {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.table_change_pill.trend-down {
  background: rgba(239, 68, 68, 0.14);
  color: #DC2626;
}

.trend_indicator_tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.trend_indicator_tag.trend-up {
  color: #059669;
}

.trend_indicator_tag.trend-down {
  color: #DC2626;
}

.trend_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.table_quote_btn {
  font-size: 0.82rem !important;
  border-radius: var(--radius-full) !important;
}

/* وميض صفوف الجدول عند التحديث */
@keyframes rowGlowGreen {
  0% { background-color: rgba(16, 185, 129, 0.25); }
  100% { background-color: transparent; }
}

@keyframes rowGlowRed {
  0% { background-color: rgba(239, 68, 68, 0.25); }
  100% { background-color: transparent; }
}

.markets_data_table tr.row-flash-green {
  animation: rowGlowGreen 1.2s ease-out;
}

.markets_data_table tr.row-flash-red {
  animation: rowGlowRed 1.2s ease-out;
}

.table_footer_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

/* حاسبة الشحنات والتكاليف */
.calc_intro_box {
  padding-right: 15px;
}

body.ltr-mode .calc_intro_box {
  padding-right: 0;
  padding-left: 15px;
}

.calc_feature_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc_feat_item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.cargo_calc_card {
  background: #0A2647;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(10, 38, 71, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.calc_card_header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #05192D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc_card_header i {
  font-size: 1.4rem;
}

.calc_form_body {
  padding: 24px;
}

.calc_label {
  display: block;
  color: #E2E8F0;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.calc_select,
.calc_input {
  height: 48px;
  background: #061426;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.calc_select:focus,
.calc_input:focus {
  background: #081C33;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
  color: #ffffff;
  outline: none;
}

.calc_select option {
  background: #0A2647;
  color: #ffffff;
}

.calc_results_panel {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.calc_breakdown_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown_item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.calc_total_display {
  text-align: center;
  padding: 16px;
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.2) 0%, rgba(5, 25, 45, 0.9) 100%);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.total_title {
  color: #BAE6FD;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.total_number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFB703;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* بطاقات وشريط البث الإخباري المباشر */
.news_wire_header_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.news_wire_left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live_feed_indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-family: var(--font-heading);
}

.pulse_dot_red {
  width: 8px;
  height: 8px;
  background: #DC2626;
  border-radius: 50%;
  display: inline-block;
  animation: liveDotPulse 1.4s infinite ease-in-out;
}

.news_wire_source {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.news_last_update_text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn_refresh_news {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  transition: all 0.3s ease;
}

.btn_refresh_news:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.market_news_card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.market_news_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 38, 71, 0.12);
  border-color: var(--secondary);
}

.news_card_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.news_tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: #E0F2FE;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.news_date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news_icon_box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.news_title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_desc {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_card_bottom_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  gap: 8px;
  flex-wrap: wrap;
}

.news_source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.news_read_more_link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news_read_more_link:hover {
  color: var(--primary);
  text-decoration: underline;
  transform: translateX(-2px);
}

[dir="ltr"] .news_read_more_link:hover {
  transform: translateX(2px);
}