/* SiteScout — Soft Orbit */

:root {
  --ss-bg: #f4f7fb;
  --ss-bg-elevated: #ffffff;
  --ss-ink: #0b1220;
  --ss-ink-soft: #334155;
  --ss-muted: #64748b;
  --ss-line: #e2e8f0;
  --ss-line-strong: #cbd5e1;
  --ss-accent: #0f766e;
  --ss-accent-bright: #14b8a6;
  --ss-accent-soft: #ccfbf1;
  --ss-accent-wash: rgba(20, 184, 166, 0.12);
  --ss-danger: #b91c1c;
  --ss-warn: #b45309;
  --ss-ok: #0f766e;
  --ss-radius: 16px;
  --ss-radius-sm: 12px;
  --ss-radius-pill: 999px;
  --ss-font: "Outfit", system-ui, sans-serif;
  --ss-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  --ss-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ss-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ss-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ss-ink);
  background: var(--ss-bg);
  overflow-x: hidden;
}

.ss-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 5%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 95%, rgba(148, 163, 184, 0.2), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, var(--ss-bg) 45%, #eef2f7 100%);
}

.ss-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.ss-orb--a {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 18%;
  background: rgba(45, 212, 191, 0.35);
  animation: ss-drift 14s var(--ss-ease) infinite alternate;
}

.ss-orb--b {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 8%;
  background: rgba(125, 211, 252, 0.35);
  animation: ss-drift 18s var(--ss-ease) infinite alternate-reverse;
}

a {
  color: var(--ss-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ss-accent-bright);
}

.ss-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Layout shell —— */
.ss-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}

.ss-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.15);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ss-ease), background 0.25s var(--ss-ease);
}

.ss-topbar.is-scrolled {
  border-bottom-color: var(--ss-line);
  background: rgba(244, 247, 251, 0.9);
}

.ss-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.ss-brand-mark {
  font-weight: 800;
  font-size: 1.68rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ss-ink);
  text-decoration: none;
}

.ss-brand-mark span {
  background: linear-gradient(120deg, var(--ss-accent) 10%, var(--ss-accent-bright) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ss-brand-mark:hover {
  color: var(--ss-ink);
}

.ss-nav-wrap {
  position: relative;
}

.ss-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius-sm);
  background: var(--ss-bg-elevated);
  color: var(--ss-ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ss-ease), background 0.15s var(--ss-ease);
}

.ss-nav-toggle:hover {
  border-color: var(--ss-line-strong);
  background: #f8fafc;
}

.ss-nav-toggle:focus-visible {
  outline: 2px solid var(--ss-ink);
  outline-offset: 2px;
}

.ss-nav-toggle[aria-expanded="true"] {
  border-color: var(--ss-ink);
  background: var(--ss-ink);
  color: #fff;
}

.ss-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.05rem;
}

.ss-nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ss-ease), opacity 0.2s var(--ss-ease);
}

.ss-nav-toggle[aria-expanded="true"] .ss-nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.ss-nav-toggle[aria-expanded="true"] .ss-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.ss-nav-toggle[aria-expanded="true"] .ss-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.ss-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 13.5rem;
  padding: 0.35rem 0.45rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--ss-bg-elevated);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius-sm);
  box-shadow: var(--ss-shadow);
}

.ss-nav[hidden] {
  display: none;
}

.ss-nav__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0.35rem 0;
}

.ss-nav__group + .ss-nav__group {
  border-top: 1px solid var(--ss-line);
}

.ss-nav__label {
  margin: 0 0 0.1rem;
  padding: 0.2rem 0.75rem 0.05rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
}

.ss-nav__link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ss-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

a.ss-nav__link:hover,
.ss-nav__link.is-active {
  color: var(--ss-ink);
  background: #f1f5f9;
}

.ss-nav__link.is-active {
  font-weight: 700;
}

.ss-nav__link--soon {
  cursor: default;
}

.ss-nav__soon {
  margin-left: 0.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.ss-nav__user {
  cursor: default;
  font-weight: 600;
  color: var(--ss-ink);
}

.ss-nav__logout {
  margin: 0;
  padding: 0;
  display: block;
}

.ss-nav__link--btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ss-nav__link--btn:hover {
  color: var(--ss-ink);
  background: #f1f5f9;
}

/* Auth pages */
.ss-auth {
  max-width: 420px;
  margin: 2.5rem auto 3rem;
  text-align: center;
}

.ss-auth__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.ss-auth__lede {
  margin: 0 0 1.5rem;
  color: var(--ss-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.ss-auth-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.ss-auth-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ss-ink-soft);
}

.ss-auth-form__shell:has(.ss-input.is-invalid),
.ss-auth-form__shell.is-invalid {
  border-color: var(--ss-danger);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--ss-shadow),
    0 0 0 4px rgba(185, 28, 28, 0.12);
}

.ss-form-alert {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ss-radius-sm);
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: rgba(185, 28, 28, 0.08);
  color: var(--ss-danger);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  line-height: 1.35;
}

.ss-auth-form__help {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ss-muted);
  line-height: 1.35;
}

.ss-auth-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  justify-content: center;
}

.ss-auth__switch {
  margin: 1.25rem 0 0;
  color: var(--ss-muted);
  font-size: 0.95rem;
}

.ss-auth__switch a {
  font-weight: 650;
}

/* Personal cabinet */
.ss-cabinet {
  max-width: 520px;
  margin: 2.5rem auto 3rem;
}

.ss-cabinet__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ss-muted);
}

.ss-cabinet__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.ss-cabinet__email {
  margin: 0 0 1.75rem;
  color: var(--ss-muted);
  font-size: 1rem;
  word-break: break-all;
}

.ss-cabinet__balance {
  padding: 1.25rem 0 1.35rem;
  border-top: 1px solid var(--ss-line);
  border-bottom: 1px solid var(--ss-line);
  margin-bottom: 1.25rem;
}

.ss-cabinet__balance-label {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ss-ink-soft);
}

.ss-cabinet__balance-value {
  margin: 0 0 0.45rem;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ss-ink);
}

.ss-cabinet__balance-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ss-muted);
}

.ss-cabinet__topup {
  margin-bottom: 1.75rem;
}

.ss-cabinet__topup-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ss-ink);
}

.ss-cabinet__topup-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ss-muted);
}

.ss-cabinet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ss-main {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.ss-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ss-line);
  padding: 1.5rem 0 2.25rem;
  color: var(--ss-muted);
  font-size: 0.875rem;
}

.ss-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.ss-footer__tagline {
  margin: 0;
  max-width: 28rem;
  line-height: 1.45;
}

.ss-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.ss-footer__link {
  color: var(--ss-ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.ss-footer__link:hover,
.ss-footer__link:focus-visible {
  color: var(--ss-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ss-footer__link.is-active {
  color: var(--ss-accent);
}

/* —— Static info pages —— */
.ss-info-page {
  padding: 1.75rem 0 1rem;
  animation: ss-fade-up 0.45s var(--ss-ease) both;
}

.ss-info-page__header {
  margin-bottom: 1.5rem;
}

.ss-info-page__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ss-ink);
}

.ss-info-page__lede {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  color: var(--ss-ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.ss-prose {
  max-width: 40rem;
  color: var(--ss-ink-soft);
}

.ss-prose h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-ink);
}

.ss-prose p,
.ss-prose ul {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.ss-prose ul {
  padding-left: 1.2rem;
}

.ss-prose li + li {
  margin-top: 0.35rem;
}

.ss-info-page__section + .ss-info-page__section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--ss-line);
}

/* —— Alerts —— */
.ss-alert {
  border: 1px solid var(--ss-line);
  background: var(--ss-bg-elevated);
  border-radius: var(--ss-radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  animation: ss-fade-up 0.45s var(--ss-ease) both;
}

.ss-alert--flush {
  margin-top: 1rem;
  margin-bottom: 0;
}

.ss-alert-error,
.ss-alert-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--ss-danger);
}

.ss-alert-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: var(--ss-warn);
}

.ss-alert-success {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: var(--ss-ok);
}

.ss-alert-info {
  border-color: var(--ss-line);
}

/* —— Motion —— */
@keyframes ss-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ss-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ss-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, 18px) scale(1.08); }
}

.ss-anim-fade-up {
  animation: ss-fade-up 0.65s var(--ss-ease) both;
}

.ss-anim-delay-1 { animation-delay: 0.08s; }
.ss-anim-delay-2 { animation-delay: 0.14s; }
.ss-anim-delay-3 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Home hero —— */
.ss-hero {
  padding: clamp(2.5rem, 6vh, 4.25rem) 0 1.5rem;
  text-align: center;
}

.ss-hero__brand {
  margin: 0 auto 0.85rem;
  font-size: clamp(3.6rem, 11vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  color: var(--ss-ink);
}

.ss-hero__brand span {
  background: linear-gradient(120deg, var(--ss-accent) 10%, var(--ss-accent-bright) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ss-hero__headline {
  margin: 0 auto 0.55rem;
  max-width: 18ch;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ss-ink);
}

.ss-hero__lede {
  margin: 0 auto 1.7rem;
  max-width: 34rem;
  color: var(--ss-ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.ss-hero__hint {
  margin: 0.95rem 0 0;
  color: var(--ss-muted);
  font-size: 0.88rem;
}

.ss-scan-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: min(580px, 100%);
  margin: 0 auto;
  text-align: left;
}

.ss-scan-form__row,
.ss-auth-form__shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--ss-radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--ss-shadow);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ss-scan-form__row:focus-within,
.ss-auth-form__shell:focus-within {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--ss-shadow),
    0 0 0 4px var(--ss-accent-wash);
}

.ss-input {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--ss-font);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
  background: transparent;
  border: 0;
  border-radius: var(--ss-radius-sm);
  padding: 0.9rem 1.15rem;
  outline: none;
}

.ss-input::placeholder {
  color: #94a3b8;
  font-weight: 450;
}

.ss-input.is-invalid {
  color: var(--ss-danger);
}

.ss-field-error,
.ss-field-errors {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ss-danger);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.35;
}

.ss-field-errors li + li {
  margin-top: 0.2rem;
}

.ss-field-error a,
.ss-field-errors a {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--ss-danger);
}

/* —— Free-tier registration gate (variant 6: quota meter) —— */
.ss-quota-gate {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--ss-bg-elevated);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  text-align: left;
  animation: ss-fade-up 0.45s var(--ss-ease) both;
}

.ss-quota-gate--soft {
  padding: 0.95rem 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--ss-line);
  box-shadow: none;
}

.ss-quota-gate--soft .ss-quota-gate__icon {
  background: rgba(15, 118, 110, 0.08);
}

.ss-quota-gate--soft .ss-quota-gate__title strong {
  font-weight: 650;
  font-size: 0.9rem;
}

.ss-quota-gate--soft .ss-quota-gate__meter {
  margin-bottom: 0.55rem;
}

.ss-quota-gate__text--solo {
  margin-bottom: 0;
}

.ss-quota-gate__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ss-quota-gate__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ss-quota-gate__title strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}

.ss-quota-gate__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ss-accent-soft);
  color: var(--ss-accent);
}

.ss-quota-gate__icon svg {
  display: block;
}

.ss-quota-gate__count {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ss-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ss-quota-gate__meter {
  display: flex;
  gap: 5px;
  margin-bottom: 0.85rem;
}

.ss-quota-gate__seg {
  flex: 1;
  height: 6px;
  border-radius: var(--ss-radius-pill);
  background: var(--ss-accent);
  opacity: 0.28;
}

.ss-quota-gate__seg.is-done {
  background: var(--ss-ink);
  opacity: 0.85;
}

.ss-quota-gate__text {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  color: var(--ss-muted);
  line-height: 1.45;
}

.ss-quota-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.ss-quota-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem;
  border-radius: var(--ss-radius-pill);
  line-height: 1.2;
}

.ss-quota-gate__btn--primary {
  color: #fff;
  background: var(--ss-accent);
}

.ss-quota-gate__btn--primary:hover {
  color: #fff;
  background: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}

.ss-quota-gate__btn--ghost {
  color: var(--ss-accent);
  background: transparent;
  border: 1px solid var(--ss-line-strong);
}

.ss-quota-gate__btn--ghost:hover {
  color: var(--ss-ink);
  border-color: var(--ss-ink);
  background: rgba(15, 23, 42, 0.03);
}

@media (max-width: 520px) {
  .ss-quota-gate__top {
    flex-wrap: wrap;
  }

  .ss-quota-gate__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ss-quota-gate__btn {
    width: 100%;
  }
}

.ss-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--ss-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--ss-radius-sm);
  transition: transform 0.18s var(--ss-ease), background 0.18s var(--ss-ease), box-shadow 0.18s var(--ss-ease);
}

.ss-btn:active {
  transform: translateY(1px);
}

.ss-btn-primary {
  flex: 0 0 auto;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  color: #fff;
  background: var(--ss-ink);
  border-radius: var(--ss-radius-sm);
}

.ss-btn-primary:hover {
  background: #1e293b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ss-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--ss-accent);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.ss-btn-ghost:hover {
  color: var(--ss-accent-bright);
}

/* Recent history */
.ss-history {
  margin: 2.85rem auto 0;
  max-width: 680px;
  text-align: left;
  animation: ss-fade-up 0.75s var(--ss-ease) 0.28s both;
}

.ss-history__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
  padding: 0 0.15rem;
}

.ss-history__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ss-muted);
}

.ss-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ss-history__item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color 0.18s, transform 0.18s var(--ss-ease), box-shadow 0.18s;
}

.ss-history__item a:hover {
  border-color: var(--ss-line-strong);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ss-history__main {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.ss-history__domain {
  font-weight: 750;
  letter-spacing: -0.025em;
  font-size: 1.02rem;
  color: var(--ss-ink);
}

.ss-history__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.ss-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: var(--ss-radius-pill);
  background: #f1f5f9;
  color: var(--ss-ink-soft);
  font-weight: 600;
  font-size: 0.72rem;
}

.ss-chip--ok {
  background: var(--ss-accent-soft);
  color: var(--ss-accent);
}

a.ss-chip--link {
  text-decoration: none;
  color: var(--ss-ink);
  transition: background 0.15s var(--ss-ease), color 0.15s var(--ss-ease);
}

a.ss-chip--link:hover,
a.ss-chip--link:focus-visible {
  background: #e2e8f0;
  color: var(--ss-ink);
}

.ss-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ss-topic-block .ss-topic-chips .ss-chip {
  font-size: 0.88rem;
  padding: 0.28rem 0.7rem;
  font-weight: 700;
}

.ss-history__right {
  text-align: right;
}

.ss-history__tech {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--ss-ink);
  letter-spacing: -0.01em;
}

.ss-history__date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ss-muted);
  white-space: nowrap;
}

.ss-favicon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  object-fit: contain;
  background: var(--ss-bg-elevated);
  border: 1px solid var(--ss-line);
}

.ss-favicon--mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ss-favicon-size, 2.5rem);
  height: var(--ss-favicon-size, 2.5rem);
  font-size: calc(var(--ss-favicon-size, 2.5rem) * 0.42);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ss-accent);
  background: var(--ss-accent-soft);
  border-color: transparent;
  user-select: none;
}

/* —— Results —— */
.ss-results-nav {
  padding: 1.25rem 0 0.5rem;
}

.ss-results-header {
  padding: 0.5rem 0 1.5rem;
  animation: ss-fade-up 0.55s var(--ss-ease) both;
}

.ss-results-header__panel {
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  overflow: hidden;
  background: var(--ss-bg-elevated);
}

.ss-results-header__band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, var(--ss-accent) 0%, #0d9488 55%, var(--ss-accent-bright) 100%);
  color: #fff;
}

.ss-results-header__band:has(.ss-status--fail) {
  background: linear-gradient(90deg, #991b1b 0%, var(--ss-danger) 55%, #f87171 100%);
}

.ss-results-header__band:has(.ss-status--pending),
.ss-results-header__band:has(.ss-status--running) {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 55%, #60a5fa 100%);
}

/* Soft-poll still sets .ss-status classes; restyle them as band text. */
.ss-results-header__band .ss-status {
  gap: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.ss-results-header__band .ss-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.ss-results-header__band-note {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.92;
}

.ss-results-header__body {
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(180deg, #f8fafc 0%, var(--ss-bg-elevated) 100%);
}

.ss-results-header__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.4rem;
  min-width: 0;
}

.ss-results-header__panel .ss-results-header__title {
  margin-bottom: 0.9rem;
}

.ss-results-header__title .ss-favicon {
  width: 2.5rem;
  height: 2.5rem;
}

.ss-results-header__domain {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  word-break: break-word;
}

.ss-results-header__panel .ss-results-header__domain {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ss-results-header__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 0.9rem;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius-sm);
  overflow: hidden;
  background: var(--ss-bg-elevated);
}

.ss-results-header__fact {
  padding: 0.65rem 0.75rem;
  min-width: 0;
}

.ss-results-header__fact + .ss-results-header__fact {
  border-left: 1px solid var(--ss-line);
}

.ss-results-header__fact-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ss-muted);
}

.ss-results-header__fact-value {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ss-ink);
  word-break: break-word;
}

.ss-results-header__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.ss-results-header__url {
  margin-top: 0;
  min-width: 0;
  flex: 1 1 14rem;
}

.ss-results-header__share {
  margin-top: 0;
  max-width: none;
  flex: 0 1 auto;
}

.ss-results-header__share .ss-share__label {
  display: none;
}

.ss-results-header__panel .ss-scan-progress,
.ss-results-header__panel .ss-alert--flush {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.ss-results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  color: var(--ss-muted);
  font-size: 0.92rem;
}

.ss-share {
  margin-top: 1.1rem;
  max-width: 40rem;
}

.ss-share__label {
  margin: 0 0 0.45rem;
  color: var(--ss-muted);
  font-size: 0.9rem;
}

.ss-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
}

.ss-share__url {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ss-line, #d7dee7);
  border-radius: var(--ss-radius-sm);
  background: #fff;
  font-family: var(--ss-font);
  font-size: 0.88rem;
  color: var(--ss-ink);
}

.ss-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--ss-radius-pill);
  border: 1px solid var(--ss-line-strong);
  background: var(--ss-bg-elevated);
  color: var(--ss-ink-soft);
}

.ss-status--ok {
  border-color: transparent;
  background: var(--ss-accent);
  color: #fff;
}

.ss-status--fail {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--ss-danger);
}

.ss-status--pending,
.ss-status--running {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ss-scan-progress {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #bfdbfe;
  border-radius: var(--ss-radius-sm);
  background: #f8fbff;
}

.ss-scan-progress__spinner {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid #bfdbfe;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-spin {
  to { transform: rotate(360deg); }
}

.ss-scan-progress__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ss-ink);
}

.ss-scan-progress__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ss-ink-soft);
  line-height: 1.45;
}

.ss-results-url {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ss-ink-soft);
  word-break: break-all;
}

.ss-results-url span {
  color: var(--ss-muted);
}

@media (max-width: 560px) {
  .ss-results-header__facts {
    grid-template-columns: 1fr;
  }

  .ss-results-header__fact + .ss-results-header__fact {
    border-left: 0;
    border-top: 1px solid var(--ss-line);
  }

  .ss-results-header__band-note {
    flex: 1 1 100%;
  }
}

/* —— Tables —— */
.ss-table-block {
  margin: 0 0 1.35rem;
  animation: ss-fade-up 0.5s var(--ss-ease) both;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ss-topic-block {
  animation-delay: 0.05s;
}

.ss-topic-block .ss-table__value {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

.ss-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  /* overflow:hidden clips <caption> in Chromium/WebKit — round cells instead */
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
}

.ss-table__caption {
  caption-side: top;
  text-align: left;
  padding: 0.15rem 0 0.55rem;
  line-height: 1.35;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss-muted);
}

/* Preserve rounded corners without clipping captions */
.ss-table > thead > tr:first-child > *:first-child,
.ss-table > caption + tbody > tr:first-child > *:first-child {
  border-top-left-radius: calc(var(--ss-radius) - 1px);
}

.ss-table > thead > tr:first-child > *:last-child,
.ss-table > caption + tbody > tr:first-child > *:last-child {
  border-top-right-radius: calc(var(--ss-radius) - 1px);
}

.ss-table > tbody:last-child > tr:last-child > *:first-child {
  border-bottom-left-radius: calc(var(--ss-radius) - 1px);
}

.ss-table > tbody:last-child > tr:last-child > *:last-child {
  border-bottom-right-radius: calc(var(--ss-radius) - 1px);
}

.ss-table th,
.ss-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ss-line);
  text-align: left;
  vertical-align: middle;
}

.ss-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-muted);
  background: #f8fafc;
  border-bottom-color: var(--ss-line-strong);
}

.ss-table tbody th {
  font-weight: 700;
  color: var(--ss-ink);
  width: 8.5rem;
  white-space: nowrap;
}

.ss-table tbody tr:last-child th,
.ss-table tbody tr:last-child td {
  border-bottom: none;
}

.ss-table--compact td {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  padding: 0.95rem 1rem;
  line-height: 1.25;
}

.ss-table__value {
  color: var(--ss-ink);
}

.ss-table__muted {
  color: var(--ss-muted);
  font-weight: 500;
}

.ss-table__detail {
  color: var(--ss-ink-soft);
  font-size: 0.88rem;
  display: grid;
  gap: 0.2rem;
  word-break: break-word;
}

.ss-table__warn {
  color: var(--ss-warn);
  font-weight: 600;
}

.ss-table th.ss-table__col-conf,
.ss-table td.ss-table__col-conf {
  width: 9.5rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.ss-row--warn td,
.ss-row--warn th {
  background: #fffbeb;
}

.ss-row--danger td,
.ss-row--danger th {
  background: #fef2f2;
}

.ss-category-tables {
  display: grid;
  gap: 1.1rem;
}

/* —— Tech layers (category + tech buttons) —— */
.ss-tech-layers {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.25rem;
  animation: ss-fade-up 0.5s var(--ss-ease) both;
}

.ss-tech-layer {
  padding: 0.95rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  backdrop-filter: blur(8px);
}

.ss-tech-layer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ss-tech-layer__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.ss-tech-layer__meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ss-muted);
  font-variant-numeric: tabular-nums;
}

.ss-tech-layer__empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ss-muted);
  font-weight: 500;
}

.ss-tech-layer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ss-tech-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius-sm);
  background: var(--ss-bg-elevated);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s var(--ss-ease),
    background 0.15s var(--ss-ease),
    transform 0.15s var(--ss-ease);
}

.ss-tech-btn:hover,
.ss-tech-btn:focus-visible {
  border-color: var(--ss-line-strong);
  background: #f8fafc;
  color: inherit;
  transform: translateY(-1px);
}

.ss-tech-btn:focus-visible {
  outline: 2px solid var(--ss-ink);
  outline-offset: 2px;
}

.ss-tech-btn .ss-logo {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
}

.ss-tech-btn__name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--ss-ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-tech-btn__conf {
  margin-left: 0.15rem;
  flex-shrink: 0;
}

.ss-tech-btn .ss-confidence {
  font-size: 0.62rem;
  padding: 0.18rem 0.42rem;
}

.ss-tech-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ss-tech__name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ss-ink);
}

.ss-confidence {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--ss-radius-pill);
  border: 1px solid var(--ss-line);
  color: var(--ss-ink-soft);
  background: #f8fafc;
  white-space: nowrap;
}

.ss-confidence--high {
  border-color: transparent;
  color: var(--ss-accent);
  background: var(--ss-accent-soft);
}

.ss-confidence--medium {
  border-color: var(--ss-line-strong);
  color: var(--ss-ink-soft);
  background: #f1f5f9;
}

.ss-confidence--low {
  color: var(--ss-muted);
}

.ss-results-note {
  margin-top: 1.25rem;
  color: var(--ss-muted);
  font-size: 0.9rem;
  animation: ss-fade-in 0.6s var(--ss-ease) 0.35s both;
}

/* —— Tech logo mark —— */
.ss-logo {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ss-bg-elevated);
  border: 1px solid var(--ss-line);
  color: var(--ss-ink);
  overflow: hidden;
}

.ss-logo--lg {
  width: 3.25rem;
  height: 3.25rem;
}

.ss-logo--md {
  width: 2.65rem;
  height: 2.65rem;
}

.ss-logo--sm {
  width: 1.85rem;
  height: 1.85rem;
}

.ss-tech__link {
  color: inherit;
  text-decoration: none;
}

.ss-tech__link:hover .ss-tech__name,
.ss-tech__link:focus-visible .ss-tech__name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ss-breadcrumbs {
  padding: 1.25rem 0 0.35rem;
}

.ss-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ss-muted);
}

.ss-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ss-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--ss-line-strong);
  font-weight: 500;
}

.ss-breadcrumbs__link {
  color: var(--ss-ink-soft);
  text-decoration: none;
}

.ss-breadcrumbs__link:hover,
.ss-breadcrumbs__link:focus-visible {
  color: var(--ss-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ss-breadcrumbs__current {
  color: var(--ss-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ss-tech-page__description {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: var(--ss-ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.ss-tech-page__actions {
  margin: 0.85rem 0 0;
}

.ss-tech-page__counts {
  margin: 0.75rem 0 0;
  color: var(--ss-ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ss-tech-page__category {
  color: inherit;
  text-decoration: none;
}

.ss-tech-page__category:hover,
.ss-tech-page__category:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ss-tech-page__site {
  color: var(--ss-ink);
  font-weight: 600;
  text-decoration: none;
}

.ss-tech-page__site:hover,
.ss-tech-page__site:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ss-logo__img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  color: var(--ss-ink);
}

.ss-logo__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-accent);
  background: var(--ss-accent-soft);
}

.ss-logo.is-fallback .ss-logo__img {
  display: none;
}

.ss-logo:not(.is-fallback) .ss-logo__fallback {
  display: none;
}

/* —— Responsive —— */
@media (max-width: 760px) {
  .ss-footer__inner {
    flex-direction: column;
  }

  .ss-scan-form__row {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--ss-radius-sm);
  }

  .ss-auth-form__shell {
    border-radius: var(--ss-radius-sm);
  }

  .ss-input {
    flex: 1 1 auto;
  }

  .ss-btn-primary {
    width: 100%;
    max-width: 100%;
    border-radius: var(--ss-radius-sm);
  }

  .ss-table th,
  .ss-table td {
    padding: 0.6rem 0.7rem;
  }

  .ss-table tbody th {
    width: auto;
    white-space: normal;
  }

  .ss-table__col-conf {
    width: 7rem;
  }

  .ss-history__item a {
    grid-template-columns: auto 1fr;
  }

  .ss-history__right {
    grid-column: 2;
    text-align: left;
    display: flex;
    gap: 0.65rem;
    align-items: baseline;
  }

  .ss-history__date {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .ss-table thead {
    display: none;
  }

  .ss-category-tables .ss-table tbody td,
  .ss-category-tables .ss-table tbody th {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  .ss-category-tables .ss-table tbody tr {
    display: block;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--ss-line);
  }

  .ss-category-tables .ss-table tbody tr:last-child {
    border-bottom: none;
  }

  .ss-category-tables .ss-table__col-conf {
    text-align: left;
    padding-top: 0.35rem;
    width: auto;
  }
}
