﻿.site-toast-stack,
.site-notify-prompt {
  position: fixed;
  z-index: 1200;
}

.site-toast-stack {
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 24px));
}

.site-toast,
.site-notify-prompt {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 24, 0.92);
  color: #eef4ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-toast {
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.site-toast__head,
.site-notify-prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-toast__title,
.site-notify-prompt__title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.site-toast__body,
.site-notify-prompt__text {
  margin-top: 8px;
  color: rgba(232, 240, 255, 0.86);
  line-height: 1.55;
  font-size: 14px;
}

.site-toast__actions,
.site-notify-prompt__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.site-runtime-btn,
.site-runtime-link,
.site-runtime-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f8ff;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.site-runtime-btn:hover,
.site-runtime-link:hover,
.site-runtime-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-runtime-btn--primary {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.86), rgba(37, 99, 235, 0.9));
  border-color: rgba(125, 211, 252, 0.32);
}

.site-runtime-close {
  min-width: 38px;
  padding: 0;
}

.site-notify-prompt {
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 24px));
  border-radius: 20px;
  padding: 14px;
}

.site-notify-prompt.is-hidden {
  display: none;
}

.site-toast--info {
  border-color: rgba(96, 165, 250, 0.25);
}

.site-toast--warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.site-toast--critical {
  border-color: rgba(244, 63, 94, 0.28);
}

.site-map-panel-toggle,
.site-map-panel-backdrop,
.site-map-panel-drawer-head {
  display: none;
}

.site-map-panel-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1250;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.96);
  color: #f5f8ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.site-map-panel-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body.site-map-panel-open .site-map-panel-toggle {
  opacity: 0;
  pointer-events: none;
}

.site-data-status {
  display: none !important;
}

@media (max-width: 900px), (pointer: coarse) {
  .navbar,
  .footer,
  .page__card,
  .pro-social__panel,
  .site-toast,
  .site-notify-prompt {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-bg {
    display: none;
  }
}

@media (max-width: 980px), (pointer: coarse) {
  body.site-map-mobile-active .site-map-panel-toggle {
    display: inline-flex;
  }

  body.site-map-mobile-active .site-map-panel-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1270;
    background: rgba(2, 6, 23, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.site-map-mobile-active .site-map-mobile-panel {
    position: fixed !important;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(78vh, 720px);
    margin: 0 !important;
    z-index: 1280;
    overflow: auto !important;
    border-radius: 22px 22px 18px 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42) !important;
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }

  body.site-map-mobile-active .site-map-panel-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    background: rgba(8, 13, 24, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-map-panel-drawer-title {
    font-size: 13px;
    font-weight: 900;
    color: #eef4ff;
  }

  .site-map-panel-drawer-close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f8ff;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  body.site-map-panel-open .site-map-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.site-map-panel-open .site-map-mobile-panel {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .site-toast-stack {
    right: 10px;
    left: 10px;
    bottom: 72px;
    max-width: none;
  }

  .site-notify-prompt {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }

  .site-map-panel-toggle {
    right: 10px;
    bottom: 10px;
    min-height: 46px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
