/* ---------- الصفحة الرئيسية بشكل Wicks ---------- */
.home-body { background: #050a24; }
[dir="ltr"] body { font-family: "Segoe UI", system-ui, Tahoma, sans-serif; }

.hbar {
  position: absolute; top: 0; inset-inline: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 5%;
}
.hbar-side { display: flex; align-items: center; gap: 10px; }
.hbar-end { justify-content: flex-end; color: var(--muted); font-size: 14px; }
.uname { font-size: 14px; }

.flag-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; padding: 5px 7px; cursor: pointer; line-height: 0;
  transition: transform .15s, border-color .15s;
}
.flag-btn:hover { transform: scale(1.06); border-color: var(--gold); }
.flag-btn svg { display: block; border-radius: 3px; }

.hbrand { display: flex; align-items: center; gap: 10px; }
.hbrand-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.hbrand-logo { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 18px rgba(232,185,49,.45); }

.hero2 {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(60,80,200,.35), transparent 70%),
    linear-gradient(#0b1240, #050a24 85%);
}
.hero2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent 35%, #000 95%);
  -webkit-mask-image: linear-gradient(transparent 35%, #000 95%);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; border-radius: 50%; opacity: .7; box-shadow: 0 0 6px currentColor; animation: tw 3s infinite ease-in-out, drift 40s linear infinite; }
@keyframes tw { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes drift { to { margin-top: 60px; } }
.meteor {
  position: absolute; width: 130px; height: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff);
  transform: rotate(35deg); animation: meteor 9s linear infinite;
}
@keyframes meteor {
  0% { opacity: 0; translate: -120px -80px; }
  3% { opacity: 1; }
  12% { opacity: 0; translate: 380px 270px; }
  100% { opacity: 0; translate: 380px 270px; }
}

.hero2-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; padding: 120px 20px 150px; }
.hero2 h1 {
  font-size: clamp(32px, 6vw, 62px); line-height: 1.25; font-weight: 700; color: #fff;
  text-shadow: 0 0 30px rgba(140,170,255,.7), 0 0 70px rgba(100,130,255,.45);
  margin-bottom: 22px;
}
.hero2 p { font-size: clamp(14px, 1.8vw, 17px); color: #c9d0ee; max-width: 640px; margin: 0 auto 30px; }
.hero2-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 11px 24px; font-size: 15px; box-shadow: 0 0 28px rgba(232,185,49,.35); }
.btn-outline { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); }

/* الشريط الأصفر */
.ticker {
  position: absolute; bottom: 36px; inset-inline: 0; z-index: 3; overflow: hidden;
  background: linear-gradient(#f3d34a, #e8b931); color: #3a2c05;
  box-shadow: 0 0 60px rgba(243,211,74,.45);
  padding: 14px 0; direction: ltr;
}
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 0 34px; font-weight: 600; font-size: 15px; white-space: nowrap; direction: rtl; }
[dir="ltr"] .tick { direction: ltr; }
.tick i {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(58,44,5,.15);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px;
}
@keyframes slide { to { transform: translateX(-50%); } }

.servers-wrap { max-width: 1000px; margin: 0 auto; padding: 50px 5% 80px; }

@media (max-width: 600px) {
  .hbrand-name { font-size: 18px; }
  .uname { display: none; }
  .hero2-inner { padding-top: 110px; }
}

/* تعديل: الصفحة الرئيسية بعرض كامل */
.home-body .home { max-width: none; margin: 0; padding: 0; }
.hero2 { height: 100vh; min-height: 620px; }
.hero2-inner { padding: 90px 20px 110px; }
.ticker { bottom: 0; }

/* ---------- لوقو متحرك ---------- */
.logo-anim { position: relative; width: 46px; height: 46px; display: inline-block; animation: floaty 4s ease-in-out infinite; }
.logo-anim::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, #ffe9a8 75%, #e8b931 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 3.2s linear infinite;
}
.logo-anim::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
  background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; mix-blend-mode: overlay;
}
.logo-anim .hbrand-logo { width: 46px; height: 46px; display: block; animation: glow 2.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-3px); } }
@keyframes glow {
  0%,100% { box-shadow: 0 0 12px rgba(232,185,49,.35); transform: scale(1); }
  50% { box-shadow: 0 0 28px rgba(255,214,90,.9); transform: scale(1.06); }
}
@keyframes shine { 0% { background-position: 150% 0; } 60%,100% { background-position: -80% 0; } }

/* الرأس ثابت فوق دايماً بدون خط */
.hbar:not(.dash-bar) { position: fixed; background: linear-gradient(rgba(5,10,36,.85), rgba(5,10,36,0)); }

/* صفحة السيرفرات */
.servers-mode .hero2 { display: none; }
.servers-mode .servers-wrap { padding-top: 120px; min-height: 100vh; }
.servers-mode {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(60,80,200,.3), transparent 70%),
    linear-gradient(#0b1240, #050a24 60%);
  background-attachment: fixed;
}
