/* =========================================================
   securelynx-guide.css
   SecureLynx guided routing panel
   ========================================================= */

#securelynx-guide,
.securelynx-guide,
.securelynx-guide *,
.securelynx-guide *::before,
.securelynx-guide *::after {
  box-sizing: border-box;
}

#securelynx-guide,
.securelynx-guide,
.securelynx-guide[hidden],
.securelynx-guide:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#securelynx-guide.is-open,
.securelynx-guide.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  position: fixed !important;
  top: calc(var(--securelynx-guide-top, 96px) + 10px) !important;
  right: clamp(14px, 2vw, 32px) !important;
  left: auto !important;

  width: min(360px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - var(--securelynx-guide-top, 96px) - 24px);

  z-index: 99999 !important;
  background: transparent;

  animation: securelynxGuideSlide .18s ease both;
}

.securelynx-guide-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;

  max-height: inherit;
  min-height: 0;
  padding: 18px;

  border: 1px solid rgba(115, 255, 190, .15);
  border-radius: 18px;

  background:
    linear-gradient(145deg, rgba(18, 30, 48, .96), rgba(8, 15, 28, .95));

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.securelynx-guide-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(33, 231, 255, .035), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(82, 255, 173, .07), transparent 25%);
}

.securelynx-guide-close,
.securelynx-guide-header,
.securelynx-guide-body,
.securelynx-guide-options,
.securelynx-guide-actions {
  position: relative;
  z-index: 2;
}

.securelynx-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;

  background: rgba(255, 255, 255, .045);
  color: #fff;

  font-size: 1rem;
  line-height: 1;

  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.securelynx-guide-close:hover,
.securelynx-guide-close:focus-visible {
  border-color: rgba(82, 255, 173, .35);
  background: rgba(82, 255, 173, .09);
  transform: translateY(-1px);
  outline: none;
}

.securelynx-guide-header {
  padding-right: 34px;
}

.securelynx-guide h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.securelynx-guide-header p {
  margin: 0;
  max-width: 275px;
  color: rgba(245, 250, 255, .72);
  font-size: .78rem;
  line-height: 1.35;
}

.securelynx-guide-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.securelynx-guide-thread {
  display: grid;
  gap: 8px;
}

.securelynx-guide-message {
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: rgba(245, 250, 255, .88);
  font-size: .8rem;
  line-height: 1.38;
}

.securelynx-guide-message strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: .84rem;
}

.securelynx-guide-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 2px;
}

.securelynx-guide-option {
  width: 100%;
  min-height: 0;
  padding: 10px 12px;

  border: 1px solid rgba(145, 230, 190, .13);
  border-radius: 12px;

  background: rgba(255, 255, 255, .04);
  color: #fff;

  text-align: left;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.18;

  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.securelynx-guide-option:hover,
.securelynx-guide-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(82, 255, 173, .36);
  background: rgba(82, 255, 173, .07);
  outline: none;
}

.securelynx-guide-option span {
  display: block;
  margin-top: 3px;
  color: rgba(245, 250, 255, .62);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.24;
}

.securelynx-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.securelynx-guide-actions .btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: .68rem;
  letter-spacing: .07em;
}

body.securelynx-guide-open {
  overflow: hidden;
}

@keyframes securelynxGuideSlide {
  from {
    opacity: 0;
    transform: translateY(-6px) translateX(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@media (max-width: 760px) {
  #securelynx-guide.is-open,
  .securelynx-guide.is-open {
    top: calc(var(--securelynx-guide-top, 82px) + 8px) !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - var(--securelynx-guide-top, 82px) - 18px);
  }

  .securelynx-guide-panel {
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
  }

  .securelynx-guide-header p {
    max-width: 100%;
  }
}
