:root {
  --vb-burgundy: #681829;
  --vb-burgundy-dark: #43101b;
  --vb-gold: #b98a35;
  --vb-gold-soft: #f4ead5;
  --vb-ink: #1f2024;
  --vb-muted: #6b6870;
  --vb-line: #e9e2d7;
  --vb-surface: #ffffff;
  --vb-wash: #faf7f1;
  --vb-success: #176f48;
  --vb-danger: #a73232;
  --shadow-soft: 0 18px 40px rgba(31, 32, 36, .18);
  --shadow-card: 0 10px 22px rgba(67, 16, 27, .08);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--vb-ink);
  background:
    radial-gradient(circle at top left, rgba(185, 138, 53, .16), transparent 32rem),
    linear-gradient(135deg, #ffffff 0%, #f3eee7 100%);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.device-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.phone-shell {
  width: min(390px, 100%);
  height: min(844px, calc(100vh - 32px));
  min-height: 680px;
  overflow: hidden;
  position: relative;
  border: 12px solid #050505;
  border-radius: 44px;
  background: var(--vb-surface);
  box-shadow: var(--shadow-soft);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  width: 116px;
  height: 24px;
  z-index: 5;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #050505;
}

.status-bar {
  height: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 24px 7px;
  background: var(--vb-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.status-icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.app-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--vb-line);
  background: rgba(255, 255, 255, .96);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--vb-burgundy), var(--vb-burgundy-dark));
  box-shadow: inset 0 0 0 2px rgba(185, 138, 53, .42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.header-copy {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  color: var(--vb-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-title {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--vb-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--vb-line);
  border-radius: 50%;
  color: var(--vb-burgundy);
  background: #fff;
  transition: .18s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--vb-gold);
  background: var(--vb-gold-soft);
  outline: none;
}

.app-content {
  height: calc(100% - 42px - 70px - 76px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 16px 22px;
  scroll-behavior: smooth;
  background: var(--vb-surface);
}

.app-content.has-action-bar {
  padding-bottom: 86px;
}

.bottom-tabs {
  height: calc(76px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 8px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--vb-line);
  background: rgba(255, 255, 255, .98);
}

.tab-link {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 10px;
  color: var(--vb-muted);
  font-size: 10px;
  font-weight: 700;
  transition: .18s ease;
}

.tab-link i {
  font-size: 18px;
}

.tab-link.active {
  color: var(--vb-burgundy);
  background: var(--vb-gold-soft);
}

.section {
  margin-block-end: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 10px;
}

.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--vb-burgundy);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  background: var(--vb-surface);
  box-shadow: var(--shadow-card);
}

.hero-media {
  width: 100%;
  height: 176px;
  display: block;
  object-fit: cover;
}

.hero-body {
  padding: 14px;
}

.hero-title {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-text {
  margin: 0;
  color: var(--vb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.meta-row,
.chip-row,
.stats-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-row {
  margin-block: 10px 12px;
}

.pill,
.chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--vb-line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--vb-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.pill.strong {
  color: var(--vb-burgundy);
  background: var(--vb-gold-soft);
  border-color: rgba(185, 138, 53, .36);
}

.chip {
  cursor: pointer;
  transition: .18s ease;
}

.chip.active,
.chip:hover {
  color: #fff;
  border-color: var(--vb-burgundy);
  background: var(--vb-burgundy);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  transition: .18s ease;
}

.btn-primary {
  color: #fff;
  background: var(--vb-burgundy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--vb-burgundy-dark);
  outline: none;
}

.btn-secondary {
  color: var(--vb-burgundy);
  border-color: rgba(104, 24, 41, .22);
  background: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--vb-gold);
  background: var(--vb-gold-soft);
  outline: none;
}

.btn-gold {
  color: #fff;
  background: var(--vb-gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #9e742a;
  outline: none;
}

.btn:disabled,
.btn.disabled {
  color: #999;
  border-color: #dedede;
  background: #f4f4f4;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--vb-wash);
}

.stat-value {
  display: block;
  color: var(--vb-burgundy);
  font-size: 16px;
  font-weight: 900;
}

.stat-label {
  display: block;
  margin-top: 2px;
  color: var(--vb-muted);
  font-size: 10px;
  font-weight: 750;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--vb-gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 53, .16);
}

.search-box i {
  color: var(--vb-gold);
}

.search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--vb-ink);
  background: transparent;
  font-size: 13px;
}

.lot-list {
  display: grid;
  gap: 12px;
}

.lot-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  position: relative;
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: .18s ease;
}

.lot-card:hover {
  border-color: rgba(185, 138, 53, .7);
  transform: translateY(-1px);
}

.lot-image {
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--vb-wash);
}

.lot-kicker {
  color: var(--vb-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lot-title {
  margin: 2px 28px 4px 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.lot-desc {
  margin: 0 0 8px;
  color: var(--vb-muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lot-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  margin-bottom: 8px;
}

.spec-label {
  display: block;
  color: var(--vb-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.spec-value {
  display: block;
  overflow: hidden;
  color: var(--vb-ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-estimate {
  grid-column: 1 / -1;
}

.spec-estimate .spec-value {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.bid-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--vb-line);
  padding-top: 8px;
}

.bid-row.single-price {
  justify-content: flex-start;
}

.bid-label {
  display: block;
  color: var(--vb-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.bid-value {
  display: block;
  color: var(--vb-burgundy);
  font-size: 13px;
  font-weight: 900;
}

.favorite {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-end: 9px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--vb-line);
  border-radius: 50%;
  color: var(--vb-burgundy);
  background: rgba(255, 255, 255, .92);
}

.favorite.active {
  color: #fff;
  border-color: var(--vb-burgundy);
  background: var(--vb-burgundy);
}

.auction-row,
.account-row,
.notice-row,
.store-card {
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.auction-row {
  overflow: hidden;
}

.auction-row img,
.store-card img {
  width: 100%;
  height: 132px;
  display: block;
  object-fit: cover;
}

.auction-row-body,
.store-card-body {
  padding: 12px;
}

.auction-row h3,
.store-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.auction-row p,
.store-card p {
  margin: 0 0 10px;
  color: var(--vb-muted);
  font-size: 12px;
  line-height: 1.42;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.count-box {
  border: 1px solid rgba(185, 138, 53, .34);
  border-radius: var(--radius);
  padding: 8px 4px;
  text-align: center;
  background: var(--vb-gold-soft);
}

.count-num {
  display: block;
  color: var(--vb-burgundy);
  font-size: 18px;
  font-weight: 900;
}

.count-unit {
  display: block;
  color: var(--vb-muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.sticky-action {
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(76px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--vb-line);
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 -12px 24px rgba(31, 32, 36, .08);
}

.sticky-copy span {
  display: block;
}

.sticky-label {
  color: var(--vb-muted);
  font-size: 10px;
  font-weight: 800;
}

.sticky-value {
  color: var(--vb-burgundy);
  font-size: 16px;
  font-weight: 950;
}

.register-sticky {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  padding-block: 12px;
}

.sticky-title {
  display: block;
  color: var(--vb-ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.sticky-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--vb-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.register-sticky .btn {
  width: 100%;
  padding-inline: 12px;
  white-space: nowrap;
}

.bid-sticky {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-block: 12px;
}

.bid-sticky .field {
  margin-bottom: 0;
  gap: 5px;
}

.bid-sticky .field label {
  font-size: 13px;
}

.bid-sticky .field select {
  min-height: 42px;
  padding-block: 8px;
  font-weight: 850;
}

.bid-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bid-action-grid .btn {
  width: 100%;
}

.lot-detail-specs .price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-image {
  width: 100%;
  max-height: 290px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--vb-line);
}

.detail-title {
  margin: 14px 0 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.detail-copy {
  color: var(--vb-muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-panel {
  border: 1px solid rgba(104, 24, 41, .16);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(180deg, #fff, var(--vb-wash));
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-card {
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--vb-ink);
  font-size: 12px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--vb-ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--vb-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 138, 53, .16);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d2ca;
  transition: .18s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  inset-inline-start: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .18s ease;
}

.switch input:checked + .slider {
  background: var(--vb-burgundy);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

[dir="rtl"] .switch input:checked + .slider::before {
  transform: translateX(-20px);
}

.account-row,
.notice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.account-summary .hero-body {
  padding-bottom: 16px;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-action-card {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--vb-line);
  border-radius: 12px;
  padding: 14px;
  color: inherit;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.account-action-card .row-icon {
  margin-bottom: 2px;
}

.account-action-card strong,
.account-action-card small {
  display: block;
}

.account-action-card strong {
  color: var(--vb-ink);
  font-size: 14px;
  line-height: 1.2;
}

.account-action-card small {
  color: var(--vb-muted);
  font-size: 11px;
  line-height: 1.35;
}

.settings-card {
  padding: 12px;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--vb-line);
  padding: 12px 0;
}

.settings-row:last-of-type {
  border-bottom: 0;
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  color: var(--vb-ink);
  font-size: 14px;
}

.settings-row small {
  margin-top: 2px;
  color: var(--vb-muted);
  font-size: 11px;
  line-height: 1.3;
}

.settings-row select {
  width: 100%;
  border: 1px solid var(--vb-line);
  border-radius: 9px;
  padding: 9px 8px;
  color: var(--vb-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.row-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--vb-burgundy);
  background: var(--vb-gold-soft);
}

.row-copy {
  flex: 1;
  min-width: 0;
}

.row-copy strong {
  display: block;
  font-size: 13px;
}

.row-copy span {
  display: block;
  margin-top: 2px;
  color: var(--vb-muted);
  font-size: 11px;
}

.empty-state,
.loading-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 210px;
  border: 1px dashed rgba(104, 24, 41, .3);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  background: var(--vb-wash);
}

.empty-state i,
.loading-state i {
  color: var(--vb-gold);
  font-size: 28px;
}

.empty-state h3,
.loading-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p,
.loading-state p {
  margin: 0;
  color: var(--vb-muted);
  font-size: 12px;
  line-height: 1.45;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee7de;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: shimmer 1.25s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.language-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lang-btn {
  min-height: 36px;
  border: 1px solid var(--vb-line);
  border-radius: var(--radius);
  color: var(--vb-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.lang-btn.active {
  color: #fff;
  border-color: var(--vb-burgundy);
  background: var(--vb-burgundy);
}

.fine-print {
  color: var(--vb-muted);
  font-size: 11px;
  line-height: 1.45;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: var(--vb-line);
}

.hidden {
  display: none !important;
}

.status-bar {
  height: 38px;
}

.app-header {
  height: 76px;
  padding: 0 18px 6px;
  border-bottom: 0;
  background: #fff;
}

.logo-link {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.header-logo {
  width: 112px;
  height: auto;
  display: block;
}

.header-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.home-header {
  height: 76px;
  background: #fff;
}

.page-header {
  position: relative;
  justify-content: center;
  height: 56px;
  padding: 0 16px;
  color: #fff;
  background: var(--vb-burgundy);
  border-bottom: 0;
  box-shadow: 0 6px 14px rgba(67, 16, 27, .12);
}

.header-back {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  transform: translateY(-50%);
}

.header-back:hover,
.header-back:focus-visible {
  background: rgba(255, 255, 255, .12);
  outline: none;
}

.page-header-title {
  position: absolute;
  left: 58px;
  right: 58px;
  top: 50%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.header-cart {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 20px;
  transform: translateY(-50%);
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--vb-burgundy);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.home-page .app-content {
  height: calc(100% - 38px - 76px - 76px);
  padding-top: 0;
}

.inner-page .app-content {
  height: calc(100% - 38px - 56px - 76px);
  padding-top: 14px;
}

.icon-button {
  position: relative;
  font-size: 20px;
}

.notification-button {
  color: #111;
  border-color: transparent;
  background: #fff;
}

.badge-dot {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #8b1020;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.app-content {
  height: calc(100% - 38px - 76px - 76px);
  padding: 0 14px 16px;
}

.tab-link {
  font-size: 12px;
  font-weight: 600;
}

.tab-link i {
  font-size: 23px;
}

.tab-link.active {
  background: transparent;
  font-weight: 800;
}

.search-box-large {
  min-height: 50px;
  border-color: #e2ded9;
  border-radius: 14px;
  padding: 0 14px;
  color: #1d1d1f;
  background: #fbfbfb;
}

.search-filter-row {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  align-items: center;
}

.filter-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vb-line);
  border-radius: 12px;
  color: var(--vb-burgundy);
  background: #fff;
  font-size: 20px;
  transition: .18s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--vb-gold);
  background: var(--vb-gold-soft);
  outline: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: end;
  background: rgba(17, 17, 20, .34);
}

.filter-sheet {
  width: 100%;
  max-height: 82%;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(16px + var(--safe-bottom));
  background: #fff;
  box-shadow: 0 -18px 36px rgba(31, 32, 36, .2);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d8d2ca;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sheet-header h2 {
  margin: 2px 0 0;
  color: var(--vb-ink);
  font-size: 20px;
  line-height: 1.15;
}

.filter-grid {
  display: grid;
  gap: 10px;
}

.sheet-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), #fff 28%);
}

.store-list,
.product-list {
  display: grid;
  gap: 12px;
}

.store-list-card {
  width: 100%;
  display: grid;
  grid-template-columns: 84px 1fr 24px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--vb-line);
  border-radius: 12px;
  padding: 10px;
  color: inherit;
  background: #fff;
  text-align: start;
  box-shadow: var(--shadow-card);
}

.store-list-card img {
  width: 84px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
}

.store-list-copy {
  min-width: 0;
}

.store-list-copy strong,
.store-list-copy small,
.store-list-copy em {
  display: block;
}

.store-list-copy strong {
  color: var(--vb-ink);
  font-size: 15px;
  line-height: 1.2;
  font-style: normal;
}

.store-list-copy small {
  margin-top: 4px;
  color: var(--vb-muted);
  font-size: 12px;
}

.store-list-copy em {
  margin-top: 8px;
  color: var(--vb-burgundy);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.store-profile {
  overflow: hidden;
  border: 1px solid var(--vb-line);
  border-radius: 14px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.store-cover {
  width: 100%;
  height: 136px;
  display: block;
  object-fit: cover;
}

.store-profile-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.store-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 15px;
  color: #fff;
  background: var(--vb-burgundy);
  box-shadow: 0 8px 18px rgba(67, 16, 27, .18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
}

.store-profile-row strong,
.store-profile-row small {
  display: block;
}

.store-profile-row strong {
  font-size: 17px;
  line-height: 1.2;
}

.store-profile-row small {
  margin-top: 4px;
  color: var(--vb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  border: 1px solid var(--vb-line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.product-card img {
  width: 96px;
  height: 116px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--vb-wash);
}

.product-copy {
  min-width: 0;
}

.product-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--vb-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-copy strong {
  display: block;
  color: var(--vb-ink);
  font-size: 14px;
  line-height: 1.2;
}

.product-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 8px;
  color: var(--vb-muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.product-meta span {
  border: 1px solid var(--vb-line);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--vb-muted);
  background: var(--vb-wash);
  font-size: 10px;
  font-weight: 800;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-footer > strong {
  color: var(--vb-burgundy);
  font-size: 16px;
  font-weight: 950;
}

.product-footer .btn {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}


.search-box-large i {
  color: #1d1d1f;
  font-size: 22px;
}

.search-box-large .search-input {
  font-size: 14px;
}

.scan-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #1d1d1f;
  background: transparent;
}

.scan-button i {
  font-size: 18px;
}

.auction-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #e6e2df;
  border-radius: 9px;
  background: #fff;
}

.auction-segment button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #e6e2df;
  color: #525157;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.auction-segment button:last-child {
  border-right: 0;
}

.auction-segment button.active {
  position: relative;
  color: #fff;
  background: var(--vb-burgundy);
  font-weight: 750;
}

.auction-segment button.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--vb-gold);
}

.auction-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5c5b61;
  font-size: 12px;
}

.sort-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2d2a2f;
  background: transparent;
  font-size: 12px;
}

.auction-list {
  display: grid;
  gap: 12px;
}

.auction-list-card {
  overflow: hidden;
  border: 1px solid #e7e1dc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(67, 16, 27, .08);
}

.auction-list-media {
  position: relative;
  display: block;
  height: 124px;
  overflow: hidden;
  background: var(--vb-wash);
}

.auction-list-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .34));
}

.auction-list-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 7px;
  padding: 7px 10px;
  color: #fff;
  background: #c90016;
  box-shadow: 0 6px 14px rgba(201, 0, 22, .24);
  font-size: 12px;
  font-weight: 900;
}

.auction-list-body {
  padding: 12px;
}

.auction-title-row {
  display: block;
}

.auction-list-body h3 {
  margin: 0;
  color: var(--vb-burgundy-dark);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
}

.auction-list-body p {
  margin: 7px 0 10px;
  color: #5e5b63;
  font-size: 13px;
  line-height: 1.4;
}

.auction-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: #37333a;
  font-size: 11px;
}

.auction-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #eee8e2;
  border-radius: 999px;
  padding: 5px 7px;
  background: #fbfaf8;
  white-space: nowrap;
}

.auction-list-meta i {
  color: var(--vb-burgundy);
  font-size: 13px;
}

.auction-card-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(104, 24, 41, .13);
  border-radius: 10px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #fff8f6, #fff);
}

.auction-card-countdown span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #675f66;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.auction-card-countdown i {
  color: var(--vb-burgundy);
  font-size: 14px;
}

.auction-card-countdown strong {
  color: #b5091b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.alert-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e7e3df;
  border-radius: 10px;
  padding: 14px 40px 14px 14px;
  background: #fff;
}

.alert-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vb-line);
  border-radius: 50%;
  color: var(--vb-burgundy);
  font-size: 22px;
  background: #fff;
}

.alert-card strong,
.alert-card small {
  display: block;
}

.alert-card strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.alert-card small {
  color: #5c5b61;
  font-size: 11px;
  line-height: 1.35;
}

.alert-card .btn {
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
}

.dismiss-alert {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  color: #222;
  background: transparent;
  font-size: 20px;
}

@media (max-width: 650px) {
  .device-frame {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .phone-shell::before {
    display: none;
  }

  .status-bar {
    display: none;
  }

  .home-page .app-content {
    height: calc(100% - 76px - 76px);
  }

  .inner-page .app-content {
    height: calc(100% - 56px - 76px);
  }
}

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