:root {
  --bg: #0b0505;
  --bg-soft: #1a0907;
  --panel: #1f0d09;
  --panel-2: #2a130e;
  --line: #4f2318;
  --line-strong: #f97316;
  --line-strong-2: #dc2626;
  --text: #fff9f7;
  --muted: #d1b8ae;
  --accent: #ff8a2a;
  --accent-2: #ff4d33;
  --good: #86efac;
  --shadow: #00000080;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% -20%, #f9731640 0, transparent 46%),
    radial-gradient(circle at 90% 110%, #dc262638 0, transparent 45%),
    linear-gradient(180deg, #130707, #080304);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(75px);
  opacity: .35;
  animation: float 8s ease-in-out infinite;
}

.glow-1 {
  width: 440px;
  height: 440px;
  left: -140px;
  top: -130px;
  background: #f97316;
}

.glow-2 {
  width: 500px;
  height: 500px;
  right: -180px;
  bottom: -180px;
  background: #dc2626;
  animation-delay: -3s;
}

.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  border-bottom: 1px solid #f9731628;
  background: #0f0505cc;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  color: white;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
}

.flame {
  display: inline-flex;
  animation: pulse 1.6s ease-in-out infinite;
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: #f6d8cf;
  border: 1px solid #ffffff20;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: .86rem;
  transition: all .2s ease;
}

.nav-link:hover {
  border-color: #f97316;
  color: white;
}

.nav-link--cta {
  border-color: #f9731680;
  background: linear-gradient(120deg, #f97316, #dc2626);
  color: white;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 82px 16px 18px;
}

.panel {
  border: 1px solid #ffffff15;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #2a120d, #1c0b08);
  box-shadow:
    inset 0 0 0 1px #f973161f,
    0 18px 34px var(--shadow);
}

.hero {
  padding: 18px;
  animation: reveal .45s ease both;
}

.hero-badge {
  display: inline-block;
  border: 1px solid #ef444433;
  background: #ef444414;
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffa17d;
  font-weight: 800;
  font-size: .82rem;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 4vw, 2.8rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #fecaca, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

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

.ip-card {
  border: 1px solid #f9731640;
  border-radius: 12px;
  background: linear-gradient(130deg, #f9731614, #dc26261a);
  color: white;
  text-align: left;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ip-card:hover {
  transform: translateY(-2px);
  border-color: #f97316;
  box-shadow: 0 10px 18px #f9731630;
}

.ip-label {
  color: #d9b3a6;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.ip-value {
  font-size: 1.02rem;
}

.ip-action {
  color: #ffd3b5;
  font-size: .82rem;
  font-weight: 700;
}

.copy-feedback {
  margin-top: 10px;
  color: #fdba74;
  font-weight: 700;
  animation: reveal .2s ease;
}

.stats-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
  color: #ffba7c;
}

.stat-card span {
  color: var(--muted);
  font-size: .82rem;
}

.controls {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  animation: reveal .5s .05s ease both;
}

.control {
  display: grid;
  gap: 6px;
}

.control span,
.category-wrap > span,
.price-label {
  color: var(--muted);
  font-size: .84rem;
}

input[type="search"],
input[type="number"],
select {
  width: 100%;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: #140807;
  color: white;
  padding: 10px 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px #f9731626;
}

.category-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

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

.category-btn {
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background: #ffffff0c;
  color: #fcece7;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
  transition: transform .15s ease, border-color .18s ease, background .18s ease;
}

.category-btn:hover {
  transform: translateY(-1px);
  border-color: #f97316;
}

.category-btn.active {
  background: linear-gradient(120deg, #f97316, #dc2626);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px #f9731638;
}

.item-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  border: 1px solid #ffffff17;
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(180deg, #2d120d, #1d0a08),
    repeating-linear-gradient(to right, #ffffff07 0, #ffffff07 1px, transparent 1px, transparent 8px);
  box-shadow: 0 10px 20px #00000057;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation: rise .33s ease both;
  animation-delay: var(--delay, 0ms);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: #f97316;
  box-shadow: 0 14px 26px #0000008a;
}

.card h3 {
  margin: 0;
  padding-right: 40px;
  font-size: 1rem;
}

.item-icon-chip {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #ffffff3b;
  background: #0000003d;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px #00000055;
}

.item-icon {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

.material {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
}

.card-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 900;
  font-size: 1.17rem;
  color: #ffb67a;
}

.price-old {
  display: block;
  color: #eecdc2;
  opacity: .8;
  text-decoration: line-through;
  font-size: .8rem;
}

.badge {
  border: 1px solid #ef444474;
  background: #ef444423;
  color: #ffb3a4;
  border-radius: 8px;
  font-size: .73rem;
  font-weight: 800;
  padding: 4px 7px;
  white-space: nowrap;
}

.empty {
  margin: 14px 0;
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #00000090;
  display: grid;
  place-items: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid #ffffff26;
  border-radius: 16px;
  background: linear-gradient(180deg, #2b120d, #1b0907);
  box-shadow: 0 18px 36px #000000a3;
  padding: 16px;
  position: relative;
  animation: reveal .2s ease both;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid #ef444454;
  border-radius: 8px;
  background: #ef444420;
  color: #ffd4ce;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  border-color: #ef4444;
}

.modal-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}

#modalName {
  margin: 7px 0 3px;
}

.modal-meta {
  margin: 0;
  color: var(--muted);
}

.price-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.price-main {
  font-size: 1.55rem;
  color: #ffb67a;
}

.old-price-wrap {
  text-align: right;
}

.old-price {
  opacity: .8;
  text-decoration: line-through;
}

.qty-section {
  margin-top: 14px;
}

.qty-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
}

.qty-controls button {
  border: 1px solid #f9731685;
  border-radius: 9px;
  background: linear-gradient(130deg, #f97316, #dc2626);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease;
}

.qty-controls button:hover {
  filter: brightness(1.05);
}

input[type="range"] {
  margin-top: 10px;
  width: 100%;
  accent-color: #f97316;
}

.total-box {
  margin-top: 14px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  background: #ffffff0a;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-box strong {
  color: #ffb67a;
  font-size: 1.22rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 850px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .ip-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: space-between;
  }

  .page {
    padding-top: 122px;
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
