/* ============================================================
   CemiX — дизайн-система v4 · «тёмная лаванда»
   Мягкий жирный шрифт, комфортные расстояния, без капризных CSS.
   ============================================================ */

:root {
  --bg: #0b0818;
  --bg-2: #131026;
  --card: #161129;
  --card-2: #1b1530;
  --panel: rgba(167, 139, 250, .07);
  --panel-2: rgba(167, 139, 250, .13);
  --line: rgba(167, 139, 250, .18);
  --line-soft: rgba(167, 139, 250, .1);
  --text: #f4f0ff;
  --muted: #b3a9cf;
  --dim: #857aa3;
  --brand: #8b5cf6;
  --brand-soft: #a78bfa;
  --brand-deep: #6d3df0;
  --magenta: #c084fc;
  --good: #4ade80;
  --warn: #e879f9;
  --bad: #fb7185;
  --grad: linear-gradient(122deg, #a78bfa 0%, #8b5cf6 55%, #7c3aed 100%);
  --f-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-text: "Manrope", "Segoe UI", system-ui, -apple-system, "Roboto", sans-serif;
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 15px;
  --sm: 10px;
  --ease: cubic-bezier(.25, .8, .3, 1);
  --spring: cubic-bezier(.3, 1.3, .45, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px; line-height: 1.6; font-family: var(--f-text);;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---------- фон: очень деликатный ---------- */

.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgfx i { position: absolute; border-radius: 50%; }

.bgfx i:nth-child(1) {
  width: min(62vw, 560px); height: min(42vh, 360px); top: -140px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, .13), transparent 68%);
}
.bgfx i:nth-child(2) {
  width: min(50vw, 430px); height: min(34vh, 300px); bottom: -120px; left: -140px;
  background: radial-gradient(ellipse at center, rgba(192, 132, 252, .09), transparent 68%);
}

/* лёгкая вертикальная подсветка, чтобы страница не выглядела плоской */
.bgfx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(139, 92, 246, .07), transparent 60%);
}

::selection { background: rgba(139, 92, 246, .4); }

a { color: inherit; text-decoration: none; }

/* ---------- шапка: без blur, без белых полос ---------- */

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 4.5vw, 36px);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
@supports (position: sticky) { .topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 8, 24, .93); } }

.logo { display: flex; align-items: center; gap: 11px; }
.logo .ic { width: 30px; height: 30px; flex: none; }
.lg-text {
  font-weight: 800; font-size: 19px; line-height: 1; font-family: var(--f-display);; letter-spacing: .01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tabs { display: flex; gap: 2px; margin-left: 10px; padding: 4px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-soft); }
.tabs a {
  position: relative; padding: 8px 16px; border-radius: 18px;
  color: var(--muted); font-weight: 700; font-size: 13.5px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(109, 61, 240, .3); }

.topbar-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.userchip {
  font-size: 13px; color: var(--muted); font-weight: 700;
  padding: 7px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
}

/* ---------- иконки ---------- */

.ic { width: 17px; height: 17px; flex: none; }
.close .ic { width: 14px; height: 14px; }

/* ---------- кнопки: мягкие капсулы ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); overflow: hidden;
  font-weight: 700; font-size: 14px; line-height: 1; font-family: var(--f-text);; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 44%, rgba(255,255,255,.14) 50%, transparent 56%);
  transform: translateX(-130%); transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--panel-2); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(.97); }

.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 22px rgba(109, 61, 240, .3); }
.btn.primary:hover { box-shadow: 0 11px 28px rgba(109, 61, 240, .42); }
.btn.faint { background: transparent; border-color: transparent; color: var(--muted); }
.btn.faint:hover { color: var(--text); background: var(--panel); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.mini { padding: 6px 14px; font-size: 12.5px; }
.btn.mini.danger:hover { border-color: var(--bad); background: rgba(251, 113, 133, .13); color: #fff; box-shadow: none; }

/* ---------- каркас ---------- */

main { max-width: 1200px; margin: 0 auto; padding: 30px clamp(16px, 4.5vw, 36px) 80px; animation: pageIn .4s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

.foot { text-align: center; padding: 22px; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line-soft); }

/* ---------- hero: крупно и воздух ---------- */

.hero { padding: 44px 0 8px; }
.hero-badge {
  display: inline-block; margin-bottom: 12px; padding: 7px 16px; border-radius: 18px;
  border: 1px dashed var(--line); background: var(--panel);
  color: var(--brand-soft); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  animation: riseIn .5s var(--ease) both;
}
.hero h1 {
  margin: 0 0 12px; font-family: var(--f-display); font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; line-height: 1.16;
  letter-spacing: -.01em; animation: riseIn .55s var(--ease) .05s both;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0; max-width: 520px; font-size: 15px; animation: riseIn .6s var(--ease) .1s both; }
.hero + * { margin-top: 34px; }

/* ---------- фильтры в единой панели ---------- */

.filters {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px rgba(5, 3, 14, .35);
  margin: 30px 0 18px;
}

.pills { display: flex; gap: 2px; padding: 3px; border-radius: 18px; background: rgba(11, 8, 24, .65); }
.pills button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 15px; border-radius: 18px; font-weight: 700; font-size: 13px; line-height: 1; font-family: var(--f-text);; transition: .18s var(--ease);
}
.pills button:hover { color: var(--text); }
.pills button.on { color: #fff; background: var(--grad); }

.cont, .search {
  border: 1px solid transparent; background: rgba(11, 8, 24, .65); color: var(--text);
  border-radius: 18px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; font-family: var(--f-text);; outline: none; transition: .18s;
  appearance: none; -webkit-appearance: none;
}
.cont:focus, .search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.cont option { background: var(--card-2); color: var(--text); }
.search { flex: 1 1 200px; min-width: 160px; }

/* ---------- карточки лотов ---------- */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.card {
  position: relative; padding: 20px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card) 70%);
  border: 1px solid var(--line-soft);
  cursor: pointer; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 10px rgba(5, 3, 14, .25);
  transition: transform .28s var(--spring), border-color .25s, box-shadow .25s;
  animation: riseIn .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, .38); box-shadow: 0 18px 44px rgba(5, 3, 14, .5); }

.card .head { display: flex; align-items: center; gap: 14px; }
.card .ava {
  width: 54px; height: 54px; border-radius: 17px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 21px; font-family: var(--f-display);;
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px rgba(109, 61, 240, .32);
  transition: transform .3s var(--spring);
}
.card:hover .ava { transform: rotate(-6deg) scale(1.08); }
.card .ava.phone { background: linear-gradient(135deg, #7c3aed, #c084fc); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px rgba(124, 58, 237, .3); }

.card .names { min-width: 0; }
.card .big { font-weight: 700; font-size: 15.5px; line-height: 1.3; font-family: var(--f-text);; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .displayline { font-weight: 800; font-size: 17.5px; line-height: 1.25; font-family: var(--f-display);; letter-spacing: .01em; }
.card .sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }

.tag {
  font-weight: 800; font-size: 10px; line-height: 1; font-family: var(--f-text);; letter-spacing: .08em; text-transform: uppercase;
  padding: 3.5px 9px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel); color: var(--brand-soft);
}
.tag.auction { color: var(--warn); border-color: rgba(232, 121, 249, .3); background: rgba(232, 121, 249, .07); }
.tag.sale    { color: var(--brand-soft); border-color: rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .09); }
.tag.sold    { color: var(--good); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .07); }
.tag.resale  { color: var(--magenta); border-color: rgba(192, 132, 252, .3); background: rgba(192, 132, 252, .07); }

.card .priceRow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.amount {
  font-weight: 800; font-size: 20px; line-height: 1; font-family: var(--f-display);; display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.amount .tonic { width: 18px; height: 18px; color: var(--brand-soft); }
.usd { color: var(--dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* живой аукцион */

.prog { height: 5px; border-radius: 18px; overflow: hidden; background: rgba(167, 139, 250, .13); }
.prog i {
  display: block; height: 100%; border-radius: 18px;
  background: var(--grad);
  transition: width 1s linear;
}

.timer {
  color: var(--muted); font-size: 12.5px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.timer .till { color: var(--dim); font-weight: 600; }
.timer.soon span:first-child { color: var(--warn); }

.card.closing { border-color: rgba(232, 121, 249, .38); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232, 121, 249, .12), 0 6px 20px rgba(232, 121, 249, .06); }
  50% { box-shadow: 0 0 0 1px rgba(232, 121, 249, .28), 0 8px 26px rgba(232, 121, 249, .12); }
}

/* ---------- пустые состояния / скелетоны ---------- */

.empty {
  grid-column: 1 / -1; padding: 52px 24px; text-align: center;
  border: 1px dashed rgba(167, 139, 250, .28); border-radius: var(--r-lg);
  background: var(--panel); animation: riseIn .4s var(--ease) both;
}
.empty .ic { width: 44px; height: 44px; color: var(--brand-soft); opacity: .85; margin-bottom: 12px; }
.empty-ic { display: block; }
.empty b { display: block; font-weight: 700; font-size: 16px; font-family: var(--f-text); margin-bottom: 5px; }
.empty p { color: var(--muted); font-size: 13.5px; margin: 0; }

.skeleton {
  border-radius: var(--r-lg); height: 168px;
  background: var(--card); position: relative; overflow: hidden;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- кошелёк ---------- */

.wk-hero {
  position: relative; padding: 34px 32px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, #241646, #171132 60%, #131026);
  border: 1px solid rgba(167, 139, 250, .22);
  box-shadow: 0 22px 54px rgba(5, 3, 14, .5);
  margin-bottom: 20px; animation: riseIn .5s var(--ease) both;
}
.wk-hero::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  right: -100px; top: -150px; opacity: .5; pointer-events: none;
  background: radial-gradient(circle, rgba(139, 92, 246, .25), transparent 70%);
}
.wk-balance {
  font-family: var(--f-display); font-size: clamp(32px, 5.6vw, 46px); font-weight: 800; line-height: 1.1;
  display: flex; align-items: center; gap: 14px;
  font-variant-numeric: tabular-nums; position: relative;
}
.wk-balance .tonic { width: 32px; height: 32px; color: var(--brand-soft); }
.wk-balance small { color: var(--muted); font-weight: 700; font-size: 13px; font-family: var(--f-text);; letter-spacing: .14em; }
.wk-shimmer {
  display: inline-block; min-width: 190px; height: 38px; border-radius: 12px;
  background: rgba(167, 139, 250, .13); position: relative; overflow: hidden;
}
.wk-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); animation: shimmer 1.5s infinite; }
.wk-usd { color: var(--muted); margin: 6px 0 22px 46px; font-size: 13.5px; font-weight: 600; }
.wk-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.wk-act {
  position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; overflow: hidden;
  padding: 12px 21px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(11, 8, 24, .55);
  color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1; font-family: var(--f-text);;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.wk-act::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 44%, rgba(255,255,255,.13) 50%, transparent 56%);
  transform: translateX(-130%); transition: transform .55s var(--ease); }
.wk-act:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); transform: translateY(-2px); }
.wk-act:hover::after { transform: translateX(130%); }
.wk-act:active { transform: scale(.97); }
.wk-act.primary { background: var(--grad); border: none; box-shadow: 0 8px 22px rgba(109, 61, 240, .32); }
.wk-act .ic { width: 16px; height: 16px; }

.wk-cols { display: grid; gap: 16px; grid-template-columns: 1.25fr .95fr; align-items: start; }
.wk-col {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--card); box-shadow: 0 2px 10px rgba(5, 3, 14, .25); overflow: hidden;
  animation: riseIn .55s var(--ease) .1s both;
}
.wk-col-title {
  padding: 14px 20px 12px; font-weight: 800; font-size: 11px; font-family: var(--f-text);; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line-soft);
}

.wk-asset { display: flex; align-items: center; gap: 13px; padding: 12px 20px; transition: background .18s; cursor: pointer; }
.wk-asset:hover { background: var(--panel-2); }
.wk-asset + .wk-asset { border-top: 1px solid var(--line-soft); }

.wk-ava {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 15px; font-family: var(--f-display);;
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.wk-ava.phone { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.wk-ava.pill { background: var(--panel-2); color: var(--brand-soft); box-shadow: none; }
.wk-ava.pill .ic { width: 17px; height: 17px; }

.wk-a-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wk-a-name b { font-weight: 700; font-size: 14px; font-family: var(--f-text);; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-a-name b.up { color: var(--good); }
.wk-a-name b.down { color: var(--bad); }
.wk-a-name i, .wk-a-name .sub { color: var(--dim); font-size: 12px; }

.wk-a-side { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.mini {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 18px; padding: 6px 14px; font-weight: 700; font-size: 12.5px; line-height: 1; font-family: var(--f-text);;
  cursor: pointer; transition: .16s;
}
.mini:hover { color: var(--text); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.mini.danger:hover { color: #fff; border-color: var(--bad); background: rgba(251, 113, 133, .13); box-shadow: none; }

.wk-tag {
  font-weight: 800; font-size: 10px; line-height: 1; font-family: var(--f-text);; letter-spacing: .08em; text-transform: uppercase;
  padding: 3.5px 9px; border-radius: 18px;
  color: var(--brand-soft); border: 1px solid rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .09);
}

/* ---------- модалки ---------- */

.modal-back {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 4, 13, .74);
  animation: fade .18s ease both;
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 480px; max-height: 86vh; overflow: auto;
  background: linear-gradient(175deg, #201741, #141024 80%);
  border: 1px solid rgba(167, 139, 250, .17); border-radius: 28px;
  box-shadow: 0 34px 90px rgba(3, 2, 10, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 24px; position: relative;
  animation: spring .4s var(--spring) both;
}
@keyframes spring { from { transform: translateY(26px) scale(.95); opacity: 0; } }

.modal h2 { margin: 0 0 4px; font-weight: 800; font-size: 19px; line-height: 1.3; font-family: var(--f-display);; }
.modal .sub { color: var(--muted); font-size: 13.5px; }
.modal .ava-big {
  width: 64px; height: 64px; border-radius: 19px; color: #fff; margin-bottom: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 26px; font-family: var(--f-display);;
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 28px rgba(109, 61, 240, .35);
  animation: floaty 3.6s ease-in-out infinite;
}
.modal .ava-big.phone { background: linear-gradient(135deg, #7c3aed, #c084fc); }
@keyframes floaty { 50% { transform: translateY(-5px); } }

.modal .close {
  position: absolute; right: 15px; top: 15px; width: 34px; height: 34px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); cursor: pointer; transition: .16s;
  display: grid; place-items: center;
}
.modal .close:hover { color: var(--text); border-color: var(--bad); background: rgba(251, 113, 133, .12); transform: rotate(90deg); }

.meta {
  display: grid; gap: 9px; margin: 18px 0; padding: 15px;
  border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--panel);
}
.meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.meta span { color: var(--muted); }
.meta b { font-weight: 700; text-align: right; }

.bidline { display: flex; gap: 10px; margin-top: 16px; }
.bidline input { flex: 1; min-width: 0; }

input.fld {
  width: 100%; border: 1px solid var(--line); background: rgba(11, 8, 24, .6);
  color: var(--text); border-radius: 18px; padding: 12px 18px;
  font-weight: 600; font-size: 14px; font-family: var(--f-text);; outline: none; transition: .18s;
}
input.fld:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
input.fld::placeholder { color: var(--dim); }
input.fld:disabled { opacity: .55; }

.err { color: var(--bad); font-size: 13px; min-height: 20px; margin-top: 10px; }
.okh { color: var(--good); font-size: 13px; }

.seg { display: flex; gap: 3px; padding: 3.5px; border-radius: 18px; background: rgba(11, 8, 24, .65); border: 1px solid var(--line-soft); margin: 14px 0; }
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 13.5px; line-height: 1; font-family: var(--f-text);; padding: 9px 10px; border-radius: 18px; cursor: pointer; transition: .18s var(--ease);
}
.seg button.on { color: #fff; background: var(--grad); }

.bids { margin-top: 14px; }
.bids table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bids th {
  text-align: left; color: var(--dim); font-weight: 800; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 8px 10px; border-bottom: 1px solid var(--line-soft);
}
.bids td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.bids tr { animation: riseIn .35s var(--ease) both; }
.bids .amount { font-size: 14px; }

.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ---------- тосты ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  padding: 13px 23px; border-radius: 18px; font-weight: 700; font-size: 14px;
  background: #241a3d; border: 1px solid rgba(167, 139, 250, .4);
  box-shadow: 0 16px 44px rgba(3, 2, 10, .7);
  z-index: 99; pointer-events: none;
  animation: toastIn .32s var(--spring) both;
}
@keyframes toastIn { from { transform: translate(-50%, 18px); opacity: 0; } }
.toast::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); margin-right: 9px; vertical-align: 1px;
}

/* ---------- скроллбар, фокус ---------- */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, .22); border-radius: 18px; border: 2.5px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, .38); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card { animation: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 860px) { .wk-cols { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
  .topbar-side { margin-left: auto; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 1; text-align: center; padding: 8px 10px; }
  .hero { padding-top: 26px; }
  .filters { border-radius: var(--r-lg); flex-direction: column; align-items: stretch; }
  .filters .pills { width: 100%; }
  /* фикс "кляксы": в колонке flex-basis растягивает инпут в высоту */
  .search { flex: none; width: 100%; min-height: 42px; height: 42px; }
  .cont { flex: none; width: 100%; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 32px); }
  .card .displayline { font-size: 16px; }
  .wk-balance { font-size: clamp(26px, 8vw, 34px); }
  .pills button { flex: 1; }
  .bidline { flex-direction: column; }
  .bidline .btn { width: 100%; }
  .wk-hero { padding: 26px 22px; }
  .wk-usd { margin-left: 0; }
}


/* ---------- Safari-фиксы и спокойные веса шрифта ---------- */

/* Safari не наследует шрифты в формах — задаём явно и снимаем нативную стилизацию */
input.fld, .cont, .search {
  font-family: var(--f-text); font-weight: 500;
  -webkit-appearance: none; appearance: none;
  caret-color: var(--brand-soft);
}
input.fld { min-height: 44px; }
.cont { min-height: 37px; }
select.cont { padding-right: 30px; }

/* инпуты <16px заставляют iOS-Safari зумить страницу — на мобиле держим 16px */
@media (max-width: 760px) {
  input.fld, .cont, .search { font-size: 16px !important; }
}

/* убираем лишнюю жирность: Unbounded/Manrope на 700 и так плотные */
.lg-text, .hero h1, .amount, .amount .bids .amount, .wk-balance, .displayline,
.modal h2, .empty b, .card .big { font-weight: 700; }
.btn, .wk-act, .pills button, .mini, .seg button, .tabs a, .userchip,
.timer, .toast, .hero p, .modal .sub, .card .sub, .wk-usd { font-weight: 600; }
.hero p, .modal .sub { font-weight: 500; }
.tag, .wk-tag, .wk-col-title, .bids th { font-weight: 700; }
.wk-a-name b { font-weight: 600; }

/* ---------- целостность пилюль: текст не вылезает из формы ---------- */

.tag, .wk-tag, .userchip {
  white-space: nowrap; flex: none; max-width: max-content;
  line-height: 1.5;
  padding-top: 4px; padding-bottom: 4px;
}
.btn, .mini, .wk-act, .seg button, .tabs a, .pills button { white-space: nowrap; }
.btn, .mini { flex-shrink: 0; }
.wk-a-side { flex-wrap: wrap; row-gap: 6px; justify-content: flex-end; }

/* ---------- пилюли-фильтры: воздух между соседями ---------- */

.pills { gap: 4px; padding: 4px; border: 1px solid var(--line-soft); background: rgba(24, 18, 44, .75); }
.pills button { padding: 8px 16px; letter-spacing: .01em; }
.cont, .search { border: 1px solid var(--line-soft); background: rgba(11, 8, 24, .6); }
.cont:focus, .search:focus { border-color: var(--brand); background: var(--panel-2); }
@media (max-width: 760px) {
  .pills { gap: 5px; }
  .pills button { flex: 1; font-size: 12px; padding: 9px 8px; }
}


/* ---------- капсулы: полная обводка на любом WebView ---------- */

/* 999px-радиусы дробно рендерятся на старых WebView — здоровые 18px рисуются целиком,
   капсула сохраняется (радиус > половины высоты клампится сам) */
.tag, .wk-tag { min-height: 22px; }
.tag, .wk-tag, .userchip, .pills button, .btn, .wk-act, .mini, .seg button, .tabs a {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.tag, .wk-tag { display: inline-flex; }
.userchip { display: inline-flex; min-height: 32px; }
.pills button, .seg button { min-height: 32px; }
