:root {
  --bg: #0f1117;
  --surface: #161b22;
  --card: #1c2330;
  --card-strong: #222b3a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #f5f7fa;
  --muted: #aab2c0;
  --soft: #dbe3ef;
  --line: rgba(170, 178, 192, 0.14);
  --line-strong: rgba(170, 178, 192, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section-pad {
  padding: 96px 0;
}

.section-tight {
  padding-top: 24px;
}

.alt-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.page-main {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  /*background: var(--accent);*/
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.78);
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--card);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.ghost-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(245, 247, 250, 0.36);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero.section-pad {
  padding: 40px 0 28px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 80px 0 auto 0;
  height: 1px;
  background: var(--line);
}

.hero::after {
  width: 44%;
  height: 66%;
  right: 0;
  top: 12%;
  background: #111827;
  opacity: 0.38;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.product-info h1,
.auth-side h1 {
  margin: 0;
  color: var(--text);
  font-size: 64px;
  line-height: 1.02;
}

.hero h1 {
  font-size: 58px;
}

.hero-copy p,
.page-hero p,
.product-subtitle,
.auth-side p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: flex;
  gap: 26px;
  margin-top: 42px;
}

.hero-metrics div {
  min-width: 86px;
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 465px;
}

.dashboard-preview {
  position: relative;
  width: min(100%, 690px);
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: floatPreview 7s ease-in-out infinite;
}

.preview-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.preview-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.preview-search span,
.search-control span {
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.preview-search span::after,
.search-control span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: var(--muted);
  transform: rotate(45deg);
  border-radius: 999px;
}

.preview-search p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.preview-topbar button,
.media-thumbs button,
.sort-btn,
.filter-chip,
.pagination a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.preview-topbar button {
  height: 46px;
  padding: 0 14px;
}

.preview-topbar button:hover,
.media-thumbs button:hover,
.sort-btn:hover,
.filter-chip:hover,
.pagination a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.preview-layout {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  min-height: 360px;
}

.preview-layout aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.preview-layout aside span {
  display: block;
  height: 38px;
  border-radius: 8px;
  background: var(--card);
}

.preview-layout aside .active-line {
  background: var(--accent);
}

.preview-content {
  display: grid;
  gap: 16px;
}

.preview-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.preview-stat-row div,
.preview-card-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.preview-stat-row div {
  padding: 18px;
}

.preview-stat-row small,
.floating-card span,
.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.preview-stat-row strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.preview-card-list {
  display: grid;
  gap: 12px;
}

.preview-card-list article,
.resource-list article,
.message-list article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.preview-card-list strong,
.resource-list strong,
.message-list strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.preview-card-list span,
.resource-list span,
.message-list span,
.purchase-stack span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.mini-cover {
  width: 42px;
  height: 54px;
  border-radius: 6px;
  border: 1px solid rgba(245, 247, 250, 0.12);
  flex: 0 0 auto;
}

.mini-cover.blue,
.cover-blue {
  background: #1f4ca6;
}

.mini-cover.slate,
.cover-slate {
  background: #334155;
}

.mini-cover.green,
.cover-green {
  background: #1f6f55;
}

.cover-navy {
  background: #172554;
}

.cover-ink {
  background: #111827;
}

.cover-steel {
  background: #253241;
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 230px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.floating-card strong {
  display: block;
  margin: 6px 0;
  color: var(--text);
  font-size: 16px;
}

.floating-card-top {
  top: 26px;
  left: 0;
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card-bottom {
  right: 28px;
  bottom: 22px;
  animation: floatCard 6.6s ease-in-out infinite reverse;
}

.loading-line {
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--accent);
  animation: loadingLine 1.6s ease-in-out infinite;
  transform-origin: left;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.dashboard-heading h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.market-strip,
.feature-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-height: 420px;
}

.listing-card,
.feature-card,
.testimonial-card,
.step-card,
.analytics-card,
.dashboard-panel,
.content-panel,
.seller-panel,
.preview-panel,
.upload-form,
.page-hero-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.step-card:hover,
.analytics-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.listing-card {
  overflow: hidden;
}

.listing-card.hidden {
  display: none;
}

.listing-cover-link {
  display: block;
}

.book-cover {
  position: relative;
  min-height: 258px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.book-cover::before,
.book-cover::after {
  content: "";
  position: absolute;
  background: rgba(245, 247, 250, 0.12);
  border-radius: 999px;
}

.book-cover::before {
  width: 150px;
  height: 150px;
  right: -54px;
  top: -44px;
}

.book-cover::after {
  width: 88px;
  height: 88px;
  left: -24px;
  bottom: -22px;
}

.book-cover span,
.book-cover strong,
.book-cover small {
  position: relative;
  z-index: 1;
}

.book-cover span {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.45);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.book-cover strong {
  max-width: 12ch;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
}

.book-cover small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.compact .book-cover {
  min-height: 190px;
}

.listing-body,
.feature-card,
.testimonial-card,
.content-panel,
.seller-panel,
.preview-panel,
.upload-form {
  padding: 22px;
}

.listing-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.listing-body h2,
.listing-body h3,
.feature-card h3,
.step-card h3,
.content-panel h2,
.seller-panel h2,
.panel-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.listing-body h2 a:hover,
.listing-body h3 a:hover {
  color: var(--soft);
}

.listing-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.listing-meta strong {
  font-size: 20px;
}

.listing-meta span {
  color: var(--muted);
  font-size: 13px;
}

.listing-seller {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.feature-card {
  min-height: 230px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 800;
}

.feature-card p,
.step-card p,
.testimonial-card p,
.content-panel p,
.seller-panel span,
.quality-list span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
}

.step-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.step-card p {
  margin: 8px 0 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-grid a {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--soft);
  font-weight: 740;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--card);
}

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

.testimonial-card p {
  margin: 0;
  font-size: 18px;
}

.testimonial-card div {
  margin-top: 26px;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.6fr;
  gap: 40px;
}

.footer-grid p {
  max-width: 360px;
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-grid a:not(.brand),
.footer-bottom a {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.page-hero {
  padding: 84px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: end;
}

.page-hero h1 {
  max-width: 860px;
  font-size: 54px;
}

.page-hero-panel {
  padding: 24px;
  background: var(--surface);
}

.page-hero-panel span {
  color: var(--muted);
  font-size: 13px;
}

.page-hero-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 48px;
  line-height: 1;
}

.page-hero-panel p {
  margin-top: 14px;
  font-size: 14px;
}

.market-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 16px;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-control input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(170, 178, 192, 0.72);
}

.sort-group,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-btn,
.filter-chip,
.pagination a {
  min-height: 42px;
  padding: 0 14px;
}

.sort-btn.active,
.filter-chip.active,
.pagination a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.filter-row {
  margin-bottom: 26px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.product-section {
  padding-bottom: 42px;
}

.product-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 68px;
  align-items: start;
}

.product-media {
  position: sticky;
  top: 104px;
}

.product-cover {
  min-height: 620px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-cover strong {
  font-size: 46px;
}

.media-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.media-thumbs button {
  min-height: 42px;
}

.media-thumbs button.active {
  background: var(--card-strong);
  color: var(--text);
}

.product-info {
  padding-top: 32px;
}

.product-info h1 {
  font-size: 58px;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.price-row strong {
  font-size: 46px;
}

.price-row span {
  color: var(--muted);
}

.access-note {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

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

.detail-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid strong {
  display: block;
  margin-top: 8px;
}

.product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.content-panel {
  background: var(--surface);
}

.seller-panel {
  background: var(--card);
}

.seller-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.avatar.small {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.seller-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.seller-stats strong,
.seller-stats span {
  display: block;
  text-align: center;
}

.dashboard-page {
  background: var(--bg);
}

.dashboard-top {
  display: none;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--card);
  color: var(--text);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.sidebar-card span,
.analytics-card span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-main {
  padding: 38px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.analytics-card {
  padding: 22px;
  background: var(--surface);
}

.analytics-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.analytics-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.dashboard-panel {
  padding: 22px;
  background: var(--surface);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.resource-list,
.purchase-stack,
.message-list,
.saved-list {
  display: grid;
  gap: 10px;
}

.resource-list article,
.message-list article,
.purchase-stack article,
.saved-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.resource-list article p {
  margin-left: auto;
  color: var(--text);
  font-weight: 800;
}

.purchase-stack article {
  padding: 16px;
}

.purchase-stack strong {
  display: block;
}

.message-list small {
  margin-left: auto;
  color: var(--muted);
}

.saved-list span {
  padding: 13px 14px;
  color: var(--soft);
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 132px;
  padding-top: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.full {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.listing-type-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.listing-type-control legend {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.listing-type-control label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.listing-type-control input {
  width: 13px;
  min-height: 13px;
  accent-color: var(--accent);
}

.listing-type-control span {
  font-size: 12px;
  line-height: 1.2;
}

.upload-dropzone {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 22px 0 14px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--card-strong);
  transform: translateY(-2px);
}

.upload-dropzone input {
  display: none;
}

.upload-dropzone strong,
.upload-dropzone span {
  display: block;
}

.upload-dropzone span,
.upload-preview span {
  color: var(--muted);
  font-size: 14px;
}

.upload-preview {
  min-height: 46px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-message,
.empty-state {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.form-message[data-type="success"] {
  border-color: rgba(31, 111, 85, 0.58);
  color: #d1fae5;
}

.form-message[data-type="error"] {
  border-color: rgba(220, 38, 38, 0.58);
  color: #fecaca;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}

.cover-image {
  background-size: cover;
  background-position: center;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 180ms ease;
}

.toast[data-type="success"] {
  border-color: rgba(31, 111, 85, 0.64);
}

.toast[data-type="error"] {
  border-color: rgba(220, 38, 38, 0.64);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.loading-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(170, 178, 192, 0.24);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.empty-state span {
  margin-top: 6px;
  color: var(--muted);
}

.listing-card {
  position: relative;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(245, 247, 250, 0.18);
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.72);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.favorite-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 247, 250, 0.34);
}

.favorite-btn.is-saved,
.save-button.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.item-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.item-actions a,
.item-actions button,
.saved-list a {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.item-actions button {
  color: #fecaca;
}

.saved-list a {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.compact-hero {
  padding-top: 64px;
}

.messaging-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.conversation-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px;
  background: var(--surface);
}

.conversation-list {
  display: grid;
  gap: 10px;
}

.conversation-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.conversation-item.active,
.conversation-item:hover {
  border-color: var(--line-strong);
  background: var(--card-strong);
}

.conversation-item strong,
.conversation-item small {
  display: block;
}

.conversation-item small {
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item em {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  margin: 0;
}

.message-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
  max-height: 560px;
  overflow: auto;
  padding: 20px;
}

.message-bubble {
  max-width: min(620px, 82%);
  align-self: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.message-bubble.mine {
  align-self: flex-end;
  background: var(--accent);
  border-color: var(--accent);
}

.message-bubble p {
  margin: 0;
}

.message-bubble span {
  display: block;
  margin-top: 6px;
  color: rgba(245, 247, 250, 0.72);
  font-size: 12px;
}

.message-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.profile-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .messaging-shell {
    grid-template-columns: 1fr;
  }

  .conversation-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-compose {
    grid-template-columns: 1fr;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

.upload-preview ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.preview-panel {
  position: sticky;
  top: 96px;
  background: var(--surface);
}

.quality-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quality-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.quality-list strong,
.quality-list span {
  display: block;
}

.auth-page {
  min-height: 100vh;
  background: var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  min-height: 100vh;
  padding: 46px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.auth-side h1 {
  max-width: 620px;
  font-size: 54px;
}

.auth-proof {
  max-width: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 35, 48, 0.62);
  color: var(--muted);
  backdrop-filter: blur(18px);
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px;
}

.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(28, 35, 48, 0.76);
  border-color: rgba(245, 247, 250, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-heading h2 {
  margin: 0;
  font-size: 32px;
}

.auth-heading p,
.auth-switch {
  margin: 6px 0 0;
  color: var(--muted);
}

.form-row,
.check-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-label {
  justify-content: flex-start;
}

.check-label input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.form-row a,
.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPreview {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes loadingLine {
  0% {
    transform: scaleX(0.28);
    opacity: 0.54;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.28);
    opacity: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 54px;
  }

  .hero-grid,
  .product-grid,
  .split-section {
    gap: 42px;
  }

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

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

@media (max-width: 920px) {
  .section-pad {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-open .nav-menu,
  .nav-open .nav-actions {
    position: fixed;
    left: 20px;
    right: 20px;
    display: flex;
    z-index: 80;
  }

  .nav-open .nav-menu {
    top: 84px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
  }

  .nav-open .nav-menu a {
    justify-content: center;
  }

  .nav-open .nav-actions {
    top: 292px;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .page-hero-grid,
  .product-grid,
  .product-content-grid,
  .upload-layout,
  .auth-shell,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .product-info h1,
  .auth-side h1 {
    font-size: 46px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .floating-card-top {
    left: 18px;
  }

  .product-media,
  .preview-panel {
    position: static;
  }

  .product-cover {
    min-height: 520px;
  }

  .dashboard-top {
    display: block;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 30px 20px 72px;
  }

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

  .auth-side {
    min-height: auto;
    padding: 34px 24px;
  }

  .auth-form-wrap {
    min-height: auto;
    padding: 36px 20px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero h1,
  .page-hero h1,
  .product-info h1,
  .auth-side h1 {
    font-size: 38px;
  }

  .section-heading h2,
  .dashboard-heading h1 {
    font-size: 32px;
  }

  .hero-copy p,
  .page-hero p,
  .product-subtitle,
  .auth-side p {
    font-size: 16px;
  }

  .hero-actions,
  .product-actions,
  .dashboard-heading,
  .market-controls,
  .upload-dropzone,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics,
  .price-row {
    gap: 18px;
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 104px;
  }

  .dashboard-preview {
    padding: 12px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-layout aside {
    display: none;
  }

  .floating-card {
    position: relative;
    width: 100%;
    inset: auto;
    margin-top: 14px;
  }

  .floating-card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
  }

  .market-strip,
  .listing-grid,
  .feature-grid,
  .testimonial-grid,
  .category-grid,
  .analytics-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 56px;
  }

  .market-controls {
    display: flex;
  }

  .product-cover {
    min-height: 440px;
  }

  .product-cover strong {
    font-size: 36px;
  }

  .upload-dropzone {
    display: flex;
  }

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