/* Smoke & Satin Auctions — dark theme, mobile-first. */

:root {
  --bg: #141014;
  --bg2: #1d181d;
  --card: #221c22;
  --line: #352c35;
  --text: #f2e9f2;
  --muted: #a898a8;
  --accent: #c86b9a;      /* dusty rose */
  --accent2: #8a5a9e;     /* plum */
  --good: #6fbf8f;
  --warn: #d8a24a;
  --bad: #d96a6a;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand em { color: var(--accent); font-style: normal; font-weight: 400; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.8rem; font-weight: 800; margin-right: 0.4rem;
}
.topbar nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.nav-user { color: var(--muted); font-size: 0.9rem; }

/* ---------- layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }
h1 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }

/* ---------- buttons / forms ---------- */
.btn, .btn-small {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: var(--radius);
  padding: 0.7rem 1.4rem; font-size: 1rem; cursor: pointer; text-decoration: none;
}
.btn:hover, .btn-small:hover { filter: brightness(1.1); }
.btn-big { font-size: 1.15rem; padding: 0.9rem 2rem; width: 100%; }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; border-radius: 7px; }
.btn-small:disabled { opacity: 0.4; cursor: default; }
.btn-danger { background: var(--bad); }
.btn-ghost {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 7px; padding: 0.3rem 0.7rem; cursor: pointer; font-size: 0.85rem;
}
.inline-form { display: inline; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; max-width: 560px; display: grid; gap: 0.9rem;
}
.form-card label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form-card label.radio { display: block; font-weight: 400; padding: 0.6rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.form-card label.radio input { margin-right: 0.5rem; }
input, select, textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 1rem; width: 100%;
}
input[type="radio"], input[type="checkbox"] { width: auto; }
input[type="file"] { padding: 0.4rem 0; border: none; background: none; }
.form-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.alert-error { background: #3a1f24; border: 1px solid var(--bad); color: #f3c1c1; }
.alert-ok { background: #1e3327; border: 1px solid var(--good); color: #c4e8d2; }

/* ---------- lot cards ---------- */
.lot-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); display: block;
}
.lot-card:hover { border-color: var(--accent); }
.lot-thumb { position: relative; aspect-ratio: 4/3; background: var(--bg2); overflow: hidden; }
.lot-thumb img, .lot-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-thumb .badge { position: absolute; top: 0.5rem; left: 0.5rem; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.lot-card-body { padding: 0.8rem 1rem; }
.lot-card-body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.lot-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.3rem; }
.price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }

.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.2rem 0.55rem; border-radius: 20px; }
.badge-live { background: var(--good); color: #0e1a12; }
.badge-sched { background: var(--warn); color: #241a08; }
.badge-ended { background: #555; color: #ddd; }
.reserve-flag { color: var(--warn); font-size: 0.85rem; }
.reserve-ok { color: var(--good); font-size: 0.85rem; }

/* ---------- lot detail ---------- */
.lot-detail { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lot-detail { grid-template-columns: 1fr 1fr; } }
.lot-photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; background: var(--bg2); }
.lot-video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/9; background: #000; }
.msrp { margin-top: 4px; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.lot-thumb-sm { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.lot-head { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.lot-info h1 { margin-top: 0.5rem; }
.countdown { font-size: 1.1rem; margin: 0.5rem 0; }
.countdown strong { color: var(--accent); }
.current-bid { font-size: 1.25rem; margin: 0.5rem 0; }
.lot-desc { white-space: normal; color: #ddd2dd; }
.bid-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.7rem; margin-top: 1rem; max-width: 480px; }
.leader-tag { background: var(--good); color: #0e1a12; font-size: 0.7rem; font-weight: 700; border-radius: 10px; padding: 0.1rem 0.45rem; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }
.table .actions { white-space: nowrap; }
.table .actions .btn-small { margin: 0.1rem; }
.win { color: var(--good); font-weight: 700; }
.lose { color: var(--bad); font-weight: 700; }
.status-pill { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0.15rem 0.6rem; font-size: 0.85rem; }

/* ---------- invoice ---------- */
.invoice-done { background: var(--card); border: 1px solid var(--good); border-radius: var(--radius); padding: 1.25rem; max-width: 560px; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.admin-nav a { text-decoration: none; font-weight: 600; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; display: grid; gap: 0.25rem; }
.stat strong { font-size: 1.8rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- age gate ---------- */
.gate-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem;
  background: radial-gradient(ellipse at center, #241a24 0%, var(--bg) 70%); }
.gate { text-align: center; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 2.5rem 2rem; }
.gate .brand-mark { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; margin: 0; }
.gate-brand { margin-bottom: 1rem; }
.gate h1 { margin: 0 0 0.5rem; }
.gate-sub { color: var(--muted); margin: 0 0 1.25rem; }
.gate-q { font-size: 1.15rem; margin: 0 0 1.5rem; }
.gate form { margin-bottom: 1rem; }
.gate-exit { color: var(--muted); font-size: 0.9rem; }
.ship-note { color: var(--accent, #b48be0); font-weight: 600; margin: 0.5rem 0; }
.ship-note-card { color: var(--muted); font-size: 0.85rem; }
.ship-box { border: 1px solid var(--border, #333); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.ship-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
