:root {
  --bg: #10141c;
  --card: #1a2130;
  --ink: #f4f7fb;
  --muted: #93a0b5;
  --line: #2a3346;
  --green: #26c281;
  --green-deep: #1aa368;
  --gold: #ffcc66;
  --red: #ff6b6b;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, #1c3a2c 0, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

button, input, select { font-family: inherit; }

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #3be39a, #1aa368);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
}

.brand strong { display: block; font-size: 1.15rem; }
.brand small { color: var(--muted); }

.search-card, .stats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input, select {
  width: 100%;
  border: 0;
  background: #10151f;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.primary, .ghost {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  background: var(--green);
  color: #062415;
}

.primary:hover { background: var(--green-deep); color: #fff; }

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.muted { color: var(--muted); font-size: 0.92rem; }

.chips, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip, .like {
  border: 1px solid var(--line);
  background: #121826;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.chip.on {
  background: var(--green);
  color: #062415;
  border-color: transparent;
}

.filters {
  margin: 16px 0;
  align-items: end;
}

.filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 180px;
}

.stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stat b { display: block; font-size: 1.2rem; }

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #0d121b;
}

.body { padding: 14px; display: grid; gap: 8px; flex: 1; }

.badge {
  display: inline-flex;
  width: fit-content;
  background: #ffcc66;
  color: #3a2a00;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 4px 8px;
}

.price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.now { font-size: 1.25rem; font-weight: 800; }
.old { color: var(--muted); text-decoration: line-through; }
.why { color: #c7f3dd; font-size: 0.9rem; }
.src { color: var(--muted); font-size: 0.8rem; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.like.on { background: #2a1d12; border-color: var(--gold); color: var(--gold); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--muted); }

.skeleton {
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(90deg, #1a2130, #243044, #1a2130);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}

@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 640px) {
  .search, .top { display: grid; }
  .filters label { min-width: 100%; }
}
