:root {
  color-scheme: dark;
  --bg: #020607;
  --panel: rgba(8, 13, 15, 0.92);
  --panel-soft: rgba(12, 18, 21, 0.86);
  --line: rgba(139, 255, 45, 0.18);
  --line-quiet: rgba(255, 255, 255, 0.09);
  --text: #f4f8f1;
  --muted: #a9afa8;
  --green: #9aec35;
  --green-2: #69c81d;
  --deep: #07100b;
  --gold: #d6ff5c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 52% 38%, rgba(77, 132, 28, 0.11), transparent 29rem),
    radial-gradient(circle at 95% 18%, rgba(154, 236, 53, 0.06), transparent 16rem),
    linear-gradient(135deg, #020405 0%, #050b0d 46%, #071015 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  filter: blur(0.2px);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0 8%, transparent 9%),
    radial-gradient(ellipse at center, rgba(154, 236, 53, 0.16) 0 38%, transparent 39%);
}

body::before {
  width: 360px;
  height: 260px;
  left: 130px;
  bottom: 10px;
  transform: rotate(-16deg);
  border-radius: 52% 48% 52% 48%;
}

body::after {
  width: 260px;
  height: 360px;
  right: -40px;
  top: 130px;
  transform: rotate(24deg);
  border-radius: 48% 52% 45% 55%;
}

button,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1860px, calc(100% - 78px));
  min-height: 100vh;
  margin: 30px auto;
  padding: 0;
  border: 1px solid var(--line-quiet);
  background: rgba(2, 6, 7, 0.48);
}

.top-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(460px, 0.92fr) 270px 200px auto;
  gap: 22px;
  align-items: center;
  min-height: 122px;
  padding: 22px 30px;
  border: 1px solid var(--line-quiet);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(3, 7, 8, 0.98), rgba(4, 8, 10, 0.88));
  box-shadow: var(--shadow);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 96px;
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(154, 236, 53, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 48%, rgba(154, 236, 53, 0.22), transparent 26%),
    radial-gradient(circle at 78% 50%, rgba(154, 236, 53, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(4, 10, 8, 0.96), rgba(1, 4, 5, 0.9));
  box-shadow: inset 0 0 34px rgba(154, 236, 53, 0.05);
}

.brand::before,
.brand::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.brand::before {
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(154, 236, 53, 0.42) 48% 52%, transparent 52%),
    linear-gradient(180deg, transparent 0 48%, rgba(154, 236, 53, 0.2) 48% 52%, transparent 52%);
  opacity: 0.16;
}

.brand::after {
  border-radius: 16px;
  box-shadow:
    inset 18px 18px 0 -15px rgba(216, 255, 182, 0.9),
    inset -18px 18px 0 -15px rgba(216, 255, 182, 0.9),
    inset 18px -18px 0 -15px rgba(216, 255, 182, 0.9),
    inset -18px -18px 0 -15px rgba(216, 255, 182, 0.9);
  opacity: 0.55;
}

.brand-app-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(154, 236, 53, 0.34), 0 0 30px rgba(154, 236, 53, 0.2);
}

.brand-banner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  filter: drop-shadow(0 0 18px rgba(154, 236, 53, 0.14));
}

.brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy span,
.brand-copy small {
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong {
  color: var(--text);
  font-size: clamp(34px, 2.9vw, 52px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(154, 236, 53, 0.18);
}

.brand-copy strong::first-letter {
  color: var(--green);
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.brand-ebay-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 64px;
  margin-left: auto;
  border-radius: 18px;
  background: rgba(244, 241, 228, 0.95);
  box-shadow: 0 0 24px rgba(154, 236, 53, 0.18);
}

.brand-ebay-badge span {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #2f69b1;
}

.brand-ebay-badge i {
  position: relative;
  width: 31px;
  height: 19px;
  border-radius: 0 0 5px 5px;
  border: 5px solid #255c16;
  border-top: 0;
}

.brand-ebay-badge i::before,
.brand-ebay-badge i::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #255c16;
}

.brand-ebay-badge i::before {
  left: 1px;
}

.brand-ebay-badge i::after {
  right: 1px;
}

.leaf-logo {
  position: relative;
  width: 76px;
  height: 76px;
}

.leaf-logo::before,
.leaf-logo::after,
.leaf-logo span {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #b7ff4d, #5fbd1b);
  border-radius: 90% 10% 90% 12%;
  box-shadow: 0 0 22px rgba(154, 236, 53, 0.26);
}

.leaf-logo::before {
  width: 26px;
  height: 46px;
  left: 26px;
  top: 4px;
  transform: rotate(32deg);
}

.leaf-logo::after {
  width: 24px;
  height: 42px;
  left: 13px;
  top: 24px;
  transform: rotate(-46deg);
}

.leaf-logo span {
  width: 24px;
  height: 42px;
  right: 6px;
  top: 28px;
  transform: rotate(46deg);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 2.3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

h1 strong {
  color: var(--green);
}

.brand p {
  margin-top: 13px;
  color: #b9bcb6;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.connection-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.22fr;
  align-items: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 12, 0.86);
  box-shadow: inset 0 0 34px rgba(154, 236, 53, 0.04);
}

.connection-item {
  position: relative;
  min-height: 42px;
  padding: 0 16px 0 48px;
  min-width: 0;
}

.connection-item + .connection-item {
  border-left: 1px solid var(--line-quiet);
}

.connection-item p {
  color: #8d928e;
  font-size: 13px;
}

.connection-item strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connection-item:nth-child(2) {
  padding-left: 76px;
}

.connection-item:nth-child(2) .ebay-word {
  left: 22px;
}

.connection-item:nth-child(3) {
  padding-left: 44px;
}

.dot {
  position: absolute;
  left: 26px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(154, 236, 53, 0.75);
}

.ebay-word,
.pulse {
  position: absolute;
  left: 18px;
  top: 7px;
  color: var(--green);
  font-weight: 900;
  font-size: 22px;
}

.pulse {
  font-size: 24px;
  line-height: 1;
}

.scan-cta,
.filter-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70px;
  border-radius: 9px;
  font-weight: 900;
  text-decoration: none;
}

.scan-cta {
  border: 1px solid rgba(197, 255, 77, 0.68);
  color: #081208;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, #baff39, #63c717);
  box-shadow: 0 0 35px rgba(154, 236, 53, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.25);
  font-size: 21px;
}

.scan-cta.small {
  min-height: 64px;
  padding: 0 34px;
  margin-top: 22px;
}

.filter-cta {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8, 12, 13, 0.92);
  font-size: 20px;
}

.filter-cta.active {
  border-color: rgba(154, 236, 53, 0.72);
  box-shadow: 0 0 24px rgba(154, 236, 53, 0.18), inset 0 0 18px rgba(154, 236, 53, 0.08);
}

.home-link-cta {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(154, 236, 53, 0.25);
  border-radius: 9px;
  background: rgba(8, 12, 13, 0.92);
  color: var(--green);
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
  white-space: nowrap;
}

.home-link-cta:hover,
.home-link-cta:focus-visible {
  border-color: rgba(154, 236, 53, 0.62);
  box-shadow: 0 0 20px rgba(154, 236, 53, 0.14);
  outline: none;
}

.filter-drawer {
  position: absolute;
  z-index: 12;
  right: 30px;
  top: calc(100% - 8px);
  width: min(390px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid rgba(154, 236, 53, 0.3);
  border-radius: 12px;
  background: rgba(3, 8, 10, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(154, 236, 53, 0.05);
}

.filter-drawer[hidden] {
  display: none;
}

.filter-drawer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filter-drawer p {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.filter-drawer button {
  min-height: 30px;
  border: 1px solid var(--line-quiet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.filter-drawer label {
  grid-template-columns: 1fr 180px;
}

.radar-icon,
.slider-icon,
.chart-icon,
.target-icon,
.history-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
}

.radar-icon {
  border: 3px solid #081208;
  border-radius: 50%;
}

.radar-icon::before,
.radar-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #081208;
  border-radius: 50%;
}

.radar-icon::after {
  inset: 11px;
  background: #081208;
}

.slider-icon::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  background: repeating-linear-gradient(to bottom, var(--green) 0 2px, transparent 2px 9px);
}

.slider-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 7px;
  top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 13px 9px 0 var(--green), 2px 18px 0 var(--green);
}

.dashboard {
  display: grid;
  grid-template-columns: 286px minmax(900px, 1fr) 410px;
  gap: 14px;
  min-height: 890px;
  padding: 18px 18px 20px 0;
}

.left-rail,
.right-rail,
.metric-card,
.results-card,
.side-card {
  border: 1px solid var(--line-quiet);
  background: linear-gradient(145deg, rgba(8, 13, 15, 0.94), rgba(4, 9, 11, 0.88));
  box-shadow: inset 0 0 40px rgba(154, 236, 53, 0.025);
}

.left-rail {
  border-left: 0;
  border-radius: 0;
  padding: 24px 17px 64px;
  position: relative;
}

.rail-section h2,
.side-card h2,
.results-head h2,
.metric-card span {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-section h2 {
  margin-bottom: 14px;
  color: #b9bdb5;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: grid;
  grid-template-columns: 32px 1fr 42px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  text-align: left;
}

.category-button.active {
  border-color: rgba(154, 236, 53, 0.72);
  background: linear-gradient(90deg, rgba(118, 201, 32, 0.28), rgba(118, 201, 32, 0.07));
  box-shadow: inset 0 0 22px rgba(154, 236, 53, 0.09);
}

.category-button i {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0;
}

.category-button:nth-child(5) i {
  color: #d7d9d5;
}

.category-button:nth-child(6) i,
.category-button:nth-child(9) i,
.category-button:nth-child(14) i {
  color: #ff4d96;
}

.category-button:nth-child(15) i {
  color: #f4a62a;
}

.category-button strong {
  font-size: 14px;
  font-weight: 460;
}

.category-button em {
  display: grid;
  place-items: center;
  height: 28px;
  border: 1px solid var(--line-quiet);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-weight: 400;
}

.filters {
  margin: 18px -17px 0;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line-quiet);
}

.filters h2 {
  margin-bottom: 15px;
  font-size: 13px;
}

label {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.terms-label {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.terms-label input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(154, 236, 53, 0.28);
  border-radius: 6px;
  background: rgba(3, 7, 8, 0.9);
  color: var(--text);
  padding: 0 10px;
}

select {
  min-height: 31px;
  width: 100%;
  border: 1px solid rgba(154, 236, 53, 0.28);
  border-radius: 6px;
  background: rgba(3, 7, 8, 0.9);
  color: var(--text);
  padding: 0 10px;
}

.search-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(154, 236, 53, 0.16);
  border-radius: 10px;
  background: rgba(2, 7, 8, 0.78);
}

.search-row label {
  display: block;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-row input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(154, 236, 53, 0.28);
  border-radius: 8px;
  background: rgba(3, 7, 8, 0.92);
  color: var(--text);
  padding: 0 12px;
}

.search-row input::placeholder {
  color: rgba(244, 248, 241, 0.42);
}

.search-row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(154, 236, 53, 0.28);
  border-radius: 8px;
  background: rgba(3, 7, 8, 0.9);
  color: var(--text);
  resize: vertical;
  padding: 9px 10px;
}

textarea::placeholder {
  color: rgba(244, 248, 241, 0.42);
}

.terms-label {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.check-row {
  grid-template-columns: 18px 1fr;
  margin-top: 8px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.collapse-button {
  position: absolute;
  bottom: 18px;
  left: 34px;
  min-height: 36px;
  border: 1px solid var(--line-quiet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #737873;
  padding: 0 20px;
}

.main-stage {
  display: grid;
  grid-template-rows: 132px minmax(640px, 1fr);
  gap: 16px;
}

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

.metric-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
  border-radius: 13px;
  padding: 14px;
  overflow: hidden;
}

.metric-orb {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(154, 236, 53, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(154, 236, 53, 0.28), rgba(4, 10, 8, 0.8) 62%);
  box-shadow: 0 0 35px rgba(154, 236, 53, 0.24), inset 0 0 20px rgba(154, 236, 53, 0.22);
}

.metric-orb::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
}

.bag-icon::before {
  content: "▢";
}

.star-icon::before {
  content: "★";
}

.pound-icon::before {
  content: "\00a3";
}

.box-icon::before {
  content: "◼";
  font-size: 34px;
}

.metric-card strong {
  display: block;
  margin: 9px 0 4px;
  font-size: 40px;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-size: 14px;
}

.metric-card span {
  font-size: 14px;
}

.bag-icon::before {
  content: "▢";
}

.star-icon::before {
  content: "★";
}

.box-icon::before {
  content: "■";
  font-size: 30px;
}

.metric-card strong {
  margin: 8px 0 5px;
  font-size: 38px;
}

.metric-card small {
  display: block;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.metric-card span {
  display: block;
  font-size: 13px;
  line-height: 1.18;
  max-width: 120px;
}

.results-card {
  position: relative;
  min-height: 640px;
  border-radius: 14px;
  padding: 20px 26px;
  overflow: hidden;
}

.results-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 42%;
  opacity: 0.12;
  background:
    radial-gradient(ellipse at 18% 86%, rgba(154, 236, 53, 0.38), transparent 20%),
    radial-gradient(ellipse at 72% 76%, rgba(154, 236, 53, 0.24), transparent 22%);
}

.results-card::after {
  content: "";
  position: absolute;
  inset: 118px 20px 18px;
  pointer-events: none;
  opacity: 0.045;
  background: url("herb-growtower.png") 118% center / auto 122% no-repeat;
  filter: saturate(0.75);
  mix-blend-mode: screen;
}

.results-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tiny-leaf {
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 70% 10% 70% 10%;
  background: linear-gradient(135deg, #a9ff39, #58b91c);
  transform: rotate(-32deg);
}

.results-head h2 {
  color: var(--text);
  font-size: 19px;
}

.result-tabs {
  display: inline-flex;
  border: 1px solid var(--line-quiet);
  border-radius: 10px;
  overflow: hidden;
}

.result-tabs button {
  min-height: 46px;
  border: 0;
  border-left: 1px solid var(--line-quiet);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 24px;
  font-weight: 800;
}

.result-tabs button:first-child {
  border-left: 0;
}

.result-tabs button.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(154, 236, 53, 0.25), rgba(154, 236, 53, 0.08));
  box-shadow: inset 0 0 16px rgba(154, 236, 53, 0.2);
}

.results-table-wrap {
  position: relative;
  z-index: 2;
  max-height: 570px;
  overflow: auto;
  border: 1px solid var(--line-quiet);
  border-radius: 12px;
  background: rgba(4, 9, 10, 0.74);
}

.results-table-wrap.empty-results {
  overflow: hidden;
  height: 100px;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(154, 236, 53, 0.08);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #d5d8d1;
  background: rgba(16, 25, 13, 0.92);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--text);
  background: rgba(9, 19, 11, 0.7);
}

tr:hover td {
  background: rgba(26, 70, 23, 0.55);
}

.table-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(154, 236, 53, 0.08);
  color: var(--green);
  font-weight: 900;
}

.listing-title a {
  color: var(--text);
  text-decoration: none;
}

.score-pill {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.empty-state {
  position: absolute;
  inset: 204px 26px 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: start;
  border: 0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 52%, rgba(154, 236, 53, 0.1), transparent 15rem),
    rgba(3, 8, 10, 0.22);
  text-align: center;
  padding-top: 70px;
  padding-bottom: 0;
}

.empty-state[hidden],
.results-table-wrap[hidden] {
  display: none !important;
}

.loading-mascot {
  display: none;
  width: 142px;
  height: 142px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 36px rgba(154, 236, 53, 0.28);
}

body.is-busy .loading-mascot {
  display: block;
}

body.is-busy .scanner-illustration {
  display: none;
}

body.is-busy .empty-state h3::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loadingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.scanner-illustration {
  width: 350px;
  height: 205px;
  object-fit: cover;
  margin-bottom: 8px;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.empty-state h3 {
  font-size: 30px;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);
  font-size: 18px;
}

.right-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  grid-auto-rows: auto;
}

.side-card {
  position: relative;
  min-height: 184px;
  border-radius: 14px;
  padding: 26px 30px;
  overflow: hidden;
}

.side-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(154, 236, 53, 0.76);
}

.side-card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.empty-panel {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
}

.empty-panel p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

.empty-panel strong {
  color: var(--text);
  font-weight: 500;
}

.mini-chart {
  width: 130px;
  height: 78px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(154, 236, 53, 0.5) 9%, transparent 10% 22%, rgba(154, 236, 53, 0.65) 23%, transparent 24% 42%, rgba(154, 236, 53, 0.5) 43%, transparent 44%),
    linear-gradient(160deg, transparent 0 50%, rgba(154, 236, 53, 0.14) 51%, transparent 52%);
  clip-path: polygon(0 90%, 12% 70%, 23% 82%, 40% 30%, 55% 55%, 70% 20%, 86% 42%, 100% 20%, 100% 100%, 0 100%);
}

.radar-graphic {
  position: relative;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(154, 236, 53, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 27%, rgba(154, 236, 53, 0.22) 28% 29%, transparent 30% 54%, rgba(154, 236, 53, 0.17) 55% 56%, transparent 57%),
    conic-gradient(from 225deg, rgba(154, 236, 53, 0.88), rgba(154, 236, 53, 0.06) 32deg, transparent 33deg);
}

.rail-card,
.top5-item {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
}

.rail-list.has-deals {
  display: grid;
  gap: 6px;
  max-height: 382px;
  overflow-y: auto;
  padding-right: 4px;
}

.rail-list.has-deals .rail-card {
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  gap: 10px;
  min-height: 74px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(154, 236, 53, 0.08);
}

.rail-list.has-deals .rail-card:last-child {
  border-bottom: 0;
}

.rail-list.has-deals .rail-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.2;
}

.rail-icon,
.top5-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--green);
  background: rgba(154, 236, 53, 0.1);
  border: 1px solid var(--line);
  font-weight: 900;
}

.rail-card small,
.top5-item small {
  display: block;
  margin-top: 5px;
  color: var(--gold);
}

.rail-score {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.activity-log {
  display: grid;
  gap: 28px;
  min-height: 110px;
  color: var(--text);
}

.activity-row {
  display: grid;
  grid-template-columns: 14px 1fr 54px;
  align-items: center;
  gap: 20px;
}

.activity-row::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px rgba(154, 236, 53, 0.6);
}

.activity-row time {
  color: var(--muted);
}

.activity-button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 1px solid var(--line-quiet);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(680px, 100%);
  max-height: min(740px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #071012;
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head p {
  color: var(--gold);
}

.modal-head h2 {
  font-size: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-quiet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.top5-list {
  display: grid;
  gap: 10px;
}

.herb-apps {
  margin: 18px -6px 0;
  padding: 14px 10px 10px;
  border: 1px solid rgba(154, 236, 53, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(213, 255, 221, 0.96), rgba(236, 255, 240, 0.9));
}

.herb-apps h2 {
  margin-bottom: 8px;
  color: #147332;
  font-size: 11px;
  font-weight: 560;
}

.herb-app-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid rgba(18, 90, 36, 0.16);
  border-radius: 8px;
  color: #0b1b10;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
}

.herb-app-card.active {
  border-color: rgba(15, 128, 48, 0.32);
  background: rgba(240, 255, 244, 0.94);
}

.herb-app-card strong,
.herb-app-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.herb-app-card strong {
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.herb-app-card small {
  margin-top: 2px;
  color: #3c5743;
  font-size: 10px;
  line-height: 1.25;
}

.herb-app-card em {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(15, 128, 48, 0.28);
  border-radius: 8px;
  color: #0f7c2b;
  background: rgba(226, 255, 233, 0.78);
  font-style: normal;
  font-size: 11px;
  font-weight: 560;
}

.herb-app-card.active em {
  color: #ffffff;
  background: #168338;
}

.app-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(14, 111, 41, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(154, 236, 53, 0.26), transparent 52%),
    rgba(6, 24, 12, 0.95);
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}

.nutrient-tile::before {
  content: "";
}

.scanner-tile::before {
  content: "";
}

.hub-tile::before {
  content: "";
}

.nutrient-tile,
.scanner-tile,
.hub-tile {
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.nutrient-tile {
  background-image: url("nutrient-mixer-icon.png");
}

.scanner-tile {
  background-image: url("scannerappicon.png");
}

.hub-tile {
  background-image: url("herb-hub-icon.png");
}

.herb-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 18px 18px 24px;
}

.herb-product-panel,
.herb-companion-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 236, 53, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 13, 15, 0.94), rgba(3, 9, 7, 0.9));
  box-shadow: inset 0 0 44px rgba(154, 236, 53, 0.04);
}

.herb-product-panel {
  min-height: 0;
}

.herb-product-panel img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
}

.paypal-hotspot,
.herb-view-hotspot {
  position: absolute;
  z-index: 2;
  border-radius: 9px;
  outline: 1px solid rgba(186, 255, 57, 0.08);
  background: rgba(186, 255, 57, 0.01);
  box-shadow: 0 0 0 rgba(154, 236, 53, 0);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: paypalPulse 3.4s ease-in-out infinite;
}

.paypal-hotspot {
  left: 5.25%;
  top: 60.55%;
  width: 20.25%;
  height: 7.7%;
}

.herb-view-hotspot {
  left: 26.8%;
  top: 60.55%;
  width: 16.05%;
  height: 7.7%;
  animation-delay: 1.1s;
}

.paypal-hotspot:hover,
.paypal-hotspot:focus-visible,
.herb-view-hotspot:hover,
.herb-view-hotspot:focus-visible {
  background: rgba(186, 255, 57, 0.1);
  box-shadow: 0 0 34px rgba(154, 236, 53, 0.42), inset 0 0 18px rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.paypal-hotspot:focus-visible,
.herb-view-hotspot:focus-visible {
  outline: 2px solid rgba(186, 255, 57, 0.85);
  outline-offset: 3px;
}

@keyframes paypalPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(154, 236, 53, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(154, 236, 53, 0.2);
  }
}

.herb-companion-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 7, 0.12), rgba(2, 6, 7, 0.42));
}

.herb-product-copy {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  max-width: 270px;
  padding: 16px;
  border: 1px solid rgba(154, 236, 53, 0.24);
  border-radius: 12px;
  background: rgba(2, 7, 8, 0.76);
  backdrop-filter: blur(8px);
}

.herb-product-copy p,
.herb-companion-copy p {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.herb-product-copy h2,
.herb-companion-copy h2 {
  margin-top: 8px;
  font-size: clamp(26px, 2.3vw, 42px);
  line-height: 1.05;
}

.herb-product-copy h2 {
  font-size: 22px;
}

.herb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.filter-cta.small-link,
.scan-cta.small {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.filter-cta.small-link {
  text-decoration: none;
}

.herb-companion-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1fr);
  min-height: 430px;
}

.herb-companion-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.herb-companion-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px;
}

.herb-companion-copy h2 {
  max-width: 300px;
}

.herb-companion-copy span {
  display: block;
  margin-top: 14px;
  color: var(--text);
  line-height: 1.45;
}

.herb-bottom-nav {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(620px, calc(100% - 28px));
  margin: 0 auto 18px;
  padding: 7px;
  border: 1px solid rgba(154, 236, 53, 0.28);
  border-radius: 10px;
  background: rgba(3, 8, 10, 0.94);
}

.herb-bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  color: #c8cec4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.herb-bottom-nav a.active {
  color: #071208;
  background: linear-gradient(180deg, #baff39, #72d81c);
}

.herb-bottom-nav span {
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .top-shell {
    grid-template-columns: 1fr 1fr;
  }

  .brand-banner {
    height: 96px;
    width: 100%;
  }

  .dashboard {
    grid-template-columns: 260px minmax(0, 1fr);
    padding-right: 16px;
  }

  .right-rail {
    grid-column: 2;
  }

  .herb-showcase {
    grid-template-columns: 1fr;
    padding-right: 18px;
  }

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

  .main-stage {
    grid-template-rows: auto minmax(560px, 1fr);
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding: 6px;
  }

  .top-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .brand {
    justify-content: flex-start;
    min-height: 118px;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .leaf-logo {
    width: 54px;
    height: 54px;
  }

  .brand-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .brand-banner {
    height: 118px;
    object-position: 37% center;
  }

  .brand-copy strong {
    font-size: clamp(31px, 9vw, 42px);
  }

  .brand-copy span,
  .brand-copy small {
    font-size: 10px;
  }

  .brand-ebay-badge {
    width: 58px;
    height: 50px;
    border-radius: 14px;
  }

  .brand-ebay-badge span {
    font-size: 17px;
  }

  .brand-ebay-badge i {
    width: 24px;
    height: 14px;
    border-width: 4px;
    border-top: 0;
  }

  .brand-ebay-badge i::before,
  .brand-ebay-badge i::after {
    bottom: -8px;
    width: 6px;
    height: 6px;
  }

  h1 {
    font-size: 28px;
  }

  .brand p {
    font-size: 12px;
    letter-spacing: 1.6px;
  }

  .connection-card {
    grid-template-columns: 1fr;
  }

  .connection-item {
    padding: 13px 18px 13px 54px;
  }

  .connection-item + .connection-item {
    border-left: 0;
    border-top: 1px solid var(--line-quiet);
  }

  .scan-cta,
  .filter-cta {
    min-height: 58px;
  }

  .home-link-cta {
    min-height: 48px;
  }

  .filter-drawer {
    left: 18px;
    right: 18px;
    top: calc(100% - 2px);
    width: auto;
  }

  .filter-drawer label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 0;
  }

  .left-rail {
    order: 3;
    border: 1px solid var(--line-quiet);
    border-radius: 16px;
    padding: 16px;
  }

  .left-rail.collapsed {
    display: none;
  }

  .main-stage {
    order: 1;
    grid-template-rows: auto minmax(500px, auto);
  }

  .right-rail {
    order: 2;
    grid-column: auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    grid-template-columns: 62px 1fr;
    min-height: 104px;
    padding: 12px;
  }

  .metric-orb {
    width: 50px;
    height: 50px;
  }

  .metric-orb::before {
    font-size: 28px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .metric-card small,
  .metric-card span {
    font-size: 12px;
  }

  .results-card {
    min-height: 0;
    padding: 14px;
  }

  .results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .result-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .result-tabs button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 12px;
  }

  .search-row span {
    white-space: normal;
  }

  .empty-state {
    position: relative;
    inset: auto;
    min-height: 390px;
    margin-top: 12px;
    padding: 34px 14px 26px;
    align-content: center;
  }

  .scanner-illustration {
    width: 116px;
    height: 116px;
    margin-bottom: 14px;
  }

  .empty-state h3 {
    font-size: 24px;
  }

  .empty-state p {
    font-size: 15px;
  }

  .results-table-wrap {
    max-height: none;
  }

  .results-table-wrap.empty-results {
    display: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 8px;
  }

  tr {
    display: grid;
    grid-template-columns: 34px 48px 1fr 48px;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(9, 19, 11, 0.78);
  }

  td {
    border: 0;
    padding: 0;
    background: transparent;
  }

  td:nth-child(1) {
    grid-row: 1 / 3;
    color: var(--green);
    font-weight: 900;
  }

  td:nth-child(2) {
    grid-row: 1 / 3;
  }

  td:nth-child(3) {
    font-weight: 700;
  }

  td:nth-child(7) {
    grid-column: 4;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
  }

  td:nth-child(6) {
    display: none;
  }

  td:nth-child(8) {
    grid-column: 3 / 4;
    color: var(--muted);
    font-size: 12px;
  }

  .side-card {
    min-height: 170px;
    padding: 20px;
  }

  .empty-panel {
    grid-template-columns: 92px 1fr;
    gap: 16px;
  }

  .mini-chart,
  .radar-graphic {
    width: 88px;
    height: 88px;
  }

  label {
    grid-template-columns: 1fr 130px;
  }

  .herb-apps {
    margin: 16px 0 48px;
  }

  .herb-showcase {
    grid-template-columns: 1fr;
    padding: 0 0 16px;
  }

  .herb-product-panel {
    min-height: 0;
  }

  .herb-product-panel img {
    min-height: 0;
  }

  .herb-companion-panel {
    grid-template-columns: 1fr;
  }

  .herb-companion-panel img {
    height: 220px;
    padding: 12px;
  }

  .herb-companion-copy {
    padding: 20px;
  }

  .herb-bottom-nav {
    display: none;
  }
}

/* Quiet typography pass: keep the mockup shape, reduce the shout. */
h1 {
  font-size: clamp(28px, 2.1vw, 34px);
  font-weight: 680;
}

.brand p {
  font-weight: 500;
  letter-spacing: 1.8px;
}

.connection-item strong,
.scan-cta,
.filter-cta,
.result-tabs button,
.activity-button {
  font-weight: 580;
}

.rail-section h2,
.side-card h2,
.results-head h2,
.metric-card span,
.search-row label {
  font-weight: 700;
}

.category-button strong {
  font-weight: 460;
}

.category-button i {
  font-weight: 600;
}

.category-button em {
  font-weight: 500;
}

.metric-orb::before {
  font-weight: 700;
}

.metric-card strong {
  font-weight: 600;
  font-size: 35px;
}

.metric-card span {
  font-size: 12px;
  line-height: 1.22;
}

.metric-card small {
  font-weight: 400;
  color: #b3b8b0;
}

.empty-state h3 {
  font-weight: 650;
}

.empty-state p,
.empty-panel p,
.activity-row,
label,
.search-row span {
  font-weight: 400;
}

.rail-score,
.score-pill {
  font-weight: 700;
}
