/* Spherylands Auction — marketplace UI */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #1a211c;
  --ink-soft: #3d4a42;
  --muted: #5c6b62;
  --line: rgba(26, 33, 28, 0.12);
  --line-strong: rgba(26, 33, 28, 0.22);
  --surface: #f7f9f5;
  --surface-2: #eef2eb;
  --bg: #e4ebe3;
  --forest: #1b4d3e;
  --forest-deep: #12352b;
  --amber: #c4782a;
  --amber-soft: #f3e4d0;
  --danger: #b42318;
  --danger-bg: #fce8e6;
  --success: #1b4d3e;
  --success-bg: #dceee6;
  --warn: #8a5a12;
  --warn-bg: #f8ecd8;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Syne", "Figtree", sans-serif;
  --header-h: 68px;
  --ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 10px 30px rgba(26, 33, 28, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 120, 42, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(27, 77, 62, 0.12), transparent 48%),
    linear-gradient(165deg, #f2f5ef 0%, var(--bg) 45%, #d9e3d8 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--amber);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

small {
  color: var(--muted);
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

/* —— Auth —— */
.page-auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.auth-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f4f7f3;
  background:
    linear-gradient(145deg, rgba(18, 53, 43, 0.92), rgba(27, 77, 62, 0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Ccircle cx='120' cy='160' r='90' fill='%23c4782a' opacity='0.18'/%3E%3Ccircle cx='640' cy='520' r='160' fill='%23f7f9f5' opacity='0.06'/%3E%3Cpath d='M0 520 Q200 440 400 520 T800 500 V800 H0Z' fill='%2312352b' opacity='0.45'/%3E%3C/svg%3E") center/cover;
  animation: authShift 18s ease-in-out infinite alternate;
}

@keyframes authShift {
  from {
    background-position: 50% 40%, center;
  }

  to {
    background-position: 50% 55%, center;
  }
}

.auth-visual .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.auth-visual .brand-mark .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(243, 228, 208, 0.2);
  border: 1px solid rgba(243, 228, 208, 0.35);
  color: #f3e4d0;
  font-size: 0.78rem;
}

.auth-visual h1 {
  color: #f7f9f5;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 10ch;
  margin: 2rem 0 0.75rem;
}

.auth-visual p {
  color: rgba(247, 249, 245, 0.78);
  max-width: 32ch;
  font-size: 1.05rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(247, 249, 245, 0.72);
  backdrop-filter: blur(8px);
}

.auth-panel-inner {
  width: min(100%, 420px);
  margin: 0 auto;
  animation: riseIn 0.55s var(--ease) both;
}

.auth-panel h2 {
  margin-bottom: 0.35rem;
}

.auth-panel .lede {
  margin-bottom: 1.5rem;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— App shell (top nav) —— */
.page-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(247, 249, 245, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-right: 0.5rem;
}

.topbar-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #f3e4d0;
  font-size: 0.7rem;
  font-weight: 800;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  overflow-x: auto;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.nav-link:hover {
  background: rgba(27, 77, 62, 0.06);
  color: var(--ink);
}

.nav-link.active {
  background: rgba(27, 77, 62, 0.1);
  color: var(--forest);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.app-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 3.5rem;
  animation: riseIn 0.45s var(--ease) both;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.app-header .lede {
  max-width: 48ch;
  margin: 0.35rem 0 0;
}

.sidebar-backdrop {
  display: none;
}

/* —— Surfaces —— */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section {
  margin-top: 1.75rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0;
  font-size: 0.92rem;
}

/* —— Grid —— */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.col-span-full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* —— Forms —— */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.12);
}

.field input:disabled {
  background: var(--surface-2);
  color: var(--muted);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-hint {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--forest);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #f7f9f5;
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn-accent {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn-accent:hover:not(:disabled) {
  filter: brightness(0.95);
}

.btn-danger {
  border-color: rgba(180, 35, 24, 0.35);
  color: var(--danger);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(27, 77, 62, 0.06);
  color: var(--ink);
  border-color: transparent;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* —— Badges & alerts —— */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-active,
.badge-approved,
.badge-live {
  background: var(--success-bg);
  color: var(--forest);
}

.badge-pending,
.badge-draft {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-rejected,
.badge-cancelled,
.badge-canceled {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-completed,
.badge-ended,
.badge-closed {
  background: var(--surface-2);
  color: var(--muted);
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert.hidden {
  display: none;
}

.alert-error {
  background: var(--danger-bg);
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--danger);
}

.alert-success {
  background: var(--success-bg);
  border-color: rgba(27, 77, 62, 0.2);
  color: var(--forest);
}

.alert-warn {
  background: var(--warn-bg);
  border-color: rgba(138, 90, 18, 0.22);
  color: var(--warn);
}

/* —— Marketplace listings —— */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.listing-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 77, 62, 0.28);
  box-shadow: var(--shadow-soft);
  color: inherit;
}

.listing-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(27, 77, 62, 0.18), rgba(196, 120, 42, 0.16)),
    var(--surface-2);
  position: relative;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(27, 77, 62, 0.35);
  letter-spacing: -0.04em;
}

.listing-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.listing-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.35rem;
}

.listing-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
}

.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

/* —— Stats / chips —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat .value {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.stat .label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.chip:hover,
.chip.active {
  background: rgba(27, 77, 62, 0.08);
  color: var(--forest);
  border-color: rgba(27, 77, 62, 0.25);
}

/* —— Home welcome —— */
.welcome-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.welcome-copy {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(27, 77, 62, 0.94), rgba(18, 53, 43, 0.88)),
    var(--forest);
  color: #f7f9f5;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.welcome-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -40px;
  top: -60px;
  background: rgba(196, 120, 42, 0.28);
  animation: floatOrb 8s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-12px, 18px);
  }
}

.welcome-copy h1,
.welcome-copy p {
  position: relative;
  z-index: 1;
  color: #f7f9f5;
}

.welcome-copy p {
  color: rgba(247, 249, 245, 0.78);
  max-width: 36ch;
  margin-bottom: 1.15rem;
}

.welcome-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.welcome-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  transition: border-color var(--ease), transform var(--ease);
}

.welcome-action:hover {
  border-color: rgba(27, 77, 62, 0.3);
  transform: translateY(-2px);
  color: inherit;
}

.welcome-action strong {
  font-family: var(--display);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.2rem;
}

.welcome-action small {
  color: var(--muted);
}

@media (max-width: 800px) {
  .welcome-band {
    grid-template-columns: 1fr;
  }
}

/* —— Auction detail —— */
.auction-focus,
.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {

  .auction-focus,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.auction-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.detail-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  animation: auction-rise 0.55s var(--ease) both;
}

.detail-hero-media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(27, 77, 62, 0.2), rgba(196, 120, 42, 0.18)),
    var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: rgba(27, 77, 62, 0.28);
  letter-spacing: -0.04em;
  overflow: hidden;
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.phase-pill.phase-live {
  color: var(--forest);
}

.phase-pill.phase-hot,
.phase-pill.phase-soon,
.auction-clock[data-urgency="soon"] .phase-pill,
.auction-clock[data-urgency="hot"] .auction-clock-value {
  color: var(--amber);
}

.auction-desc {
  max-width: 42rem;
}

.auction-clock {
  margin: 1.15rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(27, 77, 62, 0.06), rgba(196, 120, 42, 0.08));
  border: 1px solid var(--line);
  animation: auction-rise 0.65s var(--ease) 0.08s both;
}

.auction-clock-label {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.auction-clock-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.04em;
  color: var(--forest);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.auction-clock[data-urgency="soon"] .auction-clock-value {
  color: var(--amber);
}

.auction-clock[data-urgency="hot"] .auction-clock-value {
  color: var(--danger);
  animation: clock-pulse 1.2s ease-in-out infinite;
}

.auction-clock[data-urgency="done"] .auction-clock-value {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
}

.auction-progress {
  margin-top: 0.85rem;
}

.auction-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(26, 33, 28, 0.1);
  overflow: hidden;
}

.auction-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--amber));
  transition: width 0.8s var(--ease);
}

.auction-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.auction-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
}

@media (max-width: 700px) {
  .auction-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.auction-facts>div {
  min-width: 0;
}

.auction-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.auction-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.auction-seller {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.muted-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.countdown {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: -0.02em;
}

.bid-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  animation: auction-rise 0.6s var(--ease) 0.12s both;
}

.bid-spotlight {
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  padding: 0.15rem 0;
  transition: background 0.35s ease;
}

.bid-spotlight.bid-flash {
  animation: bid-flash 0.7s ease;
}

.bid-amount {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--forest);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bid-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.phase-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.phase-note[data-tone="warn"] {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: rgba(138, 90, 18, 0.2);
}

.phase-note[data-tone="info"] {
  background: rgba(27, 77, 62, 0.08);
  color: var(--forest-deep);
}

.phase-note[data-tone="muted"] {
  color: var(--muted);
}

.bid-cta-block {
  margin-bottom: 1rem;
}

.bid-cta-copy {
  margin: 0;
  font-size: 0.9rem;
}

.bid-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bid-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.quick-bids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform 0.15s ease;
}

.chip-btn:hover {
  background: var(--amber-soft);
  border-color: rgba(196, 120, 42, 0.45);
}

.chip-btn:active {
  transform: scale(0.97);
}

.bid-owner-actions {
  margin-top: 0.5rem;
}

.bid-history {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.bid-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.bid-history-head h3 {
  margin: 0;
}

.item-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.item-row p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.item-row:first-child {
  padding-top: 0;
}

.bid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}

.bid-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  animation: auction-rise 0.4s var(--ease) both;
}

.bid-list li.is-leading {
  background: linear-gradient(90deg, rgba(27, 77, 62, 0.06), transparent);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 8px;
}

.bid-list li:last-child {
  border-bottom: 0;
}

.bid-list .who {
  font-weight: 650;
  color: var(--ink);
}

.bid-list .who em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  margin-left: 0.35rem;
}

.bid-list .when {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--muted);
}

.bid-list .amt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--forest);
  align-self: center;
  font-variant-numeric: tabular-nums;
}

@keyframes auction-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clock-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

@keyframes bid-flash {
  0% {
    background: rgba(196, 120, 42, 0.22);
  }

  100% {
    background: transparent;
  }
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--forest);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* —— Upload dropzone —— */
.dropzone {
  border: 1.5px dashed rgba(27, 77, 62, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(27, 77, 62, 0.03);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--forest);
  background: rgba(27, 77, 62, 0.06);
}

.dropzone strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.dropzone input[type="file"] {
  display: none;
}

.form-section-title {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0.5rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* —— Tables (legacy) —— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.data th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface-2);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.tab.active {
  background: rgba(27, 77, 62, 0.08);
  border-color: rgba(27, 77, 62, 0.18);
  color: var(--forest);
}

.panel.hidden,
[data-panel].hidden {
  display: none;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2), #f4f6f2, var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  min-height: 1rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.empty-state {
  text-align: center;
  padding: 2.75rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--forest);
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 220px;
    padding: 1.5rem;
  }

  .auth-visual h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .app-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    z-index: 45;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .app-nav.open {
    display: flex;
  }

  .topbar-actions .btn-label-hide {
    display: none;
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 42;
    background: rgba(26, 33, 28, 0.35);
  }
}

/* Compat aliases used by older markup */
.glass-hover:hover {
  border-color: rgba(27, 77, 62, 0.28);
}

.auction-card {
  display: block;
  color: inherit;
}

.auction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-tile {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat-tile .value {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
}

.stat-tile .label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.quick-card {
  display: block;
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.quick-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
}

pre.json,
.code-block {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  color: var(--ink-soft);
  margin: 0;
}

.auth-wrap {
  width: min(100%, 440px);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--forest);
  color: #f3e4d0;
  font-family: var(--display);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
