/* Strova — نبض سيولة، مؤثر صوتي، تكديس آمن للجوال */

.strova-fab-stack {
  position: fixed;
  z-index: 9997;
  inset-inline-end: max(0.65rem, env(safe-area-inset-right));
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  pointer-events: none;
}
.strova-fab-stack > * {
  pointer-events: auto;
}

.strova-sound-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fde68a;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.strova-sound-toggle:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .strova-sound-toggle {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, 0.96);
  }
}
.strova-sound-toggle[aria-pressed="true"] {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.55);
}
.strova-sound-toggle:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

.liquidity-pulse-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(3, 10, 22, 0.88);
  max-width: min(220px, 52vw);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.liquidity-pulse {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
}
.liquidity-pulse--calm {
  animation: strova-pulse-calm 2.4s ease-in-out infinite;
}
.liquidity-pulse--hot {
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
  animation: strova-pulse-hot 0.55s ease-in-out infinite;
}
.liquidity-pulse__label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  color: #cbd5e1;
  text-align: start;
}

@keyframes strova-pulse-calm {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}
@keyframes strova-pulse-hot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquidity-pulse--calm,
  .liquidity-pulse--hot {
    animation: none;
  }
}

/* مخطط TradingView Lightweight */
.gold-lw-chart {
  position: relative;
  width: 100%;
  min-height: 260px;
  height: min(42vh, 320px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.gold-lw-chart--fallback {
  display: none;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
  text-align: center;
}

/* تذكرة إثبات صفقة — صفحة الهبوط */
.proof-ticket-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}
.proof-ticket {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(165deg, rgba(30, 27, 15, 0.92) 0%, rgba(15, 23, 42, 0.96) 45%, rgba(3, 7, 18, 0.98) 100%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.proof-ticket__ribbon {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, #78350f, #fbbf24, #78350f);
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  color: #1c1917;
}
.proof-ticket__body {
  padding: 1.35rem 1.5rem 1.5rem;
}
.proof-ticket__brand {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: rgba(251, 191, 36, 0.75);
  margin-bottom: 1rem;
}
.proof-ticket__pair {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fef3c7;
  margin-bottom: 1.25rem;
}
.proof-ticket__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
  font-size: 0.88rem;
}
.proof-ticket__row:last-of-type {
  border-bottom: none;
}
.proof-ticket__k {
  color: #94a3b8;
  font-weight: 600;
}
.proof-ticket__v {
  color: #f1f5f9;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.proof-ticket__v--profit {
  color: #4ade80;
}
.proof-ticket__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 191, 36, 0.15);
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.55;
  text-align: center;
}

/* مؤشر العرض/الطلب — داشبورد */
.gold-supply-meter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1.25rem;
}
.gold-supply-meter__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fde68a;
  margin: 0 0 0.35rem;
}
.gold-supply-meter__bar {
  display: flex;
  flex-direction: row;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.65rem 0;
  background: rgba(0, 0, 0, 0.25);
}
.gold-supply-meter__buy {
  flex: 0 0 auto;
  background: linear-gradient(90deg, #059669, #34d399);
  transition: width 0.6s ease;
}
.gold-supply-meter__sell {
  flex: 0 0 auto;
  background: linear-gradient(90deg, #f87171, #dc2626);
  transition: width 0.6s ease;
}
.gold-supply-meter__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.gold-supply-meter__hint {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}
