/* MENA Elite Group — Hub & Portal Stylesheet (V3 Ultra-Luxury) */
:root {
  --bg-deep: #060606;
  --bg-card: rgba(16, 15, 13, 0.75);
  --bg-card-hover: rgba(26, 24, 20, 0.9);
  --gold-primary: #d4a843;
  --gold-light: #f5d27a;
  --gold: #d4a843;
  --gold2: #f5d27a;
  --gold-glow: rgba(212, 168, 67, 0.35);
  --gold-border: rgba(212, 168, 67, 0.22);
  --gold-border-hover: rgba(245, 210, 122, 0.7);
  --text-main: #f8f6f0;
  --text-muted: #a9a295;
  --text-secondary: #a9a295;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(245, 210, 122, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 20% 65%, rgba(212, 168, 67, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Maintain consistent Cairo font across all languages */
html[dir="ltr"] body,
body.lang-en,
body.lang-ar,
body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* Floating Language Switcher (Always fixed on the Left in AR and EN) */
.floating-lang-bar {
  position: fixed;
  top: 24px;
  left: 28px !important;
  right: auto !important;
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* In LTR (English), keep it strictly on the left as requested */
html[dir="ltr"] .floating-lang-bar {
  left: 28px !important;
  right: auto !important;
}

.lang-switch-btn {
  background: rgba(18, 17, 14, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 168, 67, 0.15);
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: rgba(35, 32, 25, 0.95);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(212, 168, 67, 0.35);
}

.lang-switch-btn .globe-icon {
  font-size: 16px;
  line-height: 1;
}

/* Hub Login Button & User Menu Styling */
.hub-login-btn {
  background: rgba(18, 17, 14, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 168, 67, 0.15);
  transition: var(--transition);
}

.hub-login-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  border-color: var(--gold-light);
  color: #0c0a07;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 168, 67, 0.5);
}

.user-menu-trigger {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 168, 67, 0.2);
}

.user-menu-trigger:hover {
  border-color: var(--gold-light) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 168, 67, 0.45);
  transform: scale(1.06);
}

@media (max-width: 600px) {
  .user-menu-dropdown {
    position: fixed !important;
    top: 68px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: 360px !important;
  }
}

/* Unified Luxury Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #0c0a07;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 22px var(--gold-glow);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.6);
}

.btn-gold-glass {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.btn-gold-glass:hover {
  background: rgba(212, 168, 67, 0.18);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.25);
}

/* Hero Section */
.hub-hero {
  position: relative;
  padding: 80px 24px 30px;
  text-align: center;
  overflow: hidden;
}

.hub-hero-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hub-hero-emblem {
  width: 150px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 35px rgba(212, 168, 67, 0.5));
  animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.45)); }
  50% { transform: translateY(-10px); filter: drop-shadow(0 0 45px rgba(245, 210, 122, 0.7)); }
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hub-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-light);
}

.hub-hero-title {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hub-hero-title span {
  background: linear-gradient(135deg, #ffffff 15%, var(--gold-light) 65%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-hero-desc {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Billboard / Animated Showcase Slider ---------- */
.hub-billboard-wrap {
  max-width: 1040px;
  margin: 50px auto 30px;
  padding: 0 24px;
}

.hub-billboard {
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(212, 168, 67, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(245, 210, 122, 0.1) 0%, transparent 60%),
              rgba(16, 15, 13, 0.95);
  border: 1px solid var(--gold-border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 168, 67, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.billboard-track {
  position: relative;
  min-height: 290px;
}

.billboard-slide {
  position: absolute;
  inset: 0;
  padding: 46px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(16px);
}

.billboard-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slide-content {
  flex: 1;
  max-width: 620px;
}

.slide-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(212, 168, 67, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
  margin-bottom: 14px;
}

.slide-title {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-main);
}

.slide-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 67, 0.25) 0%, rgba(18, 17, 14, 0.6) 80%);
  border: 1px solid var(--gold-border);
  font-size: 64px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 168, 67, 0.2);
  flex-shrink: 0;
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Billboard Navigation Dots & Progress */
.billboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 44px;
  border-top: 1px solid rgba(212, 168, 67, 0.14);
  background: rgba(10, 10, 8, 0.6);
}

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

.billboard-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.billboard-dot.active {
  width: 32px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
  box-shadow: 0 0 10px var(--gold-glow);
}

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

.live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 6px #3ecf8e;
  animation: blinkLive 2s infinite;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Services Section ("خدماتنا") */
.hub-section {
  padding: 70px 24px;
  position: relative;
}

.hub-container {
  max-width: 1140px;
  margin: 0 auto;
}

.hub-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.hub-section-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.hub-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
}

.hub-section-desc {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}

/* Services Grid Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.hub-card {
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.85) 0%, rgba(11, 10, 9, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-grad, linear-gradient(90deg, transparent, var(--gold-primary), transparent));
  opacity: 0.6;
  transition: var(--transition);
}

.hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-accent, var(--gold-border-hover));
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.92) 0%, rgba(14, 12, 11, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px var(--theme-glow, rgba(212, 168, 67, 0.2));
}

.hub-card:hover::before {
  opacity: 1;
  height: 4px;
}

.hub-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid var(--gold-border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gold-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: hubBeaconPulse 2s infinite ease-in-out;
}
@keyframes hubBeaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.35); }
}

.hub-pillar-btn {
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
}
.hub-pillar-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cs2-card-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  margin-bottom: 20px;
  transition: var(--transition);
  display: block;
}

.hub-card:hover .cs2-card-emblem {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(245, 210, 122, 0.6);
  border-color: var(--gold-light);
}

.slide-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hub-card:hover .hub-card-icon {
  transform: scale(1.08) translateY(-2px);
}

.hub-card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
}

.tag-active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.tag-soon {
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

.tag-progress {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.hub-card-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.hub-card-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.hub-card-features {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #d1cbc1;
}

.hub-card-features li i {
  color: var(--gold-primary);
  font-style: normal;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.value-item {
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.75) 0%, rgba(10, 9, 8, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.value-item:hover {
  transform: translateY(-6px);
  border-color: var(--val-theme, var(--gold-primary));
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.88) 0%, rgba(14, 12, 10, 0.96) 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.65), 0 0 30px var(--val-glow, rgba(212, 168, 67, 0.18));
}

.value-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  transition: all 0.28s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.1);
}

.value-item h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
}

.value-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Footer */
.hub-footer {
  border-top: 1px solid var(--gold-border);
  background: rgba(6, 6, 6, 0.96);
  padding: 50px 24px 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.hub-footer-brand {
  text-align: center;
  margin-bottom: 30px;
}

.hub-footer-brand img {
  height: 44px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 14px var(--gold-glow));
}

/* Footer Custom Trust & Verification Badges (Static & Frameless) */
.hub-footer-badges {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 26px !important;
  flex-wrap: wrap !important;
  margin: 18px auto 22px !important;
  text-align: center !important;
  width: 100% !important;
}

.hub-footer-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  backdrop-filter: none !important;
  transform: none !important;
  transition: color .2s ease !important;
}

.hub-footer-badge:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--gold-light) !important;
}

.hub-footer-badge-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
}

.hub-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hub-billboard-wrap {
    padding: 0 16px;
    margin: 28px auto 20px;
  }

  .billboard-track {
    min-height: 440px;
    transition: min-height 0.3s ease;
  }

  .billboard-slide {
    flex-direction: column-reverse;
    text-align: center;
    padding: 24px 18px 20px;
    gap: 14px;
    justify-content: center;
    align-items: center;
  }

  .slide-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .slide-tag {
    font-size: 11px;
    padding: 3px 12px;
    margin-bottom: 8px;
  }

  .slide-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .slide-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 320px;
  }

  .slide-content .btn-gold {
    padding: 10px 24px;
    font-size: 14px;
    width: auto;
    min-width: 170px;
  }
  
  .slide-visual {
    width: 76px;
    height: 76px;
    font-size: 34px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .slide-visual[style*="width:200px"] {
    width: 160px !important;
    height: 95px !important;
  }

  .slide-visual img {
    border-radius: 12px;
  }
  
  .billboard-footer {
    padding: 12px 18px;
    justify-content: space-between;
    gap: 12px;
  }

  .hub-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 14px !important;
  }

  .hub-footer-bottom > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .floating-lang-bar,
  html[dir="ltr"] .floating-lang-bar {
    top: 16px;
    left: 16px !important;
    right: auto !important;
  }
}
