﻿/* Smart contextual tips: dynamic, lightweight, non-invasive */
.site-tip-badge {
  position: fixed;
  right: calc(var(--ad-reserve-right, 0px) + 10px);
  top: 92px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 205, 255, 0.4);
  background: rgba(10, 22, 45, 0.82);
  color: #d8e8ff;
  padding: 0.35rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(4, 8, 18, 0.35);
}

.site-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6fdcff;
  box-shadow: 0 0 12px rgba(111, 220, 255, 0.65);
}

.site-tip {
  position: fixed;
  right: calc(var(--ad-reserve-right, 0px) + 10px);
  top: 128px;
  z-index: 121;
  width: min(350px, calc(100vw - var(--ad-reserve-right, 0px) - 20px));
  border-radius: 14px;
  border: 1px solid rgba(181, 210, 255, 0.34);
  background: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 34%, rgba(10,16,30,0.72)), rgba(9,17,35,0.9);
  color: #eaf2ff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-tip.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-tip__bar {
  height: 4px;
  background: linear-gradient(90deg, #79d8ff, #9ee3ff);
}

.site-tip.tone-gold .site-tip__bar {
  background: linear-gradient(90deg, #ffcf78, #ffe6b6);
}

.site-tip.tone-emerald .site-tip__bar {
  background: linear-gradient(90deg, #83efc7, #cbffe7);
}

.site-tip.tone-violet .site-tip__bar {
  background: linear-gradient(90deg, #baa7ff, #ddd2ff);
}

.site-tip__body {
  display: grid;
  gap: 0.45rem;
  padding: 0.66rem 0.72rem 0.72rem;
}

.site-tip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.site-tip__title {
  margin: 0;
  font-size: 0.77rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #d9e9ff;
}

.site-tip__index {
  font-size: 0.68rem;
  color: #9fbbeb;
}

.site-tip__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #eaf3ff;
}

.site-tip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-tip__btn {
  border: 1px solid rgba(183, 211, 255, 0.34);
  border-radius: 999px;
  background: rgba(15, 26, 50, 0.78);
  color: #e1eeff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.56rem;
}

.site-tip__btn:hover {
  border-color: rgba(255, 207, 125, 0.72);
  color: #ffe7ba;
}

.site-tip__btn--primary {
  border-color: rgba(255, 206, 124, 0.76);
  color: #ffe8bd;
  background: rgba(73, 51, 15, 0.42);
}

.site-tip-target {
  outline: 2px solid rgba(255, 208, 128, 0.85) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 208, 128, 0.2), 0 0 28px rgba(255, 208, 128, 0.32);
  border-radius: 8px;
  transition: box-shadow 160ms ease;
}

@media (max-width: 1023px) {
  .site-tip-badge {
    top: auto;
    right: 10px;
    bottom: calc(var(--ad-reserve-bottom, 0px) + 10px);
  }

  .site-tip {
    top: auto;
    right: 10px;
    bottom: calc(var(--ad-reserve-bottom, 0px) + 44px);
    width: calc(100vw - 20px);
  }
}
