:root {
  color-scheme: dark;
  --bg: #101312;
  --bg-soft: #151917;
  --panel: #1d221f;
  --panel-2: #252a27;
  --line: #3b453f;
  --text: #f4f7f2;
  --muted: #b8c0b8;
  --subtle: #818a83;
  --green: #16c784;
  --green-2: #8ff5c7;
  --green-soft: #d9fff0;
  --amber: #f5a524;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% -10%, rgba(22, 199, 132, 0.16), transparent 34rem),
    linear-gradient(180deg, #111513 0%, var(--bg) 44rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 14px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand span {
  color: var(--text);
}

.green,
.stats small {
  color: var(--green);
}

.updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.updated::before {
  content: "↻";
  margin-right: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: end;
  gap: 26px;
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-panel {
  border: 1px solid rgba(143, 245, 199, 0.28);
  border-radius: 8px;
  background: rgba(29, 34, 31, 0.72);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--green-2);
  font-size: 24px;
  line-height: 1.1;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}

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

.tab,
.alert-signup button,
.actions a,
.code-button {
  border: 1px solid #56625a;
  background: transparent;
  color: var(--text);
  min-height: 38px;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.tab {
  padding: 0 17px;
}

.tab.active {
  background: #1b211e;
  border-color: var(--green);
  color: var(--green-2);
}

.tab[data-filter="sale"]::before {
  content: "* ";
  color: var(--green-2);
}

.search {
  position: relative;
  width: min(38%, 330px);
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  width: 14px;
  height: 14px;
  color: transparent;
  border: 2px solid var(--subtle);
  border-radius: 999px;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: var(--subtle);
  transform: rotate(45deg);
}

.search input,
.alert-signup input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #4d5851;
  border-radius: 8px;
  background: #202521;
  color: var(--text);
  font-weight: 750;
}

.search input {
  padding: 0 12px 0 36px;
}

.search input::placeholder,
.alert-signup input::placeholder {
  color: #8f9890;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px 0;
}

.stats article {
  background: rgba(29, 34, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  min-height: 88px;
  padding: 14px 16px;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.05;
}

.stats small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 850;
}

.alert-signup {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(27, 32, 29, 0.9);
  border-radius: 8px;
  padding: 10px 14px;
}

.bell {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(22, 199, 132, 0.45);
  border-radius: 999px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
}

.alert-signup strong {
  color: var(--muted);
  font-size: 14px;
}

.alert-signup input {
  padding: 0 13px;
}

.alert-signup button {
  padding: 0 18px;
  background: #202621;
}

.results-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-heading span {
  color: var(--subtle);
}

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

.deal-card {
  position: relative;
  overflow: hidden;
  min-height: 264px;
  padding: 18px 20px 16px 22px;
  border: 1px solid #435047;
  border-radius: 8px;
  background: var(--panel-2);
}

.deal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
}

.deal-card.urgent::before {
  background: var(--amber);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge {
  align-self: start;
  border-radius: 5px;
  background: var(--green-soft);
  color: #047857;
  padding: 4px 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.urgent .badge {
  background: #fff3d7;
  color: #a16207;
}

.headline {
  min-height: 42px;
  margin: 13px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #465148;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.price-list {
  margin: 0;
}

.price-list div,
.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 23px;
}

.price-list dt,
.promo-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.price-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.was {
  color: var(--muted);
  text-decoration: line-through;
}

.promo-row {
  margin-top: 9px;
}

.code-button {
  min-width: 96px;
  min-height: 36px;
  padding: 0 12px;
  background: #303730;
  border-radius: 8px;
  font-size: 12px;
}

.code-button span {
  margin-left: 6px;
  color: inherit;
}

.timer {
  min-height: 28px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timer::before {
  content: "o";
  margin-right: 6px;
  color: var(--green);
}

.timer.hot {
  color: var(--amber);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 95px;
  gap: 8px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.actions .primary {
  background: #303730;
}

.actions a:hover,
.tab:hover,
.alert-signup button:hover,
.code-button:hover {
  border-color: var(--green);
}

.empty {
  grid-column: 1 / -1;
  border: 1px solid #435047;
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 760px) {
  .shell {
    padding-inline: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .tab {
    flex: 1 1 auto;
    padding: 0 12px;
  }

  .search {
    width: 100%;
    min-width: 0;
  }

  .stats,
  .deal-grid {
    grid-template-columns: 1fr;
  }

  .alert-signup {
    grid-template-columns: auto 1fr;
  }

  .alert-signup input,
  .alert-signup button {
    grid-column: 1 / -1;
  }
}

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

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats article {
    padding-inline: 12px;
  }
}
