:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: #111217;
  --panel-2: #191b22;
  --line: #343741;
  --text: #ffffff;
  --muted: #c8cbd2;
  --accent: #e30613;
  --accent-hot: #ff2638;
  --accent-deep: #7d0710;
  --white-soft: #f7f8fb;
  --green: var(--accent);
  --cyan: #ffffff;
  --coral: #ff5a63;
  --gold: #ffc845;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(180deg, #08090c 0%, #0d0f14 55%, #07080b 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(227, 6, 19, 0.18));
}

.brand strong {
  color: var(--white-soft);
  text-shadow: 0 0 18px rgba(227, 6, 19, 0.28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

.tooltip-target {
  position: relative;
}

.tooltip-target::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 30;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(5, 9, 12, 0.96);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.tooltip-target:hover::after,
.tooltip-target:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topbar .tooltip-target::after {
  top: calc(100% + 0.55rem);
  bottom: auto;
  transform: translate(-50%, -0.25rem);
}

.topbar .tooltip-target:hover::after,
.topbar .tooltip-target:focus-visible::after {
  transform: translate(-50%, 0);
}

.icon-button,
.filter-chip,
.segment,
.primary-action,
.search-row button {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.icon-button {
  padding: 0 0.9rem;
  border-color: rgba(227, 6, 19, 0.72);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.28), rgba(125, 7, 16, 0.2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px rgba(227, 6, 19, 0.18);
}

.icon-button[aria-disabled="true"] {
  cursor: help;
}

.app-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(320px, 1fr);
  gap: clamp(0.85rem, 3vw, 1.6rem);
  padding: clamp(1rem, 3vw, 2rem) 0 0.75rem;
  align-items: stretch;
}

.hero-copy h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(2.7rem, 6.7vw, 5.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 36px rgba(227, 6, 19, 0.36);
}

.hero-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link {
  background: var(--accent);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-hot);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel,
.spotlight-card,
.assistant-panel,
.draft-panel,
.feature-grid article,
.status-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 24, 31, 0.94), rgba(10, 11, 15, 0.9));
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 0.75rem;
  padding: clamp(0.8rem, 2vw, 1rem);
  min-width: 0;
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 45px rgba(227, 6, 19, 0.16);
}

.quick-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.quick-action-row a {
  display: grid;
  min-height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.quick-action-row a:hover,
.quick-action-row a:focus-visible {
  border-color: rgba(227, 6, 19, 0.82);
  background: rgba(227, 6, 19, 0.2);
  color: #fff;
}

.first-look {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 0 1rem;
}

.mini-deal,
.mini-sell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 27, 34, 0.96), rgba(12, 13, 18, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.mini-deal:hover,
.mini-sell:hover {
  border-color: rgba(227, 6, 19, 0.64);
  transform: translateY(-1px);
}

.mini-deal {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
}

.mini-deal img {
  width: 100%;
  height: 100%;
  min-height: 6rem;
  object-fit: cover;
}

.mini-deal div,
.mini-sell {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
}

.mini-deal span,
.mini-sell span {
  color: var(--accent-hot);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-deal strong,
.mini-sell strong {
  overflow-wrap: anywhere;
}

.mini-deal em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.mini-sell a {
  width: fit-content;
  margin-top: 0.25rem;
  color: var(--accent-hot);
  font-size: 0.88rem;
  font-weight: 900;
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 0 1.25rem;
}

.activity-strip div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.16), rgba(255, 255, 255, 0.045));
}

.activity-strip strong,
.activity-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.activity-strip strong {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.activity-strip span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.search-label,
.assistant-panel label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.search-row input,
.assistant-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
}

.search-row input {
  min-height: 3.2rem;
  padding: 0 1rem;
}

.search-row button,
.primary-action {
  padding: 0 1rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(227, 6, 19, 0.28);
}

.search-row button:hover,
.primary-action:hover,
.primary-action:focus-visible {
  background: linear-gradient(180deg, #ff4050, #e30613);
  box-shadow: 0 16px 36px rgba(227, 6, 19, 0.36);
}

.primary-action:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.filter-chip,
.segment,
.category-chip {
  padding: 0 0.85rem;
  color: var(--muted);
}

.filter-chip.active,
.segment.active,
.category-chip.active {
  border-color: rgba(227, 6, 19, 0.86);
  background: rgba(227, 6, 19, 0.2);
  color: var(--text);
}

.category-panel {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-heading output {
  color: var(--accent-hot);
  overflow-wrap: anywhere;
  text-align: right;
}

.category-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.8rem, 1fr));
}

.category-chip {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.category-chip.child {
  border-color: rgba(227, 6, 19, 0.34);
  background: rgba(227, 6, 19, 0.1);
}

.category-icon-button {
  display: grid;
  min-height: 5.35rem;
  min-width: 0;
  place-items: center;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03));
  color: var(--text);
  overflow: visible;
}

.category-icon-button:hover,
.category-icon-button:focus-visible {
  border-color: rgba(227, 6, 19, 0.7);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.22), rgba(255, 255, 255, 0.055));
}

.category-icon-button img {
  width: clamp(2.55rem, 6vw, 3.25rem);
  height: clamp(2.55rem, 6vw, 3.25rem);
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.category-icon-button span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.category-icon-button.active {
  border-color: rgba(227, 6, 19, 0.9);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.32), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 30px rgba(227, 6, 19, 0.18);
}

.category-icon-button.active span {
  color: var(--text);
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.hero-stats div {
  display: grid;
  min-height: clamp(5rem, 12vw, 6.4rem);
  align-content: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  overflow-wrap: anywhere;
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.toolbar {
  padding: 1rem 0;
}

.toolbar h2,
.section-heading h2,
.split-section h2,
.policy-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.listing-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.98));
  min-width: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.listing-card:hover {
  border-color: rgba(227, 6, 19, 0.62);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36), 0 0 34px rgba(227, 6, 19, 0.13);
  transform: translateY(-2px);
}

.listing-media {
  position: relative;
}

.listing-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
  filter: saturate(1.08) contrast(1.02);
}

.listing-badge,
.watch-button {
  position: absolute;
  z-index: 2;
  min-height: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.82);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.listing-badge {
  top: 0.55rem;
  left: 0.55rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
}

.listing-badge {
  border-color: rgba(227, 6, 19, 0.5);
  background: rgba(227, 6, 19, 0.78);
  color: #fff;
}

.watch-button {
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0 0.65rem;
}

.listing-body {
  padding: 0.9rem;
}

.listing-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.listing-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.price {
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(227, 6, 19, 0.32);
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.secondary-action,
.primary-card-action {
  min-height: 2.35rem;
  border-radius: 8px;
  font-weight: 900;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.primary-card-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px rgba(227, 6, 19, 0.24);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.primary-card-action:hover,
.primary-card-action:focus-visible {
  background: linear-gradient(180deg, #ff4050, #e30613);
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.seller-avatar {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.2);
  color: #fff;
  font-size: 0.7rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(227, 6, 19, 0.36);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.14);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.split-section p,
.policy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.auction-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.auction-timeline span {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 200, 69, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 200, 69, 0.18), rgba(227, 6, 19, 0.08));
  color: #fff2bd;
  font-size: 0.9rem;
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-card div {
  padding: 1rem;
}

.spotlight-card h3,
.draft-panel h3,
.feature-grid h3 {
  margin: 0.65rem 0 0.35rem;
}

.spotlight-card .primary-action {
  width: 100%;
  margin-top: 1rem;
}

.seller-workbench,
.trust-section,
.status-section {
  padding: 3rem 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.status-grid article {
  padding: 1rem;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.13);
}

.status-grid h3 {
  margin: 0.65rem 0 0.35rem;
}

.status-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.assistant-panel,
.draft-panel {
  padding: 1rem;
}

.assistant-panel textarea {
  min-height: 11rem;
  padding: 0.9rem;
  resize: vertical;
}

.assistant-panel .primary-action {
  width: 100%;
  margin-top: 0.8rem;
}

.draft-panel p,
.draft-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-grid article {
  padding: 1rem;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.13);
}

.feature-grid article:hover,
.status-grid article:hover,
.draft-panel:hover,
.assistant-panel:hover,
.spotlight-card:hover {
  border-color: rgba(227, 6, 19, 0.46);
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.policy-copy {
  display: grid;
  gap: 0.85rem;
}

.policy-copy p {
  margin: 0;
}

.site-footer {
  padding: 2rem 0 5.25rem;
  color: #aeb2bb;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.copyright-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.copyright-trigger:hover,
.copyright-trigger:focus-visible {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.78);
  backdrop-filter: blur(10px);
}

.video-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #05090c;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  background: #000;
}

.video-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 9, 12, 0.82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-close:hover,
.video-close:focus-visible {
  background: rgba(223, 15, 31, 0.95);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.15rem;
  z-index: 40;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .split-section,
  .workbench-grid,
  .policy-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: 4.6rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
  }

  .icon-button {
    display: none;
  }

  .app-section {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 0.85rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 14vw, 4.3rem);
  }

  .hero-stats,
  .feature-grid,
  .status-grid,
  .listing-grid,
  .activity-strip,
  .first-look {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .quick-action-row {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .mobile-nav {
    position: fixed;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    padding: 0.35rem;
    border: 1px solid rgba(227, 6, 19, 0.34);
    border-radius: 8px;
    background: rgba(8, 9, 12, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 24px rgba(227, 6, 19, 0.12);
  }

  .mobile-nav a {
    display: grid;
    min-height: 3rem;
    place-items: center;
    align-content: center;
    gap: 0.15rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
  }

  .mobile-nav span {
    line-height: 1;
  }

  .mobile-nav a:focus-visible,
  .mobile-nav a:hover {
    background: rgba(227, 6, 19, 0.22);
    color: var(--text);
  }
}
