@import url('/vendor/fonts/inter-tight/index.css');
@import url('/vendor/fonts/instrument-serif/latin-400-italic.css');

/* =========================================================
   Gifta — Liquid Glass design system
   ========================================================= */
/* White theme only: the site stays light even when the device is in dark mode. */
:root {
  --bg: #f8f8fa;
  --text: #16141c;
  --text-2: #3d3a47;
  --muted: #74717f;
  --line: rgba(22, 20, 28, 0.08);

  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-hover: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.92);
  --glass-edge: rgba(22, 20, 28, 0.05);
  --hl: #ffffff;
  --spec: rgba(255, 255, 255, 0.75);
  --shadow: 0 0 0 1px rgba(22, 20, 28, 0.045), 0 16px 44px -22px rgba(30, 30, 55, 0.2), 0 1px 3px rgba(30, 30, 55, 0.05);
  --shadow-lg: 0 0 0 1px rgba(22, 20, 28, 0.05), 0 36px 80px -34px rgba(30, 30, 55, 0.3), 0 3px 10px rgba(30, 30, 55, 0.06);
  --blur: blur(24px) saturate(160%);

  --accent: #e2263f;
  --accent-ink: #ffffff;
  --accent-grad: linear-gradient(135deg, #ff6a5c 0%, #e2263f 48%, #c2185b 100%);
  --accent-glow: 0 10px 30px -8px rgba(226, 38, 63, 0.55);
  --accent-soft: rgba(226, 38, 63, 0.1);
  --ok: #0f8a54;
  --ok-soft: rgba(15, 138, 84, 0.12);
  --warn: #9a5a00;
  --warn-soft: rgba(245, 166, 35, 0.2);

  /* very soft tints behind the glass — just enough for the frosted effect to read */
  --blob-1: #ffcfc6;
  --blob-2: #cfe6ff;
  --blob-3: #e6dbff;
  --blob-4: #ffebc4;
  --blob-opacity: 0.5;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: 'Inter Tight Variable', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* fluid layout: content grows with the screen up to 2160px, side gutters scale too */
  --container: 2160px;
  --gutter: clamp(16px, 3.4vw, 80px);
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; }
body {
  color: var(--text);
  font: 400 clamp(15.5px, 0.3vw + 11px, 18px)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.025em; font-weight: 650; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 0.84em; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-top: clamp(28px, 2vw, 48px); padding-bottom: 72px; }

/* ---------- aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora .blob {
  position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%;
  filter: blur(90px); opacity: var(--blob-opacity); will-change: transform;
}
.aurora .b1 { background: var(--blob-1); top: -22vmax; left: -14vmax; }
.aurora .b2 { background: var(--blob-2); top: -10vmax; right: -20vmax; }
.aurora .b3 { background: var(--blob-3); bottom: -26vmax; left: 18vmax; }
.aurora .b4 { background: var(--blob-4); bottom: -30vmax; right: -12vmax; width: 40vmax; height: 40vmax; }
.aurora .grain {
  position: absolute; inset: -50%; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- glass primitive ---------- */
.glass, .card, .lot-card, .tabs, .table-wrap, .site-header .bar, details.faq, .ticker, .pill {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--hl), inset 0 -1px 0 var(--glass-edge), var(--shadow);
  position: relative;
  isolation: isolate;
}
/* specular highlight that follows the pointer (--mx / --my set from JS) */
.glass::before, .card::before, .lot-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 20%) var(--my, -20%), var(--spec), transparent 42%);
  opacity: 0.9; transition: opacity 0.4s var(--ease);
}
.card { border-radius: var(--r-lg); padding: 22px; }
.glass-strong { background: var(--glass-strong); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 12px; z-index: 30; padding: 0 var(--gutter); margin-top: 12px; }
.site-header .bar {
  max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; height: clamp(60px, 1.2vw + 43px, 72px); border-radius: 999px;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled .bar { background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg); }
.brand { font-weight: 750; font-size: 1.22em; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center;
  color: #fff; box-shadow: var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.45);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a, .nav button.linklike {
  text-decoration: none; padding: 0.55em 0.9em; border-radius: 999px; color: var(--text-2); font-weight: 520; font-size: 0.94em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a:hover, .nav a.active, .nav button.linklike:hover { color: var(--text); background: var(--glass-strong); }
.nav .btn-primary { margin-left: 6px; color: var(--accent-ink) !important; padding: 9px 16px; }
.bell { position: relative; display: inline-grid !important; place-items: center; width: 38px; height: 38px; padding: 0 !important; }
.bell svg { width: 18px; height: 18px; }
.bell .count {
  position: absolute; top: 3px; right: 2px; background: var(--accent-grad); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 9px; padding: 0 5px; min-width: 17px; text-align: center; line-height: 17px; box-shadow: var(--accent-glow);
}
@media (max-width: 680px) {
  .site-header { top: 8px; padding: 0 10px; }
  .site-header .bar { height: 54px; padding: 0 6px 0 14px; gap: 6px; }
  .brand { font-size: 17px; }
  .brand .tld { display: none; }
  .nav a, .nav button.linklike { padding: 7px 9px; font-size: 14px; }
  .nav a.hide-sm, .nav .nav-logout { display: none; }
}

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-weight: 600; font-size: 0.97em; letter-spacing: -0.01em;
  border: 1px solid var(--glass-border); background: var(--glass-strong); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--hl), 0 4px 14px -6px rgba(0,0,0,.18);
  padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), filter .25s var(--ease);
}
button:hover, .btn:hover { background: var(--glass-hover); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0) scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--accent-grad); border-color: rgba(255,255,255,.28); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-grad); filter: brightness(1.06) saturate(1.05); }
.btn-lg { padding: 0.95em 1.65em; font-size: 1.03em; }
.btn-small { padding: 0.45em 0.95em; font-size: 0.84em; }
.btn-danger { color: var(--accent); }
.btn svg, button svg { width: 18px; height: 18px; flex: none; }
button.linklike { background: none; border: 0; padding: 0; font-weight: 500; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
button.linklike:hover { transform: none; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 7px; color: var(--text-2); }
.field { margin-bottom: 18px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.84em; margin-top: 6px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--glass-border); border-radius: var(--r-sm);
  background: var(--glass-strong); color: var(--text); box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 150px; resize: vertical; }
input[type='file'] { padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.form-card { max-width: 460px; margin: 40px auto; padding: 30px; border-radius: var(--r-xl); }
.form-card h1 { font-size: 32px; }
.error { background: var(--accent-soft); color: var(--accent); padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 550; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 16px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--glass-strong); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.badge.live { color: var(--accent); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 38, 63, .55); } 70% { box-shadow: 0 0 0 8px rgba(226, 38, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 38, 63, 0); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 0.9em; font-weight: 550; color: var(--text-2); }
.pill .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; color: #fff; }
.pill .dot svg { width: 13px; height: 13px; }

/* ---------- segmented tabs ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; margin-bottom: 22px; max-width: 100%; overflow-x: auto; }
.tabs button {
  position: relative; z-index: 1; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0.6em 1.15em; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.tabs button:hover { transform: none; color: var(--text); background: transparent; }
.tabs button.active { color: var(--text); }
.tabs .tab-ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--hl), 0 6px 18px -8px rgba(0,0,0,.3); border: 1px solid var(--glass-border);
}
.tabs:not(.js) button.active { background: var(--glass-strong); }

/* ---------- lot cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(248px, 11vw, 330px), 1fr)); gap: clamp(16px, 1.2vw, 26px); }
.lot-card {
  border-radius: var(--r-lg); padding: 9px; text-decoration: none; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background .45s var(--ease);
}
.lot-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg); background: var(--glass-hover); }
.lot-card .thumb { aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 7px); overflow: hidden; position: relative; background: var(--glass-strong); }
.lot-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.lot-card:hover .thumb img { transform: scale(1.045); }
.thumb > .badge { position: absolute; top: 10px; left: 10px; }
.thumb > .demo-badge { left: auto; right: 10px; color: var(--warn); }
.thumb .time-chip {
  position: absolute; left: 10px; bottom: 10px; padding: 0.45em 0.85em; border-radius: 999px; font-size: 0.84em; font-weight: 650;
  background: rgba(20, 16, 28, 0.42); color: #fff; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; gap: 6px;
}
.thumb .time-chip svg { width: 13px; height: 13px; }
.thumb .time-chip.urgent { background: rgba(226, 38, 63, 0.82); }
.lot-card .body { padding: 13px 8px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lot-card .title { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lot-card .meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; gap: 8px; }
.price { font-size: clamp(22px, 0.6vw + 14px, 28px); font-weight: 720; letter-spacing: -0.03em; }
.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { color: var(--accent); text-shadow: 0 0 22px var(--accent-soft); } 100% { color: inherit; } }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }

/* ---------- lot page ---------- */
.lot-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: clamp(24px, 2.2vw, 52px); align-items: start; }
.lot-layout > .lot-gallery { grid-column: 1; grid-row: 1; }
.lot-layout > .lot-desc { grid-column: 1; grid-row: 2; }
.lot-layout > .bid-panel { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 880px) {
  .lot-layout { grid-template-columns: 1fr; gap: 20px; }
  .lot-layout > .lot-gallery, .lot-layout > .lot-desc, .lot-layout > .bid-panel { grid-column: 1; grid-row: auto; }
  .bid-panel { position: static !important; }
}
.gallery .main { aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; padding: 0; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; }
.thumbs button { padding: 0; width: 78px; height: 60px; flex: none; overflow: hidden; border-radius: 12px; }
.thumbs button.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bid-panel { position: sticky; top: 92px; }
.bid-panel .card { border-radius: var(--r-xl); padding: 24px; }
.bid-panel h1 { font-size: clamp(24px, 1.9vw, 40px); }
.bid-panel .price { font-size: clamp(40px, 2.6vw, 62px); line-height: 1.05; }
.timer { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.stat-row .timer { font-size: 18px; margin-top: 2px; }
.timer.urgent { color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 18px 0; }
.stat-row > div { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-md); padding: 10px 12px; box-shadow: inset 0 1px 0 var(--hl); }
.bid-form { display: flex; gap: 8px; margin-top: 8px; }
.bid-form .money { position: relative; flex: 1; }
.bid-form .money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.bid-form .money input { padding-left: 30px; border-radius: 999px; font-size: 17px; font-weight: 650; height: 52px; }
.bid-form button { height: 52px; padding: 0 24px; }
.bid-list { list-style: none; padding: 0; margin: 0; }
.bid-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bid-list li:last-child { border-bottom: 0; }
.bid-list li:first-child { font-weight: 700; }
.bid-list .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.description { white-space: pre-wrap; color: var(--text-2); }
.lot-desc { border-radius: var(--r-xl); }
.pay-box { border: 1.5px solid var(--ok) !important; }
.pay-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; }
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; font-weight: 650; word-break: break-word; }
.copy { margin-left: 6px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); padding: 0 !important; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
td img { width: 52px; height: 40px; object-fit: cover; border-radius: 9px; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--glass); }

/* ---------- misc layout ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section { margin-top: 36px; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item img, .list-item .ph { width: 68px; height: 51px; object-fit: cover; border-radius: 10px; background: var(--glass-strong); flex: none; }
.list-item .grow { flex: 1; min-width: 0; }
.notif { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { font-weight: 650; }
.img-edit { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.img-edit .it { position: relative; width: 116px; height: 87px; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); }
.img-edit .it img { width: 100%; height: 100%; object-fit: cover; }
.img-edit .it button { position: absolute; top: 5px; right: 5px; padding: 2px 8px; font-size: 12px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); }
#toast div {
  background: rgba(20, 16, 28, 0.78); color: #fff; padding: 13px 18px; border-radius: 16px; font-weight: 520;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px -14px rgba(0,0,0,.5);
}
.prose { max-width: 920px; }
.prose li { margin-bottom: 8px; color: var(--text-2); }
.prose h2 { margin-top: 1.4em; }
a.link { color: var(--accent); text-decoration: none; font-weight: 600; }
a.link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 0 var(--gutter) 28px; }
.site-footer .inner {
  max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; border-radius: var(--r-xl); padding: clamp(28px, 2vw, 44px); display: grid; gap: 24px;
  grid-template-columns: 1.4fr 1fr 1fr; color: var(--muted); font-size: 0.9em;
}
.site-footer h4 { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; }
@media (max-width: 720px) { .site-footer .inner { grid-template-columns: 1fr 1fr; } .site-footer .inner > :first-child { grid-column: 1 / -1; } }

/* =========================================================
   Home page
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(40px, 4vw, 110px); align-items: center; padding: clamp(44px, 3vw, 80px) 0 30px; min-height: min(80vh, 920px); }
.hero h1 { font-size: clamp(42px, 5.4vw, 136px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; margin: 22px 0 22px; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero .lead { font-size: clamp(17px, 1.05vw + 4px, 24px); color: var(--text-2); max-width: 34em; margin: 0 0 1.6em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trustline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 0.9em; }
.hero .trustline span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trustline svg { width: 16px; height: 16px; color: var(--ok); }

.hero-visual { position: relative; height: clamp(440px, 38vw, 860px); perspective: 1200px; }
.hero-card {
  position: absolute; width: min(clamp(300px, 23vw, 540px), 82%); border-radius: var(--r-xl); padding: 12px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); text-decoration: none; display: block;
}
.hero-card .thumb { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; position: relative; }
.hero-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .info { padding: 14px 8px 6px; }
.hero-card .info .title { font-weight: 620; margin-bottom: 10px; line-height: 1.3; }
.hero-card .row2 { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-card.back-1 { transform: translate(-82%, -58%) rotate(-9deg) scale(.86); opacity: .9; }
.hero-card.back-2 { transform: translate(-18%, -42%) rotate(8deg) scale(.86); opacity: .9; }
.hero-card.front { z-index: 2; box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg); }
.float-chip {
  position: absolute; z-index: 3; border-radius: 18px; padding: 11px 15px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-chip .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.float-chip .ico svg { width: 18px; height: 18px; }
.float-chip.c1 { top: 0; right: 0; }
.float-chip.c1 .ico { background: linear-gradient(135deg, #22c37a, #0f8a54); }
.float-chip.c2 { bottom: 0; left: 2%; }
.float-chip.c2 .ico { background: var(--accent-grad); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; min-height: 0; gap: 10px; }
  .hero-visual { height: 440px; }
}
@media (max-width: 480px) {
  .hero-visual { height: 400px; }
  .hero-card.back-1 { transform: translate(-70%, -56%) rotate(-8deg) scale(.82); }
  .hero-card.back-2 { transform: translate(-30%, -44%) rotate(7deg) scale(.82); }
  .float-chip { font-size: 13px; padding: 9px 12px; }
  .float-chip.c2 { display: none; }
}

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-xl); padding: 8px; gap: 8px; margin: 18px 0 0; }
.stats .stat { padding: 18px 20px; border-radius: 20px; }
.stats .stat + .stat { border-left: 1px solid var(--line); border-radius: 0; }
.stats .v { font-size: clamp(28px, 2.8vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats .l { color: var(--muted); font-size: 0.9em; margin-top: 8px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(3) { border-left: 0; }
  .stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* live ticker */
.ticker { border-radius: 999px; overflow: hidden; margin: 22px 0 0; padding: 0; height: clamp(52px, 1vw + 38px, 62px); display: flex; align-items: center; }
.ticker .label {
  flex: none; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 18px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border-right: 1px solid var(--line); background: var(--glass-strong); z-index: 2;
}
.ticker .label i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.ticker .track-wrap { flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker .track { display: flex; height: 100%; align-items: center; width: max-content; }
.ticker .item { display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; white-space: nowrap; font-size: 0.9em; color: var(--text-2); text-decoration: none; }
.ticker .item b { color: var(--text); font-weight: 650; }
.ticker .item .amt { color: var(--accent); font-weight: 700; }
.ticker .item + .item { border-left: 1px solid var(--line); }

/* section heads */
.sec { padding: clamp(84px, 6vw, 150px) 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow { font-size: 0.84em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.sec h2 { font-size: clamp(32px, 3.6vw, 82px); letter-spacing: -0.04em; line-height: 1.02; margin: 0; max-width: 15em; }
.sec .sub { color: var(--text-2); max-width: 30em; font-size: clamp(17px, 0.5vw + 10px, 22px); margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.2vw, 26px); counter-reset: step; }
.step { border-radius: var(--r-xl); padding: clamp(26px, 1.8vw, 40px); overflow: hidden; }
.step .n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1.2px var(--muted); opacity: .55; position: absolute; right: 18px; top: 16px; }
.step .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(0,0,0,.4); }
.step .ic svg { width: 23px; height: 23px; }
.step h3 { font-size: 1.22em; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 0.97em; }
.ic.c-red { background: var(--accent-grad); }
.ic.c-blue { background: linear-gradient(135deg, #5aa8ff, #2a5cff); }
.ic.c-violet { background: linear-gradient(135deg, #b18cff, #7a3fe0); }
.ic.c-green { background: linear-gradient(135deg, #34d399, #0f8a54); }
.ic.c-amber { background: linear-gradient(135deg, #ffc65c, #f08a1c); }
.ic.c-ink { background: linear-gradient(135deg, #4b4560, #1d1a26); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 1.2vw, 26px); }
.feature { border-radius: var(--r-xl); padding: clamp(26px, 1.8vw, 40px); grid-column: span 2; overflow: hidden; }
.feature.wide { grid-column: span 3; }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.feature .ic svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.22em; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.97em; }
.feature .demo-timer { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feature .demo-timer .t { font-size: 34px; font-weight: 720; letter-spacing: -0.04em; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: 20px; overflow: hidden; }
.faq .q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 1.15em 1.35em;
  background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; font-size: 1.06em; font-weight: 620;
}
.faq .q:hover { transform: none; background: transparent; }
.faq .q .pm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-border); flex: none; transition: transform .45s var(--ease); }
.faq .q .pm svg { width: 14px; height: 14px; }
.faq.open .q .pm { transform: rotate(45deg); }
.faq .a { height: 0; overflow: hidden; }
.faq .a > div { padding: 0 22px 20px; color: var(--text-2); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* final CTA */
.cta-band { margin-top: clamp(96px, 7vw, 170px); border-radius: 36px; padding: clamp(36px, 6vw, 72px); text-align: center; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(226,38,63,.28), transparent); filter: blur(10px);
}
.cta-band h2 { font-size: clamp(34px, 4vw, 96px); letter-spacing: -0.045em; line-height: 1; margin: 0 auto 16px; max-width: 13em; }
.cta-band p { color: var(--text-2); font-size: clamp(18px, 0.5vw + 11px, 23px); margin: 0 auto 28px; max-width: 30em; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* reveal defaults (JS animates them in; without JS they stay visible) */
.js-motion [data-reveal]:not([data-revealed]) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion [data-reveal] { opacity: 1; }
}

/* ---------- Quick Bid & Auto-bid ---------- */
.quick-bid { width: 100%; height: clamp(56px, 1.3vw + 38px, 68px); font-size: 1.1em; font-weight: 680; }
.quick-bid svg { width: 19px; height: 19px; }
.quick-bid.armed { background: linear-gradient(135deg, #1f1b2b, #3a2a4a); border-color: rgba(255,255,255,.2); box-shadow: 0 0 0 4px var(--accent-soft), var(--accent-glow); animation: armed 1s ease-in-out infinite; }
@keyframes armed { 50% { box-shadow: 0 0 0 7px var(--accent-soft), var(--accent-glow); } }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bid-form button[type='submit']:not(.btn-primary) { font-weight: 650; }
.autobid { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--hl); }
.ab-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.ab-head svg { width: 17px; height: 17px; color: var(--accent); }
.ab-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.ab-status.on { background: var(--ok-soft); color: var(--ok); }
.ab-status.warn { background: var(--warn-soft); color: var(--warn); }
.ab-status b { color: var(--text); }
.ab-actions { display: inline-flex; gap: 6px; }
.tag-auto { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; margin-left: 4px; }

/* =========================================================
   Premium marketplace refinement
   Ink-black primary actions, red reserved for bidding & urgency,
   monochrome icons, tighter radii and quieter shadows.
   ========================================================= */
:root {
  --ink: #111114;
  --ink-2: #2b2b33;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --accent: #d7263d;
  --accent-grad: linear-gradient(180deg, #e43c52 0%, #c91f37 100%);
  --accent-glow: 0 10px 22px -12px rgba(215, 38, 61, 0.6);
  --shadow: 0 0 0 1px rgba(17, 17, 20, 0.05), 0 12px 32px -20px rgba(17, 17, 30, 0.22), 0 1px 2px rgba(17, 17, 30, 0.04);
  --shadow-lg: 0 0 0 1px rgba(17, 17, 20, 0.06), 0 30px 70px -36px rgba(17, 17, 30, 0.35), 0 2px 6px rgba(17, 17, 30, 0.05);
}
.btn-primary {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px -14px rgba(17,17,20,.7);
}
.btn-primary:hover { background: #000; filter: none; }
.btn-accent {
  background: var(--accent-grad); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--accent-glow);
}
.btn-accent:hover { background: var(--accent-grad); filter: brightness(1.06); }
.nav .btn-primary { color: #fff !important; }
.brand-mark { background: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); border-radius: 9px; }
.brand .tld { color: var(--accent); }
.pill .dot { background: var(--ink); }
.bell .count { background: var(--accent); box-shadow: none; }

/* monochrome icon tiles */
.step .ic, .feature .ic, .ic[class*="c-"] {
  background: #fff !important; color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(17,17,20,.05), inset 0 -1px 0 rgba(17,17,20,.03); border-radius: 12px;
}
.ic.c-red { color: var(--accent); }
.float-chip .ico { border-radius: 10px; }
.float-chip.c1 .ico { background: #0f8a54; }
.float-chip.c2 .ico { background: var(--ink); }
.step .n { -webkit-text-stroke: 1px var(--muted); opacity: .35; }

.lot-card:hover { transform: translateY(-2px); }
h1, h2, h3 { font-weight: 640; }
.badge { border-radius: 7px; letter-spacing: .05em; }
.tabs, .tabs .tab-ind { border-radius: 12px; }
.tabs .tab-ind { top: 4px; bottom: 4px; }
.tabs { padding: 4px; }

/* ---------- card tags, watch button, meta ---------- */
.thumb .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.thumb .tags .demo-badge { color: var(--warn); }
.watch-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); color: var(--ink);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); display: grid; place-items: center;
}
.watch-btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.watch-btn:hover { background: #fff; transform: scale(1.06); }
.watch-btn.on { color: var(--accent); }
.watch-btn.on svg { fill: currentColor; }
.watch-btn.pop svg { transform: scale(1.3); }
.card-meta { display: flex; gap: 10px; color: var(--muted); font-size: 0.84em; align-items: center; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; }

/* ---------- catalog toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .tabs { margin-bottom: 0; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; display: block; margin: 0; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-box input { padding-left: 38px; width: clamp(200px, 22vw, 340px); border-radius: 12px; height: 44px; }
.tools select { width: auto; height: 44px; border-radius: 12px; padding-right: 34px; }
.result-count { color: var(--muted); font-size: 0.9em; margin: -8px 0 16px; }
@media (max-width: 680px) { .tools, .search-box, .search-box input, .tools select { width: 100%; } }

/* header watchlist link */
.nav .icon-link { display: inline-flex !important; align-items: center; gap: 6px; }
.nav .icon-link svg { width: 16px; height: 16px; }

/* =========================================================
   Account dashboard (My Gifta)
   ========================================================= */
.dash { display: grid; grid-template-columns: clamp(230px, 16vw, 290px) minmax(0, 1fr); gap: clamp(20px, 2vw, 40px); align-items: start; }
.dash-side { position: sticky; top: 96px; display: grid; gap: 12px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-lg); }
.dash-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-lg { width: 44px; height: 44px; font-size: 17px; }
.dash-nav { display: grid; padding: 8px; border-radius: var(--r-lg); gap: 2px; }
.dash-nav a, .dash-nav button {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--text-2); font-weight: 540; width: 100%; text-align: left; font-size: 0.95em;
}
.dash-nav a svg, .dash-nav button svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.dash-nav a:hover, .dash-nav button:hover { background: var(--glass-strong); color: var(--text); }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-nav a.active svg { color: #fff; }
.dash-nav span:not(.nav-count) { flex: 1; }
.nav-count { font-size: 11.5px; font-weight: 700; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--accent); color: #fff; }
.nav-count.warn { background: var(--warn); }
.nav-count.muted-count { background: var(--glass-strong); color: var(--muted); border: 1px solid var(--line); }
.dash-nav a.active .nav-count.muted-count { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }
.dash-nav button { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; padding-top: 12px; }

.dash-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { margin: 0 0 4px; font-size: clamp(26px, 2vw, 38px); }
.dash-head p { margin: 0; }
.dash-card { border-radius: var(--r-lg); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-h h3 { margin: 0; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-empty { border-radius: var(--r-lg); display: grid; justify-items: center; gap: 6px; padding: 48px 20px; }
.dash-empty svg { width: 30px; height: 30px; color: var(--muted); }
.dash-empty p { margin: 4px 0 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1vw, 18px); }
.kpi { border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; display: grid; gap: 4px; transition: transform .3s var(--ease); }
.kpi:hover { transform: translateY(-2px); }
.kpi-l { color: var(--muted); font-size: 0.9em; font-weight: 550; }
.kpi-v { font-size: clamp(28px, 2vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.kpi-s { color: var(--muted); font-size: 0.84em; }
.kpi-warn .kpi-s { color: var(--warn); font-weight: 600; }

.att-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.att-item:first-of-type { border-top: 0; padding-top: 0; }
.att-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.att-ic svg { width: 17px; height: 17px; }
.att-ic.pay { background: var(--warn-soft); color: var(--warn); }
.att-ic.outbid { background: var(--accent-soft); color: var(--accent); }
.att-thumb img, .att-thumb .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; display: block; background: var(--glass-strong); }
.att-item .grow, .mini-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.att-item b, .mini-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-ok { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 550; }
.att-ok svg { width: 18px; height: 18px; }

.mini-list { display: grid; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mini-row:first-child { border-top: 0; padding-top: 0; }
.mini-row img, .mini-row .ph { width: 48px; height: 36px; object-fit: cover; border-radius: 8px; background: var(--glass-strong); flex: none; }
.act-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.act-row:first-of-type { border-top: 0; padding-top: 0; }
.act-row a { text-decoration: none; }
.act-row a:hover { text-decoration: underline; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 7px; flex: none; }
.act-row.unread .act-dot { background: var(--accent); }
.act-row.unread { font-weight: 600; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; font-size: 0.9em; border-radius: 10px; box-shadow: none; }
.chip span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active span { color: rgba(255,255,255,.7); }
.data-table td { font-size: 0.95em; }
.lot-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 240px; }
.lot-cell img, .lot-cell .ph { width: 60px; height: 45px; object-fit: cover; border-radius: 8px; background: var(--glass-strong); flex: none; }
.lot-cell > span { display: grid; gap: 2px; }
.auto-note { display: flex; align-items: center; gap: 4px; font-size: 0.8em; color: var(--accent); font-weight: 600; margin-top: 3px; }
.auto-note svg { width: 12px; height: 12px; }
.urgent-text { color: var(--accent); font-weight: 700; }

.won-top { display: flex; gap: 16px; align-items: center; }
.won-top h3 { margin: 2px 0 4px; }
.won-top h3 a { text-decoration: none; }
.won-thumb img, .won-thumb .ph { width: 104px; height: 78px; object-fit: cover; border-radius: 12px; background: var(--glass-strong); display: block; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; counter-reset: st; }
.progress span { position: relative; padding-top: 14px; font-size: 0.84em; color: var(--muted); font-weight: 600; }
.progress span::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line); }
.progress span.done { color: var(--ok); }
.progress span.done::before { background: var(--ok); }
.progress span.now { color: var(--warn); }
.progress span.now::before { background: linear-gradient(90deg, var(--warn) 40%, var(--line) 40%); }
.pay-box-inner { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--warn-soft); }
.pay-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 12px 0 0; }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; font-weight: 650; word-break: break-word; }

.notif-list { padding-top: 6px; padding-bottom: 6px; }
.notif-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.notif-row:first-child { border-top: 0; }
.notif-row a { text-decoration: none; }
.notif-row a:hover { text-decoration: underline; }
.notif-row.unread { font-weight: 620; }
.notif-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--glass-strong); border: 1px solid var(--line); color: var(--text-2); }
.notif-ic svg { width: 16px; height: 16px; }
.notif-ic.t-outbid, .notif-ic.t-cancelled { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.notif-ic.t-won, .notif-ic.t-paid { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.notif-ic.t-ending { color: var(--warn); background: var(--warn-soft); border-color: transparent; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; font-weight: 400; color: var(--text); }
.toggle-row:first-of-type { border-top: 0; padding-top: 0; }
.toggle-row > span { display: grid; gap: 2px; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; flex: none; padding: 0; border: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); transition: background .25s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-user { display: none; }
  .dash-nav { display: flex; overflow-x: auto; padding: 6px; }
  .dash-nav a, .dash-nav button { width: auto; white-space: nowrap; padding: 8px 12px; }
  .dash-nav button { border-top: 0; margin-top: 0; border-radius: 10px; }
  .won-thumb img, .won-thumb .ph { width: 76px; height: 57px; }
}
@media (max-width: 480px) { .att-thumb { display: none; } .att-item { flex-wrap: wrap; } }

.auto-note.off { color: var(--muted); }
@media (max-width: 680px) { .nav .icon-link.hide-sm { display: none !important; } }

/* data tables become stacked cards on phones */
@media (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { border: 0; padding: 0; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
  .data-table td:first-child, .data-table td:last-child { grid-column: 1 / -1; }
  .data-table td:last-child { text-align: left !important; }
  .data-table td:last-child .btn { width: 100%; }
  .lot-cell { min-width: 0; }
}
