:root {
  --color-primary: #0f3d2e;
  --color-primary-deep: #072117;
  --color-secondary: #1a1a1a;
  --color-background: #dbe8e1;
  --color-surface: #ecf3ee;
  --color-surface-strong: #f2f7f4;
  --color-accent: #c8a96a;
  --color-accent-deep: #ab8849;
  --color-accent-soft: #dcc38f;
  --text-main: #10211b;
  --text-muted: #3f554c;
  --text-subtle: #566b61;
  --line: rgba(10, 38, 28, 0.2);
  --radius-sm: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 12px 26px rgba(6, 22, 16, 0.12);
  --shadow-md: 0 20px 40px rgba(6, 22, 16, 0.2);
  --shadow-lg: 0 28px 60px rgba(6, 22, 16, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.72;
  background:
    radial-gradient(1000px 620px at 8% -18%, rgba(200, 169, 106, 0.2), transparent 60%),
    radial-gradient(860px 620px at 92% -20%, rgba(15, 61, 46, 0.28), transparent 56%),
    linear-gradient(180deg, #d5e2dc 0%, var(--color-background) 44%, #d1e1d8 100%);
}

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

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-secondary);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  margin-bottom: 0.7rem;
}

h3 {
  font-size: clamp(1.12rem, 2.1vw, 1.32rem);
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

ul {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.section {
  padding: 4.6rem 0;
  position: relative;
}

main > .section:not(.hero):not(.page-hero) {
  background:
    linear-gradient(180deg, rgba(241, 247, 243, 0.55) 0%, rgba(226, 237, 231, 0.78) 100%);
  border-top: 1px solid rgba(15, 61, 46, 0.08);
}

main > .section:nth-of-type(even):not(.hero):not(.page-hero) {
  background:
    linear-gradient(180deg, rgba(216, 229, 222, 0.66) 0%, rgba(224, 236, 229, 0.84) 100%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 5.8rem;
  padding-bottom: 2.7rem;
  border-bottom: 1px solid rgba(200, 169, 106, 0.24);
  background:
    linear-gradient(130deg, rgba(15, 61, 46, 0.97) 0%, rgba(9, 30, 22, 0.98) 46%, rgba(3, 8, 7, 0.98) 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -12% 0 auto;
  height: 260px;
  z-index: -1;
  background: radial-gradient(62% 90% at 50% 0%, rgba(200, 169, 106, 0.24), transparent 72%);
}

.page-hero .eyebrow {
  color: var(--color-accent-soft);
}

.page-hero h1,
.page-hero p {
  color: #e7f0eb;
}

.page-hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-surface {
  border: 1px solid rgba(10, 38, 28, 0.24);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(241, 247, 243, 0.92) 0%, rgba(233, 241, 236, 0.95) 100%);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(200, 169, 106, 0.2);
  background: rgba(6, 19, 15, 0.8);
  backdrop-filter: blur(14px);
  transition: box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.site-header.scrolled {
  border-color: rgba(200, 169, 106, 0.28);
  background: rgba(4, 14, 11, 0.88);
  box-shadow: 0 12px 28px rgba(2, 9, 7, 0.48);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.logo-text {
  color: #ecf3ef;
  font-size: 1.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.menu-toggle {
  width: 2.7rem;
  height: 2.3rem;
  display: none;
  border: 1px solid rgba(200, 169, 106, 0.34);
  border-radius: 10px;
  background: rgba(11, 34, 25, 0.62);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: #e8f2ed;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  position: relative;
  color: rgba(227, 237, 232, 0.86);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 200ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-deep));
  transition: width 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent-soft);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 6.6rem;
  padding-bottom: 3.8rem;
  border-bottom: 1px solid rgba(200, 169, 106, 0.26);
  background:
    linear-gradient(125deg, rgba(15, 61, 46, 0.98) 0%, rgba(10, 32, 23, 0.99) 42%, rgba(2, 8, 6, 1) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2% auto auto -10%;
  width: min(780px, 76vw);
  height: 440px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(200, 169, 106, 0.24), transparent 74%);
  filter: blur(8px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: 580px;
  height: 380px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(27, 81, 60, 0.34), transparent 76%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content p {
  max-width: 58ch;
  color: rgba(225, 236, 230, 0.86);
}

.hero-content h1 {
  color: #f4efe4;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.hero .eyebrow {
  color: var(--color-accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, filter 220ms ease;
}

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

.btn-primary {
  color: #2b2214;
  border-color: rgba(43, 34, 20, 0.16);
  background: linear-gradient(135deg, #c8a96a 0%, #d5ba84 52%, #b58f4e 100%);
  box-shadow: 0 14px 24px rgba(143, 110, 51, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d2b67c 0%, #e0c995 55%, #c39f61 100%);
  box-shadow: 0 18px 34px rgba(143, 110, 51, 0.5);
  filter: saturate(1.05);
}

.btn-outline {
  color: var(--color-primary);
  border-color: rgba(9, 51, 37, 0.5);
  background: rgba(230, 241, 235, 0.72);
}

.btn-outline:hover {
  border-color: rgba(10, 53, 39, 0.66);
  background: rgba(230, 241, 235, 0.9);
}

.hero .btn-outline {
  color: #eaf2ee;
  border-color: rgba(222, 233, 227, 0.46);
  background: rgba(228, 241, 235, 0.08);
}

.hero .btn-outline:hover {
  border-color: rgba(222, 233, 227, 0.68);
  background: rgba(228, 241, 235, 0.18);
}

.text-link {
  color: #134432;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.hero-panel {
  padding: 1.35rem;
  border: 1px solid rgba(200, 169, 106, 0.36);
  border-radius: var(--radius-xl);
  color: #ecf5f0;
  background:
    radial-gradient(180% 120% at 100% 0%, rgba(200, 169, 106, 0.18), transparent 45%),
    linear-gradient(160deg, rgba(13, 48, 36, 0.95), rgba(4, 16, 12, 0.98));
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.34);
}

.hero-panel h2 {
  color: #f5fbf8;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.hero-metrics {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
}

.hero-metrics li {
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(236, 245, 240, 0.2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.hero-metrics strong {
  color: var(--color-accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-metrics span {
  color: rgba(238, 247, 242, 0.82);
  font-size: 0.9rem;
}

.panel-note {
  margin: 0;
  color: rgba(238, 247, 242, 0.76);
  font-size: 0.9rem;
}

.section-head {
  margin-bottom: 1.45rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.1rem;
}

.book-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.book-card {
  border: 1px solid rgba(10, 38, 28, 0.24);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 249, 246, 0.96) 0%, rgba(233, 242, 237, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(8, 25, 18, 0.15);
  transition: transform 230ms ease, box-shadow 230ms ease;
  animation: cardIn 620ms ease both;
  animation-delay: var(--delay, 0ms);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 56px rgba(4, 16, 12, 0.32);
}

.book-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #bed2c7;
}

.book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.book-card:hover .book-image img {
  transform: scale(1.05);
}

.condition-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.badge-new {
  background: rgba(15, 61, 46, 0.92);
  color: #e9f4ef;
}

.badge-second-hand {
  background: rgba(200, 169, 106, 0.94);
  color: #302615;
}

.book-content {
  padding: 0.92rem 0.95rem 1rem;
}

.book-category {
  margin-bottom: 0.28rem;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1.06rem;
}

.book-card h3 a:hover {
  color: var(--color-primary);
}

.book-author {
  margin-bottom: 0.65rem;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.book-price {
  color: var(--color-secondary);
  font-weight: 700;
}

.book-popularity {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.category-grid,
.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card,
.why-card {
  border: 1px solid rgba(10, 38, 28, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(240, 247, 242, 0.94) 0%, rgba(230, 240, 234, 0.96) 100%);
  padding: 1.2rem;
  box-shadow: 0 12px 26px rgba(8, 25, 18, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(6, 20, 15, 0.22);
}

.category-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  background: linear-gradient(135deg, #124332, #081d15);
  box-shadow: 0 10px 20px rgba(6, 24, 17, 0.24);
}

.cta-panel {
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  background:
    radial-gradient(650px 280px at 0% 100%, rgba(200, 169, 106, 0.24), transparent 62%),
    linear-gradient(145deg, rgba(12, 46, 34, 0.97), rgba(5, 18, 13, 0.99));
  box-shadow: 0 28px 52px rgba(3, 10, 8, 0.34);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.cta-panel h2,
.cta-panel p {
  color: #f3f9f6;
}

.cta-panel .btn {
  min-width: 11rem;
  padding-inline: 1.55rem;
}

.marketplace-section {
  padding-top: 1.3rem;
}

.market-toolbar {
  padding: 0.95rem;
  border: 1px solid rgba(10, 38, 28, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(238, 245, 240, 0.95) 0%, rgba(229, 239, 232, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(8, 25, 18, 0.14);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
}

.field-group {
  display: grid;
  gap: 0.34rem;
}

.field-group span {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(10, 52, 38, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(243, 248, 245, 0.98);
  color: var(--text-main);
  font: inherit;
  padding: 0.64rem 0.75rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-deep);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.22);
}

.market-meta {
  margin: 0.95rem 0 1.05rem;
}

.result-count {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.empty-state {
  margin: 1.3rem 0 0;
  border: 1px dashed rgba(10, 52, 38, 0.36);
  border-radius: var(--radius-lg);
  background: rgba(236, 245, 240, 0.8);
  text-align: center;
  padding: 1rem;
}

.detail-section {
  padding-top: 5.6rem;
}

.detail-layout {
  display: grid;
  gap: 1.3rem;
  align-items: start;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.detail-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  position: relative;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-main {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem;
}

.detail-main .eyebrow {
  margin-bottom: 0.5rem;
}

.detail-author {
  margin-bottom: 0.4rem;
  color: var(--text-subtle);
}

.detail-price {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.detail-description {
  margin-bottom: 1rem;
}

.detail-specs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(15, 61, 46, 0.2);
}

.detail-specs span {
  color: var(--text-subtle);
}

.detail-specs strong {
  color: var(--color-secondary);
}

.seller-card {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 52, 38, 0.24);
  background: rgba(15, 61, 46, 0.09);
  padding: 1rem;
}

.seller-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.detail-not-found {
  padding: 1.3rem;
}

.sell-section {
  padding-top: 1.2rem;
}

.sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 1.15rem;
}

.sell-form {
  padding: 1.3rem;
}

.sell-form h2 {
  margin-bottom: 1rem;
}

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

.form-field {
  display: grid;
  gap: 0.34rem;
  margin-bottom: 0.95rem;
}

.form-field span {
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.char-counter {
  color: var(--text-subtle);
  font-size: 0.76rem;
}

.upload-field {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px dashed rgba(10, 52, 38, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(235, 244, 238, 0.8);
  display: grid;
  gap: 0.55rem;
  cursor: pointer;
}

.upload-field span {
  color: var(--text-subtle);
  font-size: 0.88rem;
  font-weight: 600;
}

.image-preview {
  min-height: 180px;
  margin-bottom: 1rem;
  border: 1px dashed rgba(10, 52, 38, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(15, 61, 46, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-preview p {
  margin: 0;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-side {
  padding: 1.3rem;
}

.sell-side ul {
  margin: 0 0 1rem;
  padding-left: 1rem;
}

.sell-side li {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 1200;
  transform: translate(-50%, 140%);
  opacity: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ebf5f0;
  box-shadow: var(--shadow-lg);
  padding: 0.68rem 1.05rem;
  font-size: 0.9rem;
  transition: transform 320ms ease, opacity 320ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 1.2rem;
}

.auth-card {
  padding: 1.2rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.16);
  padding: 0.24rem;
  margin-bottom: 1rem;
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.68rem;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.auth-tab.is-active {
  color: #edf6f2;
  background: var(--color-primary);
  box-shadow: 0 8px 16px rgba(15, 61, 46, 0.28);
}

.auth-form {
  display: none;
  gap: 0.3rem;
}

.auth-form.is-active {
  display: grid;
}

.auth-divider {
  margin: 0.9rem 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-subtle);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 52, 38, 0.22);
}

.btn-google {
  width: 100%;
  color: #163025;
  border-color: rgba(10, 52, 38, 0.3);
  background: linear-gradient(180deg, rgba(244, 248, 246, 0.98) 0%, rgba(232, 240, 235, 0.98) 100%);
  box-shadow: 0 10px 20px rgba(8, 25, 18, 0.12);
}

.btn-google:hover {
  border-color: rgba(10, 52, 38, 0.45);
  background: linear-gradient(180deg, rgba(250, 252, 251, 0.99) 0%, rgba(236, 244, 239, 0.99) 100%);
  box-shadow: 0 14px 24px rgba(8, 25, 18, 0.16);
}

.auth-message {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-message.error {
  color: #8a3327;
}

.auth-copy ul {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.auth-copy li {
  color: var(--text-muted);
}

.auth-copy li::before {
  content: "";
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--color-accent);
  vertical-align: middle;
}

.site-footer {
  margin-top: 3rem;
  color: #dbe8e1;
  background:
    radial-gradient(140% 70% at 50% 0%, rgba(200, 169, 106, 0.12), transparent 52%),
    linear-gradient(180deg, #162721 0%, #0a1410 100%);
}

.footer-layout {
  padding-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo .logo-text {
  color: #f2f8f4;
}

.footer-logo .logo-mark {
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.42));
}

.footer-copy {
  max-width: 44ch;
  color: rgba(223, 234, 228, 0.82);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(223, 234, 228, 0.84);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact {
  align-self: center;
}

.footer-contact a {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-bottom {
  margin-top: 1.3rem;
  padding: 0.95rem 0 1.3rem;
  border-top: 1px solid rgba(219, 232, 225, 0.22);
  color: rgba(223, 234, 228, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.17, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.hidden {
  display: none !important;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 980px) {
  .hero-layout,
  .detail-layout,
  .auth-layout,
  .sell-layout {
    grid-template-columns: 1fr;
  }

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

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1rem;
    right: 1rem;
    border: 1px solid rgba(200, 169, 106, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(8, 27, 20, 0.97);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.7rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 190ms ease, transform 190ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5.8rem;
  }

  .market-toolbar,
  .form-grid,
  .footer-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-layout {
    padding-top: 2rem;
    gap: 1.3rem;
  }

  .detail-main,
  .sell-form,
  .sell-side,
  .auth-card {
    padding: 1.05rem;
  }
}

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