/* Strova — عناصر واجهة الذهب (مؤشر، جلسات، شموع، لمعان) */

.gold-candles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.11;
}

body.portal-body {
  position: relative;
}

body.portal-body main,
body.portal-body nav,
body.portal-body footer {
  position: relative;
  z-index: 1;
}

.landing--home .gold-candles-canvas {
  position: fixed;
  z-index: 0;
  opacity: 0.09;
}

/* شريط جلسات التداول */
.gold-sessions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 10, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: var(--site-header-h, 56px);
  z-index: 94;
}
.landing-home-experience .gold-sessions {
  top: calc(var(--site-header-h, 56px) + 30px);
}

@media (max-width: 900px) {
  .gold-sessions {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(3, 10, 22, 0.94);
  }
}
.gold-sessions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 7.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
}
.gold-sessions__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.15rem;
}
.gold-sessions__time {
  font-family: "Outfit", "Cairo", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.gold-sessions__badge {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.gold-sessions__badge--open {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}
.gold-sessions__badge--closed {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}
.gold-sessions__gold {
  flex: 1 1 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.5));
}
.gold-sessions__gold .gold-sessions__label {
  color: #fcd34d;
}
.gold-sessions__status-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fef3c7;
  margin-top: 0.15rem;
}

/* مؤشر نصف دائرة */
.gold-gauge-wrap {
  margin: 0.5rem 0 1rem;
  max-width: 280px;
}
.gold-gauge__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(251, 191, 36, 0.9);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.gold-gauge {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.gold-gauge svg {
  display: block;
  width: 100%;
  height: auto;
}
.gold-gauge__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  margin-top: 0.25rem;
}
.gold-gauge__labels span:last-child {
  color: #4ade80;
}
.gold-gauge__labels span:first-child {
  color: #f87171;
}
.gold-gauge__readout {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde68a;
  margin-top: 0.35rem;
  min-height: 1.25em;
}

/* رادار الذهب */
.gold-radar {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius, 16px);
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
}
.gold-radar__head {
  padding: 0.65rem 1rem;
  font-weight: 800;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), transparent);
  color: #fde68a;
}
.gold-radar__log {
  min-height: 5.5rem;
  max-height: 11rem;
  overflow-y: auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
}
.gold-radar__line {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  animation: gold-radar-fade 0.45s ease;
}
.gold-radar__line strong {
  color: #fbbf24;
  font-weight: 700;
}
@keyframes gold-radar-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gold-radar__hint {
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.85);
  padding: 0.35rem 0.85rem 0.6rem;
}

/* سبائك افتراضية */
.gold-bullion {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.06);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.gold-bullion__icon {
  flex-shrink: 0;
  width: 28px;
  height: 36px;
  margin-top: 0.1rem;
}
.gold-bullion__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}
.gold-bullion__grams {
  color: #fcd34d;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gold-bullion__note {
  display: block;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.25rem;
}

/* Trailing — صفحة الصفقات */
.gold-trailing {
  max-width: 720px;
  margin: 0 auto;
}
.gold-trailing__lead {
  color: #94a3b8;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.gold-trailing__viz {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}
.gold-trailing__viz svg {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: auto;
}
.gold-trailing__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 0.78rem;
  margin-top: 0.75rem;
  color: #94a3b8;
}
.gold-trailing__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.gold-trailing__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* لمعان على كلمات مختارة */
.text-shine-gold {
  position: relative;
  display: inline;
  color: #fcd34d;
  font-weight: 800;
  background: linear-gradient(105deg, #b45309 0%, #fbbf24 25%, #fef08a 45%, #fbbf24 65%, #b45309 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-text-shimmer 4.5s ease-in-out infinite;
}
@keyframes gold-text-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.text-shine-profit {
  position: relative;
  display: inline;
  font-weight: 800;
  color: #a7f3d0;
  background: linear-gradient(95deg, #047857 0%, #34d399 35%, #d1fae5 50%, #34d399 70%, #047857 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-text-shimmer 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .text-shine-gold,
  .text-shine-profit {
    animation: none;
    -webkit-text-fill-color: inherit;
    color: #fcd34d;
    background: none;
  }
  .text-shine-profit {
    color: #6ee7b7;
  }
  .gold-radar__line {
    animation: none;
  }
}
