/* Bidder pages (index.php / index_other.php). Built on tokens.css. Light theme. Black = actions, gold = wins,
   black = open / leading, coral = closing / outbid. */
:root {
  --bg: var(--n-25);
  --surface: var(--n-0);
  --surface-2: var(--n-50);
  --line: rgba(0,0,0, .10);
  --line-strong: rgba(0,0,0, .20);
  --text: #111111;
  --muted: var(--n-500);
  --primary: var(--pine-700);
  --primary-hover: var(--pine-800);
  --on-primary: #ffffff;
  --open: var(--open-ink);       --open-bg: var(--open-soft);
  --closing: var(--closing-ink); --closing-bg: var(--closing-soft); --closing-line: var(--closing-ring);
  --win: var(--gold-ink);        --win-bg: var(--gold-soft);
  --shadow: 0 1px 2px rgba(0,0,0, .05), 0 8px 24px rgba(0,0,0, .06);
  --shadow-lg: 0 24px 60px rgba(0,0,0, .22);
  --img-bg: #111111;
  --tab-on: var(--n-0);
}
html, body { background: var(--bg); }
body.auction-body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.ico { flex-shrink: 0; }
button { font: inherit; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
}
.app-header-inner, .app-main { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.app-brand:hover { color: var(--text); }
.app-brand-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-control); display: inline-flex; align-items: center; justify-content: center; background: #000000; color: var(--gold-400); }
.app-brand-mark svg { width: 24px; height: 24px; }
.app-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.app-brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.app-member { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 3px 3px 3px 12px; border-radius: var(--r-pill); color: var(--text); min-width: 0; transition: transform .15s var(--ease); }
.app-member:active { transform: scale(.97); }
.app-member-name { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #000000; color: var(--gold-300); font-weight: 800; font-size: 14px; flex-shrink: 0;
}

/* ---------- Tabs (segmented) ---------- */
.app-main { padding-top: 16px; }
.app-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 auto 8px; max-width: 420px;
  background: var(--surface-2); border-radius: var(--r-pill); border: 1px solid var(--line);
}
.app-tab {
  flex: 1; background: none; border: 0; padding: 10px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.app-tab:active { transform: scale(.98); }
.app-tab.is-active { background: var(--tab-on); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0, .08), 0 4px 12px rgba(0,0,0, .06); }

.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 20px 2px 12px; }

/* ---------- Item cards ---------- */
.item-list { display: flex; flex-direction: column; gap: 12px; transition: opacity .25s var(--ease); }
.item-list.is-switching { opacity: .35; }
.item-row {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .18s var(--ease), border-color .25s var(--ease);
}
.item-row:active { transform: scale(.985); }
.item-row.is-closing { border-color: var(--closing-line); box-shadow: 0 0 0 1px var(--closing-line), var(--shadow); animation: closing-ring 1.4s ease-in-out infinite; }
.item-row.is-won { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500), var(--shadow); cursor: default; }
.item-row.is-sold { opacity: .7; cursor: default; }
.item-row.is-entering { animation: fade-up .45s var(--ease) both; }
.item-row.is-closing.is-entering { animation: fade-up .45s var(--ease) both, closing-ring 1.4s ease-in-out .45s infinite; }
.item-row.is-leaving { animation: fade-out .3s var(--ease) both; pointer-events: none; }
.item-row-img { width: 100px; height: 100px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--img-bg); }
.item-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item-row-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.item-weight { white-space: nowrap; font-weight: 600; }
.item-row-price { display: flex; flex-direction: column; line-height: 1.05; margin-top: 2px; }
.item-row-price span { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.item-row-price-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.item-row-price-value small { font-size: .5em; font-weight: 700; color: var(--muted); margin-right: 5px; letter-spacing: .02em; }
.my-bid-note { font-size: 12.5px; font-weight: 700; }
.my-bid-note.is-leading { color: var(--open); }
.my-bid-note.is-won { color: var(--win); }
.my-bid-note.is-outbid { color: var(--closing); }
.my-bid-note.is-lost { color: var(--muted); }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-open { color: var(--open); background: var(--open-bg); }
.status-closing { color: var(--closing); background: var(--closing-bg); }
.status-closing svg { animation: pulse 1.2s ease-in-out infinite; }
.status-sold { color: var(--muted); background: var(--surface-2); }
.status-sold.status-won { color: var(--win); background: var(--win-bg); }

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.btn-cta:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-cta:active { transform: scale(.97); }
.btn-cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.btn-cta-lg { width: 100%; min-height: 54px; font-size: 17px; margin-top: 16px; }
.btn-cta-outline { background: transparent; border: 1.5px solid var(--closing-line); color: var(--closing); margin-top: 8px; }
.btn-cta-outline:hover { background: var(--closing-bg); color: var(--closing); }
.btn-cta-quiet { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); margin-top: 8px; }
.btn-cta-quiet:hover { background: var(--surface-2); color: var(--text); }
.btn-arrow {
  width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #000000; color: #ffffff;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-arrow:active { transform: scale(.92); }
.item-row:hover .btn-arrow { background: var(--n-700); color: #ffffff; }

.empty-state { text-align: center; padding: 48px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); background: var(--surface); font-size: 15px; line-height: 1.5; }
.empty-state strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.skeleton-row { height: 122px; border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

/* ---------- Bottom navigation ---------- */
.app-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line); padding: 6px 8px env(safe-area-inset-bottom, 0px);
}
.app-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; background: none; border: 0; color: var(--muted); font-size: 11.5px; font-weight: 700; position: relative; transition: color .2s; }
.app-nav-btn .ico-nav { width: 44px; height: 30px; padding: 4px 10px; border-radius: var(--r-pill); transition: background .25s var(--ease), color .25s var(--ease); }
.app-nav-btn.is-active { color: var(--text); }
.app-nav-btn.is-active .ico-nav { background: var(--surface-2); color: var(--primary); }

/* ---------- Modals: bottom sheets on phones, centred cards on larger screens ---------- */
div.modal { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-backdrop { --bs-backdrop-bg: #000000; --bs-backdrop-opacity: .55; }
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; box-shadow: var(--shadow-lg); }
.modal.fade .modal-dialog { transition: transform .4s var(--ease), opacity .3s; transform: translateY(32px); }
.modal.show .modal-dialog { transform: none; }
@media (max-width: 575.98px) {
  .modal-dialog-centered { align-items: flex-end; margin: 0; min-height: 100%; }
  .modal-dialog-scrollable { height: auto; max-height: 100%; margin: 0; }
  .modal-dialog-scrollable .modal-content { max-height: calc(100dvh - 24px); }
  .modal-content { border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-header::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
}
.modal-header { position: relative; border-bottom: 0; padding: 22px 20px 12px; align-items: flex-start; }
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.modal .btn-close { width: 36px; height: 36px; padding: 0; margin: -4px -6px 0 auto; border-radius: 50%; background-color: var(--surface-2); background-size: 12px; opacity: 1; }
.modal-body { padding: 4px 20px 20px; }
.bid-modal .modal-body { padding: 0; }
.bid-modal-item { font-size: 14px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.bid-modal-media { position: relative; display: block; width: calc(100% - 32px); margin: 0 16px; padding: 0; border: 0; aspect-ratio: 4 / 3; background: var(--img-bg); border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; }
.bid-modal-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(0,0,0,.62); color: #ffffff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.bid-modal-zoom svg { width: 14px; height: 14px; }
.bid-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 20px 0; }
.bid-fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.bid-fact strong { color: var(--text); font-weight: 700; }
.bid-description { margin: 12px 20px 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.bid-modal-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bid-modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 6px; }
.bid-stat { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bid-stat-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.bid-stat-value { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.bid-stat-primary .bid-stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bid-stat-value small { font-size: 12px; color: var(--muted); font-weight: 700; }
.bid-form { padding: 10px 20px 20px; }
.bid-form-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.bid-input-row { display: flex; gap: 8px; }
.bid-input { flex: 1; min-width: 0; height: 56px; border-radius: 14px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.bid-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); background: var(--surface); color: var(--text); }
.bid-step { flex: 0 0 auto; min-width: 68px; height: 56px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; transition: transform .12s var(--ease), background .15s; }
.bid-step:active { transform: scale(.95); }
.bid-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.bid-error { font-size: 14px; font-weight: 700; color: var(--closing); margin-top: 8px; }
.reg-intro { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.reg-modal .form-label, .login-card .form-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.reg-modal .form-control, .login-card .form-control { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); border-radius: 14px; min-height: 54px; font-size: 17px; }
.reg-modal .form-control::placeholder, .login-card .form-control::placeholder { color: var(--n-400); }
.reg-modal .form-control:focus, .login-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); background: var(--surface); color: var(--text); }
.reg-modal .form-text, .login-card .form-text { font-size: 13px; color: var(--muted); }
.account-view { display: flex; flex-direction: column; gap: 10px; }
.account-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.account-row span { font-size: 14px; color: var(--muted); }
.account-row strong { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-view .reg-intro { margin: 6px 0 0; }

/* Busy overlay inside the bid modal */
.loader { display: none; position: absolute; inset: 0; z-index: 99; background: color-mix(in srgb, var(--surface) 85%, transparent); justify-content: center; align-items: center; }
.loader::after { content: ''; width: 44px; height: 44px; border: 4px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .9s linear infinite; }

/* Notifications */
.toast-wrapper { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.notice { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: notice-in .35s var(--ease); }
.notice.is-tappable { cursor: pointer; }
.notice.is-leaving { animation: notice-out .22s ease-in forwards; }
.notice-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.notice-error .notice-icon { background: var(--closing-bg); color: var(--closing); }
.notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.notice-text strong { font-size: 15px; font-weight: 700; }
.notice-text span { font-size: 13.5px; color: var(--muted); }
/* Bid placed: a bold black card so the confirmation cannot be missed on a busy floor */
.notice-success { gap: 14px; padding: 16px 14px 16px 16px; border-radius: 22px; background: var(--n-900); border-color: var(--n-900); color: #ffffff; box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 0 4px var(--gold-soft); animation: notice-in .35s var(--ease), notice-pop .6s var(--ease) .1s; }
.notice-success .notice-icon { width: 48px; height: 48px; background: var(--gold-400); color: var(--n-900); box-shadow: 0 0 0 5px rgba(232,194,106,.25); }
.notice-success .notice-icon svg { width: 28px; height: 28px; }
.notice-success .notice-text strong { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--gold-300); }
.notice-success .notice-text span { font-size: 16px; font-weight: 600; color: #ffffff; }
.notice-success .notice-close { color: rgba(255,255,255,.75); }
.notice-success .notice-close:hover { color: #ffffff; }
.notice-close { flex-shrink: 0; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; }

/* You won / outbid */
.win-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.win-overlay.is-open { opacity: 1; }
.win-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.win-card { position: relative; width: 100%; max-width: 380px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 30px 22px 22px; box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .45s var(--ease); }
.win-overlay.is-open .win-card { transform: scale(1); }
.win-badge { width: 76px; height: 76px; margin: -68px auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-400); color: #2b1f05; box-shadow: 0 0 0 6px var(--surface); animation: win-pop .6s var(--ease); }
.win-title { font-size: 28px; font-weight: 800; margin: 4px 0 14px; color: var(--text); letter-spacing: -0.02em; }
.win-image { width: 150px; height: 150px; object-fit: cover; border-radius: var(--r-card); background: var(--img-bg); margin-bottom: 14px; }
.win-item { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.win-amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--win); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.win-note { font-size: 15px; color: var(--muted); margin: 0 0 6px; line-height: 1.5; }
.win-badge.is-outbid { background: var(--closing-line); color: #fff; }
.win-title.is-outbid { color: var(--closing); }
.outbid-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.outbid-figures strong { grid-row: 2; font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.outbid-figures em { grid-row: 2; font-style: normal; font-size: 24px; font-weight: 800; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.outbid-figures span:nth-of-type(2) { grid-column: 2; grid-row: 1; }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.1); color: var(--open); } 100% { transform: scale(1); } }
.bump { display: inline-block; animation: bump .7s var(--ease); }
@keyframes closing-ring {
  0%, 100% { box-shadow: 0 0 0 1px var(--closing-line), var(--shadow); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--closing-line) 25%, transparent), var(--shadow); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes notice-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes notice-pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes win-pop { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 380px) {
  .item-row-img { width: 88px; height: 88px; }
  .item-row-name { font-size: 16px; }
  .item-row-price-value { font-size: 22px; }
  .app-member-name { display: none; }
  .app-member { padding: 3px; }
}
@media (min-width: 768px) {
  .item-list { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Login gate: shown in place of the tabs and list until the bidder enters a name and mobile number */
body.is-gated { padding-bottom: 24px; }
.login-gate { display: flex; align-items: flex-start; justify-content: center; padding-top: 32px; min-height: calc(100dvh - 64px); }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 30px 22px 24px; box-shadow: var(--shadow); text-align: center; }
.login-mark { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #000000; color: var(--gold-400); }
.login-mark svg { width: 34px; height: 34px; }
.login-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.login-card .reg-intro { margin-bottom: 22px; }
.login-card form { text-align: left; }
.login-card .btn-cta-lg { margin-top: 20px; }
@media (min-width: 576px) { .login-gate { align-items: center; padding-top: 0; min-height: calc(100dvh - 64px - 24px); } }

/* Full-screen photo viewer, above the bid sheet */
body.photo-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; background: #000000; opacity: 0; transition: opacity .2s ease; }
.photo-viewer.is-open { opacity: 1; }
.photo-viewer-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.photo-viewer-stage { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.photo-viewer-stage.is-zoomed { cursor: grab; }
.photo-viewer-stage img { width: 100%; height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.photo-viewer-hint { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; pointer-events: none; }
