/* ============================================================
   L'Autographe International Auction House
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;500;700&display=swap');

/* --- Variables --- */
:root {
  --navy: #3C2A14;
  --navy-light: #4E3820;
  --gold: #B8956A;
  --gold-light: #CAAA82;
  --cream: #F5F0EA;
  --white: #FDFBF8;
  --text: #2C2418;
  --text-light: #6B5D4F;
  --text-muted: #A09484;
  --border: #E4DDD4;
  --border-light: #EDE8E1;
  --success: #5A8A52;
  --sold: #B87333;
  --font-serif: 'Cardo', Georgia, 'Times New Roman', serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
::selection { background: var(--gold-light); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--navy); line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--text-light); max-width: 640px; font-size: 1.05rem; line-height: 1.7; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .section-desc { color: rgba(255,255,255,0.7); }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover { color: var(--navy); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2C1E0F 0%, #3C2A14 50%, #4E3820 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(184,149,106,0.06)"/></svg>');
  background-size: 40px 40px;
}
.hero .container { position: relative; z-index: 1; text-align: center; padding: 80px 24px; }
.hero h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .tagline {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero .gold-line {
  width: 60px; height: 2px; background: var(--gold);
  margin: 0 auto 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); }

/* --- Upcoming Auction Banner --- */
.upcoming-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.upcoming-banner .label { color: var(--gold); margin-bottom: 8px; }
.upcoming-banner h3 { margin-bottom: 8px; }
.upcoming-banner .date { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }

/* --- Department Cards --- */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.dept-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s;
}
.dept-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.dept-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.dept-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.dept-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* --- Auction Cards --- */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.auction-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--white);
}
.auction-card:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.auction-card .card-img {
  width: 100%; height: 200px; object-fit: cover; background: var(--cream);
}
.auction-card .card-body { padding: 20px; }
.auction-card .card-date {
  font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.auction-card h4 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.auction-card .card-meta { font-size: 0.85rem; color: var(--text-light); }
.auction-card .state-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-top: 10px;
}
.state-ARCHIVED, .state-ENDED { background: #F0E8DD; color: var(--sold); }
.state-READY, .state-PENDING { background: #E8E0D5; color: #7A6340; }
.state-RUNNING { background: #E4EDDF; color: var(--success); }

/* --- Lot Grid --- */
.lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.lot-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  background: var(--white);
}
.lot-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.lot-card img {
  width: 100%; height: 180px; object-fit: contain; background: var(--cream);
  padding: 8px;
}
.lot-card .lot-body { padding: 12px 14px; }
.lot-card .lot-number { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.lot-card .lot-title { font-size: 0.85rem; color: var(--text); line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lot-card .lot-author { font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; }
.lot-card .lot-price { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.lot-card .lot-price.sold { color: var(--sold); }
.lot-card .lot-price.bid { color: var(--success); }
.lot-card .lot-estimate { font-size: 0.75rem; color: var(--text-muted); }

/* --- Lot Detail Modal --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.visible { opacity: 1; }
.modal {
  background: var(--white);
  border-radius: 6px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.visible .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  background: none; border: none; font-size: 28px;
  color: var(--text-muted); padding: 4px 8px; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-content { display: flex; flex-wrap: wrap; }
.modal-gallery {
  flex: 1; min-width: 300px; background: var(--cream);
  display: flex; flex-direction: column; align-items: center;
  padding: 24px;
}
.modal-gallery .main-img {
  max-width: 100%; max-height: 380px; object-fit: contain;
  border-radius: 4px; margin-bottom: 12px;
}
.modal-thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.modal-thumbs img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 3px;
  border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
}
.modal-thumbs img:hover, .modal-thumbs img.active { border-color: var(--gold); }
.modal-info { flex: 1; min-width: 300px; padding: 24px; }
.modal-info h2 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-info .author { color: var(--gold); font-size: 1rem; margin-bottom: 16px; }
.modal-info .price-table { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.modal-info .price-table td {
  padding: 8px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border-light);
}
.modal-info .price-table td:first-child { color: var(--text-muted); width: 120px; }
.modal-info .description {
  color: var(--text-light); font-size: 0.9rem; line-height: 1.7;
  max-height: 200px; overflow-y: auto; margin-bottom: 12px;
}
.modal-info .params { color: var(--text-muted); font-size: 0.85rem; padding-top: 12px; border-top: 1px solid var(--border-light); }

/* --- CTA Section --- */
.cta-section { text-align: center; padding: 80px 24px; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-light); max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 8px; font-size: 0.95rem; }
.contact-info .info-block { margin-bottom: 24px; }
.contact-info .info-label { font-weight: 500; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: #2C1E0F;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer a:hover { color: var(--gold); }
.footer .logo { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.8rem; text-align: center; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }

/* --- Loading --- */
.loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 2px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Auction Detail (Expanded) --- */
.auction-detail {
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
}
.auction-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
}
.auction-detail-header h2 { font-size: 1.5rem; }
.auction-detail .lot-count { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }
.back-btn {
  background: none; border: 1px solid var(--border); padding: 8px 20px;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-light); border-radius: 2px;
}
.back-btn:hover { border-color: var(--navy); color: var(--navy); }

/* --- Auction Info Panels --- */
.auction-info-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.info-toggle {
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  transition: all 0.2s;
}
.info-toggle:hover { border-color: var(--gold); color: var(--navy); }
.info-toggle.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.auction-info-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  max-height: 400px;
  overflow-y: auto;
}
.auction-info-content h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--navy); }
.auction-info-content p { margin-bottom: 10px; }
.auction-info-content b, .auction-info-content strong { color: var(--text); }

/* --- Lot Toolbar (search, per-page, pagination) --- */
.lot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.lot-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239A9A9A' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.2s;
}
.lot-search:focus { outline: none; border-color: var(--gold); }
.lot-search::placeholder { color: var(--text-muted); }
.lot-toolbar-right { display: flex; gap: 12px; align-items: center; }
.per-page-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}
.per-page-select:focus { outline: none; border-color: var(--gold); }
.lot-toolbar .result-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: all 0.2s;
  padding: 0 8px;
}
.page-btn:hover { border-color: var(--gold); color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn:disabled:hover { border-color: var(--border); color: var(--text); }
.page-ellipsis { padding: 0 6px; color: var(--text-muted); font-size: 0.85rem; }

/* --- Image Zoom Viewer --- */
.zoom-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.zoom-overlay.dragging { cursor: grabbing; }
.zoom-toolbar {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 8px; z-index: 2001;
}
.zoom-toolbar button {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.zoom-toolbar button:hover { background: rgba(255,255,255,0.25); }
.zoom-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.85rem; z-index: 2001;
}
.zoom-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2001; transition: background 0.2s;
}
.zoom-nav:hover { background: rgba(255,255,255,0.25); }
.zoom-nav.prev { left: 16px; }
.zoom-nav.next { right: 16px; }
.zoom-img-container {
  overflow: hidden;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.zoom-img-container img {
  max-width: none; max-height: none;
  transition: transform 0.1s ease-out;
  user-select: none; -webkit-user-drag: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .hamburger { display: block; }
  .departments-grid { grid-template-columns: 1fr; }
  .auctions-grid { grid-template-columns: 1fr; }
  .lots-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-content { flex-direction: column; }
  .hero { min-height: 400px; }
  .section { padding: 48px 0; }
  .auction-detail { padding: 16px; }
  .auth-link { font-size: 0.75rem !important; }
  .user-menu__trigger span { display: none; }
}

/* ============================================================
   AUTH UI — Phase 3
   ============================================================ */

/* Auth nav links */
#auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.auth-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 6px 0;
}
.auth-link:hover { color: var(--navy); }
.auth-link--register {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.75rem;
}
.auth-link--register:hover { background: var(--navy-light); color: var(--white) !important; }

/* User menu dropdown */
.user-menu { position: relative; }
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.user-menu__trigger:hover { background: var(--cream); }
.user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 200;
}
.user-menu__dropdown.open { display: block; }
.user-menu__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text);
}
.user-menu__dropdown a:hover { background: var(--cream); color: var(--navy); }
.user-menu__divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Auth overlay + modal */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: var(--white);
  border-radius: 6px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.auth-modal__header h3 {
  font-size: 1.4rem;
  margin: 0;
}
.auth-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}
.auth-modal__close:hover { color: var(--navy); }

/* Auth forms */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form__desc { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.auth-form__submit { width: 100%; justify-content: center; padding: 14px; margin-top: 4px; }
.auth-form__footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 8px;
}
.auth-form__footer a { color: var(--gold); font-weight: 500; }
.auth-form__footer a:hover { color: var(--navy); }
.auth-form__sep { margin: 0 8px; }

.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
.form-input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,149,106,0.12);
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  color: #C0392B;
  font-size: 0.85rem;
  min-height: 0;
}
.form-error:empty { display: none; }
.form-success {
  color: var(--success);
  font-size: 0.85rem;
  min-height: 0;
}
.form-success:empty { display: none; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; }

/* ============================================================
   BIDDING UI — Phase 4
   ============================================================ */

.bid-section {
  margin: 16px 0;
  padding: 16px;
  background: var(--cream);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.bid-yours {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 10px;
}
.bid-form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.bid-step-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.2rem;
  border-radius: 3px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bid-step-btn:hover { background: var(--cream); }
.bid-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-align: center;
  color: var(--navy);
}
.bid-input:focus { outline: none; border-color: var(--gold); }

.fav-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  vertical-align: middle;
}
.fav-btn.active { color: #C0392B; }
.fav-btn:hover { color: #C0392B; }

/* Live banner */
.live-banner {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 0;
  font-size: 0.9rem;
}
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  margin-right: 6px;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   ACCOUNT PAGE — Phase 5
   ============================================================ */

.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.account-panel { min-height: 200px; }
.account-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.account-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.account-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white);
}
.account-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.account-item__info { flex: 1; min-width: 0; }
.account-item__auction {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.account-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-item__price {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-right: 8px;
}
.account-item__price.sold { color: var(--sold); font-weight: 500; }
.account-item__status {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 2px;
}
.account-item__status.leading { color: var(--success); background: rgba(90,138,82,0.1); }
.account-item__status.outbid { color: #C0392B; background: rgba(192,57,43,0.1); }
