﻿/* RaptorScanner futuristic visual layer */
:root {
  --blue: #6366f1;
  --dark-blue: #4338ca;
  --light-blue: #67e8f9;
  --light-bg: #f4f7ff;
  --dark-bg: #050816;
  --dark-card: #0d1428;
  --dark-input: #151f38;
  --text: #10172a;
  --muted: #5e6b85;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --line: rgba(99, 102, 241, 0.16);
  --shadow: 0 24px 70px rgba(30, 41, 90, 0.13);
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  background: #f5f7fb;
}

body.dark-mode {
  background: #0b1120;
}

button,
input,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

/* Glass navigation */
.navbar,
.home-navbar {
  background: #111827;
  border-bottom: 1px solid #263247;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.14);
}

.navbar {
  min-height: 72px;
  height: auto;
  padding: 0 5vw;
  position: relative;
  z-index: 1000;
}

.home-navbar {
  height: 82px;
  padding: 0 6vw;
}

.logo,
.home-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #06111d;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  border-radius: 8px;
  background: #2563eb;
  box-shadow: none;
}

.brand-logo-image {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  border: 2px solid rgba(103, 232, 249, 0.8);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1), 0 5px 16px rgba(0, 0, 0, 0.28);
}

.nav-links,
.home-nav-center,
.home-nav-right {
  gap: clamp(16px, 2vw, 30px);
}

.nav-links a,
.home-nav-center a,
.home-nav-right a {
  position: relative;
  color: #dbeafe;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a::after,
.home-nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), #818cf8);
  transition: right 180ms ease;
}

.nav-links a:hover,
.home-nav-center a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover::after,
.home-nav-center a:hover::after {
  right: 0;
}

.login-nav-btn {
  padding: 10px 22px;
  color: #06111d !important;
  border: 0;
  border-radius: 12px;
  background: #38bdf8;
  box-shadow: none;
}

.theme-btn,
.nav-toggle,
.home-nav-toggle {
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #cffafe;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: rgba(103, 232, 249, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.theme-btn {
  display: grid;
}

.theme-btn:hover,
.nav-toggle:hover,
.home-nav-toggle:hover {
  background: rgba(103, 232, 249, 0.16);
  transform: translateY(-2px);
}

/* Hero â€” content remains unchanged */
.hero-home {
  min-height: 760px;
  isolation: isolate;
  padding: 155px 24px 100px;
}

.hero-video-overlay {
  background: rgba(5, 12, 28, 0.76);
}

.hero-home::before,
.hero-home::after {
  display: none;
}

.hero-home::before {
  width: 440px;
  height: 440px;
  top: 12%;
  left: -180px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.08), inset 0 0 70px rgba(99, 102, 241, 0.06);
}

.hero-home::after {
  width: 330px;
  height: 330px;
  right: -110px;
  bottom: 4%;
  border: 1px solid rgba(129, 140, 248, 0.18);
}

.hero-text {
  max-width: 970px;
}

.hero-kicker,
.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.1), 0 0 18px #2dd4bf;
  animation: statusPulse 2.2s infinite;
}

.hero-text h1 {
  margin: 28px 0 24px;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-text p {
  max-width: 780px;
  margin-bottom: 38px;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-main-btn {
  padding: 16px 26px;
  color: #06111d;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
}

.hero-main-btn:hover {
  color: #06111d;
  background: #e2e8f0;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

/* Home content */
.home-about-section,
.home-features-section {
  position: relative;
  overflow: hidden;
  padding: 110px max(6vw, 24px);
}

.home-about-section {
  background: transparent;
}

.home-features-section {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid var(--line);
}

body.dark-mode .home-features-section {
  background: rgba(8, 13, 31, 0.76);
}

.home-about-section h2,
.home-features-section h2 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  letter-spacing: -0.05em;
}

.home-about-section h2::before,
.home-features-section h2::before {
  content: "///";
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
}

.home-about-section p {
  max-width: 870px;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-feature-grid {
  max-width: 1180px;
  margin: 52px auto 0;
  gap: 22px;
}

.home-feature-box {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  padding: 34px;
  text-align: left;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(30, 41, 90, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-feature-box::before {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: #fff;
  font-size: 1.35rem;
  border-radius: 9px;
  background: #2563eb;
  box-shadow: none;
}

.feature-auth::before { content: "\2726"; }
.feature-upload::before { content: "\21E7"; }
.feature-hash::before { content: "#"; }
.feature-malware::before { content: "\25C8"; }
.feature-url::before { content: "\221E"; }
.feature-history::before { content: "\21BB"; }

.home-feature-box:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(30, 41, 90, 0.1);
}

.home-feature-box h3 {
  color: var(--text);
  font-size: 1.25rem;
}

.home-feature-box p {
  color: var(--muted);
}

body.dark-mode .home-feature-box {
  background: #131d30;
  border-color: #263247;
}

.home-footer {
  padding: 30px 20px;
  background: #050816;
  border-top: 1px solid rgba(103, 232, 249, 0.12);
}

/* Threat analysis dashboard */
.vt-page {
  min-height: calc(100vh - 72px);
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  padding: 76px 20px;
  background: transparent !important;
}

.dashboard-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-orb-one {
  width: 360px;
  height: 360px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.17), transparent 68%);
}

.dashboard-orb-two {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 68%);
}

.vt-card {
  width: min(920px, 95%);
  position: relative;
  z-index: 1;
  padding: 40px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(30, 41, 90, 0.1);
}

body.dark-mode .vt-card {
  background: #111827;
  border-color: #263247;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.dashboard-heading {
  margin: 4px auto 34px;
  text-align: center;
}

.dashboard-heading .dashboard-status {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.18);
}

body.dark-mode .dashboard-heading .dashboard-status {
  color: #a5f3fc;
}

.dashboard-heading h1 {
  margin: 22px 0 10px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.055em;
}

.dashboard-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.vt-tabs {
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(99, 102, 241, 0.05);
}

.tab-btn {
  flex: 1;
  padding: 13px 18px;
  color: var(--muted);
  border: 0 !important;
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tab-btn.active {
  color: #fff !important;
  background: #2563eb;
  box-shadow: none;
}

.tab-content {
  min-height: 280px;
  padding: 34px 22px 14px;
}

.tab-content.active {
  animation: tabReveal 280ms ease both;
}

.tab-content h1 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.tab-content p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.55;
}

.tab-content form {
  max-width: 650px;
  margin: 24px auto 0;
}

.tab-content input[type="file"],
.tab-content input[type="url"],
.tab-content input[type="text"] {
  width: 100%;
  min-height: 56px;
  margin: 0 0 14px;
  padding: 15px 18px;
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tab-content input[type="file"] {
  padding: 10px;
  border-style: dashed;
}

.tab-content input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  color: #312e81;
  font-weight: 700;
  border: 0;
  border-radius: 9px;
  background: #e0e7ff;
  cursor: pointer;
}

.tab-content input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.tab-content button[type="submit"] {
  width: 100%;
  min-height: 54px;
  border-radius: 13px;
  background: #2563eb;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tab-content button[type="submit"]:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Shared cards and forms */
.login-box,
.auth-card,
.container,
.result-container,
.history-container,
.advanced-card,
.result-overview-card,
.summary-box,
.profile-card,
.admin-card {
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(30, 41, 90, 0.08);
}

.result-container,
.history-container,
.advanced-card,
.result-overview-card {
  background: #fff;
}

body.dark-mode .result-container,
body.dark-mode .history-container,
body.dark-mode .advanced-card,
body.dark-mode .result-overview-card,
body.dark-mode .summary-box {
  background: #111827;
  border-color: #263247;
}

.query-correction-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.card,
.advanced-result-item {
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.045);
}

th {
  background: #1e3a5f;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}

.btn {
  padding: 11px 17px;
  border-radius: 10px;
  background: #2563eb;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.badge,
.risk-low,
.risk-medium,
.risk-high {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Authentication */
.fb-login-page,
.login-responsive-page {
  min-height: calc(100vh - 72px);
  background: transparent;
}

.login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.2);
}

.auth-background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.login-brand::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg, rgba(3, 10, 28, 0.72), rgba(3, 10, 28, 0.5));
  pointer-events: none;
}

.login-brand .logo-badge,
.login-brand h1,
.login-brand p {
  position: relative;
  z-index: 2;
}

.logo-badge {
  border-radius: 10px;
  background: #2563eb;
  box-shadow: none;
}

.login-box {
  padding: 38px;
  background: #fff;
}

body.dark-mode .login-box {
  background: #111827;
  border-color: #263247;
}

.login-box input,
.auth-card input,
.container input {
  min-height: 52px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 11px;
  background: rgba(248, 250, 252, 0.8);
}

.login-box input:focus,
.auth-card input:focus,
.container input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
  outline: 0;
}

.login-password-field {
  position: relative;
  margin-bottom: 15px;
}

.login-password-field input {
  margin-bottom: 0;
  padding-right: 54px;
}

.login-password-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  position: absolute;
  top: 50%;
  right: 7px;
  place-items: center;
  padding: 0;
  color: #526174;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.login-password-toggle:hover {
  color: #172033;
  background: rgba(100, 116, 139, 0.1);
}

.login-password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-password-toggle .login-eye-open {
  display: none;
}

body.dark-mode .login-password-toggle {
  color: #c6d0dd;
}

body.dark-mode .login-password-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.login-box button[type="submit"],
.auth-card button[type="submit"],
.container button {
  border-radius: 11px;
  background: #2563eb;
  box-shadow: none;
}

.create-account-btn {
  border-color: rgba(99, 102, 241, 0.5);
  border-radius: 11px;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.82); }
}

@keyframes tabReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1000px) {
  .home-navbar {
    padding: 0 28px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-navbar {
    height: 68px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 18px;
  }

  .home-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .home-nav-center,
  .home-nav-right {
    display: none;
  }

  .home-navbar.active {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 13px 18px 18px;
  }

  .home-navbar.active .home-nav-center,
  .home-navbar.active .home-nav-right {
    width: 100%;
    display: flex;
    position: static;
    transform: none;
    margin: 0;
  }

  .home-navbar.active .home-nav-center {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
  }

  .home-navbar.active .home-nav-center a {
    padding: 11px 12px;
    border-radius: 9px;
  }

  .home-navbar.active .home-nav-right {
    justify-content: flex-start;
    padding-top: 10px;
  }

  #dashboardNavbar .nav-links,
  .login-navbar .nav-links {
    top: 60px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
    align-items: stretch;
    padding: 14px;
    background: rgba(7, 12, 30, 0.97);
    border: 1px solid rgba(103, 232, 249, 0.12);
    backdrop-filter: blur(20px);
  }

  #dashboardNavbar .nav-links a,
  .login-navbar .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .hero-home {
    min-height: 700px;
    padding: 120px 20px 80px;
  }

  .hero-text h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .home-about-section,
  .home-features-section {
    padding: 78px 22px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .vt-page {
    padding: 36px 12px;
  }

  .vt-card {
    width: 100%;
    max-width: none;
    padding: 24px 14px;
    border-radius: 20px;
  }

  .dashboard-heading {
    padding: 0 10px;
  }

  .vt-tabs {
    gap: 4px;
  }

  .tab-btn {
    padding: 11px 8px;
    font-size: 0.78rem;
  }

  .tab-content {
    padding: 28px 8px 8px;
  }

  .login-box {
    width: 100%;
    padding: 28px 22px;
  }
}

@media (max-width: 400px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-logo-image {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .home-logo,
  .logo {
    font-size: 1.1rem;
  }

  .hero-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  .hero-text h1 {
    font-size: 2.65rem;
  }
}

.navbar,
.home-navbar {
  transition: transform 240ms ease;
}

.navbar-scroll-hidden {
  transform: translateY(-110%) !important;
}

.theme-btn {
  display: none !important;
}

.url-risk-score {
  display: inline-block;
  padding: 6px 12px;
  color: #e0f2fe;
  font-weight: 800;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
}

.url-indicator-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.url-indicator-list li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
}

.url-indicator-list li::before {
  content: "!";
  position: absolute;
  left: 14px;
  color: #f59e0b;
  font-weight: 900;
}

.url-analysis-note {
  margin-top: 20px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.url-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.url-engine-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.06);
}

.url-engine-name {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.url-engine-card small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .url-engine-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-overview {
  overflow: hidden;
}

.analytics-overview .admin-card-header {
  align-items: center;
}

.analytics-overview .admin-card-header h2 {
  margin-bottom: 6px;
}

.analytics-overview .admin-card-header p {
  margin: 0;
  color: var(--muted);
}

.analytics-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
}

.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analytics-summary-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.05);
}

.analytics-summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-summary-card strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

body.dark-mode .analytics-summary-card strong {
  color: #e0f2fe;
}

.analytics-time {
  display: inline-block;
  padding: 6px 10px;
  color: #cffafe;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.2);
}

.analytics-page-table code {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 800px) {
  .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile V2 */
.profile-v2-page {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 80px;
}

.profile-v2-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 34px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(30, 41, 90, 0.08);
}

body.dark-mode .profile-v2-hero {
  background: #111827;
}

.profile-v2-avatar-wrap {
  position: relative;
}

.profile-v2-avatar {
  width: 116px;
  height: 116px;
  overflow: hidden;
  padding: 4px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: none;
}

.profile-v2-avatar img,
.profile-v2-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-v2-avatar img {
  display: block;
  object-fit: cover;
}

.profile-v2-avatar-fallback {
  display: grid;
  place-items: center;
  color: #cffafe;
  font-size: 2.8rem;
  font-weight: 900;
  background: #101a34;
}

.profile-v2-online {
  width: 20px;
  height: 20px;
  position: absolute;
  right: -4px;
  bottom: -4px;
  border: 4px solid var(--light-bg);
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.7);
}

body.dark-mode .profile-v2-online {
  border-color: var(--dark-bg);
}

.profile-v2-eyebrow,
.profile-v2-card-heading p {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-v2-identity h1 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.05em;
}

body.dark-mode .profile-v2-identity h1 {
  color: #e0f2fe;
}

.profile-v2-email {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-v2-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-v2-role,
.profile-v2-provider {
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
}

.profile-v2-role {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.profile-v2-role.is-admin {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.13);
}

.profile-v2-provider {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}

body.dark-mode .profile-v2-role {
  color: #6ee7b7;
}

body.dark-mode .profile-v2-role.is-admin {
  color: #c4b5fd;
}

body.dark-mode .profile-v2-provider {
  color: #7dd3fc;
}

.profile-v2-hero-meta {
  min-width: 150px;
  padding: 16px 18px;
  text-align: right;
  border-left: 1px solid var(--line);
}

.profile-v2-hero-meta span,
.profile-v2-hero-meta strong {
  display: block;
}

.profile-v2-hero-meta span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-v2-hero-meta strong {
  color: var(--text);
}

body.dark-mode .profile-v2-hero-meta strong {
  color: #e0f2fe;
}

.profile-v2-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 17px;
  border-radius: 13px;
}

.profile-v2-alert > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  border-radius: 50%;
}

.profile-v2-alert p {
  margin: 0;
}

.profile-v2-alert.is-error {
  color: #b91c1c;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.profile-v2-alert.is-error > span {
  color: #fff;
  background: #dc2626;
}

.profile-v2-alert.is-success {
  color: #047857;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
}

.profile-v2-alert.is-success > span {
  color: #fff;
  background: #059669;
}

.profile-v2-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.profile-v2-sidebar,
.profile-v2-content {
  display: grid;
  gap: 22px;
}

.profile-v2-card {
  padding: 26px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(30, 41, 90, 0.07);
}

body.dark-mode .profile-v2-card {
  background: #111827;
  border-color: #263247;
}

.profile-v2-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.profile-v2-card-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
}

body.dark-mode .profile-v2-card-heading h2 {
  color: #e0f2fe;
}

.profile-v2-heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #cffafe;
  font-weight: 900;
  border-radius: 12px;
  background: #2563eb;
}

.profile-v2-details {
  margin: 0;
}

.profile-v2-details > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.profile-v2-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-v2-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-v2-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

body.dark-mode .profile-v2-details dd {
  color: #e2e8f0;
}

.profile-v2-history-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  color: #e0f2fe;
  text-decoration: none;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 17px;
  background: #1e3a5f;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-v2-history-link:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.28);
}

.profile-v2-history-link small {
  display: block;
  margin-bottom: 3px;
  color: #a5f3fc;
}

.profile-v2-history-link strong {
  font-size: 1.5rem;
}

.profile-v2-form,
.profile-v2-field {
  display: grid;
}

.profile-v2-form {
  gap: 19px;
}

.profile-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-v2-field {
  gap: 8px;
}

.profile-v2-field label,
.profile-v2-upload strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

body.dark-mode .profile-v2-field label,
body.dark-mode .profile-v2-upload strong {
  color: #e2e8f0;
}

.profile-v2-field input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 11px;
  background: rgba(248, 250, 252, 0.82);
}

.profile-v2-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
  outline: 0;
}

.profile-v2-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.dark-mode .profile-v2-field input {
  color: #f8fafc;
  border-color: #3c4b68;
  background: #151f38;
}

.profile-v2-field small {
  color: var(--muted);
}

.profile-v2-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  padding: 18px;
  border: 1px dashed rgba(34, 211, 238, 0.34);
  border-radius: 13px;
  background: rgba(34, 211, 238, 0.035);
}

.profile-v2-upload p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-v2-upload input {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  opacity: 0;
}

.profile-v2-upload-button {
  padding: 10px 14px;
  color: #cffafe;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 9px;
  background: #3730a3;
  cursor: pointer;
}

.profile-v2-file-name {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-v2-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-v2-primary-button {
  min-height: 49px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-v2-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.3);
}

.profile-v2-password {
  position: relative;
}

.profile-v2-password input {
  padding-right: 68px;
}

.profile-v2-password button {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 7px 9px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.profile-v2-security-note {
  padding: 13px 15px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.05);
}

.profile-v2-google-notice,
.profile-v2-otp-intro {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.05);
}

.profile-v2-google-notice p,
.profile-v2-otp-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-v2-google-mark,
.profile-v2-otp-intro > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #cffafe;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 12px;
  background: #2563eb;
}

.profile-v2-otp-intro {
  margin-bottom: 18px;
}

.profile-v2-otp-input {
  max-width: 260px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-align: center;
}

@media (max-width: 850px) {
  .profile-v2-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-v2-hero-meta {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    text-align: left;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-v2-layout {
    grid-template-columns: 1fr;
  }

  .profile-v2-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-v2-page {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
  }

  .profile-v2-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 26px 20px;
    text-align: center;
  }

  .profile-v2-badges {
    justify-content: center;
  }

  .profile-v2-hero-meta {
    width: 100%;
    text-align: center;
  }

  .profile-v2-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-v2-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-v2-upload {
    grid-template-columns: 1fr;
  }

  .profile-v2-upload-button {
    width: fit-content;
  }

  .profile-v2-actions,
  .profile-v2-primary-button {
    width: 100%;
  }
}

/* Keep the homepage finish grounded even when legacy rules use !important. */
#how-it-works {
  scroll-margin-top: 90px;
}

.home-navbar {
  min-height: 76px !important;
  padding: 0 4.5vw !important;
  background: rgba(10, 18, 32, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.16) !important;
}

.home-logo {
  font-size: 1.32rem !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
}

.home-nav-center a {
  padding: 0.5rem 0.15rem !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.login-nav-btn {
  background: #eef2ff !important;
  color: #172554 !important;
  border: 1px solid #eef2ff !important;
  box-shadow: none !important;
}

.hero-home {
  min-height: 720px !important;
  padding: 9rem 5vw 7rem !important;
}

.hero-home::before {
  display: none !important;
}

.hero-text {
  width: min(900px, 100%) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-text h1 {
  color: #ffffff !important;
  font-size: clamp(2.7rem, 6vw, 5.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  text-shadow: none !important;
}

.hero-text p {
  max-width: 690px !important;
  color: #d8e1ee !important;
  font-size: clamp(1rem, 1.6vw, 1.22rem) !important;
  line-height: 1.75 !important;
  text-shadow: none !important;
}

.hero-main-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #f8fafc !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero-main-btn:hover {
  background: #dff7f3 !important;
  color: #0f3d3a !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  .home-navbar {
    min-height: 68px !important;
    padding: 0.85rem 1.1rem !important;
  }

  .home-navbar.active {
    flex-wrap: wrap !important;
  }

  .home-navbar.active .home-nav-center,
  .home-navbar.active .home-nav-right {
    position: static !important;
    width: 100% !important;
    padding: 0.7rem 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    inset: auto !important;
  }

  .home-navbar.active .home-nav-center {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
  }

  .home-navbar.active .home-nav-right {
    display: flex !important;
    padding-bottom: 0.35rem !important;
  }

  .hero-home {
    min-height: 680px !important;
    padding: 8rem 1.4rem 5rem !important;
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 12vw, 4.1rem) !important;
  }
}

/* Dashboard workspace — restrained, product-led visual system */
.dashboard-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dashboard-workspace .dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 32px;
  text-align: left;
}

.dashboard-workspace .dashboard-heading h1 {
  max-width: 720px;
  margin: 10px 0 10px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
}

.dashboard-workspace .dashboard-heading p {
  max-width: 620px;
  margin: 0;
}

.dashboard-eyebrow,
.tool-label,
.dashboard-side-heading > span {
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-ready {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding: 9px 13px;
  color: #35504b;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #cbded9;
  border-radius: 999px;
  background: #f4faf8;
}

.dashboard-ready > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15956f;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.dashboard-grid .vt-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-color: #d9e0e8;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(23, 38, 61, 0.08);
}

.dashboard-grid .vt-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d9e0e8;
  border-radius: 0;
  background: #f7f9fb;
}

.dashboard-grid .tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 20px;
  color: #526174;
  text-align: left;
  border-right: 1px solid #d9e0e8 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-grid .tab-btn:last-child {
  border-right: 0 !important;
}

.dashboard-grid .tab-btn:hover {
  color: #172033;
  background: #ffffff;
}

.dashboard-grid .tab-btn.active {
  color: #172033 !important;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #0f766e;
}

.tab-number {
  color: #8995a5;
  font: 700 0.68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dashboard-grid .tab-btn > span:last-child {
  display: grid;
  gap: 3px;
}

.dashboard-grid .tab-btn strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-grid .tab-btn small {
  color: #7b8797;
  font-size: 0.7rem;
  font-weight: 500;
}

.dashboard-grid .tab-content {
  min-height: 390px;
  padding: 48px;
  text-align: left;
}

.dashboard-grid .tab-content h2 {
  margin: 12px 0 10px;
  color: #172033;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.dashboard-grid .tab-content > p {
  max-width: 590px;
  margin: 0;
  color: #667386;
}

.dashboard-grid .tab-content form {
  max-width: none;
  margin: 32px 0 0;
}

.dashboard-input-label {
  display: block;
  margin-bottom: 9px;
  color: #344154;
  font-size: 0.84rem;
  font-weight: 750;
}

.dashboard-grid .tab-content input[type="file"],
.dashboard-grid .tab-content input[type="text"] {
  min-height: 60px;
  margin-bottom: 12px;
  color: #172033;
  border: 1px solid #b9c4d1;
  border-radius: 9px;
  background: #ffffff;
}

.dashboard-grid .tab-content input[type="file"] {
  padding: 9px;
  border-style: solid;
}

.dashboard-grid .tab-content input[type="file"]::file-selector-button {
  margin-right: 15px;
  padding: 11px 14px;
  color: #173e3a;
  border-radius: 6px;
  background: #e4f1ee;
}

.dashboard-grid .tab-content button[type="submit"] {
  display: inline-flex;
  width: auto;
  min-width: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 18px;
  border-radius: 8px;
  background: #173e3a;
}

.dashboard-grid .tab-content button[type="submit"]:hover {
  background: #0f302d;
}

.dashboard-side-panel {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  color: #e7edf5;
  border-radius: 18px;
  background: #172033;
}

.dashboard-side-heading > span {
  color: #82c8bc;
}

.dashboard-side-heading h2 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.dashboard-guide-list {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.dashboard-guide-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-guide-list li > span {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-guide-list p {
  margin: 7px 0 0;
  color: #aeb9c8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.dashboard-history-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: #a9e1d7;
  font-size: 0.86rem;
  font-weight: 800;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-history-link:hover {
  color: #ffffff;
}

body.dark-mode .dashboard-ready {
  color: #b8d9d3;
  border-color: #334a4a;
  background: #162728;
}

body.dark-mode .dashboard-grid .vt-tabs,
body.dark-mode .dashboard-grid .tab-btn {
  background: #151f30;
  border-color: #2d394d !important;
}

body.dark-mode .dashboard-grid .tab-btn.active,
body.dark-mode .dashboard-grid .tab-btn:hover {
  color: #ffffff !important;
  background: #1b273a;
}

body.dark-mode .dashboard-grid .tab-content h2,
body.dark-mode .dashboard-input-label {
  color: #edf2f8;
}

body.dark-mode .dashboard-grid .tab-content input[type="file"],
body.dark-mode .dashboard-grid .tab-content input[type="text"] {
  color: #edf2f8;
  border-color: #40506a;
  background: #131d2d;
}

@media (max-width: 920px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side-panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-workspace .dashboard-heading {
    display: block;
  }

  .dashboard-ready {
    margin-top: 20px;
  }

  .dashboard-grid .vt-tabs {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .tab-btn {
    border-right: 0 !important;
    border-bottom: 1px solid #d9e0e8 !important;
  }

  .dashboard-grid .tab-btn.active {
    box-shadow: inset 3px 0 0 #0f766e;
  }

  .dashboard-grid .tab-content {
    min-height: 360px;
    padding: 32px 22px;
  }

  .dashboard-grid .tab-content button[type="submit"] {
    width: 100%;
  }
}

.indicator-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  color: #17534c;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #bcd9d3;
  border-radius: 999px;
  background: #eaf5f2;
}

body.dark-mode .indicator-type-badge {
  color: #b7e4db;
  border-color: #315b55;
  background: #17332f;
}

/* Profile and admin: restrained application layout */
.profile-v2-page,
.admin-page {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

.profile-v2-page {
  padding: 52px 0 80px;
}

.profile-v2-hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 0 32px;
  border: 0;
  border-bottom: 1px solid #d9e0e8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-v2-avatar {
  width: 76px;
  height: 76px;
  border: 1px solid #ccd5df;
  border-radius: 14px;
  box-shadow: none;
}

.profile-v2-avatar-fallback {
  color: #174f49;
  font-size: 1.65rem;
  background: #dcece8;
}

.profile-v2-online {
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border-width: 3px;
  box-shadow: none;
}

.profile-v2-eyebrow,
.profile-v2-card-heading p,
.admin-eyebrow {
  color: #0f766e;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.profile-v2-identity h1 {
  margin: 5px 0 4px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
}

.profile-v2-badges {
  gap: 7px;
  margin-top: 13px;
}

.profile-v2-role,
.profile-v2-provider {
  padding: 5px 9px;
  font-size: 0.68rem;
  border-radius: 5px;
}

.profile-v2-hero-meta {
  min-width: 150px;
  padding-left: 25px;
  text-align: left;
  border-left: 1px solid #d9e0e8;
}

.profile-v2-layout {
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.profile-v2-sidebar,
.profile-v2-content {
  gap: 18px;
}

.profile-v2-card {
  padding: 28px;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 38, 61, 0.055);
}

.profile-v2-heading-icon {
  display: none;
}

.profile-v2-card-heading {
  gap: 0;
  padding-bottom: 19px;
  border-bottom: 1px solid #e3e8ee;
}

.profile-v2-card-heading h2 {
  margin-top: 4px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.profile-v2-details {
  margin-top: 5px;
}

.profile-v2-details > div {
  display: block;
  padding: 15px 0;
}

.profile-v2-details dt {
  margin-bottom: 5px;
  font-size: 0.67rem;
}

.profile-v2-details dd {
  text-align: left;
}

.profile-v2-history-link {
  min-height: 94px;
  padding: 21px;
  color: #e7f4f1;
  border: 0;
  border-radius: 12px;
  background: #173e3a;
  box-shadow: none;
}

.profile-v2-history-link:hover {
  background: #102f2c;
  transform: translateY(-1px);
}

.profile-v2-form {
  gap: 22px;
  margin-top: 24px;
}

.profile-v2-field input {
  min-height: 50px;
  border-color: #bcc7d3;
  border-radius: 8px;
  background: #fff;
}

.profile-v2-upload {
  padding: 18px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f7f9fb;
}

.profile-v2-upload-button {
  color: #ffffff;
  border: 1px solid #176b62;
  background: #176b62;
}

.profile-v2-upload-button:hover {
  border-color: #10544d;
  background: #10544d;
}

body.dark-mode .profile-v2-upload {
  border-color: #34445a;
  background: #182335;
}

body.dark-mode .profile-v2-upload strong {
  color: #f1f5f9;
}

body.dark-mode .profile-v2-upload p,
body.dark-mode .profile-v2-file-name {
  color: #aeb9c8;
}

body.dark-mode .profile-v2-upload-button {
  color: #eafffb;
  border-color: #2a8d81;
  background: #176b62;
}

.profile-v2-primary-button {
  border-radius: 7px;
  box-shadow: none;
}

.profile-v2-primary-button {
  min-height: 48px;
  background: #173e3a;
}

.profile-v2-primary-button:hover {
  background: #102f2c;
  transform: translateY(-1px);
}

.profile-v2-security-note,
.profile-v2-google-notice,
.profile-v2-otp-intro {
  border-radius: 8px;
}

.admin-page {
  padding: 52px 0 80px;
}

#dashboardNavbar .logo small {
  margin-left: 7px;
  padding: 3px 6px;
  color: #627085;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #cbd4df;
  border-radius: 4px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  text-align: left;
  border-bottom: 1px solid #d9e0e8;
}

.admin-header h1 {
  margin: 7px 0 8px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.admin-header p {
  max-width: 620px;
  margin: 0;
}

.admin-user-context {
  min-width: 210px;
  padding-left: 22px;
  border-left: 1px solid #d9e0e8;
}

.admin-user-context span,
.admin-user-context strong {
  display: block;
}

.admin-user-context span {
  margin-bottom: 5px;
  color: #7a8797;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-user-context strong {
  color: #273548;
  font-size: 0.86rem;
}

.admin-summary-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  background: #d9e0e8;
}

.admin-summary-card {
  position: relative;
  min-height: 145px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.admin-summary-card::before {
  content: attr(data-metric);
  display: block;
  margin-bottom: 28px;
  color: #8995a5;
  font: 700 0.64rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-summary-card h2 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.admin-summary-card p {
  margin: 0;
  color: #667386;
  font-size: 0.78rem;
}

.admin-card {
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 38, 61, 0.05);
}

.admin-card > h2,
.admin-card-header {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e8ee;
}

.admin-card > h2,
.admin-card-header h2 {
  color: #172033;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.analytics-live-badge {
  color: #245f57;
  border: 1px solid #c3ddd7;
  background: #eef7f5;
}

.analytics-summary-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 9px;
}

.analytics-summary-card {
  min-height: 110px;
  padding: 20px;
  border: 0;
  border-right: 1px solid #dce3ea;
  border-radius: 0;
  background: #f8fafb;
  box-shadow: none;
}

.analytics-summary-card:last-child {
  border-right: 0;
}

.analytics-summary-card strong {
  color: #173e3a;
  font-size: 1.6rem;
}

.admin-table {
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px 14px;
  color: #5f6d7e;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #f3f6f8;
}

.admin-table td {
  padding: 15px 14px;
  border-color: #e3e8ee;
}

.admin-table tbody tr:hover {
  background: #f7faf9;
}

body.dark-mode .profile-v2-hero,
body.dark-mode .admin-header {
  border-color: #2d394d;
}

body.dark-mode .profile-v2-card,
body.dark-mode .admin-summary-grid,
body.dark-mode .admin-card {
  border-color: #2d394d;
}

body.dark-mode .admin-summary-grid {
  background: #2d394d;
}

body.dark-mode .admin-summary-card,
body.dark-mode .analytics-summary-card {
  background: #151f30;
}

body.dark-mode .admin-user-context strong,
body.dark-mode .admin-summary-card h2,
body.dark-mode .admin-card > h2,
body.dark-mode .admin-card-header h2 {
  color: #eef3f8;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .profile-v2-page,
  .admin-page {
    width: min(100% - 28px, 1180px);
    padding-top: 32px;
  }

  .profile-v2-hero {
    grid-template-columns: auto 1fr;
  }

  .profile-v2-hero-meta {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid #d9e0e8;
    border-left: 0;
  }

  .profile-v2-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: block;
  }

  .admin-user-context {
    margin-top: 20px;
    padding: 17px 0 0;
    border-top: 1px solid #d9e0e8;
    border-left: 0;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-card {
    min-height: 125px;
  }

  .admin-card {
    padding: 21px 17px;
  }
}

/* Local search intelligence aligned with WHOIS/RDAP results */
.search-intelligence-card {
  padding: 0;
  overflow: hidden;
}

.search-intelligence-card > .whois-section-title {
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid #dce3ea;
  background: #f5f8fa;
}

.search-intelligence-card .whois-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #155e57;
  font: 800 0.72rem/1 var(--app-font-mono);
  border: 1px solid #bcd8d3;
  border-radius: 6px;
  background: #e5f2ef;
}

.search-intelligence-card > .whois-section-title h2 {
  color: #172033;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.local-intelligence-result {
  margin: 0;
  padding: 0 24px 22px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.local-intelligence-result + .local-intelligence-result {
  border-top: 8px solid #eef2f5;
}

.local-intelligence-result .result-item-header {
  margin: 0;
  padding: 18px 0 12px;
  border-bottom: 1px solid #e4e9ef;
}

.local-intelligence-result .result-item-header h3 {
  color: #536174;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-result-table .whois-row {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 14px 0;
  border-color: #e4e9ef;
}

.local-result-table .whois-row > span:first-child {
  color: #667386;
  font-family: var(--app-font-text);
  font-size: 0.8rem;
}

.local-result-table .whois-row > p {
  color: #172033;
  font-family: var(--app-font-text);
}

.local-result-table .whois-row > p.break-text {
  font-family: var(--app-font-mono);
  font-size: 0.82rem;
}

.local-result-table .badge {
  display: inline-flex;
}

.local-intelligence-result .hash-section {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 8px;
}

.local-intelligence-result .hash-section h4 {
  margin: 0;
  padding: 12px 15px;
  color: #536174;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #dce3ea;
  background: #f5f8fa;
}

.local-intelligence-result .hash-row {
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid #e4e9ef;
  border-radius: 0;
  background: #ffffff;
}

.local-intelligence-result .hash-row:last-child {
  border-bottom: 0;
}

.local-intelligence-result .hash-row span {
  color: #667386;
  font-family: var(--app-font-text);
  font-size: 0.77rem;
}

.local-intelligence-result .hash-row code {
  color: #263548;
  font-size: 0.76rem;
}

.local-intelligence-result .hash-row button {
  padding: 7px 10px;
  color: #155e57;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid #bdd8d3;
  border-radius: 5px;
  background: #e8f3f1;
}

.local-intelligence-result .hash-row button:hover {
  color: #ffffff;
  background: #176b62;
}

body.dark-mode .search-intelligence-card > .whois-section-title,
body.dark-mode .local-intelligence-result .hash-section h4 {
  border-color: #2d394d;
  background: #151f30;
}

body.dark-mode .search-intelligence-card > .whois-section-title h2,
body.dark-mode .local-result-table .whois-row > p,
body.dark-mode .local-intelligence-result .hash-row code {
  color: #edf2f8;
}

body.dark-mode .local-intelligence-result,
body.dark-mode .local-intelligence-result .hash-row {
  background: #111827;
}

body.dark-mode .local-intelligence-result + .local-intelligence-result {
  border-color: #0b1120;
}

body.dark-mode .local-intelligence-result .result-item-header,
body.dark-mode .local-result-table .whois-row,
body.dark-mode .local-intelligence-result .hash-section,
body.dark-mode .local-intelligence-result .hash-row {
  border-color: #2d394d;
}

@media (max-width: 600px) {
  .local-result-table .whois-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .local-intelligence-result {
    padding-inline: 17px;
  }

  .local-intelligence-result .hash-row {
    grid-template-columns: 1fr auto;
  }

  .local-intelligence-result .hash-row span {
    grid-column: 1 / -1;
  }
}

/* Application typography only — homepage deliberately excluded */
:root {
  --app-font-text: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --app-font-display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --app-font-mono: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
}

.navbar,
.vt-page,
.history-container,
.profile-v2-page,
.admin-page,
.scan-result-page,
.advanced-result-page,
.result-container,
.login-responsive-page,
.fb-login-page,
.auth-recovery-page,
.recovery-shell {
  font-family: var(--app-font-text);
  letter-spacing: 0;
}

.navbar .logo,
.dashboard-heading h1,
.tab-content h1,
.tab-content h2,
.history-header h1,
.profile-v2-identity h1,
.profile-v2-card-heading h2,
.admin-header h1,
.admin-card h2,
.scan-result-page h1,
.scan-result-page h2,
.advanced-result-page h1,
.advanced-result-page h2,
.result-container h1,
.result-container h2,
.login-responsive-page h1,
.fb-login-page h1,
.recovery-shell h1 {
  font-family: var(--app-font-display);
  font-optical-sizing: auto;
}

.navbar .logo,
.dashboard-heading h1,
.history-header h1,
.profile-v2-identity h1,
.admin-header h1 {
  font-weight: 720;
}

.tab-content h2,
.profile-v2-card-heading h2,
.admin-card h2,
.scan-result-page h2,
.advanced-result-page h2,
.result-container h2 {
  font-weight: 680;
}

.navbar .nav-links,
.vt-page button,
.vt-page input,
.history-container button,
.history-container input,
.history-container select,
.profile-v2-page button,
.profile-v2-page input,
.admin-page button,
.admin-page input,
.admin-page select,
.login-responsive-page button,
.login-responsive-page input,
.fb-login-page button,
.fb-login-page input,
.recovery-shell button,
.recovery-shell input {
  font-family: var(--app-font-text);
}

.nav-profile-avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #176b62;
  box-shadow: 0 0 0 2px rgba(23, 107, 98, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-profile-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-profile-avatar img,
.nav-profile-avatar > span {
  width: 100%;
  height: 100%;
}

.nav-profile-avatar img {
  display: block;
  object-fit: cover;
}

.nav-profile-avatar > span {
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-profile-menu {
  position: relative;
  flex: 0 0 auto;
}

.nav-profile-avatar {
  cursor: pointer;
}

.vulnerability-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.vulnerability-finding {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-left: 4px solid #64748b;
  border-radius: 12px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.04);
}

.vulnerability-finding.severity-high { border-left-color: #ef4444; }
.vulnerability-finding.severity-medium { border-left-color: #f59e0b; }
.vulnerability-finding.severity-low { border-left-color: #38bdf8; }

.vulnerability-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vulnerability-title span {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.url-port-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.url-port-heading h2 {
  margin: 4px 0 0;
}

.url-port-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #155e75;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  background: #cffafe;
}

.url-port-disclaimer,
.url-port-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.url-port-empty {
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 9px;
}

.url-port-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.url-port-table th,
.url-port-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.url-port-table th {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.url-port-table td {
  font-size: 0.8rem;
  line-height: 1.45;
}

body.dark-mode .url-port-count {
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.22);
}

@media (max-width: 600px) {
  .url-port-heading {
    align-items: flex-start;
  }
}

@media print {
  body.printable-scan {
    background: #fff !important;
    color: #000 !important;
  }

  body.printable-scan .scan-print-button,
  body.printable-scan .report-actions,
  body.printable-scan .result-actions,
  body.printable-scan .navbar,
  body.printable-scan .theme-btn {
    display: none !important;
  }

  body.printable-scan :is(.scan-result-page, .advanced-result-page, .result-container) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.printable-scan :is(.scan-report-card, .card, .result-overview-card, .report-section, .advanced-result-header, .advanced-card, .whois-card, .url-engine-card, .vulnerability-finding) {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body.printable-scan :is(.url-engine-card, .vulnerability-finding, tr) {
    break-inside: avoid;
  }

  body.printable-scan :is(h1, h2, h3, p, span, strong, small, li, td, th, a) {
    color: #000 !important;
  }

  body.printable-scan :is(.vt-detections-table-wrap, .table-wrapper) {
    overflow: visible !important;
  }

  body.printable-scan table {
    width: 100% !important;
  }
}

/* Compact visitor activity table */
.visitor-table-wrapper {
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

/* Combined recent scan history */
.admin-history-audience {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  background: #f3f6f8;
}

.admin-history-audience-btn {
  padding: 8px 14px;
  color: #657386;
  font-size: 0.75rem;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.admin-history-audience-btn.active {
  color: #164e48;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(23, 38, 61, 0.1);
}

.admin-history-filter-empty td {
  padding: 26px !important;
  color: #748092;
  text-align: center !important;
}

body.dark-mode .admin-history-audience {
  border-color: #2d394d;
  background: #111a29;
}

body.dark-mode .admin-history-audience-btn {
  color: #9eabbc;
}

body.dark-mode .admin-history-audience-btn.active {
  color: #d5f4ef;
  background: #203044;
}

.admin-history-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  background: #f8fafb;
}

.admin-history-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: #526173;
  font-size: 0.8rem;
  font-weight: 800;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.admin-history-tab span {
  min-width: 21px;
  padding: 2px 6px;
  color: #68778a;
  font-size: 0.67rem;
  border-radius: 999px;
  background: #e8edf2;
}

.admin-history-tab:hover {
  color: #173e3a;
  background: #edf3f2;
}

.admin-history-tab.active {
  color: #fff;
  background: #0f766e;
}

.admin-history-tab.active span {
  color: #d8f3ee;
  background: rgba(255, 255, 255, 0.16);
}

.admin-history-panel {
  display: none;
}

.admin-history-panel.active {
  display: block;
}

body.dark-mode .admin-history-tabs {
  border-color: #2d394d;
  background: #111a29;
}

body.dark-mode .admin-history-tab {
  color: #aab6c5;
}

body.dark-mode .admin-history-tab:hover {
  color: #e7f8f5;
  background: #1b2939;
}

body.dark-mode .admin-history-tab.active {
  color: #fff;
  background: #0f766e;
}

body.dark-mode .admin-history-tab span {
  color: #b6c1ce;
  background: #263446;
}

body.dark-mode .admin-history-tab.active span {
  color: #d8f3ee;
  background: rgba(255, 255, 255, 0.14);
}

/* Calm, tabbed admin workspace */
.admin-summary-grid {
  margin-bottom: 20px;
}

.admin-section-nav {
  position: relative;
  top: auto;
  margin-bottom: 0;
  padding: 7px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #f5f8fa;
}

.admin-section-nav a {
  flex: 1 1 0;
  text-align: center;
}

.admin-section-nav a.active {
  color: #ffffff;
  background: #0f766e;
}

.admin-workspace {
  min-height: 470px;
  padding: 18px;
  border: 1px solid #d9e0e8;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f7f9fb;
}

.admin-workspace-panel {
  margin: 0;
  animation: admin-panel-in 180ms ease-out;
}

.admin-workspace-panel[hidden] {
  display: none !important;
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.admin-users-table {
  max-height: 520px;
  overflow: auto !important;
  scrollbar-width: thin;
}

.admin-users-table .admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

body.dark-mode .admin-section-nav {
  background: #111a29;
}

body.dark-mode .admin-section-nav a.active {
  color: #ffffff;
  background: #0f766e;
}

body.dark-mode .admin-workspace {
  border-color: #2d394d;
  background: #0e1725;
}

.port-audit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #dce3ea;
}

.port-audit-summary > div {
  padding: 16px;
  background: #f8fafb;
}

.port-audit-summary span,
.port-audit-summary strong {
  display: block;
}

.port-audit-summary span {
  margin-bottom: 7px;
  color: #748092;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.port-audit-summary strong {
  color: #172033;
  font-size: 1.2rem;
}

.port-audit-notice {
  margin: 0;
  padding: 20px;
  color: #5f6d7e;
  text-align: center;
  border: 1px dashed #cbd5df;
  border-radius: 8px;
}

.port-audit-table th:first-child {
  width: 90px;
}

.port-audit-table th:nth-child(2) {
  width: 190px;
}

.port-audit-table th:nth-child(3) {
  width: 110px;
}

.port-audit-footnote {
  margin: 14px 0 0;
  color: #748092;
  font-size: 0.72rem;
}

body.dark-mode .port-audit-summary {
  border-color: #2d394d;
  background: #2d394d;
}

body.dark-mode .port-audit-summary > div {
  background: #151f30;
}

body.dark-mode .port-audit-summary strong {
  color: #eef3f8;
}

body.dark-mode .port-audit-notice {
  color: #aab6c5;
  border-color: #344158;
}

@media (max-width: 620px) {
  .port-audit-summary {
    grid-template-columns: 1fr;
  }
}

/* Admin content sizing — intentionally excludes the admin header */
.admin-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 10px;
}

.admin-summary-card {
  min-height: 126px;
  padding: 21px 22px;
}

.admin-summary-card::before {
  margin-bottom: 20px;
  font-size: 0.61rem;
}

.admin-summary-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.75rem, 2.5vw, 2.05rem);
}

.admin-summary-card p {
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-section-nav {
  min-height: 54px;
}

.admin-section-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.78rem;
}

.admin-workspace {
  padding: 20px;
}

.admin-workspace .admin-card {
  padding: 25px;
  border-radius: 10px;
}

.admin-card-header,
.admin-table-heading {
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.admin-card-header h2,
.admin-table-heading h2 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.admin-card-header p,
.admin-table-heading p {
  font-size: 0.77rem;
  line-height: 1.5;
}

.analytics-summary-card {
  min-height: 102px;
  padding: 18px;
}

.analytics-summary-card span {
  font-size: 0.7rem;
  line-height: 1.3;
}

.analytics-summary-card strong {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.visitor-table th,
.admin-page .admin-table th {
  padding: 11px 13px;
  font-size: 0.66rem;
}

.visitor-table td,
.admin-page .admin-table td {
  padding: 13px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.admin-history-tabs {
  min-height: 50px;
  margin-bottom: 16px;
}

.admin-history-tab {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.77rem;
}

@media (max-width: 720px) {
  .admin-section-nav a {
    flex: 0 0 auto;
    min-width: 104px;
  }

  .admin-workspace {
    min-height: 0;
    padding: 10px;
  }

  .admin-workspace .admin-card {
    padding: 18px;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary-card {
    min-height: 108px;
    padding: 17px;
  }

  .admin-summary-card::before {
    margin-bottom: 14px;
  }
}

@media (max-width: 620px) {
  .admin-history-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-history-tab {
    width: 100%;
  }

}

.visitor-table {
  width: 100%;
  border-collapse: collapse;
}

.visitor-table th,
.visitor-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e8edf2;
}

.visitor-table th {
  color: #748092;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f8fafb;
}

.visitor-table tr:last-child td {
  border-bottom: 0;
}

.visitor-table th:first-child {
  width: 55%;
}

.visitor-table td {
  color: #435064;
  font-size: 0.82rem;
}

.visitor-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: #0f5f57;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  background: #e7f3f1;
}

.visitor-identity strong {
  display: block;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-type {
  display: inline-block;
  margin-top: 3px;
  color: #7b8798;
  font-size: 0.68rem;
}

.visitor-type.is-user {
  color: #167267;
}

.visitor-last-active {
  color: #667085;
  font-weight: 700;
  white-space: nowrap;
}

.visitor-last-active.is-active {
  color: #167267;
}

.visitor-last-active.is-active::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22a897;
}

.visitor-activity-empty {
  padding: 24px 16px !important;
  color: #748092;
  text-align: center !important;
}

body.dark-mode .visitor-table-wrapper {
  border-color: #2d394d;
}

body.dark-mode .visitor-table th,
body.dark-mode .visitor-table td {
  border-color: #2d394d;
}

body.dark-mode .visitor-table th {
  color: #9eabbc;
  background: #151f30;
}

body.dark-mode .visitor-table td {
  color: #c6d0dc;
}

body.dark-mode .visitor-avatar {
  color: #b8ebe4;
  background: #18332f;
}

body.dark-mode .visitor-identity strong {
  color: #eef3f8;
}

body.dark-mode .visitor-last-active,
body.dark-mode .visitor-activity-empty {
  color: #9eabbc;
}

body.dark-mode .visitor-last-active.is-active {
  color: #82d8cc;
}

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

  .visitor-table tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 13px 14px;
    border-bottom: 1px solid #e8edf2;
  }

  .visitor-table td {
    padding: 8px 4px 0;
    border: 0;
  }

  .visitor-table td:first-child {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .visitor-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #7b8798;
    font-size: 0.65rem;
    text-transform: uppercase;
  }

  body.dark-mode .visitor-table tr {
    border-color: #2d394d;
  }
}

.nav-toggle {
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #40506a;
  border-radius: 10px;
  background: #172238;
}

.nav-toggle:hover {
  border-color: #5b708d;
  background: #202d44;
}

.nav-toggle:focus-visible {
  outline: 2px solid #4bb4a7;
  outline-offset: 2px;
}

.nav-toggle-lines {
  display: grid;
  width: 20px;
  gap: 4px;
}

.nav-toggle-lines i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f3f7fb;
  transition: transform 160ms ease, opacity 160ms ease;
}

#dashboardNavbar.active .nav-toggle-lines i:nth-child(1),
#loginNavbar.active .nav-toggle-lines i:nth-child(1),
.navbar.active .nav-toggle-lines i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#dashboardNavbar.active .nav-toggle-lines i:nth-child(2),
#loginNavbar.active .nav-toggle-lines i:nth-child(2),
.navbar.active .nav-toggle-lines i:nth-child(2) {
  opacity: 0;
}

#dashboardNavbar.active .nav-toggle-lines i:nth-child(3),
#loginNavbar.active .nav-toggle-lines i:nth-child(3),
.navbar.active .nav-toggle-lines i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-profile-dropdown {
  width: min(340px, calc(100vw - 24px));
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1200;
  padding: 12px;
  color: #172033;
  border: 1px solid #d8e0e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(10, 22, 38, 0.2);
}

.nav-profile-dropdown[hidden] {
  display: none;
}

.nav-profile-summary {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px !important;
  color: #172033 !important;
  text-decoration: none !important;
  border: 1px solid #d8e0e8;
  border-radius: 10px !important;
}

.nav-profile-summary:hover {
  background: #f3f7f6;
}

.nav-profile-summary-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  background: #176b62;
}

.nav-profile-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-profile-summary > span:last-child,
.nav-profile-dropdown-action > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.nav-profile-summary strong,
.nav-profile-dropdown-action strong {
  color: inherit;
  font-size: 0.9rem;
}

.nav-profile-summary small,
.nav-profile-dropdown-action small {
  color: #748092;
  font-size: 0.72rem;
}

.nav-profile-dropdown-divider {
  height: 1px;
  margin: 10px 4px;
  background: #e1e7ed;
}

.nav-profile-dropdown-action {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px !important;
  color: #172033 !important;
  text-align: left;
  text-decoration: none !important;
  border: 0;
  border-radius: 9px !important;
  background: transparent;
  cursor: pointer;
}

.nav-profile-dropdown-action:hover {
  background: #eef3f4;
}

.nav-profile-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #203044;
  font-size: 1.08rem;
  border-radius: 50%;
  background: #e7ebef;
}

.nav-profile-action-arrow {
  color: #7b8796;
  font-size: 1.45rem;
}

body.dark-mode .nav-profile-dropdown {
  color: #eef3f8;
  border-color: #344158;
  background: #111a2a;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

body.dark-mode .nav-profile-summary {
  color: #eef3f8 !important;
  border-color: #344158;
}

body.dark-mode .nav-profile-summary:hover,
body.dark-mode .nav-profile-dropdown-action:hover {
  background: #202c40;
}

body.dark-mode .nav-profile-summary small,
body.dark-mode .nav-profile-dropdown-action small {
  color: #aab6c6;
}

body.dark-mode .nav-profile-dropdown-divider {
  background: #344158;
}

body.dark-mode .nav-profile-dropdown-action {
  color: #eef3f8 !important;
}

body.dark-mode .nav-profile-action-icon {
  color: #e8eef6;
  background: #2a364a;
}

.nav-display-view[hidden],
.nav-profile-main-view[hidden] {
  display: none;
}

.nav-display-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid #e1e7ed;
}

.nav-display-heading button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #172033;
  font-size: 1.15rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-display-heading button:hover {
  background: #edf1f4;
}

.nav-display-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.nav-display-section {
  padding: 16px 3px 5px;
}

.nav-display-section + .nav-display-section {
  margin-top: 7px;
  border-top: 1px solid #e1e7ed;
}

.nav-display-section-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
}

.nav-display-section-title h3 {
  margin: 1px 0 3px;
  color: #172033;
  font-size: 0.9rem;
}

.nav-display-section-title p {
  margin: 0;
  color: #748092;
  font-size: 0.73rem;
  line-height: 1.4;
}

.nav-display-options {
  display: grid;
  gap: 1px;
  margin: 9px 0 0 49px;
}

.nav-display-options button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 4px;
  color: #172033;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-display-options button > span {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
}

.nav-display-options button small {
  color: #748092;
  font-size: 0.68rem;
  font-weight: 400;
}

.nav-display-options button i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  position: relative;
  border: 2px solid #697481;
  border-radius: 50%;
}

.nav-display-options button.is-selected i {
  border-color: #176b62;
}

.nav-display-options button.is-selected i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #176b62;
}

body.dark-mode .nav-display-heading,
body.dark-mode .nav-display-section + .nav-display-section {
  border-color: #344158;
}

body.dark-mode .nav-display-heading button,
body.dark-mode .nav-display-heading h2,
body.dark-mode .nav-display-section-title h3,
body.dark-mode .nav-display-options button {
  color: #eef3f8;
}

body.dark-mode .nav-display-heading button:hover {
  background: #202c40;
}

body.dark-mode .nav-display-section-title p,
body.dark-mode .nav-display-options button small {
  color: #aab6c6;
}

/* Compact mode is limited to authenticated application surfaces. */
body.compact-mode .navbar {
  min-height: 62px;
}

body.compact-mode .vt-page,
body.compact-mode .history-container,
body.compact-mode .profile-v2-page,
body.compact-mode .admin-page,
body.compact-mode .scan-result-page,
body.compact-mode .advanced-result-page,
body.compact-mode .result-container {
  padding-top: 32px;
  padding-bottom: 48px;
}

body.compact-mode .admin-card,
body.compact-mode .profile-v2-card,
body.compact-mode .vt-card,
body.compact-mode .history-card,
body.compact-mode .advanced-card {
  padding: 20px;
}

body.compact-mode .admin-table th,
body.compact-mode .admin-table td,
body.compact-mode .history-table th,
body.compact-mode .history-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 768px) {
  #dashboardNavbar .nav-toggle,
  #loginNavbar .nav-toggle,
  .navbar .nav-toggle {
    display: grid !important;
  }

  #dashboardNavbar .nav-profile-menu {
    align-self: flex-end;
  }

  #dashboardNavbar .nav-profile-dropdown {
    position: fixed;
    top: 72px;
    right: 12px;
  }
}

.break-text,
.hash-row,
.admin-table code,
.analytics-page-table code,
.whois-info-table code,
.indicator-type-badge,
.tab-number {
  font-family: var(--app-font-mono);
  letter-spacing: -0.015em;
}

/* Admin page organisation */
.admin-section-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 0 0 20px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #ffffff;
  scrollbar-width: thin;
}

.admin-section-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #596779;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.admin-section-nav a:hover,
.admin-section-nav a:focus-visible,
.admin-section-nav a.active {
  color: #164e48;
  background: #eaf5f2;
}

.admin-back-to-top {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  color: #ffffff;
  font-size: 1.1rem;
  border: 0;
  border-radius: 8px;
  background: #173e3a;
  box-shadow: 0 8px 24px rgba(15, 35, 48, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.admin-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-back-to-top:hover {
  background: #0f302d;
}

.admin-page section[id] {
  scroll-margin-top: 26px;
}

.admin-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e8ee;
}

.admin-table-heading span {
  display: block;
  margin-bottom: 5px;
  color: #0f766e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-table-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.admin-table-heading p {
  max-width: 360px;
  margin: 0;
  color: #748092;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: right;
}

.admin-page .table-wrapper {
  overflow-x: auto;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

.admin-page .admin-table {
  min-width: 680px;
  margin: 0;
  border: 0;
}

.admin-page .admin-table th:first-child,
.admin-page .admin-table td:first-child {
  width: 54px;
  color: #8995a5;
  text-align: center;
}

.admin-page .admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-page .admin-table tbody tr {
  position: relative;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.admin-page .admin-table tbody tr:hover {
  z-index: 2;
  background: transparent;
  box-shadow: 0 8px 18px rgba(28, 52, 65, 0.12);
  transform: translateY(-2px);
}

.admin-page .admin-table tbody tr:hover > td {
  background: #edf5f3 !important;
}

body.dark-mode .admin-page .admin-table tbody tr:hover {
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
}

body.dark-mode .admin-page .admin-table tbody tr:hover > td {
  color: #f3f7fb;
  background: #28364a !important;
}

.admin-page .admin-table td strong {
  color: #263548;
  font-weight: 700;
}

body.dark-mode .admin-page .admin-table tbody tr:hover td strong {
  color: #ffffff;
}

.admin-page .admin-table td small {
  color: #7b8796;
}

#users .admin-table {
  min-width: 980px;
}

#users .admin-table th:first-child,
#users .admin-table td:first-child {
  width: auto;
  min-width: 210px;
  color: inherit;
  text-align: left;
}

.admin-account-role {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 3px 7px;
  color: #285d56;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: capitalize;
  border: 1px solid #c5dcd7;
  border-radius: 4px;
  background: #eef6f4;
}

body.dark-mode .admin-account-role {
  color: #b9e3dc;
  border-color: #315b55;
  background: #17332f;
}

.admin-scan-type {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 4px 7px;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 4px;
}

.admin-scan-type.is-file {
  color: #315b8a;
  border-color: #c5d5e8;
  background: #edf4fb;
}

.admin-scan-type.is-url {
  color: #276057;
  border-color: #bfdad4;
  background: #eaf5f2;
}

body.dark-mode .admin-scan-type.is-file {
  color: #b9d4f2;
  border-color: #375576;
  background: #182a40;
}

body.dark-mode .admin-scan-type.is-url {
  color: #b9e3dc;
  border-color: #315b55;
  background: #17332f;
}

body.dark-mode .admin-section-nav {
  border-color: #2d394d;
  background: #111b2b;
}

body.dark-mode .admin-section-nav a {
  color: #b3becc;
}

body.dark-mode .admin-section-nav a:hover,
body.dark-mode .admin-section-nav a:focus-visible,
body.dark-mode .admin-section-nav a.active {
  color: #c9f1e9;
  background: #18332f;
}

body.dark-mode .admin-table-heading {
  border-color: #2d394d;
}

body.dark-mode .admin-table-heading h2,
body.dark-mode .admin-page .admin-table td strong {
  color: #eef3f8;
}

body.dark-mode .admin-table-heading p {
  color: #9eabbc;
}

body.dark-mode .admin-page .table-wrapper {
  border-color: #2d394d;
}

@media (max-width: 680px) {
  .admin-section-nav {
    margin-inline: -2px;
  }

  .admin-table-heading {
    display: block;
  }

  .admin-table-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .admin-page .admin-table {
    min-width: 620px;
  }
}

/* Homepage editorial layout */
.home-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.home-hero-link {
  color: #e2e8f0;
  font-weight: 700;
  text-underline-offset: 5px;
}

.home-hero-link:hover {
  color: #fff;
}

.home-capability-bar {
  width: min(1120px, calc(100% - 40px));
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -42px auto 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 41, 90, 0.1);
}

.home-capability-bar > div {
  padding: 21px 24px;
  border-right: 1px solid #e5eaf2;
}

.home-capability-bar > div:last-child {
  border-right: 0;
}

.home-capability-bar strong,
.home-capability-bar span {
  display: block;
}

.home-capability-bar strong {
  margin-bottom: 4px;
  color: #172033;
  font-size: 0.92rem;
}

.home-capability-bar span {
  color: #667085;
  font-size: 0.78rem;
}

body.dark-mode .home-capability-bar {
  border-color: #263247;
  background: #111827;
}

body.dark-mode .home-capability-bar > div {
  border-color: #263247;
}

body.dark-mode .home-capability-bar strong {
  color: #f1f5f9;
}

.home-section-heading {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
}

.home-section-heading > span {
  display: block;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

body.dark-mode .home-section-heading h2 {
  color: #f1f5f9;
}

.home-about-section h2::before,
.home-features-section h2::before {
  display: none;
}

.home-about-layout {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 72px;
  margin: 0 auto;
  text-align: left;
}

.home-about-copy p {
  max-width: none;
  margin: 0 0 20px;
  color: #526077;
  font-size: 1.08rem;
  line-height: 1.8;
}

body.dark-mode .home-about-copy p {
  color: #cbd5e1;
}

.home-about-note {
  padding: 24px;
  border-left: 3px solid #2563eb;
  background: #eef4ff;
}

.home-about-note > span {
  color: #172033;
  font-weight: 800;
}

.home-about-note ul {
  display: grid;
  gap: 11px;
  margin: 17px 0 0;
  padding: 0;
  color: #526077;
  list-style: none;
}

.home-about-note li::before {
  content: "\2713";
  margin-right: 9px;
  color: #2563eb;
  font-weight: 900;
}

body.dark-mode .home-about-note {
  background: #111b30;
}

body.dark-mode .home-about-note > span {
  color: #f1f5f9;
}

body.dark-mode .home-about-note ul {
  color: #cbd5e1;
}

.home-process-section {
  padding: 100px max(6vw, 24px);
  border-top: 1px solid #e5eaf2;
  border-bottom: 1px solid #e5eaf2;
  background: #fff;
}

body.dark-mode .home-process-section {
  border-color: #263247;
  background: #0f172a;
}

.home-process-grid {
  max-width: 1060px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
}

.home-process-grid article {
  padding: 8px 36px 8px 0;
}

.home-process-grid article + article {
  padding-left: 36px;
  border-left: 1px solid #dbe3ef;
}

.home-process-grid article > span,
.home-feature-index {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-process-grid h3 {
  margin: 18px 0 11px;
  color: #172033;
  font-size: 1.18rem;
}

.home-process-grid p {
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

body.dark-mode .home-process-grid article + article {
  border-color: #263247;
}

body.dark-mode .home-process-grid h3 {
  color: #f1f5f9;
}

body.dark-mode .home-process-grid p {
  color: #aebbd0;
}

.home-feature-box::before {
  display: none;
}

.home-feature-box {
  min-height: 190px;
  padding: 28px;
}

.home-feature-index {
  display: block;
  margin-bottom: 30px;
}

.home-feature-box h3 {
  margin-top: 0;
}

.home-final-cta {
  width: min(1060px, calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin: 90px auto;
  padding: 38px 42px;
  color: #fff;
  border-radius: 10px;
  background: #172033;
}

.home-final-cta > div > span {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-final-cta h2 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.home-final-cta p {
  margin: 0;
  color: #bac5d6;
}

.home-final-cta > a {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #172033;
  font-weight: 800;
  text-decoration: none;
  border-radius: 7px;
  background: #fff;
}

.home-footer-inner {
  width: min(1060px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  text-align: left;
}

.home-footer-inner strong {
  display: block;
  margin-bottom: 5px;
}

.home-footer-inner p {
  color: #aebbd0;
  font-size: 0.85rem;
}

.home-back-to-top {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  color: #07111f;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  border: 1px solid rgba(69, 217, 232, 0.55);
  border-radius: 50%;
  background: #45d9e8;
  box-shadow: 0 10px 28px rgba(5, 20, 35, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.home-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home-back-to-top:hover {
  background: #7ae8f2;
  transform: translateY(-3px);
}

.home-back-to-top:focus-visible {
  outline: 3px solid rgba(69, 217, 232, 0.35);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .home-capability-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-capability-bar > div:nth-child(2) {
    border-right: 0;
  }

  .home-capability-bar > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5eaf2;
  }

  .home-about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .home-process-grid article,
  .home-process-grid article + article {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid #dbe3ef;
  }

  .home-process-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .home-back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .home-capability-bar {
    width: calc(100% - 24px);
    margin-top: -24px;
  }

  .home-capability-bar > div {
    padding: 17px;
  }

  .home-final-cta {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    margin: 64px auto;
    padding: 28px 24px;
  }

  .home-final-cta > a {
    width: 100%;
    text-align: center;
  }

  .home-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-back-to-top {
    transition: none;
  }
}

/* Readable typography for children through adults: clear type, roomy lines,
   and a user-controlled scale that applies to every page. */
html {
  font-size: 18px;
}

html.text-size-large {
  font-size: 20px;
}

html.text-size-extra-large {
  font-size: 22px;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body :is(input, textarea, select) {
  font-size: max(16px, 1rem);
}

body :is(input, textarea, select, button) {
  min-height: 44px;
}

body :is(input, textarea, select, button, a):focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

body.dark-mode :is(input, textarea, select, button, a):focus-visible {
  outline-color: #5eead4;
}

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  html.text-size-large {
    font-size: 19px;
  }

  html.text-size-extra-large {
    font-size: 21px;
  }
}


