:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2f7d32;
  --primary-dark: #27662a;
  --border: rgba(203, 213, 225, 0.9);
  --danger: #dc2626;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --water-glow: rgba(59, 130, 246, 0.08);
  --branch: rgba(255, 255, 255, 0);
  --leaf: rgba(59, 130, 246, 0.05);
  --panel-highlight: rgba(255, 255, 255, 0);
  --bg-start: #ffffff;
  --bg-mid: #f8fafc;
  --bg-end: #eef2f7;
  --field-bg: #ffffff;
  --button-bg: #ffffff;
  --button-hover-bg: #f8fafc;
  --detail-key-width: 170px;
  --record-card-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --record-card-border: rgba(203, 213, 225, 0.95);
  --price-color: #0f172a;
  --price-font-size: 14px;
}

@font-face {
  font-family: "Century Burma";
  src: url("/fonts/Century%20Burma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body[data-theme="dark"] {
  --bg: #090805;
  --card: rgba(19, 15, 12, 0.92);
  --text: #efe6d1;
  --muted: #9e8d73;
  --primary: #7db77c;
  --primary-dark: #5e945d;
  --border: rgba(122, 94, 65, 0.34);
  --danger: #f87171;
  --surface: rgba(15, 11, 8, 0.94);
  --surface-soft: #140f0c;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  --water-glow: rgba(142, 100, 47, 0.16);
  --branch: rgba(14, 8, 4, 0.88);
  --leaf: rgba(76, 108, 64, 0.18);
  --panel-highlight: rgba(255, 220, 166, 0.04);
  --bg-start: #3c291c;
  --bg-mid: #24180f;
  --bg-end: #130d08;
  --field-bg: rgba(22, 16, 12, 0.6);
  --button-bg: rgba(30, 21, 15, 0.82);
  --button-hover-bg: rgba(55, 39, 28, 0.92);
  --record-card-bg: linear-gradient(180deg, rgba(52, 35, 24, 0.76) 0%, rgba(27, 18, 13, 0.84) 100%);
  --record-card-border: rgba(122, 94, 65, 0.34);
  --price-color: #f7e2b0;
  --price-font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 14%, var(--water-glow) 0, transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(93, 128, 83, 0.12) 0, transparent 22%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 42%, var(--bg-end) 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 12% 88%, var(--leaf) 0, transparent 16%),
    radial-gradient(circle at 18% 82%, rgba(92, 126, 77, 0.18) 0, transparent 13%),
    radial-gradient(circle at 80% 84%, var(--leaf) 0, transparent 15%),
    radial-gradient(circle at 89% 76%, rgba(118, 146, 93, 0.14) 0, transparent 11%),
    linear-gradient(72deg, transparent 0 11%, var(--branch) 11.5% 12.3%, transparent 12.8% 100%),
    linear-gradient(108deg, transparent 0 82%, var(--branch) 82.3% 83.1%, transparent 83.6% 100%),
    linear-gradient(84deg, transparent 0 19%, rgba(55, 34, 19, 0.5) 19.3% 19.8%, transparent 20.2% 100%);
  opacity: 0.9;
}

body::after {
  inset: auto 0 0 0;
  height: 40vh;
  background:
    radial-gradient(circle at 10% 100%, rgba(88, 121, 69, 0.22) 0, transparent 20%),
    radial-gradient(circle at 22% 100%, rgba(88, 121, 69, 0.18) 0, transparent 18%),
    radial-gradient(circle at 76% 100%, rgba(88, 121, 69, 0.18) 0, transparent 18%),
    radial-gradient(circle at 88% 100%, rgba(88, 121, 69, 0.22) 0, transparent 20%),
    linear-gradient(0deg, rgba(8, 7, 5, 0.66) 0%, rgba(8, 7, 5, 0) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
}

body.home-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.34) 100%),
    radial-gradient(circle at 12% 88%, var(--leaf) 0, transparent 16%),
    radial-gradient(circle at 18% 82%, rgba(92, 126, 77, 0.18) 0, transparent 13%),
    radial-gradient(circle at 80% 84%, var(--leaf) 0, transparent 15%),
    radial-gradient(circle at 89% 76%, rgba(118, 146, 93, 0.14) 0, transparent 11%),
    linear-gradient(72deg, transparent 0 11%, var(--branch) 11.5% 12.3%, transparent 12.8% 100%),
    linear-gradient(108deg, transparent 0 82%, var(--branch) 82.3% 83.1%, transparent 83.6% 100%),
    linear-gradient(84deg, transparent 0 19%, rgba(55, 34, 19, 0.5) 19.3% 19.8%, transparent 20.2% 100%);
}

body.home-page[data-theme="dark"]::before {
  background:
    linear-gradient(180deg, rgba(9, 8, 5, 0.2) 0%, rgba(9, 8, 5, 0.32) 100%),
    radial-gradient(circle at 12% 88%, var(--leaf) 0, transparent 16%),
    radial-gradient(circle at 18% 82%, rgba(92, 126, 77, 0.18) 0, transparent 13%),
    radial-gradient(circle at 80% 84%, var(--leaf) 0, transparent 15%),
    radial-gradient(circle at 89% 76%, rgba(118, 146, 93, 0.14) 0, transparent 11%),
    linear-gradient(72deg, transparent 0 11%, var(--branch) 11.5% 12.3%, transparent 12.8% 100%),
    linear-gradient(108deg, transparent 0 82%, var(--branch) 82.3% 83.1%, transparent 83.6% 100%),
    linear-gradient(84deg, transparent 0 19%, rgba(55, 34, 19, 0.5) 19.3% 19.8%, transparent 20.2% 100%);
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(150, 109, 58, 0.16) 0, transparent 28%),
    linear-gradient(160deg, rgba(30, 20, 14, 0.98) 0%, rgba(14, 10, 7, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.intro-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: logoPulse 2.4s ease-in-out infinite;
}

.page-shell {
  opacity: 0;
  transform: translateY(10px);
}

body.page-ready .page-shell {
  animation: pageReveal 0.55s ease forwards;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 var(--panel-highlight);
  backdrop-filter: blur(10px);
  gap: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

body[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45))
          drop-shadow(0 0 4px rgba(20, 184, 166, 0.35));
}

.layout {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 238, 212, 0.05) 0%, transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(111, 154, 92, 0.1) 0, transparent 18%);
  pointer-events: none;
}

body:not([data-theme="dark"]) .card::before {
  background: none;
}

.form-card {
  grid-column: 1 / -1;
}

.landing-page .form-card:first-child {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.landing-page .form-card:first-child + .form-card {
  position: relative;
  z-index: 1;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(61, 44, 28, 0.12);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: 0 20px 48px rgba(35, 24, 15, 0.1);
}

body.landing-page[data-theme="dark"] .auth-card {
  background: rgba(33, 24, 15, 0.84);
  border-color: rgba(244, 234, 215, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  position: relative;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(95, 66, 38, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle:hover {
  background: transparent;
  color: #8f4f15;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(143, 79, 21, 0.35);
  outline-offset: 2px;
  border-radius: 999px;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.password-toggle.is-active {
  color: #267377;
}

body.landing-page[data-theme="dark"] .password-toggle {
  color: rgba(242, 191, 126, 0.88);
}

body.landing-page[data-theme="dark"] .password-toggle:hover {
  color: #f2bf7e;
}

body.landing-page[data-theme="dark"] .password-toggle.is-active {
  color: #8ecfd3;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

body[data-theme="dark"] .auth-error,
body.landing-page[data-theme="dark"] .auth-error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(87, 24, 24, 0.24);
  color: #ffd9d9;
}

.auth-success {
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(20, 83, 45, 0.16);
  color: #14532d;
}

body[data-theme="dark"] .auth-success,
body.landing-page[data-theme="dark"] .auth-success {
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.28);
  border-color: rgba(74, 222, 128, 0.3);
}

.auth-helper-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-helper-links a {
  color: inherit;
}

.auth-landing-main {
  padding: 44px 0 68px;
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

body.auth-page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-page-login .auth-landing-main {
  flex: 1;
  display: flex;
  align-items: center;
}

body.auth-page-login .auth-shell {
  width: min(560px, calc(100% - 40px));
}

.auth-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px);
  gap: 28px;
  align-items: stretch;
  min-height: 680px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(61, 44, 28, 0.12);
  background:
    radial-gradient(circle at top left, rgba(40, 124, 148, 0.12) 0, transparent 28%),
    radial-gradient(circle at bottom right, rgba(201, 124, 46, 0.16) 0, transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.96) 0%, rgba(244, 234, 216, 0.94) 100%);
  box-shadow: 0 24px 64px rgba(35, 24, 15, 0.12);
}

.auth-hero-panel.auth-hero-panel-single {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 32px;
}

body.landing-page[data-theme="dark"] .auth-hero-panel {
  border-color: rgba(244, 234, 215, 0.12);
  background:
    radial-gradient(circle at top left, rgba(36, 95, 121, 0.24) 0, transparent 28%),
    radial-gradient(circle at bottom right, rgba(139, 84, 31, 0.2) 0, transparent 24%),
    linear-gradient(180deg, rgba(27, 20, 14, 0.96) 0%, rgba(20, 15, 11, 0.96) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.auth-copy-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 12px 18px 8px;
}

.auth-copy-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -48px -38px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 120, 35, 0.22) 0%, rgba(216, 120, 35, 0) 72%);
  pointer-events: none;
}

.auth-copy-panel::after {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(107, 150, 118, 0.14) 0%, rgba(107, 150, 118, 0) 72%);
  pointer-events: none;
}

.auth-copy-stack {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.auth-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 700;
  color: #8f5b2c;
}

body.landing-page[data-theme="dark"] .auth-eyebrow {
  color: #f2bf7e;
}

.auth-hero-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #2d1d11;
}

body.landing-page[data-theme="dark"] .auth-hero-title {
  color: #fff0d9;
}

.auth-hero-lead {
  margin: 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(35, 24, 15, 0.74);
}

body.landing-page[data-theme="dark"] .auth-hero-lead {
  color: rgba(244, 234, 215, 0.78);
}

.auth-feature-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.auth-feature-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(61, 44, 28, 0.1);
  background: rgba(255, 255, 255, 0.46);
}

body.landing-page[data-theme="dark"] .auth-feature-item {
  border-color: rgba(244, 234, 215, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.auth-feature-item strong {
  font-size: 15px;
}

.auth-feature-item span {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(35, 24, 15, 0.68);
}

body.landing-page[data-theme="dark"] .auth-feature-item span {
  color: rgba(244, 234, 215, 0.7);
}

.auth-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-inline-links a {
  color: inherit;
  text-decoration: none;
}

.auth-card-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.auth-card-subcopy {
  margin: 8px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-page-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 18px;
  text-align: center;
}

.auth-page-brand .site-brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.auth-status-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--muted);
  line-height: 1.7;
}

.auth-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-card-shell {
  display: grid;
  gap: 24px;
  justify-items: center;
  margin-bottom: 20px;
}

.profile-simple-card {
  max-width: 620px;
  padding: 28px;
  width: 100%;
  min-width: 0;
}

.profile-simple-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 12px;
}

.profile-simple-brand .site-brand-logo {
  width: 92px;
  height: 92px;
}

.profile-simple-head {
  text-align: center;
  margin-bottom: 20px;
}

.profile-simple-body {
  display: grid;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.profile-simple-fields {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.profile-photo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.profile-upload-controls {
  width: 100%;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-file-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(143, 91, 44, 0.16);
  background: rgba(234, 215, 181, 0.3);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

.profile-file-picker-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(143, 91, 44, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.96), rgba(240, 223, 197, 0.96));
  box-shadow: 0 10px 24px rgba(35, 24, 15, 0.2);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.profile-file-picker-overlay:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.profile-file-picker-overlay svg {
  width: 22px;
  height: 22px;
  fill: #6c4420;
}

.profile-file-name {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(143, 91, 44, 0.2);
  background: rgba(234, 215, 181, 0.22);
  box-shadow: 0 16px 36px rgba(35, 24, 15, 0.12);
}

.profile-photo-large {
  width: 188px;
  height: 188px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-details-grid {
  width: 100%;
  display: grid;
  gap: 14px;
}

.profile-detail-row {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(61, 44, 28, 0.1);
  background: rgba(255, 255, 255, 0.46);
}

.profile-detail-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f5b2c;
}

.profile-detail-value {
  font-size: 18px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-detail-row input,
.profile-detail-row select,
.profile-detail-row textarea {
  max-width: 100%;
  min-width: 0;
}

.profile-actions-row {
  justify-content: flex-end;
}

.profile-actions-spacing {
  margin-top: 8px;
}

.profile-auction-card {
  display: grid;
  gap: 18px;
}

.profile-auth-shell {
  display: grid;
  gap: 24px;
}

.profile-winning-grid {
  width: 100%;
  display: grid;
  gap: 12px;
}

.profile-winning-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.profile-winning-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-winning-link:hover .profile-winning-item,
.profile-winning-link:focus-visible .profile-winning-item {
  transform: translateY(-1px);
  border-color: rgba(216, 120, 35, 0.32);
  box-shadow: 0 14px 28px rgba(35, 24, 15, 0.12);
}

.profile-winning-link:focus-visible {
  outline: none;
}

.profile-winning-thumb {
  width: 88px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: rgba(234, 215, 181, 0.24);
}

.profile-winning-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-winning-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.profile-winning-id {
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.profile-winning-price-row {
  display: grid;
  gap: 4px;
}

.profile-winning-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-winning-price {
  font-size: 18px;
  font-weight: 800;
  color: #8f4f15;
}

.profile-winning-empty {
  text-align: center;
}

body.landing-page[data-theme="dark"] .profile-detail-label {
  color: #f2bf7e;
}

body.landing-page[data-theme="dark"] .profile-winning-link:hover .profile-winning-item,
body.landing-page[data-theme="dark"] .profile-winning-link:focus-visible .profile-winning-item {
  border-color: rgba(242, 191, 126, 0.3);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

body.landing-page[data-theme="dark"] .profile-winning-label {
  color: rgba(244, 234, 215, 0.68);
}

body.landing-page[data-theme="dark"] .profile-winning-price {
  color: #f2bf7e;
}

body.landing-page[data-theme="dark"] .profile-file-picker {
  border-color: rgba(244, 234, 215, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f4ead7;
}

body.landing-page[data-theme="dark"] .profile-file-picker-overlay {
  border-color: rgba(244, 234, 215, 0.18);
  background: linear-gradient(180deg, rgba(54, 42, 31, 0.96), rgba(36, 28, 21, 0.96));
}

body.landing-page[data-theme="dark"] .profile-file-picker-overlay svg {
  fill: #f4ead7;
}

body.landing-page[data-theme="dark"] .profile-detail-row {
  border-color: rgba(244, 234, 215, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.password-rules {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.username-status {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}

.username-status.available {
  color: #166534;
}

.username-status.unavailable {
  color: #991b1b;
}

.public-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-auth-link,
.nav-auth-button,
.nav-auth-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 91, 44, 0.16);
  background: rgba(234, 215, 181, 0.3);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-auth-button {
  font: inherit;
}

.nav-auth-label {
  color: rgba(35, 24, 15, 0.72);
}

body.landing-page[data-theme="dark"] .nav-auth-link,
body.landing-page[data-theme="dark"] .nav-auth-button,
body.landing-page[data-theme="dark"] .nav-auth-label {
  border-color: rgba(244, 234, 215, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f4ead7;
}

h2 {
  margin-top: 0;
}

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

.auth-card .section-head {
  justify-content: center;
  text-align: center;
}

.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-form .actions-row {
  justify-content: flex-end;
}

.detail-top-actions {
  justify-content: flex-end;
}

.detail-header {
  padding-top: 8px;
  padding-bottom: 8px;
  align-items: center;
}

.detail-header .brand-wrap {
  gap: 0;
}

.detail-header .brand-logo {
  width: 44px;
  height: 44px;
  display: block;
}

.detail-page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-end;
}

.detail-back-btn {
  width: fit-content;
  min-height: 42px;
  padding-inline: 18px;
}

.detail-hero-wrap {
  display: grid;
  gap: 18px;
}

.status-badge.detail-status-badge {
  margin-top: 0;
  margin-bottom: 14px;
  border-radius: 0 !important;
  min-width: 88px;
  padding: 6px 12px;
}

.auction-detail-page {
  grid-template-columns: minmax(0, 1fr);
}

.auction-detail-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.auction-detail-stack {
  display: grid;
  gap: 20px;
}

.auction-detail-card {
  width: 100%;
  margin: 0 auto;
}

.auction-hero {
  display: grid;
  gap: 18px;
}

.auction-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.auction-detail-summary-main {
  display: grid;
  gap: 16px;
}

.auction-detail-summary-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.auction-detail-toggle {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(216, 120, 35, 0.24);
  border-radius: 14px;
  background: rgba(255, 247, 235, 0.88);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

body.landing-page[data-theme="dark"] .auction-detail-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 191, 126, 0.18);
}

.auction-detail-body.hidden {
  display: none;
}

.auction-gallery-shell {
  display: grid;
  gap: 14px;
}

.auction-gallery-shell .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auction-gallery-preview {
  overflow: hidden;
  border-radius: 18px;
}

.auction-info-stack {
  display: grid;
  gap: 18px;
}

.auction-info-section {
  display: grid;
  gap: 12px;
}

.auction-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.auction-title-row h2,
.auction-gallery-section h3 {
  margin: 0;
}

.auction-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auction-pill-accent {
  background: rgba(216, 120, 35, 0.12);
}

.auction-subcode {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auction-note {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.auction-description-highlight {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid rgba(216, 120, 35, 0.55);
  border-radius: 14px;
  background: rgba(216, 120, 35, 0.08);
  color: var(--text);
  font-size: 16px;
}

body.landing-page[data-theme="dark"] .auction-description-highlight {
  background: rgba(242, 191, 126, 0.08);
  border-left-color: rgba(242, 191, 126, 0.55);
}

.auction-highlight {
  padding: 18px;
  border: 1px solid rgba(216, 120, 35, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(216, 120, 35, 0.14) 0%, transparent 30%),
    linear-gradient(145deg, rgba(255, 247, 235, 0.98) 0%, rgba(244, 234, 216, 0.92) 50%, rgba(248, 250, 252, 0.98) 100%);
}

.auction-highlight-compact {
  height: 100%;
}

body.landing-page[data-theme="dark"] .auction-highlight {
  border-color: rgba(242, 191, 126, 0.24);
  background:
    radial-gradient(circle at top right, rgba(242, 191, 126, 0.16) 0%, transparent 34%),
    linear-gradient(145deg, rgba(56, 38, 24, 0.98) 0%, rgba(31, 23, 16, 0.94) 54%, rgba(17, 13, 10, 0.98) 100%);
}

.auction-highlight h3 {
  margin: 0;
  font-size: 24px;
}

.auction-highlight p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auction-highlight-subline {
  font-size: 14px;
}

.auction-metrics-grid,
.auction-schedule-grid,
.auction-countdown-grid {
  display: grid;
  gap: 12px;
}

.auction-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.auction-metric-card,
.auction-schedule-card,
.auction-countdown-card,
.auction-countdown-unit {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

body.landing-page[data-theme="dark"] .auction-metric-card,
body.landing-page[data-theme="dark"] .auction-schedule-card,
body.landing-page[data-theme="dark"] .auction-countdown-unit,
body.landing-page[data-theme="dark"] .auction-pill {
  background: rgba(255, 255, 255, 0.04);
}

.auction-metric-card,
.auction-schedule-card,
.auction-countdown-card {
  padding: 16px;
}

.auction-metric-card span,
.auction-schedule-card span,
.auction-countdown-head span,
.auction-countdown-unit span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.auction-metric-card strong,
.auction-schedule-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

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

.auction-countdown-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(216, 120, 35, 0.12) 0%, transparent 30%),
    linear-gradient(145deg, rgba(255, 248, 238, 0.98) 0%, rgba(246, 236, 221, 0.92) 50%, rgba(255, 255, 255, 0.98) 100%);
}

body.landing-page[data-theme="dark"] .auction-countdown-card {
  background:
    radial-gradient(circle at top right, rgba(242, 191, 126, 0.12) 0%, transparent 34%),
    linear-gradient(145deg, rgba(48, 34, 23, 0.98) 0%, rgba(29, 21, 15, 0.94) 54%, rgba(17, 13, 10, 0.98) 100%);
}

.auction-extension-notice {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(255, 247, 237, 0.94));
  color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
  animation: auctionExtensionBlink 1s ease-in-out infinite;
}

.auction-extension-notice strong,
.auction-extension-notice span {
  display: block;
}

.auction-extension-notice strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.auction-extension-notice span {
  margin-top: 3px;
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.4;
}

body.landing-page[data-theme="dark"] .auction-extension-notice {
  border-color: rgba(96, 165, 250, 0.36);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(37, 28, 19, 0.94));
  color: #93c5fd;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

body.landing-page[data-theme="dark"] .auction-extension-notice span {
  color: #bfdbfe;
}

@keyframes auctionExtensionBlink {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
  }

  50% {
    opacity: 0.68;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  }
}

.auction-countdown-card-inline {
  grid-column: auto;
}

.auction-countdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auction-countdown-head strong {
  font-size: 16px;
}

.auction-countdown-times {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.auction-countdown-time-item {
  padding: 10px 12px;
  border: 1px solid rgba(216, 120, 35, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

body.landing-page[data-theme="dark"] .auction-countdown-time-item {
  border-color: rgba(242, 191, 126, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.auction-countdown-time-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auction-countdown-time-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.auction-countdown-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.auction-countdown-unit {
  border: 1px solid rgba(216, 120, 35, 0.18);
  padding: 14px 12px;
  text-align: center;
}

body.landing-page[data-theme="dark"] .auction-countdown-unit {
  border-color: rgba(242, 191, 126, 0.18);
}

.auction-countdown-unit strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.auction-remark-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auction-bidding-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.auction-records-section {
  min-width: 0;
}

.auction-records-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.auction-records-meta-live {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.auction-leading-card strong {
  margin-top: 0;
}

.auction-leading-user {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auction-records-meta .auction-metric-card {
  display: flex;
  flex-direction: column;
}

.auction-records-meta .auction-metric-card > strong {
  margin-top: 10px;
}

.auction-leading-copy {
  display: grid;
  gap: 4px;
}

.auction-leading-price {
  color: #b45309;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  animation: auctionLeadingPriceBlink 1.2s ease-in-out infinite;
}

body.landing-page[data-theme="dark"] .auction-leading-price {
  color: #f2bf7e;
}

@keyframes auctionLeadingPriceBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.auction-bid-panel {
  display: grid;
  gap: 8px;
}

.auction-side-stack {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.auction-bid-panel-side {
  padding: 10px;
  border: 1px solid rgba(216, 120, 35, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(216, 120, 35, 0.12) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 247, 235, 0.96) 0%, rgba(244, 234, 216, 0.94) 50%, rgba(255, 255, 255, 0.98) 100%);
}

body.landing-page[data-theme="dark"] .auction-bid-panel-side {
  border-color: rgba(242, 191, 126, 0.18);
  background:
    radial-gradient(circle at top right, rgba(242, 191, 126, 0.12) 0%, transparent 30%),
    linear-gradient(145deg, rgba(48, 34, 23, 0.96) 0%, rgba(29, 21, 15, 0.94) 54%, rgba(17, 13, 10, 0.98) 100%);
}

.auction-bid-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.auction-bid-copy p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.auction-bid-copy p strong {
  color: var(--text);
  display: inline;
  margin-top: 0;
  font-size: inherit;
}

.auction-bid-adjuster {
  display: grid;
  grid-template-columns: 44px fit-content(140px) 44px;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.auction-step-btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

body.landing-page[data-theme="dark"] .auction-step-btn {
  background: rgba(255, 255, 255, 0.05);
}

.auction-bid-amount-box {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

body.landing-page[data-theme="dark"] .auction-bid-amount-box {
  background: rgba(255, 255, 255, 0.04);
}

.auction-bid-amount-box span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auction-bid-amount-box strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.auction-bid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.auction-bid-btn {
  min-height: 34px;
  flex: 0 0 110px;
  min-width: 110px;
}

.auction-bid-submit-btn {
  width: 110px;
}

.auction-bid-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.auction-rule-card {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(216, 120, 35, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 10px;
}

body.landing-page[data-theme="dark"] .auction-rule-card {
  border-color: rgba(242, 191, 126, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.auction-rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auction-rule-head > div {
  display: grid;
  gap: 2px;
}

.auction-rule-head strong {
  color: var(--text);
  font-size: 13px;
}

.auction-rule-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.landing-page[data-theme="dark"] .auction-rule-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.auction-rule-copy {
  display: grid;
  gap: 8px;
}

.auction-rule-language {
  color: var(--text);
  font-size: 13px;
}

.auction-rule-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auction-rule-list-mm {
  padding-left: 24px;
}

.auction-rule-list li {
  padding-left: 2px;
}

.auction-rule-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auction-rule-copy p strong {
  color: var(--text);
  margin-right: 4px;
}

.auction-preview-empty-compact {
  min-height: 88px;
}

.auction-showcase {
  display: grid;
  gap: 10px;
}

.auction-gallery-stack {
  display: grid;
  gap: 14px;
}

.auction-gallery-section {
  display: grid;
  gap: 6px;
}

.auction-showcase .detail-gallery,
.auction-gallery-section .detail-gallery {
  margin-top: 0;
}

.auction-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-soft);
}

.auction-public-table {
  width: 100%;
  border-collapse: collapse;
}

.auction-public-table th,
.auction-public-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.user-table-scroll {
  overflow-x: auto;
}

.auction-records-scroll {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.auction-record-feed {
  display: grid;
  gap: 8px;
}

.auction-record-item {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 120, 35, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.auction-record-item.is-new-bid {
  animation: auctionBidRecordReveal 0.9s cubic-bezier(0.18, 0.86, 0.32, 1.12);
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(255, 248, 232, 0.8));
}

.auction-record-item.is-new-bid .auction-record-price-box {
  animation: auctionBidPricePulse 1.05s ease;
}

body.landing-page[data-theme="dark"] .auction-record-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(242, 191, 126, 0.14);
}

body.landing-page[data-theme="dark"] .auction-record-item.is-new-bid {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(242, 191, 126, 0.1));
  border-color: rgba(96, 165, 250, 0.48);
}

.auction-record-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ead7b5;
  color: #7a4a1d;
  border: 1px solid rgba(193, 138, 81, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auction-record-avatar-image {
  object-fit: cover;
  display: block;
}

body.landing-page[data-theme="dark"] .auction-record-avatar {
  background: rgba(242, 191, 126, 0.14);
  color: #f3d1a2;
  border-color: rgba(242, 191, 126, 0.28);
}

body.landing-page[data-theme="dark"] .auction-record-user-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(242, 191, 126, 0.14);
}

body.landing-page[data-theme="dark"] .auction-record-price-box {
  background: rgba(242, 191, 126, 0.12);
  border-color: rgba(242, 191, 126, 0.16);
  color: #f3d1a2;
}

.auction-record-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.auction-record-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.auction-record-user-box {
  min-width: 0;
  flex: 0 1 clamp(180px, 60%, 280px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 120, 35, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.auction-record-price-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(96px, 24vw, 124px);
  min-width: 96px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 120, 35, 0.14);
  border-radius: 12px;
  background: rgba(243, 201, 144, 0.18);
  color: #8b4b16;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.auction-record-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-record-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.auction-record-time {
  padding: 0 4px;
}

.auction-record-time span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.auction-record-dot {
  flex: none;
  display: inline-block;
  color: #16a34a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.social-links {
  align-items: center;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: var(--button-hover-bg);
  border-color: var(--primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: var(--button-hover-bg);
  border-color: var(--primary);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch-track {
  width: 52px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 246, 231, 0.96) 0%, rgba(239, 224, 197, 0.96) 100%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #bf6f24 0%, #8f4f15 100%);
  box-shadow: 0 2px 8px rgba(82, 47, 14, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-switch input:checked + .theme-switch-track {
  background: linear-gradient(180deg, rgba(41, 29, 18, 0.96) 0%, rgba(23, 17, 12, 0.96) 100%);
  border-color: rgba(242, 191, 126, 0.38);
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(22px);
  background: linear-gradient(180deg, #f2bf7e 0%, #cc7b27 100%);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
}

button {
  border: 1px solid var(--border);
  background: var(--button-bg);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: var(--button-hover-bg);
}

button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.45;
  background: var(--button-bg);
  pointer-events: none;
}

button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

button.primary:hover {
  background: var(--primary-dark);
}

button.danger {
  border-color: rgba(248, 113, 113, 0.38);
  color: var(--danger);
  background: rgba(87, 24, 24, 0.24);
}

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

.record-card {
  position: relative;
  border: 1px solid var(--record-card-border);
  border-radius: 0;
  padding: 12px;
  background: var(--record-card-bg);
}

.compact-grid {
  margin-bottom: 0;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.filter-panel {
  margin-top: 14px;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(143, 91, 44, 0.18);
  text-align: left;
  color: #2d1d11;
  background:
    linear-gradient(45deg, transparent 50%, #b56725 50%) calc(100% - 22px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, #b56725 50%, transparent 50%) calc(100% - 16px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(255, 247, 235, 0.96) 0%, rgba(239, 224, 197, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(35, 24, 15, 0.06);
}

.custom-select-trigger[aria-expanded="true"] {
  border-color: rgba(216, 120, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(216, 120, 35, 0.16);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(143, 91, 44, 0.18);
  background: rgba(255, 247, 235, 0.98);
  box-shadow: 0 18px 34px rgba(35, 24, 15, 0.12);
}

.custom-select-option {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #2d1d11;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: rgba(216, 120, 35, 0.12);
  border-color: rgba(216, 120, 35, 0.2);
}

body.landing-page[data-theme="dark"] .custom-select-trigger {
  border-color: rgba(242, 191, 126, 0.18);
  color: #fff0d9;
  background:
    linear-gradient(45deg, transparent 50%, #f2bf7e 50%) calc(100% - 22px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, #f2bf7e 50%, transparent 50%) calc(100% - 16px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(52, 36, 23, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.landing-page[data-theme="dark"] .custom-select-menu {
  border-color: rgba(242, 191, 126, 0.18);
  background: rgba(36, 24, 15, 0.98);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

body.landing-page[data-theme="dark"] .custom-select-option {
  color: #fff0d9;
}

body.landing-page[data-theme="dark"] .custom-select-option:hover,
body.landing-page[data-theme="dark"] .custom-select-option.active {
  background: rgba(242, 191, 126, 0.12);
  border-color: rgba(242, 191, 126, 0.2);
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-chip-row {
  margin-top: 14px;
  padding-top: 4px;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.catalog-view-description {
  margin: 6px 0 0;
  color: var(--muted);
}

.catalog-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.catalog-view-tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  padding: 11px 18px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.catalog-view-tab:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.catalog-view-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--surface-soft);
}

.catalog-view-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

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

.selling-card {
  padding: 0;
  overflow: hidden;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.image-button:hover {
  background: transparent;
}

.selling-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--surface-soft);
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.image-status-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: none;
  background: rgba(15, 11, 8, 0.78);
  border: 1px solid rgba(255, 244, 224, 0.18);
  min-width: 88px;
  width: auto;
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.selling-card-body {
  padding: 14px;
}

.public-selling-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-selling-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(247, 226, 176, 0.3);
}

.public-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.species-name {
  font-style: italic;
  text-transform: lowercase;
}

.species-complex-select,
.species-complex-select option {
  font-style: italic;
  text-transform: lowercase;
}

.sold-history-card .selling-thumb {
  aspect-ratio: 1 / 1;
}

.sold-history-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sold-history-card .selling-card-body {
  background: var(--surface-soft);
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-list-section {
  grid-column: 1 / -1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.blog-result-summary {
  margin-bottom: 14px;
}

.blog-card {
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  border-radius: 24px;
  background: #120e09;
  box-shadow: 0 18px 42px rgba(35, 24, 15, 0.12);
}

.blog-card-link {
  display: block;
  min-height: 360px;
  color: inherit;
  text-decoration: none;
}

.blog-card-media {
  position: relative;
  min-height: 360px;
  height: 100%;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 5, 0.12) 0%, rgba(12, 8, 5, 0.42) 42%, rgba(12, 8, 5, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 8, 5, 0.58) 0%, rgba(12, 8, 5, 0.08) 64%);
}

.blog-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 22px;
  color: #fff7eb;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 247, 235, 0.78);
}

.blog-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.blog-card-overlay h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
}

.blog-card-overlay p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
  color: rgba(255, 247, 235, 0.88);
}

.blog-card-lock-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 247, 235, 0.2);
  background: rgba(15, 11, 8, 0.72);
  color: #fff7eb;
  backdrop-filter: blur(10px);
}

.blog-card-lock-panel span {
  font-size: 14px;
}

.blog-card-lock-panel .hero-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  box-shadow: none;
}

.blog-article-shell {
  padding: 34px 0 70px;
}

.blog-article {
  width: min(880px, 100%);
  margin: 22px auto 0;
}

.blog-article-header {
  display: grid;
  gap: 28px;
}

.blog-article-cover {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 48px rgba(35, 24, 15, 0.14);
}

.blog-article-title-block {
  display: grid;
  gap: 14px;
}

.blog-article-title-block h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.blog-article-title-block p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(35, 24, 15, 0.72);
}

body.landing-page[data-theme="dark"] .blog-article-title-block p {
  color: rgba(244, 234, 215, 0.76);
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(143, 91, 44, 0.86);
}

body.landing-page[data-theme="dark"] .blog-article-meta {
  color: rgba(242, 191, 126, 0.86);
}

.blog-reaction-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.blog-reaction-panel button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clap-icon {
  font-size: 18px;
  line-height: 1;
}

.blog-reaction-panel span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(35, 24, 15, 0.68);
}

body.landing-page[data-theme="dark"] .blog-reaction-panel span {
  color: rgba(244, 234, 215, 0.72);
}

.blog-article-content {
  display: grid;
  gap: 34px;
  margin-top: 42px;
}

.blog-article-section {
  display: grid;
  gap: 16px;
}

.blog-article-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.blog-article-section p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: rgba(35, 24, 15, 0.78);
}

body.landing-page[data-theme="dark"] .blog-article-section p {
  color: rgba(244, 234, 215, 0.78);
}

.blog-article-image {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  margin: 8px 0;
}

.auction-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auction-record-card {
  overflow: hidden;
}

.auction-card-body {
  display: grid;
  gap: 14px;
}

.auction-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.auction-inline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(216, 120, 35, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auction-card-actions {
  display: flex;
  justify-content: flex-end;
}

.auction-participate-link {
  min-height: 40px;
}

.auction-list-winner-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.auction-list-winner-box {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(216, 120, 35, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.auction-list-winner-box strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.auction-list-winner-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

body.landing-page[data-theme="dark"] .auction-list-winner-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(242, 191, 126, 0.14);
}

.auction-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.selling-price {
  font-size: var(--price-font-size);
  font-weight: 400;
  color: var(--price-color);
}

.selling-info-list {
  display: grid;
  gap: 8px;
}

.selling-info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.selling-info-label {
  color: var(--muted);
  font-weight: 600;
}

.status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  width: fit-content;
}

.status-available {
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.96) 0%, rgba(239, 224, 197, 0.96) 100%);
  color: #2d1d11;
  border-color: rgba(216, 120, 35, 0.26);
}

.status-sold {
  background: linear-gradient(180deg, rgba(52, 36, 23, 0.92) 0%, rgba(30, 22, 15, 0.92) 100%);
  color: #fff1dc;
  border-color: rgba(216, 120, 35, 0.45);
}

.status-reserved {
  background: linear-gradient(180deg, rgba(52, 36, 23, 0.92) 0%, rgba(30, 22, 15, 0.92) 100%);
  color: #ffe2b8;
  border-color: rgba(184, 127, 40, 0.45);
}

.auction-status-upcoming {
  background: linear-gradient(180deg, rgba(255, 243, 222, 0.98) 0%, rgba(243, 225, 196, 0.98) 100%);
  color: #6b3b11;
  border-color: rgba(216, 120, 35, 0.28);
}

.auction-status-inprogress {
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.98) 0%, rgba(239, 224, 197, 0.98) 100%);
  color: #2d1d11;
  border-color: rgba(216, 120, 35, 0.38);
}

.auction-status-end {
  background: linear-gradient(180deg, rgba(52, 36, 23, 0.92) 0%, rgba(30, 22, 15, 0.92) 100%);
  color: #fff1dc;
  border-color: rgba(216, 120, 35, 0.45);
}

.auction-status-cancelled {
  background: linear-gradient(180deg, rgba(97, 31, 31, 0.92) 0%, rgba(63, 18, 18, 0.92) 100%);
  color: #f6d6d6;
  border-color: rgba(220, 38, 38, 0.4);
}

.status-available::after,
.status-sold::after,
.status-reserved::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #d87823 transparent;
}

.image-status-badge.status-sold,
.image-status-badge.status-reserved {
  background: rgba(15, 11, 8, 0.78);
}

.image-status-badge.status-available {
  color: #2d1d11;
  border-color: rgba(216, 120, 35, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.96) 0%, rgba(239, 224, 197, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(35, 24, 15, 0.12);
}

.image-status-badge.status-available::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #d87823 transparent;
}

.image-status-badge.status-sold {
  position: absolute;
  color: #fff1dc;
  border-color: rgba(216, 120, 35, 0.45);
  background:
    linear-gradient(180deg, rgba(52, 36, 23, 0.92) 0%, rgba(30, 22, 15, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(35, 24, 15, 0.18);
}

.image-status-badge.status-sold::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #d87823 transparent;
}

.image-status-badge.status-reserved {
  color: #ffe2b8;
  border-color: rgba(184, 127, 40, 0.45);
}

.image-status-badge.status-reserved::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #d87823 transparent;
}

.record-qr {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff7ec;
  padding: 3px;
  object-fit: contain;
}

.record-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding-right: 64px;
}

.record-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  transition: filter 0.2s ease;
}

.record-thumb.blurred {
  filter: blur(8px) saturate(0.85);
}

.record-code {
  font-weight: 600;
}

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

.pager {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

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

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(24, 17, 12, 0.34);
}

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

label {
  display: block;
  font-size: 14px;
}

.hidden {
  display: none;
}

#detailBody {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(92px, var(--detail-key-width)) minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  align-items: start;
}

.detail-key {
  color: var(--muted);
  font-weight: 600;
  word-break: break-word;
}

.detail-row > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-image {
  margin-top: 8px;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.detail-video {
  display: block;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #050505;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}

.video-frame .detail-video {
  margin-top: 0;
}

.video-watermark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: clamp(56px, 12%, 96px);
  height: auto;
  opacity: 0.74;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.large-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.detail-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.glass-tank-thumb {
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center;
}

.glass-tank-preview-image {
  width: min(220px, 100%);
  aspect-ratio: 3 / 5;
  object-fit: cover;
}

.glass-tank-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-tank-detail-image {
  aspect-ratio: 3 / 5;
  object-fit: cover;
}

.public-detail-hero {
  margin-top: 16px;
}

.fish-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-top-image {
  width: 100%;
  margin-top: 0;
}

.carousel-stage-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.video-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(24, 17, 12, 0.4);
}

.video-card a {
  color: var(--primary);
  word-break: break-all;
}

.video-card .detail-video {
  margin-bottom: 0;
}

.video-card .video-frame {
  margin-bottom: 10px;
}

.video-upload-grid {
  grid-template-columns: minmax(0, 1fr);
}

.video-upload-preview {
  margin-top: 12px;
}

.selling-video-section {
  margin: 18px 0 20px;
}

.video-empty-state {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(24, 17, 12, 0.28);
}

.community-main {
  padding-bottom: 56px;
}

.community-hero {
  padding: 0 0 46px;
}

.community-hero-image {
  display: block;
  width: min(100%, 860px);
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.community-intro {
  padding-top: 28px;
  text-align: center;
}

.community-intro h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

.community-intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.community-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.community-share-button {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.community-share-button:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

body.landing-page[data-theme="dark"] .community-share-button {
  border-color: #ef4444;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.32);
}

.community-telegram-section {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
}

.community-telegram-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(100%, 380px);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(35, 24, 15, 0.1);
}

.community-telegram-link img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
}

.community-telegram-link .eyebrow {
  margin-bottom: 6px;
}

.community-telegram-link strong,
.community-telegram-link span {
  display: block;
  overflow-wrap: anywhere;
}

.community-telegram-link strong {
  font-size: 15px;
  line-height: 1.35;
}

.community-telegram-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.community-gallery-section {
  margin-top: 0;
  padding-top: 42px;
}

.profile-community-card {
  scroll-margin-top: 88px;
}

.profile-community-upload-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.community-upload-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-community-image-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.profile-community-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-community-image-card button {
  width: 100%;
  border-radius: 0;
  border-width: 1px 0 0;
}

.profile-community-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.community-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.community-gallery.is-empty {
  display: flex;
  justify-content: center;
}

.community-gallery-item {
  position: relative;
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.community-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.community-gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  border-top: 0;
  background: linear-gradient(180deg, rgba(20, 15, 12, 0), rgba(20, 15, 12, 0.82));
}

.community-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-gallery-caption > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-reaction-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(20, 15, 12, 0.58);
  color: #fff;
}

.community-reaction-button.is-reacted {
  border-color: rgba(248, 113, 113, 0.74);
  background: rgba(220, 38, 38, 0.72);
  color: #fff;
}

.community-fish-react-icon {
  display: inline-block;
  line-height: 1;
  transform-origin: 50% 80%;
  animation: communityFishSwing 900ms ease-in-out 160ms both;
}

.community-reaction-button:hover .community-fish-react-icon,
.community-reaction-button.is-reacted .community-fish-react-icon {
  animation: communityFishSwing 900ms ease-in-out both;
}

.community-empty-state {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 16px;
  break-inside: avoid;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

body[data-theme="dark"] .community-empty-state {
  background: rgba(20, 15, 12, 0.5);
}

@keyframes communityFishSwing {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  22% {
    transform: rotate(-14deg) translateY(-1px);
  }
  46% {
    transform: rotate(12deg) translateY(0);
  }
  70% {
    transform: rotate(-7deg) translateY(-1px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(22, 16, 12, 0.45);
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

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

.preview-title {
  font-size: 13px;
  color: var(--muted);
}

.qr-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.qr-panel-bottom {
  margin-top: 16px;
  align-items: flex-start;
}

.qr-image {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff9f0;
  padding: 6px;
}

.qr-panel a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(18, 14, 11, 0.94);
  color: #fff4e0;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  border: 1px solid rgba(173, 133, 81, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  max-width: min(90vw, 420px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.toast:hover {
  transform: translate(-50%, calc(-50% - 4px));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.auction-chat-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.auction-chat-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #f3bc7a);
  color: #20140d;
  box-shadow: 0 18px 38px rgba(76, 48, 20, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auction-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(76, 48, 20, 0.32);
}

.auction-chat-toggle-icon {
  font-size: 24px;
  line-height: 1;
}

.auction-chat-unread {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(215, 76, 60, 0.32);
}

.auction-chat-panel {
  --auction-chat-panel-transform: translateY(0) scale(1);
  --auction-chat-panel-hidden-transform: translateY(18px) scale(0.96);
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(68vh, 560px);
  background: rgba(255, 249, 241, 0.98);
  border: 1px solid rgba(173, 133, 81, 0.22);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(38, 24, 12, 0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: var(--auction-chat-panel-transform);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.24s ease, visibility 0.22s ease;
}

.auction-chat-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: var(--auction-chat-panel-hidden-transform);
}

body.landing-page[data-theme="dark"] .auction-chat-panel {
  background: rgba(33, 27, 22, 0.96);
  border-color: rgba(245, 198, 136, 0.18);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.auction-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(173, 133, 81, 0.18);
}

.auction-chat-head strong {
  font-size: 15px;
}

.auction-chat-head span {
  color: var(--muted);
  font-size: 12px;
}

.auction-chat-messages {
  min-height: 220px;
  padding: 16px 14px 8px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
}

.auction-chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  max-width: 220px;
}

.auction-chat-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.auction-chat-item.is-new {
  animation: auctionChatMessageReveal 0.72s cubic-bezier(0.18, 0.86, 0.32, 1.12);
}

.auction-chat-item.is-new .auction-chat-bubble {
  animation: auctionChatBubbleGlow 0.9s ease;
}

.auction-chat-item.is-own {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.auction-chat-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: rgba(173, 133, 81, 0.16);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  flex-shrink: 0;
  overflow: hidden;
}

.auction-chat-item.is-own .auction-chat-avatar {
  justify-self: end;
}

.auction-chat-avatar-image {
  width: 34px;
  height: 34px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.auction-chat-avatar-image.is-admin {
  background: rgba(255, 255, 255, 0.96);
  padding: 3px;
}

.auction-chat-drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.auction-chat-drag-handle:active {
  cursor: grabbing;
}

.auction-chat-bubble-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.auction-chat-item.is-own .auction-chat-bubble-wrap {
  justify-items: end;
  text-align: right;
}

.auction-chat-author,
.auction-chat-time {
  font-size: 11px;
  color: var(--muted);
}

.auction-chat-author-admin {
  color: #9a6a16;
  font-weight: 700;
}

body.landing-page[data-theme="dark"] .auction-chat-author-admin {
  color: #f0c978;
}

.auction-chat-author-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: #2563eb;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-0.5px);
  vertical-align: middle;
}

.auction-chat-bubble {
  max-width: min(100%, 260px);
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(173, 133, 81, 0.12);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.auction-chat-item.is-own .auction-chat-bubble {
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, rgba(222, 180, 121, 0.28), rgba(204, 151, 79, 0.18));
}

body.landing-page[data-theme="dark"] .auction-chat-bubble {
  background: rgba(245, 198, 136, 0.12);
}

body.landing-page[data-theme="dark"] .auction-chat-item.is-own .auction-chat-bubble {
  background: linear-gradient(135deg, rgba(245, 198, 136, 0.24), rgba(173, 133, 81, 0.16));
}

.auction-chat-form {
  border-top: 1px solid rgba(173, 133, 81, 0.18);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.auction-chat-input {
  width: 100%;
  min-height: 84px;
  resize: none;
  border-radius: 16px;
  border: 1px solid rgba(173, 133, 81, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

body.landing-page[data-theme="dark"] .auction-chat-input {
  background: rgba(20, 18, 15, 0.86);
  border-color: rgba(245, 198, 136, 0.18);
}

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

.auction-chat-counter {
  font-size: 11px;
  color: var(--muted);
}

.auction-chat-send {
  min-width: 88px;
}

.auction-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes logoPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0.8; }
}

@keyframes auctionChatMessageReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  62% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auctionChatBubbleGlow {
  0% {
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  35% {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  }
  100% {
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes auctionBidRecordReveal {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  45% {
    opacity: 1;
    transform: translateY(3px) scale(1.012);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes auctionBidPricePulse {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  38% {
    transform: scale(1.06);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
}

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

.app-footer {
  text-align: center;
  padding: 14px 10px 18px;
  color: var(--muted);
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .form-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --detail-key-width: 110px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .social-links {
    justify-content: center;
  }

  .detail-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .detail-top-actions {
    justify-content: flex-end;
  }

  .catalog-toolbar,
  .grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

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

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

  .selling-card-body {
    padding: 10px;
  }

  .selling-info-row {
    grid-template-columns: 68px 1fr;
    gap: 6px;
    font-size: 12px;
  }

  .selling-price {
    font-size: var(--price-font-size);
  }

  .selling-thumb {
    aspect-ratio: 1 / 1;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    align-items: flex-start;
  }

  .fish-carousel {
    grid-template-columns: 1fr;
  }

  .bg-video {
    opacity: 0.18;
  }

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

  .blog-card,
  .blog-card-link,
  .blog-card-media,
  .blog-card-media img {
    min-height: 320px;
  }

  .profile-community-upload-controls,
  .profile-community-grid {
    grid-template-columns: 1fr;
  }

  .community-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .community-telegram-link {
    grid-template-columns: 64px minmax(0, 1fr);
    width: min(100%, 340px);
  }

  .community-telegram-link img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auction-extension-notice,
  .auction-chat-item.is-new,
  .auction-chat-item.is-new .auction-chat-bubble,
  .auction-record-item.is-new-bid,
  .auction-record-item.is-new-bid .auction-record-price-box,
  .community-fish-react-icon {
    animation: none;
  }
}

@media (max-width: 420px) {
  :root {
    --detail-key-width: 84px;
  }

  .record-card {
    padding: 8px;
  }

  .public-selling-card {
    min-width: 0;
  }

  .image-status-badge {
    right: 8px;
    bottom: 8px;
    min-width: 72px;
    font-size: 10px;
    padding: 5px 8px;
  }

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

  .blog-card-overlay {
    padding: 18px;
  }

  .blog-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-telegram-link {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .community-gallery-caption {
    padding: 8px;
  }

  .community-reaction-button {
    min-height: 30px;
    padding: 0 8px;
  }

  .blog-article-shell {
    padding-top: 24px;
  }

  .blog-article-title-block p,
  .blog-article-section p {
    font-size: 16px;
  }

  .blog-article-cover,
  .blog-article-image {
    width: calc(100vw - 24px);
    max-width: none;
    margin-left: calc(50% - 50vw + 12px);
    margin-right: calc(50% - 50vw + 12px);
  }

  .card,
  .topbar,
  .layout {
    min-width: 0;
  }

  .detail-row {
    gap: 6px;
    font-size: 13px;
  }

  .detail-key {
    font-size: 12px;
  }

  .status-badge {
    min-width: 72px;
    padding: 5px 8px;
    font-size: 11px;
  }

}

@media (max-width: 499px) {
  .records-grid,
  .selling-grid {
    grid-template-columns: 1fr;
  }

  .selling-thumb {
    aspect-ratio: 4 / 3;
  }
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: "Century Burma", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(40, 124, 148, 0.16) 0, transparent 24%),
    radial-gradient(circle at top right, rgba(201, 124, 46, 0.2) 0, transparent 22%),
    linear-gradient(180deg, #fbf7ef 0%, #f3ecdf 48%, #efe4d1 100%);
  color: #23180f;
}

body.landing-page[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(36, 95, 121, 0.28) 0, transparent 24%),
    radial-gradient(circle at top right, rgba(139, 84, 31, 0.24) 0, transparent 22%),
    linear-gradient(180deg, #0f0d0a 0%, #18130f 45%, #21180f 100%);
  color: #f4ead7;
}

body.landing-page::before,
body.landing-page::after {
  display: none;
}

.landing-page .page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(77, 56, 38, 0.12);
}

body.landing-page[data-theme="dark"] .site-header {
  background: rgba(15, 13, 10, 0.82);
  border-bottom-color: rgba(232, 214, 184, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.site-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}

body.landing-page[data-theme="dark"] .site-brand-logo {
  filter: drop-shadow(0 0 14px rgba(255, 244, 224, 0.5))
          drop-shadow(0 0 6px rgba(49, 160, 150, 0.45));
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-brand-tag {
  font-size: 12px;
  color: rgba(35, 24, 15, 0.7);
}

body.landing-page[data-theme="dark"] .site-brand-tag {
  color: rgba(244, 234, 215, 0.72);
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-new-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 16px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.nav-special-marker {
  min-width: 44px;
  background: #d97706;
}

.special-wild-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 30px;
  padding-bottom: 54px;
}

.special-wild-hero {
  width: min(100%, 900px);
  justify-self: center;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
  background: radial-gradient(circle at 85% 15%, rgba(240, 130, 31, 0.18), transparent 35%), var(--surface);
}

.special-wild-hero h1 { margin: 4px 0 12px; font-size: clamp(32px, 5vw, 58px); }
.special-wild-hero > p:last-child { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.7; }

.special-wild-order-notice {
  width: min(100%, 900px);
  justify-self: center;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(217, 119, 6, 0.55);
  border-left: 5px solid #d97706;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.1);
  box-shadow: 0 12px 30px rgba(60, 35, 12, 0.08);
}

.special-wild-order-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.special-wild-order-notice h2 {
  margin: 2px 0 12px;
  font-size: clamp(18px, 2.5vw, 23px);
}

.special-wild-order-notice ul {
  margin: 0;
  padding-left: 22px;
}

.special-wild-order-notice li {
  padding-left: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.special-wild-order-notice li + li {
  margin-top: 8px;
}

body.landing-page[data-theme="dark"] .special-wild-order-notice {
  background: rgba(217, 119, 6, 0.08);
}

.special-wild-card { overflow: hidden; }
.special-wild-card .selling-card-body { display: flex; flex-direction: column; height: 100%; }
.special-wild-description { margin: 14px 0; color: var(--muted); line-height: 1.55; }
.special-order-button { width: 100%; margin-top: auto; }
.special-wild-no-image { display: flex; align-items: center; justify-content: center; }
.special-wild-empty { grid-column: 1 / -1; text-align: center; }

.special-order-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.special-order-dialog::backdrop { background: rgba(12, 8, 5, 0.76); backdrop-filter: blur(4px); }
.special-order-dialog .grid { margin: 20px 0; }

@media (max-width: 640px) {
  .special-order-dialog { padding: 18px; }
  .special-wild-main { padding-top: 16px; }
  .special-wild-order-notice {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

.mobile-theme-switch {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 91, 44, 0.16);
  background: rgba(234, 215, 181, 0.3);
  justify-content: flex-start;
}

.primary-nav a:hover {
  background: rgba(38, 115, 119, 0.08);
  border-color: rgba(38, 115, 119, 0.15);
}

body.landing-page[data-theme="dark"] .primary-nav a:hover {
  background: rgba(255, 223, 173, 0.08);
  border-color: rgba(255, 223, 173, 0.15);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
}

.hero-section {
  padding: 44px 0 32px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(61, 44, 28, 0.12);
  box-shadow: 0 24px 64px rgba(35, 24, 15, 0.14);
  background: #140f0a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 6, 0.82) 0%, rgba(13, 9, 6, 0.4) 42%, rgba(13, 9, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 9, 6, 0.12) 0%, rgba(13, 9, 6, 0.54) 100%);
}

.hero-slide-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(620px, 100%);
  padding: 54px 48px 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff7eb;
}

.hero-slide-overlay .eyebrow,
.hero-slide-overlay .hero-lead,
.hero-slide-overlay .font-preview-line {
  color: inherit;
}

.hero-slide-overlay h1,
.hero-slide-overlay h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4.4vw, 58px);
  max-width: 12ch;
}

.hero-slide-overlay h2 {
  font-size: clamp(28px, 4vw, 50px);
  max-width: 14ch;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #8f5b2c;
}

body.landing-page[data-theme="dark"] .eyebrow {
  color: #f2bf7e;
}

.hero-copy h1,
.section-heading h2,
.about-grid h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(35, 24, 15, 0.8);
}

.font-preview-line {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(35, 24, 15, 0.9);
}

.font-preview-line-heading {
  font-size: 24px;
  line-height: 1.6;
}

body.landing-page[data-theme="dark"] .hero-lead,
body.landing-page[data-theme="dark"] .font-preview-line,
body.landing-page[data-theme="dark"] .story-copy p,
body.landing-page[data-theme="dark"] .feature-card p,
body.landing-page[data-theme="dark"] .about-copy,
body.landing-page[data-theme="dark"] .review-card p,
body.landing-page[data-theme="dark"] .social-card-copy,
body.landing-page[data-theme="dark"] .home-selling-body p {
  color: rgba(244, 234, 215, 0.78);
}

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

.hero-button,
.inline-link,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(108, 69, 34, 0.18);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(35, 24, 15, 0.12);
}

.hero-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 24px 24px;
  border-color: transparent transparent #d87823 transparent;
}

.primary-link {
  background: linear-gradient(180deg, #f4ead8 0%, #ead7b5 100%);
  color: #2d1d11;
  border-color: rgba(143, 91, 44, 0.24);
}

.secondary-link {
  background: rgba(255, 247, 235, 0.88);
  color: #2d1d11;
}

body.landing-page[data-theme="dark"] .primary-link,
body.landing-page[data-theme="dark"] .secondary-link {
  background: linear-gradient(180deg, rgba(52, 36, 23, 0.96) 0%, rgba(30, 22, 15, 0.96) 100%);
  color: #fff0d9;
  border-color: rgba(242, 191, 126, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero-carousel-controls {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-nav-btn {
  min-width: 84px;
  border-radius: 999px;
  border-color: rgba(255, 245, 225, 0.2);
  background: rgba(15, 11, 8, 0.44);
  color: #fff5e1;
  backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
  background: rgba(15, 11, 8, 0.62);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 245, 225, 0.35);
}

.hero-dot.active {
  width: 36px;
  background: #f2bf7e;
}

.hero-slide img,
.gallery-tile img,
.home-selling-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-section {
  padding: 34px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 14ch;
}

.story-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.selling-preview-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.gallery-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.social-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.review-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.about-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 40px);
  max-width: none;
}

.review-section .review-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(61, 44, 28, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-link-row:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 120, 35, 0.4);
}

.contact-platform-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(234, 215, 181, 0.5);
  color: #8f4f15;
  flex: none;
}

.contact-platform-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-copy strong,
.contact-link-copy span {
  display: block;
}

.contact-link-copy strong {
  font-size: 17px;
}

.contact-link-copy span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(35, 24, 15, 0.68);
}

body.landing-page[data-theme="dark"] .contact-link-row {
  border-bottom-color: rgba(244, 234, 215, 0.12);
}

body.landing-page[data-theme="dark"] .contact-link-row:hover {
  border-bottom-color: rgba(242, 191, 126, 0.45);
}

body.landing-page[data-theme="dark"] .contact-platform-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #f2bf7e;
}

body.landing-page[data-theme="dark"] .contact-link-copy span {
  color: rgba(244, 234, 215, 0.72);
}

.section-subcopy {
  max-width: 58ch;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(35, 24, 15, 0.68);
}

body.landing-page[data-theme="dark"] .section-subcopy {
  color: rgba(244, 234, 215, 0.72);
}

.section-heading-inline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.story-grid,
.review-grid,
.feature-grid,
.social-grid,
.home-selling-grid {
  display: grid;
  gap: 18px;
}

.story-grid,
.review-grid,
.feature-grid,
.social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.review-card,
.feature-card,
.social-card,
.home-selling-card {
  border: 1px solid rgba(61, 44, 28, 0.12);
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 16px 36px rgba(35, 24, 15, 0.08);
}

body.landing-page[data-theme="dark"] .story-card,
body.landing-page[data-theme="dark"] .review-card,
body.landing-page[data-theme="dark"] .feature-card,
body.landing-page[data-theme="dark"] .social-card,
body.landing-page[data-theme="dark"] .home-selling-card {
  background: rgba(33, 24, 15, 0.78);
  border-color: rgba(244, 234, 215, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.story-card {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  min-width: 0;
}

.story-video-frame {
  background: #120e09;
}

.story-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  display: block;
}

.story-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.story-copy h3,
.feature-card h3,
.social-card-title {
  margin: 0 0 10px;
}

.story-copy h3 {
  font-size: 24px;
  line-height: 1.2;
}

.story-copy p,
.feature-card p,
.about-copy,
.review-card p,
.social-card-copy,
.home-selling-body p {
  margin: 0;
  line-height: 1.7;
  color: rgba(35, 24, 15, 0.72);
}

.story-mm-copy {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.75;
}

.home-selling-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-selling-card {
  border-radius: 24px;
  overflow: hidden;
}

.home-selling-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-selling-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-selling-body {
  padding: 18px;
}

.home-selling-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
}

.home-selling-empty {
  padding: 24px;
}

.masonry-gallery {
  columns: 3 280px;
  column-gap: 16px;
}

.gallery-tile {
  position: relative;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 24px;
  overflow: hidden;
  min-height: 200px;
  box-shadow: 0 16px 36px rgba(35, 24, 15, 0.12);
}

.gallery-tile-feature {
  min-height: 260px;
}

.gallery-tile-accent {
  min-height: 170px;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 10, 8, 0.78) 100%);
  pointer-events: none;
}

.gallery-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: #fff7eb;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card,
.review-card,
.social-card {
  padding: 22px;
  border-radius: 24px;
}

.social-card {
  display: block;
}

.social-card-title {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.social-card-copy {
  display: block;
}

.review-image {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(61, 44, 28, 0.12);
  background: rgba(255, 250, 243, 0.72);
}

.review-source {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 91, 44, 0.86);
}

body.landing-page[data-theme="dark"] .review-source {
  color: rgba(242, 191, 126, 0.86);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.about-copy {
  font-size: 18px;
}

.about-copy-group {
  display: grid;
  gap: 16px;
}

.about-copy-mm {
  font-size: 17px;
  line-height: 1.8;
}

.site-footer {
  padding: 24px 0 36px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(61, 44, 28, 0.14);
}

body.auth-page-login .site-footer-inner {
  justify-content: center;
  text-align: center;
}

body.landing-page[data-theme="dark"] .site-footer-inner {
  border-top-color: rgba(244, 234, 215, 0.12);
}

@media (max-width: 860px) {
  .site-header-inner,
  .story-card,
  .section-heading-inline {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .site-header-actions {
    justify-content: flex-end;
    position: relative;
    width: auto;
    flex: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header-actions > .theme-switch {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    min-width: 220px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 250, 243, 0.96);
    border: 1px solid rgba(61, 44, 28, 0.12);
    box-shadow: 0 18px 48px rgba(35, 24, 15, 0.16);
    box-sizing: border-box;
  }

  body.landing-page[data-theme="dark"] .primary-nav {
    background: rgba(33, 24, 15, 0.96);
    border-color: rgba(244, 234, 215, 0.12);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a,
  .mobile-theme-switch {
    width: 100%;
    box-sizing: border-box;
  }

  .public-auth-actions {
    width: 100%;
    display: grid;
  }

  .auth-landing-main {
    padding: 28px 0 40px;
  }

  .auth-shell {
    width: min(100% - 24px, 1180px);
  }

  body.auth-page-login .auth-shell {
    width: min(100% - 24px, 560px);
  }

  .auth-hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
    gap: 20px;
  }

  .auth-copy-panel {
    padding: 8px 4px;
  }

  .auth-card {
    max-width: none;
  }

  .profile-page-card {
    padding: 20px;
  }

  .auth-card-title {
    font-size: 26px;
  }

  .auth-feature-list {
    gap: 10px;
  }

  .auth-inline-links {
    width: 100%;
    display: grid;
  }

  .nav-auth-link,
  .nav-auth-button,
  .nav-auth-label {
    width: 100%;
  }

  .mobile-theme-switch {
    display: block;
  }

  .story-grid,
  .review-grid,
  .feature-grid,
  .social-grid,
  .home-selling-grid {
    grid-template-columns: 1fr;
  }

  .contact-links-list {
    grid-template-columns: 1fr;
  }

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

  .story-copy,
  .feature-card,
  .review-card,
  .social-card {
    padding: 20px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .landing-page .page-shell,
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-brand-logo {
    width: 48px;
    height: 48px;
  }

  .site-brand-title {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .hero-lead,
  .about-copy {
    font-size: 15px;
  }

  .font-preview-line {
    font-size: 15px;
  }

  .font-preview-line-heading {
    font-size: 21px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-slide-overlay {
    width: 100%;
    padding: 34px 22px 96px;
  }

  .hero-slide-overlay h1,
  .hero-slide-overlay h2 {
    max-width: 100%;
  }

  .hero-carousel-controls {
    left: 22px;
    right: 22px;
    bottom: 18px;
  }

  .hero-nav-btn {
    min-width: 72px;
    padding: 9px 12px;
  }

  .hero-actions {
    gap: 10px;
  }

  .profile-photo-large {
    width: 156px;
    height: 156px;
  }

  .profile-simple-brand .site-brand-logo {
    width: 78px;
    height: 78px;
  }

  .profile-simple-card {
    padding: 18px;
  }

  .profile-detail-row {
    padding: 12px 14px;
  }

  .profile-detail-value {
    font-size: 16px;
  }

  .story-video-frame iframe {
    min-height: 220px;
  }
}

@media (max-width: 1024px) {
  .auction-catalog-grid,
  .auction-hero,
  .auction-bidding-shell,
  .auction-detail-summary,
  .auction-detail-summary-grid,
  .auction-schedule-grid,
  .auction-metrics-grid,
  .auction-records-meta {
    grid-template-columns: 1fr;
  }

  .auction-side-stack {
    position: static;
    top: auto;
  }

  .auction-countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .auction-list-winner-row {
    grid-template-columns: 62px minmax(0, 220px);
    justify-content: start;
  }

  .auction-list-winner-box {
    max-width: 220px;
    padding: 6px 7px;
  }

  .auction-list-winner-box strong {
    font-size: 12px;
  }

  .auction-list-winner-avatar {
    width: 28px;
    height: 28px;
  }

  .auction-record-topline {
    gap: 7px;
  }

  .auction-record-user-box {
    flex-basis: min(64%, 250px);
  }

  .auction-record-price-box {
    flex-basis: 102px;
    min-width: 102px;
  }
}

@media (max-width: 760px) {
  .auction-chat-floating {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-items: end;
  }

  .auction-chat-panel {
    --auction-chat-panel-transform: translate(-50%, -50%) scale(1);
    --auction-chat-panel-hidden-transform: translate(-50%, calc(-50% + 16px)) scale(0.96);
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(100%, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    transform-origin: center;
  }

  .auction-card-topline,
  .auction-title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .auction-info-section .section-head,
  .auction-title-row > div:first-child,
  .auction-inline-badges,
  .auction-records-section .section-head {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .auction-subcode,
  .auction-title-row h2,
  .auction-info-section .section-head h2,
  .auction-records-section .section-head h2,
  .auction-records-section .record-meta {
    width: 100%;
    text-align: center;
  }

  .auction-inline-badges {
    width: 100%;
    justify-content: center;
  }

  .auction-detail-toggle {
    width: 100%;
  }

  .auction-gallery-shell .section-head {
    flex-direction: column;
  }

  .auction-records-meta {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 8px;
  }

  .auction-records-meta-live {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }

  .auction-records-meta .auction-metric-card {
    padding: 10px;
    text-align: center;
  }

  .auction-records-meta .auction-metric-card span {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .auction-records-meta .auction-metric-card strong {
    margin-top: 10px;
    font-size: 14px;
  }

  .auction-records-meta .auction-metric-card:not(.auction-leading-card) > strong {
    margin-top: 16px;
  }

  .auction-countdown-head {
    flex-direction: row;
    align-items: center;
  }

  .auction-countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .auction-countdown-unit {
    padding: 10px 6px;
  }

  .auction-countdown-unit strong {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .auction-countdown-unit span,
  .auction-countdown-head span {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .auction-countdown-head strong {
    font-size: 14px;
  }

  .auction-countdown-time-item {
    padding: 8px 10px;
  }

  .auction-countdown-time-item strong {
    font-size: 12px;
  }

  .auction-highlight-subline {
    font-size: 12px;
  }

  .auction-bid-adjuster {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .auction-step-btn {
    min-height: 42px;
    font-size: 24px;
  }

  .auction-bid-amount-box {
    padding: 10px 8px;
  }

  .auction-bid-amount-box strong {
    font-size: 18px;
  }

  .auction-public-table,
  .auction-public-table thead,
  .auction-public-table tbody,
  .auction-public-table tr,
  .auction-public-table th,
  .auction-public-table td {
    display: block;
    width: 100%;
  }

  .auction-public-table thead {
    display: none;
  }

  .auction-public-table tbody {
    display: grid;
    gap: 10px;
  }

  .auction-public-table tr {
    position: relative;
    max-width: 100%;
    border: 1px solid rgba(216, 120, 35, 0.18);
    border-radius: 14px;
    padding: 9px 10px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96) 0%, rgba(239, 224, 197, 0.9) 100%);
    box-shadow: 0 6px 16px rgba(35, 24, 15, 0.08);
  }

  body.landing-page[data-theme="dark"] .auction-public-table tr {
    border-color: rgba(242, 191, 126, 0.16);
    background: linear-gradient(180deg, rgba(52, 36, 23, 0.96) 0%, rgba(30, 22, 15, 0.94) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  .auction-public-table tr.is-self {
    justify-self: stretch;
    border-bottom-right-radius: 6px;
  }

  .auction-public-table tr.is-other {
    justify-self: stretch;
    border-bottom-left-radius: 6px;
  }

  .auction-public-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .auction-public-table td[data-label="No."] {
    display: none;
  }

  .auction-public-table td[data-label="Username"] {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .auction-public-table td[data-label="Bidding Price"] {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }

  .auction-public-table td[data-label="Bidding Time"] {
    color: var(--muted);
    font-size: 11px;
  }

  .auction-public-table td[data-label="Username"]::before,
  .auction-public-table td[data-label="Bidding Price"]::before,
  .auction-public-table td[data-label="Bidding Time"]::before {
    display: none;
  }

  .auction-record-item {
    padding: 7px 8px;
    gap: 5px;
    border-radius: 12px;
  }

  .auction-record-topline {
    gap: 6px;
  }

  .auction-record-user-box {
    flex-basis: min(68%, 240px);
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .auction-record-avatar {
    width: 32px;
    height: 32px;
  }

  .auction-record-price-box {
    flex-basis: 92px;
    min-width: 92px;
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 10px;
  }

  .auction-record-copy strong {
    font-size: 12px;
  }

  .auction-record-time span {
    font-size: 10px;
  }
}
