:root {
  /* CompetiView logo palette */
  --cv-navy: #063B66;
  --cv-blue: #0B6FAE;
  --cv-sky: #19A7D8;
  --cv-orange: #FF8A00;
  --cv-orange-dark: #E66F00;
  --cv-orange-soft: #FFF2E2;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-soft: #F8FBFE;
  --text: #142433;
  --muted: #65707D;
  --line: #DDE7F0;
  --line-strong: #C8D7E5;
  --danger: #D64545;
  --danger-dark: #B83232;
  --warning: #FF8A00;
  --success: #16A060;
  --shadow: 0 18px 45px rgba(6, 59, 102, .10);
  --shadow-soft: 0 10px 25px rgba(6, 59, 102, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(25, 167, 216, .13), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 138, 0, .10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #EEF4F8 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--cv-blue); text-decoration: none; font-weight: 700; }
a:hover { color: var(--cv-orange); text-decoration: none; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(6, 59, 102, .06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cv-navy);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand:hover { color: var(--cv-navy); }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  object-position: left center;
  box-shadow: 0 6px 16px rgba(6, 59, 102, .12);
}
.brand-text span:first-child { color: var(--cv-navy); }
.brand-text span:last-child { color: var(--cv-orange); }

.navlinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a {
  color: var(--muted);
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
}
.navlinks a:hover {
  color: var(--cv-navy);
  background: #EAF6FC;
}
.nav-logout-form { margin: 0; }
.navlinks .nav-logout-button {
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
}
.navlinks .nav-logout-button:hover {
  background: #EAF6FC;
  box-shadow: none;
  color: var(--cv-navy);
  transform: none;
}

.registration-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.policy-consent input {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto;
}
.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cv-blue);
  font: inherit;
  font-weight: 700;
}
.footer-link-button:hover {
  background: transparent;
  box-shadow: none;
  color: var(--cv-orange);
  transform: none;
}
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(6, 59, 102, .24);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .actions { justify-content: flex-start; }

.container { max-width: 1180px; margin: 0 auto; padding: 30px 28px; }
h1, h2, h3 { margin: 0 0 10px; color: var(--cv-navy); letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }

body:has(.dashboard-layout) .container,
body:has(.action-queue-card) .container {
  max-width: 1500px;
}

.dashboard-container {
  max-width: 1500px;
}

.card, .hero-card, .auth-card, .product-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}
.product-card {
  padding: 22px 24px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239, 249, 253, .96)),
    radial-gradient(circle at 95% 10%, rgba(255,138,0,.15), transparent 28%);
  border-color: rgba(25, 167, 216, .22);
}
.product-card {
  border-top: 4px solid var(--cv-blue);
}
.auth-card { max-width: 460px; margin: 50px auto; }
.centered { text-align: center; }

.form, .track-form { display: grid; gap: 14px; }
.track-form {
  grid-template-columns: 1.5fr .5fr .5fr .4fr auto;
  align-items: end;
}
.track-form .wide { min-width: 280px; }

label { display: block; color: var(--cv-navy); font-weight: 800; margin-bottom: 6px; }
input, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
input:focus, select:focus {
  border-color: var(--cv-sky);
  box-shadow: 0 0 0 4px rgba(25, 167, 216, .14);
}

button, .button {
  border: 0;
  background: linear-gradient(135deg, var(--cv-orange), #FF9F2B);
  color: white;
  font-weight: 900;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 12px 24px rgba(255, 138, 0, .25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
button:hover, .button:hover {
  background: linear-gradient(135deg, var(--cv-orange-dark), var(--cv-orange));
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 138, 0, .30);
}
button.secondary, .button.secondary {
  background: linear-gradient(135deg, var(--cv-blue), #1688CF);
  box-shadow: 0 12px 24px rgba(11, 111, 174, .22);
}
button.secondary:hover, .button.secondary:hover {
  background: linear-gradient(135deg, var(--cv-navy), var(--cv-blue));
}
button.danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  box-shadow: 0 10px 22px rgba(214, 69, 69, .18);
}
button.small { padding: 7px 10px; font-size: 12px; border-radius: 10px; }
.save-btn { margin-top: 18px; }

.flash-wrap { margin-bottom: 18px; }
.flash, .error-box {
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.flash.success { border-color: rgba(22, 160, 96, .35); background: #ECFFF6; color: #0E6D42; }
.flash.warning, .error-box { border-color: rgba(255, 138, 0, .42); background: var(--cv-orange-soft); color: #8A4500; }
.flash.danger { border-color: rgba(214, 69, 69, .38); background: #FFF1F1; color: #9E2929; }
.flash.info { border-color: rgba(25, 167, 216, .35); background: #EEF9FD; color: var(--cv-navy); }
.verification-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 138, 0, .42);
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  background: var(--cv-orange-soft);
  color: #8A4500;
  box-shadow: var(--shadow-soft);
}
.verification-notice form { margin: 0; }

.section-head, .product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.actions, .product-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.product-actions button {
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 13px;
}

.comp-card {
  display: grid;
  grid-template-columns: 18px 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
  min-width: 0;
  overflow: hidden;
}

.comp-card:hover {
  border-color: var(--cv-sky);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.comp-card input[type="checkbox"] {
  accent-color: var(--cv-orange);
  margin-top: 5px;
  width: 14px;
  height: 14px;
}

.comp-card img,
.img-placeholder {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  background: #EAF3F8;
  border: 1px solid var(--line);
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.comp-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.comp-title {
  color: var(--cv-navy);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comp-meta {
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: var(--cv-orange);
  font-weight: 950;
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.metrics > div {
  background: linear-gradient(180deg, #FFFFFF, #F8FBFE);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(6, 59, 102, .06);
  position: relative;
  overflow: hidden;
}
.metrics > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cv-blue), var(--cv-sky), var(--cv-orange));
}
.metrics span { color: var(--muted); font-size: 12px; display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.metrics strong { color: var(--cv-navy); font-size: 24px; display: block; margin: 7px 0 4px; }
.metrics small { color: var(--muted); display: block; line-height: 1.35; }

.action-queue-card {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(11, 111, 174, .20);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, .12), transparent 26%),
    linear-gradient(135deg, #FFFFFF, #F4FAFE);
  box-shadow: var(--shadow);
}

.action-queue-card.quiet {
  background: linear-gradient(135deg, #FFFFFF, #F8FBFE);
  box-shadow: var(--shadow-soft);
}

.action-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.action-queue-head h2 {
  margin-bottom: 4px;
}

.action-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid var(--line);
  background: #FFFFFF;
}

.count-pill.high {
  color: #9E2929;
  background: #FFF1F1;
  border-color: rgba(214, 69, 69, .35);
}

.count-pill.medium {
  color: #8A4500;
  background: var(--cv-orange-soft);
  border-color: rgba(255, 138, 0, .40);
}

.count-pill.low {
  color: #0E6D42;
  background: #ECFFF6;
  border-color: rgba(22, 160, 96, .35);
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 18px rgba(6, 59, 102, .05);
}

.action-severity-dot {
  width: 6px;
  border-radius: 999px;
  background: var(--cv-blue);
}

.action-item.severity-high .action-severity-dot {
  background: var(--danger);
}

.action-item.severity-medium .action-severity-dot {
  background: var(--cv-orange);
}

.action-item.severity-low .action-severity-dot {
  background: var(--success);
}

.action-body {
  min-width: 0;
}

.action-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.action-type {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.action-severity {
  font-size: 11px;
  font-weight: 950;
  color: var(--cv-navy);
  background: #EEF7FC;
  padding: 3px 8px;
  border-radius: 999px;
}

.action-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--cv-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-item h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
}

.action-item p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
}

.action-review {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.action-review strong {
  color: var(--cv-navy);
}

.action-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.action-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 11px;
  background: #EEF7FC;
  color: var(--cv-navy);
  font-size: 12px;
  font-weight: 950;
}

.action-links a:hover {
  background: var(--cv-orange-soft);
  color: #8A4500;
}

.action-overflow-note {
  margin: 12px 0 0;
  font-size: 12px;
}

.health-score-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11, 111, 174, .08), rgba(255, 138, 0, .08)),
    #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.health-score-main {
  border-radius: 18px;
  padding: 15px;
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.health-score-main span,
.health-score-breakdown span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.health-score-main strong {
  color: var(--cv-navy);
  font-size: 30px;
  display: block;
  margin: 8px 0 4px;
}

.health-score-main small,
.health-score-breakdown small {
  color: var(--muted);
}

.health-score-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.health-score-breakdown > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #FFFFFF;
}

.health-score-breakdown strong {
  color: var(--cv-navy);
  font-size: 15px;
  display: block;
  margin: 7px 0 3px;
}

.health-detail-list {
  margin: 12px 0 0 18px;
  padding: 0;
  color: var(--text);
}

.health-detail-list li {
  margin-bottom: 8px;
}

.details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  background: #FFFFFF;
  margin-top: 12px;
}

.ranking-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(11, 111, 174, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, .13), transparent 28%),
    linear-gradient(135deg, #FFFFFF, #F4FAFE);
  box-shadow: var(--shadow-soft);
}

.ranking-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.eyebrow {
  display: block;
  color: var(--cv-orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.ranking-panel h3 {
  margin: 0 0 4px;
  color: var(--cv-navy);
  font-size: 22px;
}

.ranking-status {
  min-width: 96px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  border: 1px solid var(--line);
  background: #FFFFFF;
}

.ranking-status.severity-high {
  color: #9E2929;
  background: #FFF1F1;
  border-color: rgba(214, 69, 69, .35);
}

.ranking-status.severity-medium {
  color: #8A4500;
  background: var(--cv-orange-soft);
  border-color: rgba(255, 138, 0, .40);
}

.ranking-status.severity-low {
  color: #0E6D42;
  background: #ECFFF6;
  border-color: rgba(22, 160, 96, .35);
}

.ranking-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ranking-issue-card {
  padding: 15px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(6, 59, 102, .05);
  position: relative;
  overflow: hidden;
}

.ranking-issue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--cv-blue);
}

.ranking-issue-card.severity-high::before {
  background: var(--danger);
}

.ranking-issue-card.severity-medium::before {
  background: var(--cv-orange);
}

.ranking-issue-card.severity-low::before {
  background: var(--success);
}

.issue-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.issue-type {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.issue-severity {
  font-size: 11px;
  font-weight: 950;
  color: var(--cv-navy);
  background: #EEF7FC;
  padding: 3px 8px;
  border-radius: 999px;
}

.ranking-issue-card h4 {
  margin: 0 0 7px;
  color: var(--cv-navy);
  font-size: 16px;
}

.ranking-issue-card p {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.4;
}

.issue-action {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.issue-action strong {
  color: var(--cv-navy);
}

.ranking-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.keyword-gap-details {
  background: linear-gradient(180deg, #FFFFFF, #F8FBFE);
}

.keyword-gap-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.keyword-gap-summary > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #FFFFFF;
}

.keyword-gap-summary span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.keyword-gap-summary strong {
  color: var(--cv-navy);
  font-size: 22px;
  display: block;
  margin: 6px 0 3px;
}

.keyword-gap-summary small {
  color: var(--muted);
}

.keyword-gap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.keyword-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #FFFFFF;
}

.keyword-panel h4 {
  margin: 0 0 10px;
  color: var(--cv-navy);
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(11, 111, 174, .22);
  background: #EEF9FD;
  color: var(--cv-navy);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.keyword-tag small {
  color: var(--muted);
  font-weight: 800;
}

.keyword-tags.missing .keyword-tag,
.keyword-tag.missing {
  border-color: rgba(255, 138, 0, .38);
  background: var(--cv-orange-soft);
  color: #8A4500;
}

summary { cursor: pointer; font-weight: 900; color: var(--cv-navy); }
.table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #FFFFFF; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--cv-navy); font-size: 13px; background: #F0F7FB; }
tr:hover td { background: #FBFDFF; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.chart-box { max-width: 780px; min-height: 260px; padding-top: 18px; }
.check-row { display: flex; gap: 10px; align-items: center; }
.check-row input { width: auto; accent-color: var(--cv-orange); }
code {
  background: #EEF7FC;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cv-navy);
  padding: 2px 6px;
}

@media (max-width: 900px) {
    .keyword-gap-summary,
      .keyword-gap-grid {
        grid-template-columns: 1fr;
      }
  .track-form { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .section-head, .product-head { flex-direction: column; }
  .health-score-card {
    grid-template-columns: 1fr;
  }

  .health-score-breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .ranking-panel-head {
    flex-direction: column;
  }

  .ranking-issue-grid {
    grid-template-columns: 1fr;
  }

  .ranking-status {
    min-width: auto;
  }

  .action-queue-head {
  flex-direction: column;
}

.action-counts {
  justify-content: flex-start;
}

.action-item {
  grid-template-columns: 6px minmax(0, 1fr);
}

.action-links {
  grid-column: 2;
  justify-content: flex-start;
}


}
@media (max-width: 560px) {
  .container { padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .navlinks { justify-content: flex-start; }
  .metrics { grid-template-columns: 1fr; }
  .brand-logo { width: 38px; height: 38px; }
  .health-score-breakdown {
    grid-template-columns: 1fr;
  }
}
.site-footer {
  max-width: 1180px;
  margin: 32px auto 20px;
  padding: 16px 20px;
  color: #6b7280;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.danger-zone {
  margin-top: 24px;
  border-color: #fecaca;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-jump-menu {
  position: sticky;
  top: 88px;
  align-self: start;
}

.jump-menu-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.jump-menu-card h3 {
  margin-bottom: 12px;
}

.jump-product-link {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  border-radius: 13px;
  color: var(--cv-navy);
  border: 1px solid transparent;
  margin-bottom: 8px;
  background: #FFFFFF;
}

.jump-product-link:hover {
  border-color: var(--cv-sky);
  background: #EEF9FD;
}

.jump-health-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 4px;
  background: var(--muted);
}

.jump-product-link.health-strong .jump-health-dot,
.jump-product-link.health-good .jump-health-dot {
  background: var(--success);
}

.jump-product-link.health-needs-work .jump-health-dot {
  background: var(--cv-orange);
}

.jump-product-link.health-weak .jump-health-dot {
  background: var(--danger);
}

.jump-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}

.jump-product-link small {
  grid-column: 2;
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-product-list {
  min-width: 0;
}

.action-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(6, 59, 102, .04);
  overflow: hidden;
}

.action-product-card.severity-high {
  border-color: rgba(214, 69, 69, .24);
}

.action-product-card.severity-medium {
  border-color: rgba(255, 138, 0, .28);
}

.action-product-card.severity-low {
  border-color: rgba(22, 160, 96, .24);
}

.action-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.action-product-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.action-product-severity {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 950;
  background: #EEF7FC;
  color: var(--cv-navy);
}

.action-product-card.severity-high .action-product-severity {
  color: #9E2929;
  background: #FFF1F1;
}

.action-product-card.severity-medium .action-product-severity {
  color: #8A4500;
  background: var(--cv-orange-soft);
}

.action-product-card.severity-low .action-product-severity {
  color: #0E6D42;
  background: #ECFFF6;
}

.jump-to-product {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 11px;
  background: #EEF7FC;
  color: var(--cv-navy);
  font-size: 12px;
  font-weight: 950;
}

.jump-to-product:hover {
  background: var(--cv-orange-soft);
  color: #8A4500;
}

.action-product-items {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.action-mini-item {
  border-left: 5px solid var(--cv-blue);
  padding: 10px 11px;
  border-radius: 14px;
  background: #FBFDFF;
}

.action-mini-item.severity-high {
  border-left-color: var(--danger);
}

.action-mini-item.severity-medium {
  border-left-color: var(--cv-orange);
}

.action-mini-item.severity-low {
  border-left-color: var(--success);
}

.action-mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.action-mini-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.action-mini-meta small {
  color: var(--muted);
  font-weight: 900;
}

.action-mini-item strong {
  display: block;
  color: var(--cv-navy);
  margin-bottom: 5px;
}

.action-mini-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .product-jump-menu {
    position: static;
  }

  .jump-menu-card {
    max-height: none;
  }

  .action-product-grid {
    grid-template-columns: 1fr;
  }
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cv-blue), var(--cv-sky));
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--cv-orange), #FF9F2B);
  color: #FFFFFF;
}

.action-mini-item > strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cv-navy);
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.product-card {
  scroll-margin-top: 96px;
}

.product-head h2 {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-head {
  margin-bottom: 14px;
}

.product-head a {
  font-size: 14px;
}

.product-head .muted {
  font-size: 13px;
  line-height: 1.35;
  margin-top: 8px;
}

.product-head .muted {
  font-size: 13px;
  line-height: 1.35;
}

.metrics > div {
  min-height: 118px;
}

.metrics strong {
  font-size: 21px;
}

.metrics small {
  font-size: 12px;
}

.details summary {
  list-style: none;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details summary::after {
  content: "＋";
  float: right;
  color: var(--muted);
  font-weight: 900;
}

.details[open] summary::after {
  content: "－";
}

.details {
  padding: 12px 14px;
}

.shipping-check-details {
  background: linear-gradient(180deg, #FFFFFF, #F8FBFE);
}

.shipping-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.shipping-check-grid > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #FFFFFF;
}

.shipping-check-grid span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.shipping-check-grid strong {
  color: var(--cv-navy);
  font-size: 18px;
  display: block;
  margin-top: 6px;
}

.shipping-check-note {
  margin: 12px 0 0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .shipping-check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .shipping-check-grid {
    grid-template-columns: 1fr;
  }
}
.plan-status-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 111, 174, .22);
  border-radius: 16px;
  background: #EEF9FD;
  color: var(--cv-navy);
}

.plan-status-card strong {
  font-weight: 950;
}

.plan-status-card span,
.plan-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-note {
  display: block;
  margin-top: 6px;
}

.locked-feature-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px dashed rgba(255, 138, 0, .45);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, .12), transparent 28%),
    linear-gradient(135deg, #FFFFFF, #FFF8EF);
  box-shadow: var(--shadow-soft);
}

.locked-feature-card h2 {
  margin-bottom: 4px;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  color: #8A4500;
  background: var(--cv-orange-soft);
  border: 1px solid rgba(255, 138, 0, .35);
  font-size: 12px;
  font-weight: 950;
}

.locked-inline-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-style: dashed;
  background: #FFF8EF;
}

.locked-inline-feature p {
  width: 100%;
  margin: 0;
}

/* Landing page */

.landing-container {
  max-width: 1180px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.landing-hero-copy {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.landing-hero h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 12px 0 18px;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.button-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #64748b;
}

.landing-preview-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.preview-top {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.preview-top strong {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
}

.preview-top small {
  color: #16a34a;
  font-weight: 700;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-metrics div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.preview-metrics span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.preview-metrics strong {
  font-size: 1.25rem;
}

.preview-alert {
  margin-top: 16px;
  border-radius: 16px;
  padding: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.preview-alert p {
  margin: 8px 0 0;
  color: #7c2d12;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.landing-feature-card h2 {
  margin-top: 8px;
}

.landing-pro-card {
  margin-top: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy {
    padding: 26px;
  }
}

.inline-limit-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-limit-form select {
  min-width: 150px;
  padding: 10px 12px;
}

.inline-limit-form button {
  padding: 10px 14px;
  font-size: 13px;
}

/* Account settings */

.nav-user {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #EEF7FC;
  color: var(--cv-navy);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.account-card {
  margin-bottom: 0;
}

.account-info-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-info-list > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #FFFFFF;
}

.account-info-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.account-info-list strong {
  display: block;
  color: var(--cv-navy);
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.25;
  word-break: break-word;
}

.account-info-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.pro-placeholder-card {
  border-style: dashed;
  border-color: rgba(255, 138, 0, .42);
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, .12), transparent 28%),
    linear-gradient(135deg, #FFFFFF, #FFF8EF);
}

.disabled-button,
button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.disabled-button:hover,
button:disabled:hover {
  transform: none;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .nav-user {
    max-width: 100%;
  }
}

.locked-feature-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-note {
  margin: 14px 0 0;
}

.pricing-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card.featured {
  border: 2px solid rgba(255, 138, 0, .55);
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, .13), transparent 32%),
    #FFFFFF;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  margin: 4px 0 14px;
  color: var(--text);
}

.pricing-card .button,
.pricing-card form {
  margin-top: auto;
}

.landing-section {
  margin: 42px 0;
}

.landing-section-head {
  max-width: 720px;
  margin-bottom: 18px;
}

.landing-step-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.landing-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-step-card {
  margin-bottom: 0;
}

.landing-step-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cv-orange-soft);
  color: var(--cv-orange-dark);
}

.landing-step-card p {
  margin: 14px 0 0;
  line-height: 1.5;
}

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

.faq-grid .card {
  margin-bottom: 0;
}

.faq-grid p {
  margin-bottom: 0;
  line-height: 1.5;
}

.trust-card {
  padding: 20px 22px;
  border: 1px solid rgba(22, 160, 96, .28);
  border-radius: 18px;
  background: #ECFFF6;
  color: #0E6D42;
}

.trust-card p {
  margin: 7px 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .landing-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pricing-grid,
  .landing-step-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
