/* SNET optic neon control — ISP signal, not a camera shutter. */

html {
  overflow-anchor: none;
  scroll-behavior: auto;
}

#header,
#header.header-scrolled,
#header.header-inner-pages,
#header .snet-header-inner,
#header .snet-brand {
  overflow: visible !important;
}

.snet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 80;
}

.snet-optic {
  position: relative;
  flex: 0 0 auto;
  z-index: 10080;
}

.snet-optic__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(4, 16, 31, 0.58);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 calc(12px * var(--snet-glow, 0.8)) rgba(0, 220, 255, calc(0.5 * var(--snet-glow, 0.8))),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.snet-optic__orbit {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed rgba(125, 211, 252, 0.55);
  pointer-events: none;
  transform: rotate(calc(var(--snet-glow, 0.8) * 270deg));
  opacity: calc(0.35 + var(--snet-glow, 0.8) * 0.65);
  transition: transform .18s ease, opacity .18s ease;
}

.snet-optic.is-open .snet-optic__orbit {
  border-color: #5cf0ff;
}

.snet-optic__core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, #7af0ff 29% 52%, transparent 53%);
  box-shadow:
    0 0 calc(8px * var(--snet-glow, 0.8)) #5cf0ff,
    0 0 calc(16px * var(--snet-glow, 0.8)) rgba(0, 200, 255, 0.45);
}

html[data-glow="off"] .snet-optic__core {
  background: radial-gradient(circle at 50% 50%, #c5d0d8 0 40%, #6b7c88 41% 100%);
  box-shadow: none;
  opacity: 0.55;
}

html[data-glow="off"] .snet-optic__orbit {
  opacity: 0.25;
}

.snet-optic__panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 168px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 18px;
  background: rgba(6, 18, 32, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 180, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  z-index: 10100;
  animation: snet-optic-in .18s ease-out;
}

.snet-optic__panel[hidden] {
  display: none !important;
}

@keyframes snet-optic-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.snet-optic__label {
  font-family: Onest, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ad8ef;
}

.snet-optic__meter {
  position: relative;
  width: 148px;
  height: 84px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.snet-optic__meter:active {
  cursor: grabbing;
}

.snet-optic__glass {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 140px;
  height: 70px;
  margin-left: -70px;
  border-radius: 70px 70px 0 0;
  background: rgba(8, 28, 48, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 0 48px, #000 50px);
  mask-image: radial-gradient(circle at 50% 100%, transparent 0 48px, #000 50px);
}

.snet-optic__wheel {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 0;
  will-change: transform;
}

.snet-optic__tick {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5px;
  height: 8px;
  margin: -4px 0 0 -0.75px;
  border-radius: 1px;
  background: rgba(165, 232, 255, 0.72);
}

.snet-optic__tick.is-major {
  width: 2px;
  height: 12px;
  margin: -6px 0 0 -1px;
  background: #7af0ff;
  box-shadow: 0 0 6px rgba(92, 240, 255, 0.55);
}

.snet-optic__pip {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid #5cf0ff;
  background: rgba(4, 16, 31, 0.35);
  box-shadow: 0 0 10px rgba(92, 240, 255, 0.55);
}

.snet-optic__readout {
  font-family: Onest, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c8f4ff;
  min-height: 1.2em;
}

.snet-optic__off {
  border: 0;
  background: transparent;
  color: #9ad8ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 0 0;
}

.snet-optic__off:hover {
  color: #fff;
}

html[data-glow="off"] .snet-optic__pip {
  border-color: rgba(154, 216, 239, 0.45);
  box-shadow: none;
}

html[data-theme="day"] .snet-optic__btn {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 140, 200, 0.45);
  box-shadow:
    0 0 calc(10px * var(--snet-glow, 0.8)) rgba(0, 180, 255, calc(0.35 * var(--snet-glow, 0.8))),
    0 1px 8px rgba(8, 20, 32, 0.12);
}

html[data-theme="day"] .snet-optic__orbit {
  border-color: rgba(0, 140, 200, 0.5);
}

html[data-theme="day"] .snet-optic__panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(8, 24, 40, 0.16);
}

html[data-theme="day"] .snet-optic__label,
html[data-theme="day"] .snet-optic__off {
  color: #0b5f8c;
}

html[data-theme="day"] .snet-optic__readout {
  color: #06344f;
}

html[data-theme="day"] .snet-optic__glass {
  background: rgba(8, 40, 64, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 119, 184, 0.2);
}

html[data-theme="day"] .snet-optic__tick {
  background: rgba(11, 95, 140, 0.45);
}

html[data-theme="day"] .snet-optic__tick.is-major {
  background: #0077b8;
  box-shadow: none;
}

html[data-theme="day"] .snet-optic__pip {
  border-color: #0077b8;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.35);
}

@media (max-width: 991px) {
  .snet-optic__btn {
    width: 32px;
    height: 32px;
  }
  .snet-optic__core {
    width: 12px;
    height: 12px;
  }
}
