:root {
  --bg: #090d13;
  --panel: #111923;
  --panel-2: #17212c;
  --text: #eef2f6;
  --muted: #a7b2c0;
  --line: #2a3644;
  --accent: #b8f45b;
  --blue: #83b9e8;
  --radius: 14px;
}

html {
  background: var(--bg);
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

*[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
}

.site-header {
  background: rgba(9, 13, 19, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.main-nav a,
.footer-links a,
.text-link {
  transition: color .18s ease, opacity .18s ease;
}

.main-nav a {
  color: #b2bdca;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.account-link,
.language-toggle,
.cart-button {
  border-color: var(--line);
  border-radius: 8px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.account-link:hover,
.account-link.active,
.language-toggle:hover,
.cart-button:hover {
  border-color: #78974f;
}

.hero {
  background: #0b1119;
}

.hero::before,
.hero::after,
.orb {
  display: none;
}

.hero h1 {
  letter-spacing: -.045em;
}

.hero-text,
.section-heading > p,
.step p,
.security-copy > p,
.security-points p,
.contact-section > div > p {
  color: var(--muted);
}

.eyebrow {
  color: #c1e48c;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.button,
.admin-button {
  border-radius: 8px;
  font-weight: 650;
  min-height: 46px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button-primary,
.admin-button-primary {
  background: var(--accent);
  color: #0a1108;
}

.button-primary:hover,
.admin-button-primary:hover {
  background: #c7f781;
}

.button-ghost,
.button-secondary,
.admin-button-secondary {
  background: #151e29;
  border-color: #344252;
  color: var(--text);
}

.button-ghost:hover,
.button-secondary:hover,
.admin-button-secondary:hover {
  background: #1b2734;
  border-color: #597344;
  color: var(--text);
}

.dashboard-card {
  background: #101923;
  border: 1px solid #2b3947;
  border-radius: 16px;
  box-shadow: none;
}

.dashboard-rail {
  background: #0d151e;
  border-color: #263441;
}

.dashboard-grid article,
.health-panel,
.mini-panel,
.scan-panel,
.plan-panel,
.protected-panel {
  background: #151f2a;
  border-color: #2b3947;
}

.gauge {
  background-color: #273342;
}

.section,
.policy-hero,
.policy-grid {
  scroll-margin-top: 84px;
}

.products-section,
.desktop-app-section,
.report-section,
.process-section,
.security-section,
.faq-section,
.contact-section {
  background-color: #0c121a;
}

.product-card,
.desktop-app-card,
.package-scope,
.simple-mode-card,
.live-card,
.connection-card,
.service-review-card,
.safe-cleanup-note,
.inventory-item,
.trusted-tools,
.finding-card,
.package-analysis,
.recommendations-details,
.advanced-details,
.package-comparison,
.policy-card,
.live-metric,
.connection-card,
.auth-card {
  background: #121b25;
  border: 1px solid var(--line);
  box-shadow: none;
}

.product-card.featured,
.package-guide-card,
.simple-mode-card,
.desktop-app-card,
.auth-card {
  background: #121b25;
}

.product-card,
.policy-card,
.package-guide-card,
.spec-card,
.summary-card,
.inventory-item,
.recommendation-row,
.finding-card {
  border-radius: 12px;
}

.product-card:hover {
  border-color: #617b49;
  transform: translateY(-2px);
}

.product-card.featured {
  border-color: #657f4a;
}

.process-section .step,
.security-points > div,
.faq-list details {
  background: #121b25;
  border-color: var(--line);
}

.security-section {
  background: #101923;
}

.contact-section {
  background: #101923;
}

.contact-form input,
.contact-form textarea,
.auth-form input,
.checkout-field input,
.search-field input,
.trusted-term-form input,
.package-picker select,
.advisor-toolbar select,
.admin-input-row input,
.admin-search input,
.admin-filter select,
.admin-status-select select {
  background: #0b1118;
  border-color: #354352;
  border-radius: 8px;
  color: var(--text);
  min-height: 46px;
}

.contact-form textarea {
  min-height: 112px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.auth-form input:focus-visible,
.checkout-field input:focus-visible,
.search-field input:focus-visible,
.trusted-term-form input:focus-visible,
.package-picker select:focus-visible,
.advisor-toolbar select:focus-visible,
.admin-input-row input:focus-visible,
.admin-search input:focus-visible,
.admin-filter select:focus-visible,
.admin-status-select select:focus-visible {
  border-color: #92be5e;
  box-shadow: 0 0 0 3px rgba(184, 244, 91, .13);
}

.auth-shell {
  padding-block: clamp(40px, 7vw, 76px);
}

.auth-card {
  border-radius: 16px;
  padding: clamp(26px, 4vw, 38px);
}

.auth-intro,
.auth-form label,
.package-picker,
.search-field,
.checkout-field {
  color: var(--muted);
}

.auth-status,
.safe-result {
  background: #17251d;
  border-color: #3a6045;
  color: #dcedd2;
}

.faq-list details,
.policy-card,
.package-guide-card {
  transition: border-color .18s ease, background-color .18s ease;
}

.faq-list details[open],
.policy-card:target,
.package-guide-card.selected {
  border-color: #617b49;
  box-shadow: none;
}

.comparison-table th,
.comparison-table td {
  border-color: #2a3644;
}

.comparison-table thead th,
.comparison-table tbody td:not(:first-child) {
  color: #d7e1ca;
}

.risk-badge.low,
.status-completed,
.status-resolved {
  background: #1b3023;
  color: #c9efab;
}

.risk-badge.medium,
.status-processing,
.status-in-progress {
  background: #332d20;
  color: #f0d48d;
}

.risk-badge.high,
.risk-badge.critical,
.status-cancelled,
.status-archived {
  background: #351f23;
  color: #ffc0c4;
}

.site-header .brand,
.admin-brand,
.admin-topbar-actions,
.admin-button {
  letter-spacing: normal;
}

.site-header .brand img,
.desktop-app-card img {
  border-radius: 10px;
}

footer {
  background: #090d13;
  border-color: var(--line);
}

.cart-panel {
  background: #111923;
  border-inline-start: 1px solid var(--line);
}

.admin-page {
  background: var(--bg);
}

.admin-login,
.admin-stat-card,
.admin-workspace {
  background: #111923;
  border-color: var(--line);
  box-shadow: none;
}

.admin-login {
  border-radius: 16px;
}

.admin-brand-mark,
.admin-login-mark {
  background: var(--accent);
  border-radius: 9px;
  color: #0a1108;
  transform: none;
}

.admin-kicker,
.admin-panel-count,
.admin-empty-icon {
  color: #c1e48c;
  letter-spacing: .04em;
}

.admin-heading h1,
.admin-login h1 {
  letter-spacing: -.04em;
}

.admin-status-banner {
  background: #17251d;
  border: 1px solid #3a6045;
  color: #c9efab;
}

.admin-status-banner.is-error {
  background: #351f23;
  border-color: #714047;
  color: #ffc0c4;
}

.admin-stat-card.admin-stat-accent {
  background: #17251d;
  border-color: #40563c;
}

.admin-tab.is-active {
  border-color: #9dc96b;
}

.admin-record {
  background: #151e29;
  border-color: #2d3947;
  border-radius: 12px;
}

.admin-button:hover {
  transform: none;
}

.admin-button-quiet:hover {
  background: #17212c;
  color: var(--text);
}

.admin-empty {
  border-color: #435160;
  color: var(--muted);
}

@media (max-width: 700px) {
  .site-header {
    row-gap: 10px;
  }

  .main-nav {
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.package-scope {
  background: linear-gradient(135deg, #121b25, #101923);
  border-color: #354352;
  padding: clamp(20px, 3vw, 30px);
}

.package-scope-heading {
  align-items: center;
  min-height: 48px;
}

.package-scope-note {
  color: #d7e8c1 !important;
  font-size: .9rem !important;
}

.package-picker {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
}

.field-hint {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
  max-width: 240px;
}

.payment-disclosure {
  color: #e7d8a8;
  display: block;
  font-size: .78rem;
  line-height: 1.6;
  margin: 8px 0;
}

.report-compatibility {
  background: linear-gradient(145deg, #14221e, #111923 68%);
  border: 1px solid #40563c;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.report-compatibility[hidden] {
  display: none;
}

.report-dashboard.compatibility-mode > .simple-mode-card,
.report-dashboard.compatibility-mode > #safe-cleanup-note,
.report-dashboard.compatibility-mode > #benchmark-note,
.report-dashboard.compatibility-mode > .report-overview-grid,
.report-dashboard.compatibility-mode > #advanced-diagnosis,
.report-dashboard.compatibility-mode > #service-review,
.report-dashboard.compatibility-mode > .recommendations-details,
.report-dashboard.compatibility-mode > .advanced-details {
  display: none !important;
}

.compatibility-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.compatibility-heading h3 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin: 4px 0 8px;
}

.compatibility-heading p:last-child {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 820px;
}

.report-compatibility h4 {
  margin: 22px 0 12px;
}

.report-data-group {
  background: #0c131b;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 8px 0;
  overflow: hidden;
}

.report-data-group > summary {
  align-items: center;
  color: #e4edda;
  cursor: pointer;
  display: flex;
  font-weight: 650;
  gap: 8px;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
}

.report-data-group > summary span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
}

.report-data-group[open] > summary {
  border-bottom: 1px solid var(--line);
}

.report-data-group dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.report-data-group dl > div {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
}

.report-data-group dt {
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.report-data-group dd {
  margin: 0;
  min-width: 0;
}

.report-data-group ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 34px;
}

.report-data-group li {
  min-width: 0;
}

.report-data-value {
  color: #d7e1ca;
  display: inline-block;
  font-size: .85rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.report-data-empty {
  color: var(--muted);
  font-size: .8rem;
  margin: 0;
  padding: 12px 14px;
}

.compatibility-findings {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.compatibility-findings li {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 0;
}

.compatibility-findings .report-data-group {
  background: #0c131b;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.compatibility-findings pre,
.report-compatibility .spec-card strong {
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.policy-incomplete {
  background: #171d19;
  border: 1px solid #5b5231;
  border-radius: 16px;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 30px);
}

.policy-incomplete h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.policy-incomplete p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  max-width: 900px;
}

@media (max-width: 700px) {
  .package-picker {
    min-width: 0;
  }
}
