/* ============================================================
   VIP AUCTION :: main.css  — Преміум світлий дизайн
   ============================================================ */

/* ── CSS ЗМІННІ ─────────────────────────────────────────────── */
:root {
  /* Кольори — СВІТЛА ТЕМА */
  --bg:          #f5f6fa;
  --bg-2:        #eef0f6;
  --surface:     #ffffff;
  --surface-2:   #f8f9fc;
  --surface-3:   #f0f2f8;
  --border:      #e2e5ef;
  --border-2:    #cdd1e0;
  --text:        #12141f;
  --text-2:      #4a5068;
  --muted:       #8b91a8;
  --overlay:     rgba(18,20,31,.5);

  /* Акценти */
  --cyan:        #0066ff;
  --cyan-2:      #0052cc;
  --cyan-dim:    rgba(0,102,255,.08);
  --green:       #16a34a;
  --green-dim:   rgba(22,163,74,.1);
  --red:         #dc2626;
  --red-dim:     rgba(220,38,38,.1);
  --yellow:      #d97706;
  --yellow-dim:  rgba(217,119,6,.1);
  --purple:      #7c3aed;
  --blue:        #2563eb;

  /* Типографіка */
  --font:        'SF Pro Display','Segoe UI',system-ui,-apple-system,sans-serif;
  --font-mono:   'SF Mono','Fira Code',monospace;

  /* Розміри */
  --sidebar-w:   240px;
  --header-h:    64px;
  --r-sm:        6px;
  --r:           10px;
  --r-md:        14px;
  --r-lg:        18px;
  --r-xl:        24px;
  --r-full:      9999px;

  /* Тіні */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12);
  --glow-cyan:   0 0 20px rgba(0,102,255,.25);

  /* Анімація */
  --t-fast: .15s ease;
  --t:      .25s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── HEADER / НАВІГАЦІЯ ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text);
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: var(--glow-cyan);
}
.logo span { color: var(--cyan); }

/* Desktop nav */
.nav-desktop {
  display: flex; align-items: center; gap: 4px;
  margin-left: 24px;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--cyan-dim); color: var(--cyan); font-weight: 600; }

.header-right {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: none;
  border-radius: var(--r); cursor: pointer;
  transition: background var(--t-fast);
}
.burger:hover { background: var(--surface-2); }
.burger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--overlay); backdrop-filter: blur(4px);
}
.nav-overlay.show { display: block; }

.nav-drawer {
  position: fixed; top: 0; left: -100%; z-index: 201;
  width: min(320px, 85vw); height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: left var(--t);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.nav-drawer.open { left: 0; }
.nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.nav-close {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--surface-2); border: none;
  font-size: 18px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-drawer-links {
  padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.nav-drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: all var(--t-fast);
}
.nav-drawer-link:hover { background: var(--surface-2); text-decoration: none; }
.nav-drawer-link .nav-icon { font-size: 20px; width: 24px; text-align: center; }
.nav-drawer-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted);
  padding: 12px 14px 6px;
}
.nav-drawer-footer {
  padding: 16px; border-top: 1px solid var(--border);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-wrap  { padding: 24px 20px; max-width: 1280px; margin: 0 auto; }

/* ── КНОПКИ ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary  { background: var(--cyan); color: #fff; box-shadow: 0 2px 12px rgba(0,102,255,.3); }
.btn-secondary{ background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger   { background: var(--red); color: #fff; }
.btn-ghost    { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline  { background: transparent; color: var(--cyan); border: 1.5px solid var(--cyan); }
.btn-outline:hover { background: var(--cyan-dim); }
.btn-full     { width: 100%; }
.btn-sm       { padding: 7px 14px; font-size: 13px; }
.btn-lg       { padding: 14px 28px; font-size: 16px; border-radius: var(--r-md); }

/* ── ФОРМИ ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-hint   { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.form-error  { font-size: 12px; color: var(--red); margin-top: 5px; }

.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: 14px; font-family: var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-control:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,102,255,.12); }
.form-control::placeholder { color: var(--muted); }
.form-control.error { border-color: var(--red); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── КАРТКИ ЛОТІВ ───────────────────────────────────────────── */
.lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.lot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.lot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,102,255,.2);
  text-decoration: none;
}
.lot-card-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-2);
}
.lot-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.lot-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lot-card-price {
  font-size: 20px; font-weight: 800; color: var(--cyan);
  font-family: var(--font-mono); letter-spacing: -.5px;
}
.lot-card-price-label { font-size: 11px; color: var(--muted); font-weight: 400; }
.lot-card-footer {
  padding: 10px 16px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.lot-card-timer {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; gap: 5px;
}
.lot-card-bids { font-size: 12px; color: var(--muted); }

/* Фавoрит кнопка */
.btn-favorite {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); z-index: 2;
  box-shadow: var(--shadow-sm);
}
.btn-favorite:hover, .btn-favorite.active { background: var(--red-dim); border-color: var(--red); color: var(--red); transform: scale(1.1); }

/* ── ТАЙМЕР ─────────────────────────────────────────────────── */
.timer-urgent  { color: var(--red) !important; animation: timerPulse 1s ease-in-out infinite; }
.timer-warning { color: var(--yellow) !important; }
.timer-ended   { color: var(--muted) !important; }
@keyframes timerPulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ── БЕЙДЖІ ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.badge-purple { background: rgba(124,58,237,.1); color: var(--purple); }
.badge-blue   { background: rgba(37,99,235,.1);  color: var(--blue); }
.badge-muted  { background: var(--surface-2);  color: var(--muted); }

/* ── КАРТКИ ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.card-title    { font-size: 16px; font-weight: 700; }
.card-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── ТАБЛИЦІ ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  padding: 11px 14px; text-align: left;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-2); }

/* ── АЛЕРТИ ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.5; margin-bottom: 16px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-dim);  color: var(--green); border: 1px solid rgba(22,163,74,.2); }
.alert-error   { background: var(--red-dim);    color: var(--red);   border: 1px solid rgba(220,38,38,.2); }
.alert-warning { background: var(--yellow-dim); color: var(--yellow);border: 1px solid rgba(217,119,6,.2); }
.alert-info    { background: var(--cyan-dim);   color: var(--cyan);  border: 1px solid rgba(0,102,255,.2); }

/* ── TOAST ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; min-width: 280px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  pointer-events: all;
  transform: translateX(120%); opacity: 0;
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon  { font-size: 20px; flex-shrink: 0; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-size: 14px; font-weight: 700; }
.toast-body  { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.toast-close { margin-left: auto; background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 0 0 0 8px; align-self: center; }
.toast-progress {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 100%;
  background: var(--cyan); opacity: .4;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-warning { border-left: 3px solid var(--yellow); }
.toast-info    { border-left: 3px solid var(--cyan); }

/* ── PUSH BANNER ────────────────────────────────────────────── */
.push-banner, .pwa-banner {
  position: fixed; bottom: 20px; left: 20px; z-index: 998;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  max-width: 420px; animation: slideUp .3s ease;
}
.push-banner-icon, .pwa-banner-icon { font-size: 28px; flex-shrink: 0; width: 44px; height: 44px; object-fit: contain; }
.push-banner-text, .pwa-banner-text { flex: 1; min-width: 0; }
.push-banner-text strong, .pwa-banner-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.push-banner-text span, .pwa-banner-text span { font-size: 12px; color: var(--text-2); line-height: 1.4; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

/* ── TOOLTIPS ───────────────────────────────────────────────── */
.tooltip-bubble {
  position: absolute; z-index: 9000;
  background: var(--text); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.4;
  padding: 6px 10px; border-radius: var(--r);
  max-width: 220px; text-align: center;
  pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  white-space: normal;
}
.tooltip-bubble.show { opacity: 1; transform: translateY(0); }
.tooltip-bubble::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--text);
}
[data-tip] { cursor: help; }

/* ── АВАТАР ─────────────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 100px; height: 100px; }
.avatar-border { border: 2px solid var(--border); }

/* ── ПАГІНАЦІЯ ──────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  text-decoration: none; transition: all var(--t-fast);
}
.page-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--cyan); color: #fff; border-color: var(--cyan); }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon  { font-size: 52px; margin-bottom: 14px; opacity: .6; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.empty-text  { font-size: 14px; }

/* ── TABS ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all var(--t-fast);
  margin-bottom: -2px; text-decoration: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ── МОДАЛКИ ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: var(--overlay); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .25s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.modal-body   { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes modalIn { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:none} }

/* ── SKELETON ───────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--r); }
@keyframes skeleton { 0%{background-position:200%} 100%{background-position:-200%} }

/* ── АНІМАЦІЇ ───────────────────────────────────────────────── */
.price-flash { animation: priceFlash .4s ease; }
@keyframes priceFlash { 0%,100%{color:var(--cyan)} 50%{color:var(--green);transform:scale(1.05)} }

/* ── ФІЛЬТР CHIPS ───────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-2); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast); white-space: nowrap;
}
.chip:hover  { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.chip.active { background: var(--cyan-dim); border-color: rgba(0,102,255,.3); color: var(--cyan); }

/* ── ПОШУК ──────────────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 16px; }
.search-wrap .form-control { padding-left: 38px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 32px 20px; margin-top: 48px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-copy  { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

/* ── MOBILE BOTTOM NAV ──────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.mobile-nav-inner { display: flex; }
.mobile-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; background: none; border: none;
  font-size: 10px; font-weight: 600; color: var(--muted);
  text-decoration: none; cursor: pointer; transition: color var(--t-fast);
}
.mobile-nav-btn:hover, .mobile-nav-btn.active { color: var(--cyan); text-decoration: none; }
.mobile-nav-btn .nav-tab-icon { font-size: 22px; }
.mobile-nav-badge {
  position: absolute; top: 0; right: -4px;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.stat-card-value { font-size: 28px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -.5px; }
.stat-card-diff  { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 4px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger      { display: flex; }
  .mobile-nav  { display: block; }

  body { padding-bottom: 70px; }

  .lots-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lot-card-title { font-size: 13px; }
  .lot-card-price { font-size: 17px; }
  .lot-card-body  { padding: 10px 12px; }
  .lot-card-footer{ padding: 8px 12px 10px; }

  .page-wrap { padding: 16px; }
  .card      { padding: 16px; border-radius: var(--r-lg); }

  #toast-container { bottom: 76px; right: 10px; left: 10px; align-items: center; }
  .toast { min-width: unset; max-width: 100%; }

  .push-banner, .pwa-banner { left: 10px; right: 10px; bottom: 76px; max-width: unset; flex-wrap: wrap; }

  .table th, .table td { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 480px) {
  .lots-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .header-inner { padding: 0 14px; }
  .logo-text { display: none; }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── УТИЛІТИ ────────────────────────────────────────────────── */
.text-cyan   { color: var(--cyan); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.font-mono   { font-family: var(--font-mono); }
.font-bold   { font-weight: 700; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.gap-16      { gap: 16px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.w-full      { width: 100%; }
