/* ============================================================================
   Roasist × React Bits — Modular UI Polish Pack v1
   Source reference: /home/antigravity/Roasist/react-bits
     [1/3] Counter       (Components/Counter)
     [2/3] SpotlightCard (Components/SpotlightCard)
     [3/3] Magnet + GlareHover (Animations/Magnet & Animations/GlareHover)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   [1/3] RB-COUNTER — Mechanical odometer digits (zero CLS, tabular-nums)
   ---------------------------------------------------------------------------- */
.rb-counter-host {
  font-variant-numeric: tabular-nums !important;
}

.rb-counter {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: inherit;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.rb-counter__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rb-counter__row {
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  -webkit-user-select: none;
}

.rb-counter__affix,
.rb-counter__symbol {
  display: inline-block;
  white-space: pre;
}

.rb-counter__digit {
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  line-height: inherit;
  text-align: center;
}

.rb-counter__sizer {
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
}

.rb-counter__window {
  position: absolute;
  top: -0.14em;
  right: -0.04em;
  bottom: -0.14em;
  left: -0.04em;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.82) 13%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.82) 87%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.82) 13%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.82) 87%,
    rgba(0, 0, 0, 0) 100%
  );
}

.rb-counter__strip {
  position: absolute;
  inset: 0.14em 0.04em;
}

.rb-counter__numeral {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Gradient-text hosts (StatisticsPanel_heading, roasist-cs-kpi-val):
   Transfer the host's gradient directly to leaf numerals/affixes so
   overflow:hidden + transform never clips -webkit-background-clip:text. */
.rb-counter-host.rb-counter--grad {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: initial !important;
  animation: none !important;
}

.rb-counter-host.rb-counter--grad .rb-counter__numeral,
.rb-counter-host.rb-counter--grad .rb-counter__affix,
.rb-counter-host.rb-counter--grad .rb-counter__symbol {
  background-image: var(--rb-counter-bg);
  background-size: var(--rb-counter-bg-size, 200% 200%);
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: var(--rb-counter-anim, none);
}

/* ----------------------------------------------------------------------------
   [2/3] RB-SPOTLIGHT — Cursor-tracking radial fill + 1px masked rim glow
   ---------------------------------------------------------------------------- */
.rb-spotlight {
  isolation: isolate;
}

.rb-spotlight[data-rb-spotlight-clip="1"] {
  overflow: hidden !important;
}

.rb-spotlight__light,
.rb-spotlight__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s linear;
}

.rb-spotlight__light {
  z-index: 1;
}

.rb-spotlight__edge {
  z-index: 4;
  padding: 1.25px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

/* Keep card content cleanly above spotlight surface light, below edge rim */
.StatisticsPanel_panel__5YHtR.rb-spotlight .StatisticsPanel_panelWrap__XLJZs,
[class*="StatisticsPanel_panel__"].rb-spotlight [class*="StatisticsPanel_panelWrap__"],
[class*="StatisticsPanel_panel__"].rb-spotlight [class*="StatisticsPanel_visualDesktop__"] {
  position: relative;
  z-index: 2;
}

.roasist-cs-kpi-card.rb-spotlight {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.roasist-cs-kpi-card.rb-spotlight > :not(.rb-spotlight__light):not(.rb-spotlight__edge) {
  position: relative;
  z-index: 2;
}

/* About page "Resmi Partnerlikler" dark partner tiles */
.BigUps_partners__xRCBU .BigUps_award__D7Yq2.rb-spotlight {
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(1.35rem, 2.2vw, 1.95rem) clamp(1.1rem, 2vw, 1.75rem) !important;
  border-radius: 1.125rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  min-height: 112px;
  transition: background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.BigUps_partners__xRCBU .BigUps_award__D7Yq2.rb-spotlight:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.BigUps_partners__xRCBU .BigUps_award__D7Yq2.rb-spotlight > :not(.rb-spotlight__light):not(.rb-spotlight__edge) {
  position: relative;
  z-index: 2;
}

/* Homepage 360 Services glass panel background */
.ServicesPanel_panelBackground__O9mDV.rb-spotlight {
  overflow: hidden !important;
}

.ServicesPanel_panelBackground__O9mDV.rb-spotlight .rb-spotlight__edge {
  padding: 1.5px;
}

/* ----------------------------------------------------------------------------
   [3/3] RB-MAGNET + RB-GLARE — Spring magnetic pull + subtle hover sheen
   ---------------------------------------------------------------------------- */
.rb-magnet {
  position: relative;
  will-change: transform;
}

/* While spring drives transform, prevent CSS :hover transform jump */
.rb-magnet[data-rb-magnet-mounted="1"]:hover {
  transform: none;
}

.rb-glare-host {
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
}

.rb-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.rb-glare__band {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  will-change: transform;
}

/* ----------------------------------------------------------------------------
   Accessibility: Reduced motion disables animated layers cleanly
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rb-spotlight__light,
  .rb-spotlight__edge,
  .rb-glare {
    display: none !important;
  }
  .rb-magnet {
    transform: none !important;
    will-change: auto !important;
  }
}
