:root {
  --bg: #f7f3eb;
  --panel: #fffdfa;
  --line: rgba(24, 21, 17, 0.1);
  --text: #171411;
  --muted: #6f665d;
  --top: #f0d58b;
  --considering: #d8e2cf;
  --purchased: #d5d3dc;
  --shadow: 0 18px 45px rgba(40, 31, 22, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 213, 139, 0.18), transparent 24%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 100%);
  font-family: "IBM Plex Sans", sans-serif;
}

.page-header,
.summary-pill,
.tier-row {
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 28px;
}

.eyebrow,
.modal-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.page-header h1,
.tier-label h2,
.gun-card h3,
.summary-value {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.lead-copy {
  max-width: 38rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.summary-pill {
  padding: 1rem 1.1rem;
  border-radius: 20px;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}

.summary-value {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.summary-value-wide {
  font-size: 1rem;
}

.tier-list {
  display: grid;
  gap: 1rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
}

.tier-label {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 22px;
}

.tier-label-top {
  background: linear-gradient(180deg, rgba(240, 213, 139, 0.9), rgba(240, 213, 139, 0.58));
}

.tier-label-considering {
  background: linear-gradient(180deg, rgba(216, 226, 207, 0.92), rgba(216, 226, 207, 0.56));
}

.tier-label-purchased {
  background: linear-gradient(180deg, rgba(213, 211, 220, 0.92), rgba(213, 211, 220, 0.56));
}

.tier-kicker {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 20, 17, 0.9);
  color: #fffdfa;
  font-weight: 700;
}

.tier-label h2 {
  margin: 0;
  font-size: 1.45rem;
}

.tier-label p {
  margin: 0.35rem 0 0;
  color: rgba(23, 20, 17, 0.72);
}

.tier-cards {
  min-height: 13rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gun-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(40, 31, 22, 0.06);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gun-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(40, 31, 22, 0.1);
}

.gun-card:active {
  cursor: grabbing;
}

.gun-image,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #ece5d9, #f8f4ed);
  border-bottom: 1px solid var(--line);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.gun-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.maker-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.gun-card h3 {
  font-size: 1.18rem;
  margin: 0;
}

.gun-variant,
.gun-notes {
  color: var(--muted);
  font-size: 0.93rem;
}

.gun-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #171411;
  color: #fffdfa;
  font-size: 0.85rem;
  font-weight: 600;
}

.gun-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.ghost-card {
  border: 2px dashed rgba(23, 20, 17, 0.24);
  background: rgba(255, 253, 250, 0.5);
  box-shadow: none;
}

.form-control,
.form-select,
.modal-content {
  border-radius: 18px;
}

.modal-content {
  border: 1px solid var(--line);
  background: #fffaf4;
}

@media (max-width: 991.98px) {
  .page-header,
  .tier-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: start;
  }

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

@media (max-width: 767.98px) {
  .summary-row,
  .tier-cards {
    grid-template-columns: 1fr;
  }

  .page-header,
  .tier-row {
    border-radius: 22px;
  }
}
