/* ==========================================================================
   Barcode Auctions — design system
   Brand: Barcode yellow #FFC21A on graphite black. RTL first, mobile first.
   ========================================================================== */

@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --y: #ffc21a; --y-600: #f2ae00; --y-700: #c58c00; --y-50: #fff8e0; --y-100: #ffedb0;
  --ink: #0b0c0f; --ink-2: #131519; --ink-3: #1b1e24; --ink-4: #262a32; --ink-5: #353a44; --ink-6: #4a505c;
  --bg: #f2f3f5; --card: #fff; --line: #e2e5e9; --line-2: #eef0f3;
  --text: #14161b; --text-2: #3d434e; --muted: #687080; --muted-2: #98a0ac;
  --green: #12a150; --green-50: #e7f7ee; --red: #e0222f; --red-50: #fdecee; --amber: #d17a00; --amber-50: #fff3df;
  --blue: #1f5bd6; --blue-50: #eaf0fd;
  --r: 12px; --r-sm: 8px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --sh-2: 0 8px 24px rgba(16, 24, 40, .10);
  --sh-3: 0 24px 60px rgba(0, 0, 0, .28);
  --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --wrap: 1320px;
  --hdr-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
bdi { unicode-bidi: isolate; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.page-pad { padding-block: 28px 56px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--y); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid rgba(255, 194, 26, .7); outline-offset: 2px; }
.hide, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sep { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--y-600); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.page-loading { display: grid; place-items: center; min-height: 50vh; }

/* ---- money ------------------------------------------------------------------- */
.money { display: inline-flex; align-items: baseline; gap: .3em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; direction: rtl; }
.money bdi { direction: ltr; }
.money small { font-size: .62em; font-weight: 700; opacity: .7; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { background: var(--y); color: var(--ink); box-shadow: 0 0 0 6px var(--y); border-radius: 4px; } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* ---- buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 800; font-size: 14.5px;
  border: 1.5px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  user-select: none; position: relative;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.busy { color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid currentColor; border-color: var(--ink) transparent var(--ink) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary { background: var(--y); color: var(--ink); box-shadow: 0 2px 0 var(--y-700); }
.btn-primary:hover:not(:disabled) { background: #ffcc3d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-4); }
.btn-dark.busy::after, .btn-danger.busy::after, .btn-success.busy::after, .btn-live.busy::after { border-color: #fff transparent #fff transparent; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-6); }
.btn-ghost-dark { background: transparent; border-color: var(--ink-5); color: #fff; }
.btn-ghost-dark:hover { border-color: var(--y); color: var(--y); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c21824; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not(:disabled) { background: #0e8a44; }
.btn-live { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(224, 34, 47, .6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(224, 34, 47, .55); } 70% { box-shadow: 0 0 0 10px rgba(224, 34, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 34, 47, 0); } }
.btn-outline-green { background: var(--green-50); color: var(--green); border-color: rgba(18, 161, 80, .35); }
.btn-outline-green:hover { background: #d6f2e2; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: inherit; position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }
.icon-btn .ic { width: 22px; height: 22px; }
.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ---- forms ------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl-t { font-size: 13px; font-weight: 800; color: var(--text-2); }
.field small, .hint { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .select {
  width: 100%; height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0 12px; font-weight: 600; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.field select, .select { appearance: none; padding-inline-end: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23687080' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 12px center; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--y-600); box-shadow: 0 0 0 4px rgba(255, 194, 26, .22); }
.field.err input, .field.err select { border-color: var(--red); }
.field .err-msg { color: var(--red); font-size: 12.5px; font-weight: 700; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ltr-in { direction: ltr; text-align: right; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: inset-inline-start .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { inset-inline-start: 23px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.form-error { background: var(--red-50); color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.form-error[hidden] { display: none; }
.amount-in { position: relative; }
.amount-in input { padding-inline-end: 48px !important; font-size: 17px !important; font-weight: 800 !important; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.amount-in::after { content: 'د.ع'; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 13px; pointer-events: none; }

/* ---- badges & chips ---------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1; }
.b-live { background: var(--red); color: #fff; }
.b-open { background: var(--green); color: #fff; }
.b-pre { background: var(--ink); color: var(--y); }
.b-soon { background: #fff; color: var(--text); }
.b-sold { background: var(--ink-4); color: #fff; }
.b-approval { background: var(--amber); color: #fff; }
.b-unsold, .b-draft, .b-cancelled { background: #e5e7eb; color: var(--text-2); }
.b-bn { background: #fff; color: var(--green); }
.b-demo { background: var(--blue-50); color: var(--blue); }
.b-scheduled { background: var(--y-50); color: var(--y-700); }
.b-ended { background: #e5e7eb; color: var(--text-2); }
.b-paused { background: var(--amber-50); color: var(--amber); }
.b-paid { background: var(--green-50); color: var(--green); }
.b-unpaid { background: var(--amber-50); color: var(--amber); }
.b-active { background: var(--green-50); color: var(--green); }
.b-suspended { background: var(--red-50); color: var(--red); }
.b-admin { background: var(--ink); color: var(--y); }
.b-member { background: var(--line-2); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink-6); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { color: var(--muted); font-weight: 700; }
.chip.on small { color: var(--y); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; line-height: 1; }

/* ---- cards ------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic, .card-head h3 .ic { color: var(--y-700); }
.card-body { padding: 18px 20px; }

/* ---- header ------------------------------------------------------------------ */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar { background: #000; color: #a6adb8; font-size: 12.5px; font-weight: 600; display: none; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 32px; }
.topbar a:hover { color: var(--y); }
.tb-item b { color: #fff; font-weight: 700; }
.tb-hot { color: var(--y); font-weight: 900; font-size: 14px; letter-spacing: .5px; }
.tb-spacer { flex: 1; }
.tb-clock { font-variant-numeric: tabular-nums; }
.mainbar .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.menu-btn { color: #fff; margin-inline-start: -8px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-size: 21px; font-weight: 900; color: var(--y); letter-spacing: -.3px; }
.brand-txt small { font-size: 11.5px; color: #c9ced6; font-weight: 700; margin-top: 3px; }
.hsearch { flex: 1; display: none; height: 44px; max-width: 620px; margin-inline: auto; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.hsearch input { flex: 1; border: 0; padding: 0 16px; font-weight: 600; min-width: 0; background: transparent; color: var(--text); }
.hsearch input:focus { outline: none; }
.hsearch button { background: var(--y); color: var(--ink); padding: 0 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.hsearch button:hover { background: #ffcc3d; }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hdr-actions .btn { height: 38px; padding: 0 14px; }
.hdr-power { display: flex; flex-direction: column; align-items: flex-start; padding: 3px 12px; border-radius: 10px; border: 1px solid var(--ink-4); line-height: 1.25; transition: border-color .15s; }
.hdr-power:hover { border-color: var(--y); }
.hdr-power small { font-size: 10.5px; color: #a6adb8; font-weight: 700; }
.hdr-power .money { color: var(--y); font-size: 14px; }
.bell { color: #fff; }
.bell .count { position: absolute; top: 3px; inset-inline-end: 2px; }
.avatar-btn { display: flex; align-items: center; gap: 8px; color: #fff; padding: 4px; border-radius: 99px; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 2px var(--y); }
.av-name { font-weight: 700; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--y); color: var(--ink); display: inline-grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; transition: box-shadow .15s; }
.avatar.lg { width: 46px; height: 46px; font-size: 17px; }
.admin-link .ic { color: var(--y); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; background: #fff; color: var(--text); border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--line); min-width: 280px; z-index: 60; overflow: hidden; animation: ddin .14s ease-out; }
.dd-menu[hidden] { display: none; }
@keyframes ddin { from { opacity: 0; transform: translateY(-6px); } }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 18px; font-weight: 700; font-size: 14px; text-align: start; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg); }
.user-menu .ic { color: var(--muted); }
.user-menu .count { margin-inline-start: auto; }
.um-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--ink); color: #fff; }
.um-head small { display: block; color: #a6adb8; font-size: 12px; font-weight: 600; }
.um-money { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.um-money div { background: #fff; padding: 10px 18px; display: flex; flex-direction: column; font-size: 14px; }
.um-money small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.notif-menu { width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; inset-inline-end: -48px; }
.nm-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; }
.nm-head a { color: var(--blue); font-size: 13px; font-weight: 700; }
.nm-item { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.nm-item:hover { background: var(--bg); }
.nm-item.unread { background: var(--y-50); }
.nm-item b { display: block; font-size: 14px; }
.nm-item small { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; }
.nm-item time { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.nm-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; flex: none; color: var(--text-2); }
.t-outbid .nm-ic { background: var(--amber-50); color: var(--amber); }
.t-won .nm-ic, .t-deposit .nm-ic, .t-paid .nm-ic { background: var(--green-50); color: var(--green); }
.nm-empty, .nm-loading { padding: 30px; text-align: center; color: var(--muted); }

.navbar { background: var(--ink-2); border-top: 1px solid var(--ink-3); }
.navbar .wrap { display: flex; gap: 2px; }
.navbar a { position: relative; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; color: #d5d9e0; font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .15s; }
.navbar a:hover { color: #fff; }
.navbar a.active { color: var(--y); }
.navbar a.active::after { content: ''; position: absolute; bottom: 0; inset-inline: 12px; height: 3px; background: var(--y); border-radius: 3px 3px 0 0; }
.live-pill { font-style: normal; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; animation: pulse 1.6s infinite; }
.live-pill[hidden] { display: none; }

@media (max-width: 899px) {
  .navbar { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); border: 0; z-index: 70; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .navbar .wrap { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 84vw); background: var(--ink); flex-direction: column; padding: 20px 12px; gap: 2px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .navbar a { height: 50px; border-radius: 10px; font-size: 15.5px; }
  .navbar a.active { background: var(--ink-3); }
  .navbar a.active::after { display: none; }
  body.nav-open .navbar { opacity: 1; visibility: visible; }
  body.nav-open .navbar .wrap { transform: none; }
  .hide-sm { display: none !important; }
  .brand-txt small { display: none; }
  .brand img { height: 38px; }
  .brand-txt b { font-size: 19px; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .topbar { display: block; }
  .hsearch { display: flex; }
  .mainbar .wrap { height: 72px; gap: 22px; }
  .brand img { height: 52px; }
}
.m-search { display: flex; padding: 0 16px 12px; background: var(--ink); }
body[data-route="live"] .m-search, body[data-route="admin"] .m-search, body[data-route="login"] .m-search, body[data-route="register"] .m-search { display: none; }
.m-search form { flex: 1; display: flex; height: 42px; background: #fff; border-radius: 10px; overflow: hidden; }
.m-search input { flex: 1; border: 0; padding: 0 14px; min-width: 0; font-weight: 600; }
.m-search input:focus { outline: none; }
.m-search button { background: var(--y); padding: 0 14px; color: var(--ink); }
@media (min-width: 900px) { .m-search { display: none; } }

.live-banner { background: linear-gradient(90deg, #8c0d16, var(--red)); color: #fff; position: sticky; top: var(--hdr-sticky, 62px); z-index: 40; }
.live-banner[hidden] { display: none; }
.live-banner .wrap { display: flex; align-items: center; gap: 12px; min-height: 46px; padding-block: 6px; }
.lb-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13px; background: rgba(0, 0, 0, .25); padding: 4px 10px; border-radius: 6px; flex: none; }
.lb-txt { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-txt .money { color: var(--y); }
.live-banner .btn-live { background: #fff; color: var(--red); animation: none; flex: none; }
@media (min-width: 900px) { .live-banner { top: 148px; } }

body.rt-offline::before { content: 'جارٍ إعادة الاتصال بالخادم…'; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; z-index: 200; box-shadow: var(--sh-3); }

/* ---- footer ------------------------------------------------------------------ */
.ftr { background: var(--ink); color: #b9bfc9; margin-top: 40px; }
.ftr-main { padding: 48px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ftr-brand p { margin-top: 16px; font-size: 14px; line-height: 1.9; max-width: 380px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.ftr-grid > div > a, .ftr-branch { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; font-weight: 600; }
.ftr-grid > div > a:hover { color: var(--y); }
.ftr-hot b { color: var(--y); font-size: 20px; font-weight: 900; }
.ftr-hot small { color: #8b93a0; }
.ftr-branch { align-items: flex-start; }
.ftr-branch .ic { margin-top: 4px; color: var(--y); }
.ftr-branch b { display: block; color: #fff; font-size: 14px; }
.ftr-branch small { color: #8b93a0; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: var(--ink-3); display: grid; place-items: center; color: #fff; transition: background .15s, color .15s; }
.social a:hover { background: var(--y); color: var(--ink); }
.ftr-bottom { border-top: 1px solid var(--ink-3); font-size: 12.5px; color: #8b93a0; }
.ftr-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

/* ---- toasts & modal ---------------------------------------------------------- */
#toasts { position: fixed; z-index: 300; bottom: 16px; inset-inline-start: 16px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh-3); border-inline-start: 4px solid var(--y); animation: toastin .25s ease-out; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }
.toast-ok { border-color: #2fd47a; }
.toast-err { border-color: #ff4d5a; }
.toast-warn { border-color: #ff9f1a; }
.toast-body { flex: 1; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.toast-body b { font-size: 14.5px; }
.toast-link { color: var(--y); font-weight: 800; margin-top: 4px; }
.toast-x { color: #8b93a0; font-size: 20px; line-height: 1; padding: 0 2px; }
.modal-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(9, 10, 13, .62); display: grid; place-items: center; padding: 16px; animation: fadein .15s; overflow-y: auto; }
.modal-wrap.out { opacity: 0; transition: opacity .18s; }
@keyframes fadein { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); box-shadow: var(--sh-3); animation: modalin .2s ease-out; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal.sm { width: min(420px, 100%); }
.modal.lg { width: min(860px, 100%); }
@keyframes modalin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 18px; }
.modal-x { font-size: 26px; line-height: 1; color: var(--muted); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-start; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.confirm-text { font-size: 15.5px; font-weight: 600; line-height: 1.8; }

/* ---- sections ---------------------------------------------------------------- */
.sec { padding-block: 34px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.sec-head h2 .ic { color: var(--y-700); width: 26px; height: 26px; }
.sec-head p { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 2px; }
.sec-head .link { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--y-700); font-weight: 800; font-size: 13px; letter-spacing: .2px; }
.kicker::before { content: ''; width: 22px; height: 3px; background: var(--y); border-radius: 2px; }
@media (min-width: 900px) { .sec { padding-block: 44px; } .sec-head h2 { font-size: 26px; } }

/* ---- photos ------------------------------------------------------------------ */
.pic { position: relative; overflow: hidden; background: #d9dce1 center / cover no-repeat; aspect-ratio: 4 / 3; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.pic img.ok { opacity: 1; }
.pic img.broken { visibility: hidden; }
.pic-empty { display: grid; place-items: center; color: #a3a9b3; background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.pic-empty .ic { width: 42%; height: 42%; stroke-width: 1; }

/* ---- lot card ---------------------------------------------------------------- */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 16px; }
.lot-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.lot-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: #d3d7dd; }
.lot-card:hover .pic img.ok { transform: scale(1.04); }
.lc-media { display: block; position: relative; }
.lc-media .badge { position: absolute; top: 10px; inset-inline-start: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.lc-media .badge.b-bn { top: 40px; }
.lc-count { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); }
.watch { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--muted); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s, color .15s; z-index: 2; }
.watch:hover { transform: scale(1.08); color: var(--text); }
.watch .ic { width: 20px; height: 20px; }
.watch.on { color: var(--y-600); }
.watch.on .ic { fill: var(--y); stroke: var(--y-700); }
.lc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.lc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.lc-cond { color: var(--green); }
.lc-title { font-size: 16.5px; font-weight: 800; margin: 3px 0 8px; line-height: 1.35; }
.lc-title a:hover { color: var(--y-700); }
.lc-specs { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.lc-specs li { display: flex; align-items: center; gap: 4px; }
.lc-specs .ic { color: var(--muted-2); }
.lc-price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.lc-price .lbl { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.lc-price .money { font-size: 20px; }
.lc-bids { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.lc-bids .lead { color: var(--green); }
.lc-foot { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.tl { display: inline-flex; align-items: center; gap: 5px; }
.tl b { font-variant-numeric: tabular-nums; }
.tl-live { color: var(--red); }
.urgent { color: var(--red) !important; }
.lot-card.compact .lc-title { font-size: 15px; }
.lot-card.compact .lc-price .money { font-size: 17px; }
.skel .pic { background: linear-gradient(90deg, #e7e9ec 0%, #f2f3f5 50%, #e7e9ec 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel i { display: block; height: 12px; border-radius: 6px; background: #eceef1; margin: 8px 0; }
.skel i.w60 { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 900px) { .hscroll { grid-auto-columns: calc((100% - 42px) / 4); } }

.empty { text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-ic { width: 64px; height: 64px; color: var(--muted-2); stroke-width: 1.2; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); font-weight: 600; max-width: 420px; }
.empty .btn { margin-top: 8px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.pg:hover { border-color: var(--ink-6); }
.pg.cur { background: var(--ink); color: var(--y); border-color: var(--ink); }
.pg.gap { border: 0; background: none; }

/* ---- home -------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: #0b0c0f; overflow: hidden; isolation: isolate; }
.hero-art { position: relative; height: 230px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero-in { position: relative; padding-block: 0 30px; margin-top: -40px; }
.hero-txt { display: flex; flex-direction: column; }
.hero h1 { font-size: 29px; font-weight: 900; line-height: 1.3; letter-spacing: -.3px; margin-top: 8px; }
.hero h1 em { font-style: normal; color: var(--y); }
.hero-sub { color: #cfd4dc; font-size: 15.5px; font-weight: 600; margin-top: 10px; max-width: 600px; line-height: 1.85; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.hero-badges .ic { color: var(--y); }
@media (min-width: 900px) {
  .hero { min-height: 600px; display: flex; align-items: center; }
  .hero-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 60%; height: auto; }
  .hero-art img { object-position: center; -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 98%); mask-image: linear-gradient(to right, #000 50%, transparent 98%); }
  .hero-in { margin-top: 0; padding-block: 48px; }
  .hero-txt { width: 52%; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 17px; }
}
@media (min-width: 1300px) { .hero-txt { width: 48%; } }
.finder { background: #fff; color: var(--text); border-radius: 16px; padding: 18px; box-shadow: var(--sh-3); max-width: 620px; }
.finder h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.finder h2 .ic { color: var(--y-700); }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder-grid .full { grid-column: 1 / -1; }
.finder-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: var(--bg); padding: 4px; border-radius: 10px; }
.finder-tabs button { flex: 1; height: 34px; border-radius: 8px; font-weight: 800; font-size: 13px; color: var(--muted); }
.finder-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--sh-1); }
@media (min-width: 900px) { .finder { padding: 22px; } }
.stats-bar { background: #fff; border-bottom: 1px solid var(--line); }
.stats-bar .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 18px 12px; display: flex; align-items: center; gap: 12px; }
.stat + .stat { border-inline-start: 1px solid var(--line-2); }
.stat:nth-child(3) { border-inline-start: 0; }
.stat .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--y-50); color: var(--y-700); }
.stat b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
@media (min-width: 900px) { .stats-bar .wrap { grid-template-columns: repeat(4, 1fr); } .stat:nth-child(3) { border-inline-start: 1px solid var(--line-2); } }

.live-now { background: radial-gradient(1200px 300px at 80% -10%, rgba(224, 34, 47, .25), transparent), var(--ink); color: #fff; padding-block: 28px; }
.live-now .sec-head h2 { color: #fff; }
.live-now .sec-head p { color: #a6adb8; }
.live-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.live-card { display: grid; grid-template-columns: 140px 1fr; background: var(--ink-3); border: 1px solid var(--ink-4); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.live-card:hover { border-color: var(--red); }
.live-card .pic { aspect-ratio: auto; height: 100%; min-height: 120px; }
.lv-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-body .badge { align-self: flex-start; }
.lv-name { font-size: 13px; color: #a6adb8; font-weight: 700; }
.lv-title { font-weight: 800; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-body .money { color: var(--y); font-size: 20px; }
.lv-body .btn { margin-top: auto; align-self: flex-start; }

.auc-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.auc-card { display: flex; gap: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.auc-card:hover { box-shadow: var(--sh-2); border-color: #d3d7dd; }
.auc-date { flex: none; width: 86px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; text-align: center; }
.auc-date b { font-size: 30px; font-weight: 900; line-height: 1; color: var(--y); }
.auc-date small { font-size: 12px; font-weight: 700; color: #c9ced6; margin-top: 4px; }
.auc-date span { font-size: 13px; font-weight: 800; margin-top: 6px; background: var(--ink-4); padding: 1px 8px; border-radius: 6px; }
.auc-info { padding: 14px 16px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.auc-info h3 { font-size: 16px; }
.auc-info .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.auc-info .meta span { display: inline-flex; align-items: center; gap: 4px; }
.auc-info .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }

.makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.make-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; transition: all .15s; }
.make-tile:hover { border-color: var(--y-600); box-shadow: 0 0 0 3px var(--y-50); }
.make-tile b { font-size: 16px; font-weight: 900; letter-spacing: .3px; direction: ltr; text-align: right; }
.make-tile small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.bodies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; inset-inline-end: 18px; font-size: 44px; font-weight: 900; color: var(--line-2); line-height: 1; }
.step .ic { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--ink); color: var(--y); }
.step h3 { font-size: 17px; margin: 14px 0 6px; }
.step p { color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.8; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.trust { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 22px; position: relative; overflow: hidden; }
.trust::after { content: ''; position: absolute; inset-inline-start: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(var(--y), transparent 65%); opacity: .14; }
.trust h2 { font-size: 24px; }
.trust p { color: #b9bfc9; font-weight: 600; margin-top: 8px; line-height: 1.8; }
.trust-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-nums div { background: var(--ink-3); border-radius: 14px; padding: 14px; }
.trust-nums b { display: block; font-size: 26px; font-weight: 900; color: var(--y); line-height: 1.2; }
.trust-nums small { color: #b9bfc9; font-weight: 700; }
@media (min-width: 900px) { .trust { grid-template-columns: 1.1fr 1fr; padding: 40px; align-items: center; } }

/* ---- search ------------------------------------------------------------------ */
.search-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .search-layout { grid-template-columns: 290px 1fr; } }
.filters { padding: 0; position: sticky; top: 160px; max-height: calc(100vh - 176px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.filters-head h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.fgroup { border-bottom: 1px solid var(--line-2); }
.fgroup > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-weight: 800; font-size: 14px; cursor: pointer; user-select: none; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .ic { transition: transform .2s; color: var(--muted); }
.fgroup[open] > summary .ic { transform: rotate(180deg); }
.fgroup > summary .fcount { margin-inline-start: auto; margin-inline-end: 8px; background: var(--y); color: var(--ink); font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.fbody { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.fbody .check { justify-content: space-between; font-weight: 600; font-size: 14px; padding: 3px 0; }
.fbody .check span { display: flex; align-items: center; gap: 8px; }
.fbody .check small { color: var(--muted-2); font-weight: 700; font-size: 12px; }
.fbody .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbody .input, .fbody .select { height: 38px; font-size: 14px; }
.fmore { color: var(--blue); font-weight: 700; font-size: 13px; align-self: flex-start; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.results-bar h1 { font-size: 20px; flex: 1; min-width: 200px; }
.results-bar h1 small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.results-bar .select { width: auto; height: 40px; }
.view-toggle { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.view-toggle button { width: 34px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--ink); color: var(--y); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { height: 30px; font-size: 12.5px; padding: 0 10px; background: var(--y-50); border-color: var(--y-100); }
.active-filters .chip .ic { width: 14px; height: 14px; }
.quick-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.quick-tabs::-webkit-scrollbar { display: none; }
.filter-btn { display: none; }
@media (max-width: 999px) {
  .filters { position: fixed; inset: 0; top: 0; max-height: none; z-index: 80; border-radius: 0; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
  .filters .fscroll { flex: 1; overflow-y: auto; }
  body.filters-open .filters { transform: none; }
  .filter-btn { display: inline-flex; }
  .filters-apply { position: sticky; bottom: 0; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); }
}
@media (min-width: 1000px) { .filters-apply, .filters-close { display: none !important; } }

/* list view */
.lot-grid.as-list { grid-template-columns: 1fr; gap: 10px; }
.as-list .lot-card { display: grid; grid-template-columns: 220px 1fr; }
.as-list .lot-card .lc-media .pic { height: 100%; aspect-ratio: auto; min-height: 150px; }
.as-list .lc-body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta price" "title price" "specs price" "foot price"; column-gap: 20px; }
.as-list .lc-meta { grid-area: meta; }
.as-list .lc-title { grid-area: title; }
.as-list .lc-specs { grid-area: specs; }
.as-list .lc-foot { grid-area: foot; }
.as-list .lc-price { grid-area: price; border: 0; border-inline-start: 1px dashed var(--line); padding: 0 0 0 0; padding-inline-start: 20px; display: flex; align-items: center; min-width: 190px; }
@media (max-width: 640px) {
  .as-list .lot-card { grid-template-columns: 130px 1fr; }
  .as-list .lc-body { display: flex; }
  .as-list .lc-price { border: 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
  .as-list .lc-specs { display: none; }
}

/* ---- lot page ---------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 14px; height: 14px; }
.lot-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lot-head h1 { font-size: 24px; font-weight: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lot-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-top: 4px; }
.lot-sub span { display: inline-flex; align-items: center; gap: 5px; }
.lot-sub b { color: var(--text); }
.lot-actions { display: flex; gap: 8px; }
.lot-actions .btn .ic { width: 18px; height: 18px; }
.lot-actions .btn.on .ic { fill: var(--y); stroke: var(--y-700); }
.lot-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .lot-layout { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); } .lot-head h1 { font-size: 30px; } }
.gallery { overflow: hidden; }
.g-main { position: relative; background: #111; aspect-ratio: 4 / 3; cursor: zoom-in; user-select: none; }
.g-main .pic { position: absolute; inset: 0; aspect-ratio: auto; background-color: #111; }
.g-main .pic img { object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s; z-index: 2; }
.g-nav:hover { background: rgba(0, 0, 0, .8); }
.g-nav .ic { width: 24px; height: 24px; }
.g-prev { inset-inline-start: 12px; }
.g-next { inset-inline-end: 12px; }
.g-counter { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; z-index: 2; font-variant-numeric: tabular-nums; }
.g-progress { position: absolute; bottom: 0; inset-inline: 0; height: 3px; z-index: 3; background: var(--y); transform: scaleX(0); transform-origin: right; pointer-events: none; opacity: .9; }
.g-progress.run { animation: gprog var(--dur, 3000ms) linear forwards; }
@keyframes gprog { to { transform: scaleX(1); } }
.g-full { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; padding: 8px; max-height: 196px; overflow-y: auto; }
.g-thumbs button { border-radius: 8px; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; opacity: .72; transition: opacity .15s, outline-color .15s; }
.g-thumbs button:hover { opacity: 1; }
.g-thumbs button.on { outline-color: var(--y); opacity: 1; }
.g-thumbs .pic { aspect-ratio: 4 / 3; }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(5, 5, 7, .97); display: flex; flex-direction: column; animation: fadein .15s; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #fff; gap: 10px; }
.lb-top b { font-size: 15px; }
.lb-top .icon-btn { color: #fff; }
.lb-stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s ease; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb-stage.zoom img { transform: scale(2.2); cursor: zoom-out; transition: transform .25s ease, transform-origin 0s; }
.lb-stage .g-nav { background: rgba(255, 255, 255, .12); }
.lb-thumbs { display: flex; gap: 6px; padding: 10px 14px 14px; overflow-x: auto; justify-content: safe center; }
.lb-thumbs button { flex: none; width: 84px; border-radius: 6px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; }
.lb-thumbs button.on { opacity: 1; outline-color: var(--y); }
.lb-thumbs .pic { aspect-ratio: 4 / 3; }

.bid-panel { overflow: hidden; }
@media (min-width: 1000px) { .bid-panel { position: sticky; top: 164px; } }
.bp-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.bp-status.st-live { background: var(--red); }
.bp-status.st-open { background: #0c6b37; }
.bp-status.st-sold, .bp-status.st-unsold, .bp-status.st-approval { background: var(--ink-4); }
.bp-status .cd { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--y); }
.bp-status.st-live .cd, .bp-status.st-open .cd { color: #fff; }
.bp-when { padding: 12px 18px; background: var(--y-50); border-bottom: 1px solid var(--y-100); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bp-when b { font-size: 14.5px; }
.bp-when .cdw { color: var(--y-700); font-variant-numeric: tabular-nums; font-weight: 900; }
.bp-cdx { padding: 14px 18px 12px; background: var(--y-50); border-bottom: 1px solid var(--y-100); display: grid; gap: 8px; }
.bp-cdx > small { font-weight: 800; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.bp-cdx-at { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cdx { display: flex; gap: 8px; }
.cdx > div { flex: 1; min-width: 0; background: var(--ink); border-radius: 12px; padding: 9px 4px 7px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.cdx b { font-size: 28px; font-weight: 900; color: var(--y); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cdx small { font-size: 12px; color: #c9ced6; font-weight: 700; }
.cdx.urgent b { color: #ff6b76; }
.cdx.done { opacity: .55; }
.cdx-dark > div { background: var(--ink-4); }
.cdx-big { width: min(560px, 100%); }
.cdx-big > div { background: var(--ink-3); border: 1px solid var(--ink-5); padding: 14px 6px 10px; border-radius: 16px; }
.cdx-big b { font-size: clamp(34px, 8vw, 56px); }
.cdx-big small { font-size: 14px; }
.auc-count .cdx { margin-top: 6px; min-width: 300px; }
.auc-count .cdx b { font-size: 26px; }
.bp-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bp-cur { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bp-cur .lbl { font-size: 13px; color: var(--muted); font-weight: 800; }
.bp-cur .js-cur .money { font-size: 32px; font-weight: 900; letter-spacing: -.5px; }
.bp-cur .bids-n { text-align: end; font-size: 13px; color: var(--muted); font-weight: 700; }
.bp-cur .bids-n b { display: block; font-size: 20px; color: var(--text); }
.bp-flag { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.bp-flag.win { background: var(--green-50); color: var(--green); }
.bp-flag.lose { background: var(--red-50); color: var(--red); }
.bp-flag.info { background: var(--line-2); color: var(--text-2); }
.bp-flag.warn { background: var(--amber-50); color: var(--amber); }
.bp-rows { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.bp-rows div { display: flex; justify-content: space-between; gap: 10px; }
.bp-rows span:first-child { color: var(--muted); }
.bp-rows .ok { color: var(--green); }
.bp-rows .no { color: var(--amber); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick button { height: 38px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: all .15s; }
.quick button:hover { border-color: var(--ink); background: var(--ink); color: var(--y); }
.bp-help { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.7; display: flex; gap: 6px; }
.bp-help .ic { flex: none; margin-top: 3px; }
.bp-bn { border: 1.5px dashed rgba(18, 161, 80, .4); background: var(--green-50); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bp-bn small { display: block; color: var(--green); font-weight: 800; font-size: 12px; }
.bp-bn .money { font-size: 19px; }
.bp-guest { text-align: center; padding: 6px 0; }
.bp-guest p { font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.bp-guest .row { display: flex; gap: 8px; }
.bp-guest .row .btn { flex: 1; }
.bp-power { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--bg); border-radius: 10px; padding: 9px 12px; flex-wrap: wrap; }
.bp-power .money { font-size: 14px; }

.info-cards { display: grid; gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 1000px) { .info-cards { grid-template-columns: 1.45fr 1fr; } }
.kv { display: grid; grid-template-columns: 1fr; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv div:nth-child(odd) { background: #fafbfc; }
.kv div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.kv span:last-child { font-weight: 800; text-align: end; }
@media (min-width: 640px) { .kv.two { grid-template-columns: 1fr 1fr; } .kv.two div:nth-child(odd) { background: none; } .kv.two div:nth-child(4n+1), .kv.two div:nth-child(4n+2) { background: #fafbfc; } .kv.two div:nth-child(odd) { border-inline-end: 1px solid var(--line-2); } }
.hl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-list span { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: #0c7a3c; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.notes { white-space: pre-line; color: var(--text-2); font-weight: 600; line-height: 1.9; margin-top: 12px; }
.bid-hist { max-height: 360px; overflow-y: auto; }
.bh-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; align-items: center; }
.bh-row:first-child { background: var(--y-50); }
.bh-row .who { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.bh-row .who small { color: var(--muted); font-weight: 600; }
.bh-row .me-tag { background: var(--ink); color: var(--y); font-size: 11px; padding: 1px 7px; border-radius: 5px; }
.bh-row time { color: var(--muted); font-size: 12px; font-weight: 600; grid-column: 1; }
.bh-row .money { grid-row: span 2; font-size: 15px; }
.bh-new { animation: flash 1.2s ease-out; }

/* ---- auctions ---------------------------------------------------------------- */
.page-head { background: var(--ink); color: #fff; padding-block: 26px 22px; }
.page-head h1 { font-size: 26px; font-weight: 900; }
.page-head p { color: #b9bfc9; font-weight: 600; margin-top: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 12px 16px; font-weight: 800; font-size: 14.5px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); }
.tabs .on::after { content: ''; position: absolute; bottom: -1px; inset-inline: 10px; height: 3px; background: var(--y); border-radius: 3px 3px 0 0; }
.page-head .tabs { border-color: var(--ink-4); margin: 18px 0 -22px; }
.page-head .tabs a { color: #a6adb8; }
.page-head .tabs a:hover, .page-head .tabs .on { color: #fff; }
.day-group { margin-bottom: 26px; }
.day-group h2 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.day-group h2 .ic { color: var(--y-700); }
.sale-row { display: grid; grid-template-columns: 70px 1fr; gap: 0; align-items: stretch; overflow: hidden; margin-bottom: 10px; }
.sale-row .time { background: var(--ink); color: var(--y); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sale-row .time small { color: #b9bfc9; font-size: 11px; font-weight: 700; }
.sale-main { padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.sale-main h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sale-main .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sale-main .meta span { display: inline-flex; align-items: center; gap: 4px; }
.sale-main .grow { flex: 1; min-width: 220px; }
.sale-main .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sale-thumbs { display: flex; gap: 4px; }
.sale-thumbs .pic { width: 64px; border-radius: 6px; }
.auc-hero { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .auc-hero { grid-template-columns: 1fr auto; } }
.auc-count { background: var(--ink-3); border: 1px solid var(--ink-4); border-radius: 14px; padding: 14px 20px; text-align: center; }
.auc-count small { color: #a6adb8; font-weight: 700; font-size: 12.5px; }
.auc-count b { display: block; font-size: 32px; font-weight: 900; color: var(--y); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 800; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfc; }
.tbl .thumb { width: 74px; border-radius: 8px; overflow: hidden; }
.tbl .t-title { font-weight: 800; min-width: 170px; }
.tbl .t-title small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.tbl .t-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tbl .money { font-size: 14px; }
.tbl .pos { color: var(--green); }
.tbl .neg { color: var(--red); }
.tbl-num { font-variant-numeric: tabular-nums; }

/* ---- live room --------------------------------------------------------------- */
body[data-route="live"] { background: #0d0e11; }
body[data-route="live"] .ftr { margin-top: 0; }
.live-room { color: #fff; padding-block: 16px 40px; }
.lr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lr-top h1 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lr-tools { display: flex; gap: 8px; align-items: center; }
.lr-tools .icon-btn { color: #fff; background: var(--ink-3); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #7ee2a8; background: rgba(46, 204, 113, .1); padding: 4px 10px; border-radius: 99px; }
.conn.off { color: #ff8a93; background: rgba(224, 34, 47, .12); }
.boards { display: grid; gap: 16px; }
.boards.multi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
.board { background: var(--ink-2); border: 1px solid var(--ink-4); border-radius: 18px; overflow: hidden; position: relative; }
.bd-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-3); border-bottom: 1px solid var(--ink-4); flex-wrap: wrap; }
.bd-head h2 { font-size: 16px; flex: 1; min-width: 160px; }
.bd-head h2 small { display: block; font-size: 12px; color: #a6adb8; font-weight: 600; }
.bd-prog { font-size: 12.5px; font-weight: 700; color: #c9ced6; background: var(--ink-4); padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.bd-grid { display: grid; gap: 0; position: relative; }
@media (min-width: 1000px) { .boards:not(.multi) .bd-grid { grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); } }
.bd-media { position: relative; background: #000; }
.bd-media .g-main { cursor: default; }
.bd-media .g-thumbs { background: var(--ink-2); max-height: 92px; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.bd-console { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bd-lot { display: flex; flex-direction: column; gap: 6px; }
.bd-lot .lotno { font-size: 12.5px; color: #a6adb8; font-weight: 700; }
.bd-lot h3 { font-size: 22px; font-weight: 900; line-height: 1.3; }
.bd-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-specs span { background: var(--ink-4); color: #d5d9e0; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; display: inline-flex; gap: 5px; align-items: center; }
.bd-specs .ic { color: var(--y); }
.bd-stage { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: #08090b; border: 1px solid var(--ink-4); border-radius: 16px; padding: 16px; }
.bd-cur small { display: block; color: #a6adb8; font-size: 12.5px; font-weight: 800; }
.bd-cur .money { font-size: clamp(30px, 6vw, 44px); color: var(--y); font-weight: 900; letter-spacing: -.5px; line-height: 1.15; }
.bd-cur .flash { animation: flashdark 1s ease-out; }
@keyframes flashdark { 0% { color: #fff; text-shadow: 0 0 24px var(--y); transform: scale(1.06); } 100% { transform: none; } }
.bd-hb { margin-top: 6px; font-weight: 800; font-size: 14px; color: #c9ced6; display: flex; align-items: center; gap: 6px; }
.bd-hb.me { color: #3ee08a; }
.bd-hb.out { color: #ff7a85; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .rbg { stroke: var(--ink-4); }
.ring .rfg { stroke: var(--y); stroke-linecap: round; transition: stroke .3s; }
.ring.warn .rfg { stroke: #ff9f1a; }
.ring.crit .rfg { stroke: var(--red); }
.ring .rtxt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ring.crit .rtxt { color: #ff6b76; animation: pulse .5s infinite; }
.call { text-align: center; font-size: 18px; font-weight: 900; min-height: 30px; letter-spacing: .2px; }
.call.c-open { color: #3ee08a; }
.call.c-once { color: #ffd166; }
.call.c-twice { color: #ff9f1a; }
.call.c-last { color: #ff5c69; animation: pulse .6s infinite; }
.call.c-wait { color: #a6adb8; }
.bid-big { width: 100%; height: 66px; border-radius: 14px; background: var(--y); color: var(--ink); font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 0 var(--y-700), 0 10px 30px rgba(255, 194, 26, .25); transition: transform .08s, box-shadow .08s, background .15s; }
.bid-big:hover:not(:disabled) { background: #ffcc3d; }
.bid-big:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--y-700); }
.bid-big:disabled { background: var(--ink-4); color: #8b93a0; box-shadow: none; cursor: not-allowed; }
.bid-big.leading { background: #13a557; color: #fff; box-shadow: 0 4px 0 #0a6d39; }
.bid-big .money small { opacity: .8; }
.bid-big.busy { opacity: .7; }
/* phones: price, clock and bid buttons right under the photo; car details after them */
@media (max-width: 999px) {
  .bd-media .g-thumbs { display: none; }
  .bd-media .g-main { aspect-ratio: 16 / 10; }
  .bd-console .bd-lot { order: 10; }
  .bd-console { padding: 14px; gap: 12px; }
}
.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.step-btn { height: 56px; border-radius: 12px; background: var(--ink-3); border: 1.5px solid var(--ink-5); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: background .12s, border-color .12s, transform .08s; }
.step-btn b { font-size: 18px; font-weight: 900; color: var(--y); line-height: 1.1; }
.step-btn small { font-size: 11.5px; color: #a6adb8; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-btn:hover:not(:disabled) { background: var(--ink-4); border-color: var(--y); }
.step-btn:active:not(:disabled) { transform: translateY(2px); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; }
.step-btn.busy { opacity: .6; }
.bid-pop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; pointer-events: none; }
.bid-pop.in-board { position: absolute; z-index: 7; }
.pop-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 30px 18px 22px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 21, 26, .96), rgba(38, 31, 8, .96)); border: 2px solid var(--y);
  box-shadow: 0 0 0 6px rgba(255, 194, 26, .18), 0 20px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 194, 26, .35);
  color: #fff; animation: popin 1.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.pop-card b { display: block; font-size: clamp(26px, 5vw, 44px); font-weight: 900; line-height: 1.15; }
.pop-card span:not(.pop-av) { display: block; font-size: clamp(15px, 2.4vw, 20px); font-weight: 800; color: var(--y); margin-top: 2px; }
.pop-card .money { color: var(--y); }
.pop-av { width: 64px; height: 64px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; font-size: 26px; font-weight: 900; flex: none; box-shadow: 0 0 0 5px rgba(255, 194, 26, .3); }
.bid-pop.mine .pop-card { border-color: #2fd47a; background: linear-gradient(135deg, rgba(10, 40, 24, .97), rgba(20, 21, 26, .96)); box-shadow: 0 0 0 6px rgba(47, 212, 122, .2), 0 20px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(47, 212, 122, .4); }
.bid-pop.mine .pop-av { background: #2fd47a; }
.bid-pop.mine .pop-card span:not(.pop-av), .bid-pop.mine .pop-card .money { color: #7ef0b0; }
.bid-pop.in-board .pop-card { transform-origin: center; padding: 12px 22px 12px 16px; }
.bid-pop.in-board .pop-card b { font-size: 26px; }
.bid-pop.in-board .pop-av { width: 48px; height: 48px; font-size: 20px; }
@keyframes popin {
  0% { opacity: 0; transform: scale(.4) translateY(30px); }
  14% { opacity: 1; transform: scale(1.08); }
  24% { transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.92) translateY(-30px); }
}
.pop-burst { position: absolute; width: 0; height: 0; }
.pop-burst i { position: absolute; width: 10px; height: 26px; border-radius: 5px; background: var(--y); left: -5px; top: -13px;
  transform: rotate(var(--a)) translateY(0); opacity: 0; animation: burst .9s ease-out var(--d) forwards; }
.pop-burst i:nth-child(3n) { background: #fff; }
.pop-burst i:nth-child(4n) { background: #ff9f1a; }
.bid-pop.mine .pop-burst i { background: #2fd47a; }
.bid-pop.mine .pop-burst i:nth-child(3n) { background: var(--y); }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-40px) scaleY(.6); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-260px) scaleY(1.2); }
}
.bd-custom { display: flex; gap: 8px; }
.bd-custom .amount-in { flex: 1; }
.bd-custom input { background: var(--ink-3) !important; border-color: var(--ink-5) !important; color: #fff !important; height: 46px !important; }
.bd-custom .btn { height: 46px; }
.bd-note { font-size: 12.5px; color: #a6adb8; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bd-note .money { color: #fff; font-size: 13px; }
.bd-side { display: grid; gap: 0; border-top: 1px solid var(--ink-4); }
@media (min-width: 760px) { .bd-side { grid-template-columns: 1fr 1fr; } .bd-side > div + div { border-inline-start: 1px solid var(--ink-4); } }
.bd-side h4 { font-size: 13.5px; padding: 12px 16px 6px; color: #c9ced6; display: flex; align-items: center; gap: 6px; }
.bd-side h4 .ic { color: var(--y); }
.q-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 8px 16px; align-items: center; font-size: 13px; }
.q-item .pic { border-radius: 6px; }
.q-item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item small { color: #8b93a0; font-weight: 600; }
.q-item .money { font-size: 13px; color: #d5d9e0; }
.feed { max-height: 230px; overflow-y: auto; padding-bottom: 8px; }
.feed-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px; font-size: 13px; font-weight: 700; color: #c9ced6; }
.feed-row.me { color: #3ee08a; }
.feed-row time { color: #6b7380; font-weight: 600; font-size: 12px; }
.feed-row:first-child { color: #fff; }
.feed-row.new { animation: feedin .6s ease-out; }
@keyframes feedin { from { background: rgba(255, 194, 26, .25); } }
.stamp { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(8, 9, 11, .72); backdrop-filter: blur(2px); animation: fadein .2s; pointer-events: none; }
.stamp-box { text-align: center; transform: rotate(-6deg); border: 5px solid; border-radius: 18px; padding: 14px 34px; animation: stampin .35s cubic-bezier(.2, 1.6, .4, 1); background: rgba(0, 0, 0, .4); }
@keyframes stampin { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } }
.stamp-box b { display: block; font-size: 46px; font-weight: 900; line-height: 1.2; }
.stamp-box .money { font-size: 24px; }
.stamp-box small { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; opacity: .85; }
.stamp.sold .stamp-box { border-color: #2fd47a; color: #2fd47a; }
.stamp.sold.mine .stamp-box { border-color: var(--y); color: var(--y); }
.stamp.approval .stamp-box { border-color: #ff9f1a; color: #ff9f1a; }
.stamp.unsold .stamp-box { border-color: #8b93a0; color: #c9ced6; }
.lr-wait { text-align: center; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lr-wait .big-cd { font-size: clamp(40px, 9vw, 72px); font-weight: 900; color: var(--y); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lr-wait p { color: #a6adb8; font-weight: 600; }
.lr-pause { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(8, 9, 11, .8); text-align: center; }
.lr-pause b { font-size: 26px; display: block; color: #ffd166; }
.join-list { display: grid; gap: 12px; }
.join-row { display: grid; grid-template-columns: auto 120px 1fr auto; gap: 14px; align-items: center; background: var(--ink-2); border: 1px solid var(--ink-4); border-radius: 14px; padding: 10px 14px; color: #fff; }
.join-row .pic { border-radius: 8px; }
.join-row h3 { font-size: 16px; }
.join-row small { color: #a6adb8; font-weight: 600; display: block; }
.join-row .check input { accent-color: var(--y); }
@media (max-width: 640px) { .join-row { grid-template-columns: auto 1fr; } .join-row .pic { display: none; } .join-row > :last-child { grid-column: 1 / -1; } }
.live-room .empty h3 { color: #fff; }
.live-room .empty p { color: #a6adb8; }
.board.compact .bd-lot h3 { font-size: 18px; }
.board.compact .ring { width: 84px; height: 84px; }
.board.compact .ring .rtxt { font-size: 24px; }

/* ---- auth -------------------------------------------------------------------- */
.auth { display: grid; min-height: calc(100vh - 140px); }
@media (min-width: 1000px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { position: relative; display: none; color: #fff; overflow: hidden; background: var(--ink); }
.auth-side .pic { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.auth-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 15, .95) 10%, rgba(11, 12, 15, .3)); }
.auth-side-txt { position: absolute; bottom: 0; inset-inline: 0; padding: 48px; z-index: 1; }
.auth-side-txt img { height: 120px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.auth-side-txt h2 { font-size: 32px; font-weight: 900; }
.auth-side-txt p { color: #cfd4dc; font-weight: 600; margin-top: 8px; font-size: 16px; line-height: 1.8; }
.auth-side-txt ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.auth-side-txt li { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.auth-side-txt li .ic { color: var(--y); }
@media (min-width: 1000px) { .auth-side { display: block; } }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-box { width: min(440px, 100%); }
.auth-box h1 { font-size: 28px; font-weight: 900; }
.auth-box > p { color: var(--muted); font-weight: 600; margin: 6px 0 22px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-alt { text-align: center; margin-top: 18px; font-weight: 700; color: var(--text-2); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); padding: 6px; font-size: 12.5px; font-weight: 800; }

/* ---- account & admin --------------------------------------------------------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dash > *, .search-layout > *, .lot-layout > *, .info-cards > * { min-width: 0; }
@media (min-width: 1000px) { .dash { grid-template-columns: 250px minmax(0, 1fr); } }
.side-nav { padding: 8px; position: sticky; top: 160px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--text-2); }
.side-nav a:hover { background: var(--bg); color: var(--text); }
.side-nav a.on { background: var(--ink); color: #fff; }
.side-nav a.on .ic { color: var(--y); }
.side-nav .count { margin-inline-start: auto; }
.side-user { display: flex; gap: 10px; align-items: center; padding: 12px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.side-user b { display: block; font-size: 15px; }
.side-user small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
@media (max-width: 999px) {
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { white-space: nowrap; flex: none; }
  .side-user, .side-nav .sn-sep { display: none; }
}
.sn-sep { font-size: 11.5px; color: var(--muted-2); font-weight: 800; padding: 12px 12px 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .ic { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--y-50); color: var(--y-700); }
.kpi small { color: var(--muted); font-weight: 800; font-size: 12.5px; }
.kpi b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi b .money { font-size: inherit; }
.kpi em { font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.kpi.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.dark small, .kpi.dark em { color: #a6adb8; }
.kpi.dark .ic { background: var(--ink-4); color: var(--y); }
.kpi.dark b { color: var(--y); }
.wallet-hero { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.wallet-hero::after { content: ''; position: absolute; inset-inline-start: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(var(--y), transparent 65%); opacity: .14; }
.wallet-hero small { color: #a6adb8; font-weight: 700; font-size: 13px; }
.wallet-hero .money { font-size: 34px; color: var(--y); }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wh-grid > div { background: var(--ink-3); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.wh-grid .money { font-size: 19px; color: #fff; }
.bar { height: 8px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--y); border-radius: 99px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { height: 40px; width: auto; flex: 1; min-width: 160px; max-width: 320px; }
.toolbar .spacer { flex: 1; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-title h1 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.admin-title h1 small { font-size: 14px; color: var(--muted); font-weight: 700; }
.form-sec { padding: 20px; border-bottom: 1px solid var(--line-2); }
.form-sec:last-child { border-bottom: 0; }
.form-sec > h3 { font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-sec > h3 .ic { color: var(--y-700); }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 800; font-size: 13.5px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--text); box-shadow: var(--sh-1); }
.seg input:focus-visible + span { outline: 3px solid rgba(255, 194, 26, .7); }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; background: #fafbfc; transition: all .15s; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone:hover, .dropzone.over { border-color: var(--y-600); background: var(--y-50); }
.dropzone .ic { width: 38px; height: 38px; color: var(--y-700); }
.dropzone b { font-size: 15px; }
.dropzone small { color: var(--muted); font-weight: 600; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.img-item { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: grab; transition: border-color .15s, opacity .15s; }
.img-item:first-child { border-color: var(--y); }
.img-item:first-child::before { content: 'الصورة الرئيسية'; position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; background: var(--y); color: var(--ink); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.img-item.dragging { opacity: .4; }
.img-item.drop-target { border-color: var(--blue); }
.img-item .pic { aspect-ratio: 4 / 3; }
.img-acts { display: flex; justify-content: space-between; padding: 4px; background: #fff; }
.img-acts button { width: 30px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.img-acts button:hover { background: var(--bg); color: var(--text); }
.img-acts .del:hover { color: var(--red); background: var(--red-50); }
.img-item.uploading .pic { opacity: .5; }
.img-item .prog { position: absolute; inset-inline: 8px; bottom: 44px; height: 6px; background: rgba(0, 0, 0, .2); border-radius: 99px; overflow: hidden; }
.img-item .prog i { display: block; height: 100%; background: var(--y); transition: width .2s; }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-radius: 0 0 var(--r) var(--r); }
.feed-a { max-height: 420px; overflow-y: auto; }
.feed-a .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.feed-a .row b { font-weight: 800; }
.feed-a .row small { color: var(--muted); font-weight: 600; }
.feed-a .row .money { grid-row: span 2; align-self: center; }
.feed-a .row.new { animation: feedin 1s ease-out; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-item { display: grid; grid-template-columns: 28px 30px 80px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.order-item.dragging { opacity: .4; }
.order-item .handle { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.order-item .n { font-weight: 900; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.order-item .pic { border-radius: 6px; }
.order-item b { display: block; font-size: 14px; }
.order-item small { color: var(--muted); font-weight: 600; font-size: 12px; }
.ctrl-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.inc-table { display: grid; gap: 8px; }
.inc-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; }

/* ---- info pages -------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 21px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-weight: 600; line-height: 2; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 16px 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq details p { padding: 14px 18px; color: var(--text-2); font-weight: 600; line-height: 1.9; }
.branch-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.branch { overflow: hidden; }
.branch .pic { aspect-ratio: 16 / 9; }
.branch-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.branch-body h3 { font-size: 19px; }
.branch-body p { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-weight: 700; }
.branch-body .ic { color: var(--y-700); }
.fees-table td:last-child { font-weight: 800; text-align: end; }

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