:root {
  --color-primary: #00f0ff;
  --color-background: #ffffff;
  --color-surface: #f4f4f4;
  --color-text: #09090b;
  --color-muted: #71717a;
  --color-accent: #ff007f;
  --color-warning: #dfff00;
  --font-display: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --border-thick: 2px solid #09090b;
  --shadow-hard: 4px 4px 0px #09090b;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, transparent 0 24px, rgba(9, 9, 11, 0.04) 24px 26px, transparent 26px),
    linear-gradient(180deg, transparent 0 24px, rgba(9, 9, 11, 0.04) 24px 26px, transparent 26px),
    var(--color-background);
  background-size: 96px 96px;
}

button,
input,
select {
  font: inherit;
}

.ticker {
  overflow: hidden;
  border-bottom: var(--border-thick);
  background: var(--color-warning);
}

.ticker-track,
.marquee-track {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  animation: marquee 18s linear infinite;
}

.ticker-track {
  padding: 10px 0;
}

.stage {
  min-height: calc(100vh - 42px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border: var(--border-thick);
  box-shadow: 8px 8px 0px #09090b;
}

.app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 12px;
  border-bottom: var(--border-thick);
}

.brand-lockup {
  text-align: center;
  line-height: 1;
}

.brand-lockup strong,
.section-head h1,
.section-head h2,
.detail-title h2,
.seller-poster h2,
.sheet-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-lockup strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-lockup span,
.eyebrow,
.search-label,
.card-topline,
.upload-title,
.detail-grid span,
.price-stack span,
.sheet-summary span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

.pill,
.sell-entry,
.nav-button,
.mini-status,
.category-pill,
.filter-chip,
.upi-option {
  min-height: 40px;
  border: var(--border-thick);
  border-radius: 0;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.location-pill {
  padding: 0 12px;
  font-size: 12px;
}

.sell-entry {
  padding: 0 12px;
  background: var(--color-warning);
}

.screen-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px 16px 96px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}

.screen-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-search,
.deal-card,
.detail-grid article,
.seller-poster,
.seller-steps article,
.ticket-form label,
.upload-zone,
.sheet-card,
.detail-note {
  border: var(--border-thick);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
}

.hero-search {
  padding: 12px;
  background: var(--color-surface);
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 14px;
  border: var(--border-thick);
  background: var(--color-background);
}

.search-icon {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-accent);
}

.search-field input,
.ticket-form input,
.ticket-form select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

.marquee-band,
.warning-tape,
.trust-note {
  margin-top: 14px;
  padding: 10px 0;
  border: var(--border-thick);
  background: var(--color-warning);
  overflow: hidden;
}

.marquee-track {
  padding-left: 12px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.section-head.tight {
  margin-top: 0;
}

.section-head h1,
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mini-status {
  display: grid;
  place-items: center;
  min-width: 72px;
  padding: 0 10px;
  font-size: 12px;
  background: var(--color-primary);
}

.category-pills,
.filter-row,
.upi-options {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 16px;
}

.category-pills::-webkit-scrollbar,
.filter-row::-webkit-scrollbar,
.upi-options::-webkit-scrollbar {
  display: none;
}

.category-pill,
.filter-chip,
.upi-option {
  flex: 0 0 auto;
  padding: 0 14px;
  font-size: 12px;
}

.category-pill.active,
.filter-chip.active,
.upi-option.active,
.nav-button.active {
  background: var(--color-accent);
  color: var(--color-background);
}

.home-feed {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.deal-card {
  background: var(--color-background);
  cursor: pointer;
}

.deal-image {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: var(--border-thick);
  background: #000;
}

.deal-image img,
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
}

.deal-image::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.45), transparent 48%),
    linear-gradient(315deg, rgba(255, 0, 127, 0.4), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.card-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 142px;
}

.card-copy {
  padding: 14px;
  border-right: var(--border-thick);
}

.card-copy h3,
.grid-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.card-copy p,
.grid-card p,
.seller-steps p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-weight: 700;
}

.card-side {
  display: grid;
  grid-template-rows: 1fr auto;
}

.price-block {
  padding: 14px 10px;
  background: var(--color-primary);
  border-bottom: var(--border-thick);
  text-align: center;
}

.price-block span {
  display: block;
  color: rgba(9, 9, 11, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: line-through;
}

.price-block strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.9;
}

.grab-button,
.cta-electric,
.cta-accent {
  min-height: 56px;
  border: none;
  border-top: var(--border-thick);
  background: var(--color-accent);
  color: var(--color-background);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cta-electric {
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-hard);
}

.cta-accent {
  background: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-hard);
}

.full-width {
  width: 100%;
}

.grid-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 16px;
  background: var(--color-text);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
}

.grid-card {
  background: var(--color-background);
  min-height: 198px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.grid-card.muted {
  background: var(--color-surface);
}

.grid-card .time-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.grid-card .grid-price {
  display: inline-block;
  padding: 6px 8px;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  background: var(--color-warning);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
}

.detail-title {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  border: var(--border-thick);
  padding: 12px;
}

.detail-title h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 0.92;
}

.warning-tape {
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 16px;
  background: var(--color-text);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
}

.detail-grid article {
  min-height: 108px;
  padding: 14px;
  background: var(--color-background);
  box-shadow: none;
  border: none;
}

.detail-grid strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.02;
}

.detail-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.sticky-buybar {
  position: sticky;
  bottom: 78px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  margin-top: 16px;
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #09090b;
  background: var(--color-background);
}

.price-stack {
  padding: 12px;
  border-right: var(--border-thick);
}

.price-stack span {
  color: var(--color-muted);
  text-decoration: line-through;
}

.price-stack strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.95;
}

.seller-poster {
  padding: 18px;
  background: var(--color-background);
}

.seller-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.seller-poster h2 {
  margin: 10px 0 0;
  color: var(--color-accent);
  font-size: clamp(34px, 10vw, 46px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.seller-subcopy {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.seller-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.seller-steps article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--color-background);
}

.seller-steps span {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.9;
}

.seller-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}

.trust-note {
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.ticket-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ticket-form label,
.upload-zone {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--color-background);
}

.upload-zone {
  cursor: pointer;
  place-items: center;
  min-height: 116px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 127, 0.12)),
    var(--color-background);
}

.upload-copy {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

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

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: var(--border-thick);
  background: var(--color-surface);
}

.nav-button {
  font-size: 12px;
}

.sheet {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(9, 9, 11, 0.45);
}

.sheet.hidden {
  display: none;
}

.sheet-card {
  width: min(100%, 420px);
  padding: 16px;
  background: var(--color-background);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h3 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 0.95;
}

.close-sheet {
  width: 42px;
  height: 42px;
  border: var(--border-thick);
  background: var(--color-warning);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
}

.sheet-summary {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.sheet-summary strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 24px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .stage {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    min-height: calc(100vh - 42px);
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .detail-grid,
  .grid-feed,
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}
