@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-muted: #E8D5A3;
  --cream: #FDFAF4;
  --warm-white: #F9F6EE;
  --border: rgba(184,134,11,0.18);
  --border-strong: rgba(184,134,11,0.35);
  --ink: #1A1408;
  --ink-muted: #5C4F30;
  --ink-faint: #9B8B6A;
  --red: #C0392B;
  --green: #2D7A4E;
  --amber: #92400E;
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

input, select, textarea, button {
  font-family: 'DM Sans', sans-serif;
}

/* NAV */
.st-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px; background: var(--cream);
  border-bottom: 0.5px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.st-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.st-logo-text {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.3px;
}
.st-logo-text .gold { color: var(--gold); }
.st-nav-links { display: flex; list-style: none; gap: 32px; }
.st-nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-muted);
  text-decoration: none; transition: color 0.15s;
}
.st-nav-links a:hover, .st-nav-links a.active { color: var(--ink); }
.st-nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost-sm {
  padding: 7px 16px; border: 0.5px solid var(--border-strong); border-radius: 6px;
  background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-muted);
  cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block;
}
.btn-ghost-sm:hover { background: var(--warm-white); color: var(--ink); }
.btn-primary-sm {
  padding: 7px 18px; border: none; border-radius: 6px; background: var(--gold);
  font-size: 13px; font-weight: 500; color: #fff; cursor: pointer;
  transition: background 0.15s; text-decoration: none; display: inline-block;
}
.btn-primary-sm:hover { background: var(--gold-light); }

/* HERO */
.hero { text-align: center; padding: 80px 48px 64px; background: transparent; border: none; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
  border: 0.5px solid var(--border-strong); border-radius: 20px;
  font-size: 12px; color: var(--gold); margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.5px; margin-bottom: 18px;
  border: none; outline: none; box-shadow: none;
}
.hero-sub {
  font-size: 16px; font-weight: 300; color: var(--ink-muted);
  max-width: 480px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.btn-hero-gold {
  padding: 12px 32px; background: var(--gold); color: #fff; border: none;
  border-radius: 7px; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 0.15s; text-decoration: none; display: inline-block;
}
.btn-hero-gold:hover { background: var(--gold-light); color: #fff; }
.btn-hero-outline {
  padding: 12px 32px; background: transparent; color: var(--ink-muted);
  border: 0.5px solid var(--border-strong); border-radius: 7px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-hero-outline:hover { background: var(--warm-white); color: var(--ink); }

/* HOME SECTIONS */
.home-section { padding: 48px 48px 40px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: var(--ink); }
.section-link { font-size: 13px; color: var(--gold); text-decoration: none; }
.section-link:hover { color: var(--gold-light); }
.empty-state {
  text-align: center; padding: 60px 0; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 14px;
}
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

/* AUCTION CARD */
.auction-card {
  background: #fff; border: 0.5px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.auction-card:hover { border-color: var(--gold-muted); transform: translateY(-2px); }
.card-img {
  height: 160px; background: var(--warm-white); display: flex; align-items: center;
  justify-content: center; border-bottom: 0.5px solid var(--border);
  position: relative; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: var(--warm-white); }
.card-category {
  position: absolute; top: 10px; right: 10px; background: #fff;
  border: 0.5px solid var(--border-strong); border-radius: 4px;
  font-size: 11px; font-weight: 500; color: var(--gold); padding: 3px 8px;
}
.card-body { padding: 14px 16px 16px; }
.card-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.35; min-height: 38px; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.card-price-label { font-size: 11px; color: var(--ink-faint); }
.card-price { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--ink); }
.card-meta { text-align: right; font-size: 12px; color: var(--ink-faint); }
.card-bids { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }

/* HOW IT WORKS */
.how-section { background: var(--warm-white); border-top: 0.5px solid var(--border); padding: 56px 48px; }
.how-inner { max-width: 860px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border: 0.5px solid var(--border-strong); border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.step-num { font-family: 'Playfair Display', serif; font-size: 11px; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.5px; }
.step-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--ink-faint); line-height: 1.6; font-weight: 300; }

/* UTILITIES */
.page-wrap { padding: 32px 48px; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 28px; margin-bottom: 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.pill-pending  { background:#FEF3C7; color:#92400E; border:0.5px solid #F59E0B; }
.pill-approved { background:#ECFDF5; color:#065F46; border:0.5px solid #6EE7B7; }
.pill-rejected { background:#FEE2E2; color:#991B1B; border:0.5px solid #FCA5A5; }
.pill-live     { background:#EFF6FF; color:#1E40AF; border:0.5px solid #93C5FD; }
.pill-closed   { background:#F3F4F6; color:#374151; border:0.5px solid #D1D5DB; }
.btn-primary { padding: 9px 22px; background: var(--gold); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--gold-light); color: #fff; }
.btn-outline { padding: 9px 22px; background: transparent; color: var(--ink-muted); border: 0.5px solid var(--border-strong); border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: var(--warm-white); color: var(--ink); }
.btn-danger { padding: 9px 22px; background: transparent; color: var(--red); border: 0.5px solid rgba(192,57,43,0.35); border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.btn-danger:hover { background: #FEE2E2; }
.card { background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 20px 24px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.form-input { width: 100%; padding: 9px 12px; border: 0.5px solid var(--border-strong); border-radius: 6px; background: #fff; font-size: 14px; color: var(--ink); outline: none; transition: border-color 0.15s; }
.form-input:focus { border-color: var(--gold); }
.form-select { width: 100%; padding: 9px 12px; border: 0.5px solid var(--border-strong); border-radius: 6px; background: #fff; font-size: 14px; color: var(--ink); outline: none; cursor: pointer; }
.form-group { margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 11px; color: var(--ink-faint); font-weight: 500; text-align: left; padding: 10px 16px; background: var(--warm-white); border-bottom: 0.5px solid var(--border); letter-spacing: 0.3px; text-transform: uppercase; }
td { font-size: 13px; color: var(--ink); padding: 11px 16px; border-bottom: 0.5px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--warm-white); }
footer { padding: 24px 48px; border-top: 0.5px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-faint); margin-top: auto; }
.countdown { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.countdown.amber { color: var(--amber); }
.countdown.red { color: var(--red); }
.countdown.closed { color: var(--ink-faint); font-weight: 400; }

/* EXISTING PAGE STYLES */
.section { padding: 32px 48px; }
.loading { text-align: center; padding: 40px; color: var(--ink-faint); font-size: 14px; }
.warning-banner { background: #FEF3C7; border: 0.5px solid #F59E0B; border-radius: 8px; padding: 14px 20px; color: var(--amber); font-size: 14px; margin-bottom: 24px; }
.info-banner { background: var(--warm-white); border: 0.5px solid var(--border-strong); border-radius: 8px; padding: 14px 20px; color: var(--ink-muted); font-size: 14px; margin-top: 16px; }
.tab-bar { display: flex; gap: 0; border-bottom: 0.5px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-faint); cursor: pointer; transition: all 0.15s; }
.tab-btn:hover { color: var(--ink-muted); }
.tab-active { color: var(--ink); border-bottom-color: var(--gold); }
.tab-content { margin-top: 8px; }
.tab-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dashboard-list { display: flex; flex-direction: column; gap: 2px; }
.dashboard-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border: 0.5px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.dashboard-list-item:hover { border-color: var(--gold-muted); }
.dashboard-list-title { font-size: 14px; font-weight: 500; }
.dashboard-list-meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.status-badge { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.status-active { background: #ECFDF5; color: #065F46; }
.status-closed { background: #F3F4F6; color: #374151; }
.status-leading { background: #ECFDF5; color: #065F46; }
.status-outbid { background: #FEF3C7; color: #92400E; }
.btn-small { padding: 4px 12px; font-size: 12px; background: var(--gold); color: #fff; border-radius: 4px; text-decoration: none; }
.btn-disabled { opacity: 0.5; pointer-events: none; }

/* Auction detail */
.auction-detail { max-width: 1000px; margin: 0 auto; }
.auction-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.auction-gallery-main { aspect-ratio: 4/3; background: var(--warm-white); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.auction-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: var(--warm-white); }
.auction-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.auction-thumb { width: 60px; height: 60px; border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color 0.15s; }
.auction-thumb:hover, .auction-thumb-active { border-color: var(--gold); }
.auction-thumb img { width: 100%; height: 100%; object-fit: cover; }
.auction-detail-category { display: inline-block; font-size: 11px; font-weight: 500; color: var(--gold); border: 0.5px solid var(--border-strong); border-radius: 4px; padding: 3px 8px; margin-bottom: 8px; }
.auction-detail-title { font-size: 24px; margin-bottom: 8px; }
.auction-detail-seller { font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.auction-detail-price-block { background: var(--warm-white); border: 0.5px solid var(--border); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.auction-detail-price-label { font-size: 11px; color: var(--ink-faint); }
.auction-detail-price { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--ink); }
.auction-detail-meta { display: flex; gap: 24px; margin-bottom: 20px; }
.auction-detail-meta-label { font-size: 11px; color: var(--ink-faint); display: block; }
.auction-closed-banner { background: #F3F4F6; border: 0.5px solid #D1D5DB; border-radius: 8px; padding: 14px 18px; font-size: 14px; color: #374151; margin-top: 16px; }
.auction-detail-description { margin-top: 24px; padding-top: 20px; border-top: 0.5px solid var(--border); }
.auction-detail-description h3 { font-size: 16px; margin-bottom: 8px; }
.auction-detail-description p { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }
.auction-card-no-image { color: var(--ink-faint); font-size: 13px; }

/* Bid form */
.bid-form { background: var(--warm-white); border: 0.5px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-top: 16px; }
.bid-form-label { font-size: 11px; color: var(--ink-faint); }
.bid-form-current-price { font-size: 16px; font-weight: 600; }
.bid-form-min { font-size: 12px; color: var(--ink-faint); margin: 8px 0; }
.bid-form-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bid-form-input { flex: 1; padding: 9px 12px; border: 0.5px solid var(--border-strong); border-radius: 6px; font-size: 14px; outline: none; }
.bid-form-input:focus { border-color: var(--gold); }
.bid-form-currency { font-size: 14px; color: var(--ink-faint); }
.bid-form-submit { width: 100%; padding: 10px; background: var(--gold); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.bid-form-submit:hover { background: var(--gold-light); }
.bid-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.bid-form-error { color: var(--red); font-size: 13px; margin-top: 8px; }
.bid-form-success { color: var(--green); font-size: 13px; margin-top: 8px; }

/* Bid history */
.bid-history { margin-top: 32px; }
.bid-history h3 { font-size: 18px; margin-bottom: 12px; }
.bid-history-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.bid-history-user { color: var(--ink-muted); }
.bid-history-amount { font-weight: 500; }
.bid-history-time { color: var(--ink-faint); font-size: 12px; }

/* Messages */
.message-thread-list { display: flex; flex-direction: column; gap: 2px; }
.message-thread-item { display: flex; justify-content: space-between; padding: 14px 16px; background: #fff; border: 0.5px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.message-thread-item:hover { border-color: var(--gold-muted); }
.message-thread-unread { border-left: 3px solid var(--gold); }
.message-thread-title { font-size: 14px; font-weight: 500; }
.message-thread-other { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.message-thread-preview { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.message-thread-time { font-size: 11px; color: var(--ink-faint); }
.unread-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Chat */
.thread-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.thread-back { font-size: 13px; color: var(--ink-faint); }
.thread-title { font-size: 18px; }
.thread-title a { color: var(--ink); }
.chat-container { background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 20px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.chat-bubble-mine { align-self: flex-end; background: var(--gold); color: #fff; }
.chat-bubble-other { align-self: flex-start; background: var(--warm-white); border: 0.5px solid var(--border); color: var(--ink); }
.chat-bubble-sender { font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.chat-bubble-mine .chat-bubble-sender { color: rgba(255,255,255,0.7); }
.chat-bubble-other .chat-bubble-sender { color: var(--ink-faint); }
.chat-bubble-time { font-size: 10px; margin-top: 4px; opacity: 0.6; }
.chat-input-bar { display: flex; gap: 8px; margin-top: 12px; }
.chat-input { flex: 1; padding: 10px 12px; border: 0.5px solid var(--border-strong); border-radius: 6px; font-size: 14px; resize: none; outline: none; }
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn { padding: 10px 20px; }

/* Auth pages */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 64px); padding: 48px; }
.auth-card { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; padding: 36px 40px; width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--ink-faint); margin-bottom: 24px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 20px; }
.form-container { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; padding: 32px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-textarea { width: 100%; padding: 9px 12px; border: 0.5px solid var(--border-strong); border-radius: 6px; font-size: 14px; color: var(--ink); outline: none; resize: vertical; }
.form-textarea:focus { border-color: var(--gold); }
.form-file-input { font-size: 13px; color: var(--ink-muted); }
.form-actions { margin-top: 24px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 12px; }
.validation-message { color: var(--red); font-size: 12px; margin-top: 4px; }
.image-preview-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.image-preview-item { width: 80px; height: 80px; border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* Admin Layout */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar-light {
  width: 220px; background: var(--cream); border-right: 0.5px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar-logo {
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.admin-sidebar-badge {
  padding: 8px 20px; border-bottom: 0.5px solid var(--border); margin-bottom: 8px;
}
.admin-badge-tag {
  font-size: 10px; background: var(--gold); color: #fff; padding: 2px 8px;
  border-radius: 3px; font-weight: 500; letter-spacing: 0.4px;
}
.admin-sidebar-nav { padding: 0 10px; flex: 1; }
.admin-sidebar-footer { padding: 10px; border-top: 0.5px solid var(--border); }
.admin-nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 6px; font-size: 13px; color: var(--ink-muted);
  text-decoration: none; margin-bottom: 2px; transition: all 0.12s;
}
.admin-nav-item:hover { background: var(--warm-white); color: var(--ink); }
.admin-nav-item.active { background: var(--warm-white); color: var(--gold); font-weight: 500; }
.admin-main-light { flex: 1; background: var(--warm-white); min-height: 100vh; }
.admin-content-wrap { padding: 32px 40px; max-width: 1100px; }

/* Admin */
.admin-section { margin-top: 32px; }
.admin-section h2 { font-size: 18px; margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 20px; text-align: center; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.data-table { margin-top: 8px; }
.btn-approve { padding: 5px 14px; background: var(--green); color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; margin-right: 4px; }
.btn-reject { padding: 5px 14px; background: transparent; color: var(--red); border: 0.5px solid rgba(192,57,43,0.35); border-radius: 4px; font-size: 12px; cursor: pointer; }
.badge-category { background: #ECFDF5; color: #065F46; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-pending { background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.countdown-urgent { color: var(--red) !important; font-weight: 600; }
.delete-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.delete-dialog { background: #fff; border-radius: 12px; padding: 28px 32px; max-width: 400px; text-align: center; }
.delete-dialog h3 { font-size: 18px; margin-bottom: 10px; }
.delete-dialog p { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.delete-dialog-actions { display: flex; gap: 10px; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
  .st-nav { padding: 0 20px; }
  .st-nav-links { gap: 16px; }
  .hero { padding: 48px 20px 40px; }
  .hero-title { font-size: 36px; }
  .home-section { padding: 32px 20px; }
  .section { padding: 24px 20px; }
  .auction-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .auction-detail-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .how-section { padding: 40px 20px; }
  .auth-page { padding: 24px; }
}

/* Blazor error UI */
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
