:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #111;
  --surface-2: #171717;
  --line: #262626;
  --muted: #8e8e8e;
  --text: #f4f4f2;
  --orange: #f15a24;
  --orange-soft: #2b160f;
  --green: #45c878;
  --red: #ff715f;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 74% -10%,
      rgba(241, 90, 36, 0.14),
      transparent 27rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner,
.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: auto;
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 174px;
  height: auto;
  display: block;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 11px;
}
.header-status div {
  display: grid;
  gap: 2px;
}
.header-status strong {
  font-size: 13px;
}
.header-status small {
  font-size: 11px;
  color: var(--muted);
}
.live-dot,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 200, 120, 0.11);
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 58px 0 36px;
}
.eyebrow,
.brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--orange);
}
h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 13px 0 18px;
  max-width: 780px;
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
.intro > div > p {
  margin: 0;
  color: #aaa;
  max-width: 570px;
  font-size: 16px;
  line-height: 1.6;
}
.system-total {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #151515, #0e0e0e);
  box-shadow: var(--shadow);
  min-width: 405px;
}
.system-total > span {
  color: var(--orange);
  font-size: 22px;
}
.system-total div {
  display: grid;
  gap: 3px;
  min-width: 125px;
}
.system-total div span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.system-total strong {
  font-size: 29px;
  line-height: 1;
}
.system-total small {
  font-size: 10px;
  color: #737373;
}
.toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.search-box {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #303030;
  border-radius: 11px;
  background: #0a0a0a;
  color: #777;
}
.search-box span {
  font-size: 24px;
  line-height: 0;
  transform: translateY(-1px);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder {
  color: #686868;
}
.filters {
  display: flex;
  gap: 5px;
}
.filters button,
.refresh-button {
  height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 13px;
  background: transparent;
  color: #999;
  cursor: pointer;
  transition: 0.18s ease;
}
.filters button:hover,
.filters button.active {
  background: #242424;
  color: #fff;
}
.filters button.active {
  border-color: #343434;
}
.refresh-button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--orange);
  color: #fff;
  font-weight: 750;
}
.refresh-button:hover {
  filter: brightness(1.08);
}
.refresh-button.loading span {
  animation: spin 0.8s linear infinite;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.summary-grid article {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(160deg, #151515, #101010);
}
.summary-grid span {
  font-size: 12px;
  color: #aaa;
}
.summary-grid strong {
  font-size: 31px;
  line-height: 1;
}
.summary-grid small {
  font-size: 11px;
  color: #696969;
}
.summary-good strong {
  color: var(--green);
}
.summary-warning strong {
  color: var(--orange);
}
.results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 2px 15px;
  color: #777;
  font-size: 12px;
}
.results-line p {
  margin: 0;
}
.results-line strong {
  color: #ccc;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 54px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #3a3a3a;
  box-shadow: var(--shadow);
}
.product-card[hidden] {
  display: none;
}
.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 52%,
    #2a2a2a 0,
    #181818 38%,
    #101010 72%
  );
  border-bottom: 1px solid var(--line);
}
.product-image:after {
  content: "";
  position: absolute;
  inset: auto 13% 15px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(8px);
}
.product-image img {
  position: absolute;
  z-index: 1;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 11px rgba(0, 0, 0, 0.35));
}
.status-dot {
  position: absolute;
  z-index: 2;
  right: 17px;
  top: 17px;
}
.state-difference .status-dot {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(241, 90, 36, 0.13);
}
.state-zero .status-dot {
  background: #686868;
  box-shadow: 0 0 0 5px rgba(130, 130, 130, 0.12);
}
.state-unavailable .status-dot {
  background: var(--red);
}
.product-copy {
  padding: 17px;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.status-badge {
  white-space: nowrap;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(69, 200, 120, 0.09);
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.state-difference .status-badge {
  background: var(--orange-soft);
  color: #ff8559;
}
.state-zero .status-badge {
  background: #222;
  color: #929292;
}
.state-unavailable .status-badge {
  background: rgba(255, 113, 95, 0.1);
  color: var(--red);
}
.product-copy h2 {
  height: 44px;
  overflow: hidden;
  margin: 12px 0 16px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.stock-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid #222;
}
.stock-comparison div {
  display: grid;
  gap: 4px;
}
.stock-comparison div:last-child {
  text-align: right;
}
.stock-comparison span {
  font-size: 9px;
  color: #747474;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stock-comparison strong {
  font-size: 25px;
  line-height: 1;
}
.comparison-mark {
  color: #464646 !important;
  font-size: 16px !important;
}
.difference-note {
  display: block;
  margin-top: 10px;
  color: #ff8559;
  font-size: 11px;
  font-weight: 700;
}
.pool-note {
  margin: 10px 0 0;
  color: #6f6f6f;
  font-size: 10px;
}
.variant-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #252525;
}
.variant-list div {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 10px;
}
.variant-list b {
  color: #bbb;
}
.variant-list i {
  font-style: normal;
  color: #4d4d4d;
}
.empty-results {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  margin-bottom: 50px;
  border: 1px dashed #303030;
  border-radius: var(--radius);
  color: #777;
}
.empty-results[hidden] {
  display: none;
}
.empty-results strong {
  color: #ccc;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  transform: translateY(24px);
  opacity: 0;
  padding: 13px 16px;
  border: 1px solid rgba(69, 200, 120, 0.25);
  border-radius: 11px;
  background: #142018;
  color: #b9efcd;
  font-size: 12px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
  pointer-events: none;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast.error {
  border-color: rgba(255, 113, 95, 0.25);
  background: #241513;
  color: #ffc0b7;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .toolbar {
    grid-template-columns: 1fr auto;
  }
  .filters {
    grid-row: 2;
    grid-column: 1/-1;
    overflow: auto;
  }
  .refresh-button {
    grid-column: 2;
    grid-row: 1;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .header-inner,
  .page-shell {
    width: min(100% - 28px, 1440px);
  }
  .header-inner {
    height: 66px;
  }
  .logo {
    width: 142px;
  }
  .header-status small {
    display: none;
  }
  .intro {
    display: grid;
    padding: 34px 0 22px;
    gap: 22px;
  }
  .system-total {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
    padding: 17px;
  }
  .system-total div {
    min-width: 0;
  }
  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }
  .search-box {
    grid-column: 1;
    height: 42px;
  }
  .refresh-button {
    grid-column: 2;
    grid-row: 1;
    height: 42px;
  }
  .filters {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    padding: 1px 0 0;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .results-line {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }
  .header-status strong {
    font-size: 11px;
  }
  .system-total > span {
    font-size: 16px;
  }
  .system-total strong {
    font-size: 24px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .summary-grid article {
    padding: 15px;
  }
  .summary-grid strong {
    font-size: 26px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-copy h2 {
    height: auto;
    min-height: 22px;
  }
  .filters {
    margin-right: -8px;
    padding-right: 8px;
  }
  .toolbar {
    margin-inline: -2px;
  }
  .refresh-button {
    padding-inline: 12px;
  }
  .results-line p:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
