:root {
  --navy: #07111F;
  --navy-mid: #0D1E33;
  --navy-light: #152843;
  --gold: #C8A84B;
  --gold-light: #E2C97E;
  --gold-pale: #F5EDD4;
  --cream: #F7F4EF;
  --warm-white: #FDFBF8;
  --text-dark: #0D1420;
  --text-mid: #3A4A5C;
  --text-light: #6B7C8D;
  --white: #FFFFFF;
  --border: rgba(200,168,75,0.25);
  --good: #3F8F5F;
  --bad: #B0402F;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'DM Serif Display', serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

#silent-section, #live-section { scroll-margin-top: 64px; }

a { color: inherit; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 50% 0%, var(--navy-light) 0%, var(--navy) 55%, #050c17 100%);
  color: var(--white);
  padding: 56px 20px 40px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 54px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--white);
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-meta {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin: 0 0 6px;
  font-weight: 500;
}
.hero-meta strong { color: var(--gold-light); font-weight: 600; }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 22px auto 0;
  line-height: 1.5;
}

/* ============ STATS STRIP ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  margin: 34px auto 0;
  border-top: 1px solid rgba(200,168,75,0.22);
  padding-top: 26px;
  position: relative;
}
.stat { text-align: center; padding: 0 8px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 32px);
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

/* ============ SECTION NAV ============ */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253,251,248,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.section-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 30px;
  color: var(--text-mid);
  transition: all 0.2s var(--ease);
}
.section-nav a:hover { background: var(--gold-pale); color: var(--navy); }
.section-nav a.tag-live { color: var(--bad); }

/* ============ LAYOUT ============ */
.wrap { max-width: 920px; margin: 0 auto; padding: 8px 18px 90px; }

.intro-note {
  text-align: center;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
  margin: 30px auto 8px;
}

.section-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin: 48px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-label .sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-light); font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 20px; }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(7,17,31,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(7,17,31,0.12); }

.card .img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
}
.card .img::before {
  content: "";
  width: 34px; height: 34px;
  border: 1.5px solid rgba(226,201,126,0.55);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% - 14px));
}
.card .img span { position: relative; margin-top: 34px; }
.card .img.has-photo::before, .card .img.has-photo span { display: none; }

.card .lot-number {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(7,17,31,0.65);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  margin: 0 0 2px;
  color: var(--navy);
}
.card .artist {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.card .desc { font-size: 14px; color: var(--text-mid); line-height: 1.55; margin-bottom: 16px; }

.amount-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold-pale);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.bid-current .lbl { display:block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.bid-current .amt { font-size: 21px; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }
.bidder { font-size: 12.5px; color: var(--good); font-weight: 600; text-align: right; }
.bidder.none { color: var(--text-light); font-weight: 500; }

.closed-tag { display:inline-block; background: var(--bad); color: white; font-size: 11px; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.live-tag { display:inline-block; background: var(--gold); color: var(--navy); font-size: 11px; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.live-note {
  font-size: 13px;
  color: var(--text-mid);
  background: var(--gold-pale);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.5;
}
.live-note strong { color: var(--navy); }

form.bid-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
input[type=text], input[type=number] {
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  background: var(--warm-white);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 15px;
  flex: 1 1 120px;
  transition: border-color 0.2s;
}
input[type=text]:focus, input[type=number]:focus { outline: none; border-color: var(--gold); }

button.btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border-radius: 7px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
button.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(7,17,31,0.25); }
button.btn:active { transform: translateY(0); }
button.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--navy); box-shadow: none; }
button.btn.danger { background: var(--bad); color: white; }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.msg { font-size: 13px; margin-top: 10px; font-weight: 500; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--good); }

.quote-banner {
  margin: 56px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 30px 20px;
}
.quote-banner p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}
.quote-banner span { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }

footer.note {
  text-align: center;
  color: var(--text-light);
  font-size: 12.5px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
footer.note .org { color: var(--navy); font-weight: 700; font-family: var(--font-serif); font-size: 16px; display:block; margin-bottom: 4px;}

/* ============ DASHBOARD ============ */
.dash-body {
  background: radial-gradient(120% 100% at 50% 0%, var(--navy-light) 0%, var(--navy) 45%, #050c17 100%);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.dash-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.dash-wrap { max-width: 1400px; margin: 0 auto; padding: 32px; position: relative; z-index: 1; }
.dash-header { text-align: center; padding: 8px 0 22px; }
.dash-header .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; font-weight: 600; color: var(--gold-light); margin-bottom: 10px;
}
.dash-header .eyebrow::before, .dash-header .eyebrow::after { content:""; width:24px; height:1px; background:var(--gold); opacity:0.7; }
.dash-header h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 44px); margin: 0 0 6px; }
.dash-header p { margin: 0; color: rgba(255,255,255,0.6); font-size: 15px; }

.raised-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(200,168,75,0.12), rgba(200,168,75,0.02));
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 16px;
  padding: 22px 32px;
  margin-bottom: 32px;
  text-align: center;
}
.raised-strip .raised-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  color: var(--gold-light);
  line-height: 1;
}
.raised-strip .raised-label {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); margin-top: 6px; display:block;
}
.raised-strip .raised-sub { font-size: 14px; color: rgba(255,255,255,0.6); }
.raised-strip .raised-sub strong { color: var(--gold-light); }

.live-pulse-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #e74c3c; margin-right: 8px; vertical-align: middle;
  animation: dotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(231,76,60,0.6);
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

.spotlight {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 44px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 0 70px rgba(200,168,75,0.22), inset 0 0 60px rgba(200,168,75,0.04);
  animation: spotlightGlow 3s ease-in-out infinite;
}
@keyframes spotlightGlow {
  0%, 100% { box-shadow: 0 0 70px rgba(200,168,75,0.22), inset 0 0 60px rgba(200,168,75,0.04); }
  50% { box-shadow: 0 0 100px rgba(200,168,75,0.38), inset 0 0 80px rgba(200,168,75,0.08); }
}
.spotlight .tag { color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 14px; font-weight: 700; }
.spotlight h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.5vw, 60px); margin: 10px 0; color: var(--white); }
.spotlight .amt { font-size: clamp(48px, 7.5vw, 90px); color: var(--gold-light); font-weight: 700; font-family: var(--font-display); }
.spotlight .who { font-size: 20px; color: rgba(255,255,255,0.85); margin-top: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tile {
  background: var(--navy-light);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tile:hover { border-color: rgba(200,168,75,0.5); }
.tile .tile-photo {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 10px;
  background: linear-gradient(135deg, rgba(200,168,75,0.25), rgba(200,168,75,0.08));
  background-size: cover; background-position: center;
}
.tile .tile-body { flex: 1; min-width: 0; }
.tile h4 { font-family: var(--font-serif); font-weight: 600; font-size: 19px; margin: 0 0 6px; color: var(--gold-light); }
.tile .amt { font-size: 26px; font-weight: 700; color: var(--white); font-family: var(--font-serif); }
.tile .who { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.tile.top-bid { border-color: var(--gold); box-shadow: 0 0 20px rgba(200,168,75,0.2); }
.tile.top-bid::after {
  content: "TOP BID"; position: absolute; top: 10px; right: -30px; transform: rotate(35deg);
  background: var(--gold); color: var(--navy); font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 34px; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.tile.flash { animation: tileFlash 1s ease-out; }
@keyframes tileFlash {
  0% { background: rgba(200,168,75,0.55); border-color: var(--gold); }
  100% { background: var(--navy-light); }
}

/* ============ ADMIN ============ */
.admin-hero {
  position: relative;
  background: radial-gradient(120% 140% at 50% 0%, var(--navy-light) 0%, var(--navy) 55%, #050c17 100%);
  color: var(--white);
  padding: 44px 20px 34px;
  text-align: center;
  overflow: hidden;
}
.admin-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  pointer-events: none;
}
.admin-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 600; color: var(--gold-light); margin-bottom: 12px;
}
.admin-hero .eyebrow::before, .admin-hero .eyebrow::after { content:""; width:20px; height:1px; background:var(--gold); opacity:0.7; }
.admin-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; color: var(--white); position:relative; }
.admin-hero p { margin: 0; color: rgba(255,255,255,0.65); font-size: 14px; position:relative; }

.admin-lock { max-width: 380px; margin: 90px auto; text-align: center; background: var(--white); padding: 40px 30px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(7,17,31,0.08); }
.admin-lock h3 { font-family: var(--font-serif); color: var(--navy); font-size: 22px; }
.admin-lock input { width: 100%; margin-bottom: 12px; text-align: center; }

.admin-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 3px solid var(--border); }
.admin-item.is-live { border-left-color: var(--gold); }
.admin-item .info { flex: 1 1 220px; }
.admin-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-controls input { width: 110px; flex: 0 0 auto; }

.admin-section-intro { font-size: 14px; color: var(--text-mid); margin: 0 0 12px; }
.status-pill { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; padding:4px 12px; border-radius:20px; }
.status-pill.no-bids { background: var(--cream); color: var(--text-light); }
.status-pill.has-bid { background: rgba(63,143,95,0.12); color: var(--good); }
.status-pill.closed { background: rgba(176,64,47,0.12); color: var(--bad); }
