/* ===== أيقونات ===== */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== أزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #04161c;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 0 46px rgba(34, 211, 238, 0.55);
}

.btn--ghost {
  border-color: var(--line);
  /* خلفية غامقة + blur: لما كوكب يعدي ورا الزرار، الكلام يفضل واضح */
  background: rgba(8, 14, 24, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent-soft);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* السهم يتقلب في العربي */
html[dir="rtl"] .icon--arrow {
  transform: scaleX(-1);
}

/* ===== أسماء الكواكب (HTML فوق مشهد الـ3D) ===== */
.planet-labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.planet-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(8, 14, 24, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  will-change: transform;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.planet-label__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.planet-label__body {
  display: grid;
}

.planet-label__name {
  font-size: 0.82rem;
  font-weight: 600;
}

.planet-label__meta {
  display: block;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.72rem;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}

.planet-label.is-hover {
  border-color: var(--c);
  background: rgba(8, 14, 24, 0.92);
}

.planet-label.is-hover .planet-label__meta {
  max-height: 40px;
  margin-top: 3px;
  opacity: 1;
}

@media (max-width: 820px) {
  .planet-label {
    padding: 6px 10px;
  }

  /* الموبايل: أسماء الكواكب بتغطي على نص الـ Hero، فبتستخبى (المشاريع ليها قسم تحت) */
  .planet-labels {
    display: none;
  }
  .planet-label__name {
    font-size: 0.74rem;
  }
}