/* ══════════════════════════════════════════════
   Акцио! — Core Styles (Design System v2)
   Mobile-first, CSS Custom Properties
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overscroll-behavior: none;
}

body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--text-primary);
  font-size: var(--text-xl);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-base) var(--space-lg);
  padding-top: calc(var(--space-base) + env(safe-area-inset-top));
  background: var(--surface-2);
  border-bottom: 1px solid var(--surface-4);
  height: calc(var(--nav-height) + env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.brand {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.brand svg {
  transition: transform var(--transition-base);
}

.brand.open svg {
  transform: rotate(180deg);
}

.btns {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* ── Buttons ── */
button {
  border: none;
  border-radius: var(--radius-base);
  padding: 10px 18px;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  min-height: 44px;
  background: var(--surface-5);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

button.green {
  background: var(--color-primary);
  color: var(--text-inverse);
}

button.green:active {
  background: hsl(var(--color-primary-hsl), 42%);
}

button.danger {
  background: rgba(255, 69, 58, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(255, 69, 58, 0.2);
}

button.ghost {
  background: transparent;
  color: var(--text-secondary);
}

/* ── Main Content ── */
main {
  padding: var(--space-lg);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
}

/* ── Bottom Navigation ── */
.fixed-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border-gold-dim);
  display: flex;
  padding: var(--space-md) 0 calc(var(--space-xl) + var(--safe-bottom));
  z-index: var(--z-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fixed-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  min-height: auto;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}

.fixed-nav button.active {
  color: var(--color-primary);
}

.fixed-nav button .nav-icon {
  font-size: var(--text-xl);
  line-height: 1;
}

/* ── FAB Buttons ── */
.fab {
  position: fixed;
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--text-inverse);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  z-index: calc(var(--z-overlay) - 5);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  bottom: calc(80px + env(safe-area-inset-bottom));
}

.fab:active {
  transform: scale(0.93);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.chat-fab {
  background: var(--color-blue);
  bottom: calc(140px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-blue);
  font-size: var(--text-3xl);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.chat-fab.pulse {
  animation: fabPulse 0.6s ease-in-out;
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ── Cards ── */
.auc-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
}

.card {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--surface-2);
  transition: all var(--transition-base);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.card:active {
  transform: scale(0.985);
  border-color: var(--border-gold-active);
  box-shadow: var(--shadow-gold);
}

.card img {
  width: 100px;
  min-width: 100px;
  height: 100px;
  object-fit: cover;
  background: var(--surface-1);
  display: block;
}

.card-body {
  padding: var(--space-base);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
  justify-content: center;
}

.card-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-seller {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.card-seller .stars {
  color: var(--color-gold);
  font-size: var(--text-xs);
}

.card-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bottom {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.card-price {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-timer {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-warning);
  background: rgba(255, 159, 10, 0.08);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.card-timer.ended {
  color: var(--text-secondary);
  background: var(--border-white-subtle);
}

.card-timer.urgent {
  color: var(--color-danger);
  background: rgba(255, 69, 58, 0.1);
}

/* ── Card Badges ── */
.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 5;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-badge.hot {
  background: rgba(255, 69, 58, 0.85);
  color: #fff;
}

.card-badge.last-chance {
  background: rgba(255, 159, 10, 0.85);
  color: #000;
}

.card-badge.new {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.card-fav {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-fast);
}

.card-fav:active {
  transform: scale(1.1);
}

/* ── Bid count badge on card ── */
.card-bids {
  position: absolute;
  bottom: 0;
  left: 0;
  right: auto;
  width: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 16px var(--space-sm) var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-bids .bid-fire {
  color: var(--color-danger);
  font-size: var(--text-base-sm);
}

/* ── Auction Detail ── */
.auc-hero {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--surface-1);
  display: block;
}

.auc-thumbs {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-base);
  overflow-x: auto;
  scrollbar-width: none;
}

.auc-thumbs::-webkit-scrollbar { display: none; }

.auc-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-white-dim);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.auc-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
}

/* ── Detail Timer ── */
.detail-timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(232, 197, 71, 0.06);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
}

.detail-timer.urgent {
  color: var(--color-danger);
  background: rgba(255, 69, 58, 0.1);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Price Panel ── */
.price-panel {
  background: var(--surface-2);
  border: 1px solid var(--border-gold-dim);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-base) 0;
}

.price-panel .price-amount {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-panel .price-meta {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* ── Bid Slider ── */
.bid-slider {
  width: 100%;
  margin: var(--space-base) 0;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-4);
  outline: none;
}

.bid-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
}

.bid-val {
  text-align: center;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin: var(--space-md) 0 var(--space-base);
}

.bid-presets {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-base);
  flex-wrap: wrap;
}

.bid-preset {
  padding: 5px 10px;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border-white);
  background: none;
  color: var(--text-secondary);
  font-size: var(--text-base-sm);
  cursor: pointer;
  min-height: auto;
  transition: all var(--transition-fast);
}

.bid-preset:active {
  background: rgba(52, 199, 89, 0.12);
  color: var(--color-primary);
  border-color: var(--border-primary-dim);
}

/* ── Bid History ── */
.bid-list {
  margin-top: var(--space-lg);
}

.bid-list h3 {
  font-size: var(--text-base-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.bid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-white-dim);
  font-size: var(--text-lg);
  transition: background var(--transition-fast);
}

.bid-row:first-child {
  background: rgba(52, 199, 89, 0.06);
  border-radius: var(--radius-base);
}

.bid-row .bid-name {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.bid-row .bid-amount {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

/* ── Stars ── */
.stars {
  color: var(--color-gold);
  letter-spacing: 1px;
}

/* ── Overlays ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet {
  background: var(--surface-2);
  width: 100%;
  max-width: var(--content-max);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-2xl);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet h2 {
  margin-bottom: var(--space-lg);
  font-size: var(--text-3xl);
  padding-right: var(--space-4xl);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.sheet-header h2 {
  margin-bottom: 0;
  padding-right: 0;
}

.sheet-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-white);
  color: var(--text-secondary);
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.sheet-close:active {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Inputs ── */
.input {
  width: 100%;
  padding: var(--space-base);
  background: var(--surface-4);
  border: 1px solid var(--surface-5);
  color: var(--text-primary);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-base);
  font-size: var(--text-xl);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.15);
}

.input::placeholder {
  color: var(--text-tertiary);
}

textarea.input {
  resize: vertical;
  min-height: 80px;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.btn-full {
  width: 100%;
  margin-bottom: var(--space-md);
}

/* ── Toasts ── */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + var(--nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-5);
  padding: var(--space-base) var(--space-xl);
  border-radius: var(--radius-pill);
  z-index: var(--z-toast);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-10px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: var(--space-sm);
  background: var(--surface-4);
  border-radius: var(--radius-base);
  padding: var(--space-sm);
}

.tab-btn {
  flex: 1;
  padding: var(--space-base);
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: var(--text-secondary);
  font-size: var(--text-base);
  cursor: pointer;
  min-height: auto;
  transition: background var(--transition-fast);
}

.tab-btn.on {
  background: var(--surface-5);
  color: var(--text-primary);
}

/* ── Category Menu ── */
.cat-menu {
  position: fixed;
  top: calc(var(--nav-height) + env(safe-area-inset-top));
  left: 0;
  right: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--surface-4);
  padding: var(--space-base) var(--space-lg);
  z-index: var(--z-dropdown);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cat-item {
  padding: var(--space-base) 0;
  display: flex;
  gap: var(--space-md);
  align-items: center;
  border-bottom: 1px solid var(--surface-4);
  cursor: pointer;
  font-size: var(--text-lg);
  transition: color var(--transition-fast);
}

.cat-item:last-child { border-bottom: none; }

.cat-item.active {
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}

.cat-count {
  color: var(--text-secondary);
  margin-left: auto;
  font-size: var(--text-base);
}

/* ── Back Button ── */
.btn-back {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-base);
  color: var(--color-gold);
  font-size: var(--text-base);
  margin: var(--space-md) 0 var(--space-sm);
  cursor: pointer;
  background: none;
  min-height: auto;
  transition: border-color var(--transition-fast);
}

.btn-back:active {
  border-color: var(--color-gold);
}

/* ── Badge Live ── */
.badge-live {
  color: var(--color-primary);
  font-size: var(--text-sm);
  border: 1px solid var(--border-primary);
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Hero Section ── */
.hero-block {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-gold-dim);
  position: relative;
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

.hero-logo {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  text-align: center;
}

.hero-logo .logo-icon {
  display: inline;
  font-size: 0.85em;
}

.hero-logo span {
  color: var(--color-gold);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-gold);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: var(--text-base);
  color: rgba(232, 197, 71, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: var(--space-base) var(--space-3xl);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-cta:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-primary);
}

.hero-onboarding {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  justify-content: center;
}

.hero-onboard-step {
  text-align: center;
  flex: 1;
  max-width: 80px;
}

.hero-onboard-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--border-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--text-3xl);
}

.hero-onboard-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-base) var(--space-lg);
  border-bottom: 1px solid var(--border-white-subtle);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
}

.stat-num.cta {
  font-size: var(--text-xl);
  color: var(--color-gold);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Category Pills ── */
.cat-pills {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-base) var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-white-subtle);
}

.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: var(--space-md) 14px;
  border-radius: var(--radius-3xl);
  font-size: var(--text-base-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: 1px solid var(--border-white);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: all var(--transition-base);
  min-height: auto;
}

.cat-pill:active,
.cat-pill.on {
  background: rgba(52, 199, 89, 0.12);
  color: var(--color-primary);
  border-color: var(--border-primary-dim);
}

/* ── Section Header ── */
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.section-hd h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.section-hd .section-link {
  font-size: var(--text-base-sm);
  color: var(--color-primary);
  cursor: pointer;
  font-weight: var(--weight-medium);
}

/* ── How It Works ── */
.how-steps {
  display: flex;
  gap: var(--space-base);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.how-steps::-webkit-scrollbar { display: none; }

.how-step {
  flex-shrink: 0;
  width: 130px;
  text-align: center;
  padding: var(--space-lg) var(--space-base);
  background: var(--border-white-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-white-dim);
  transition: border-color var(--transition-base);
}

.how-step:first-child {
  border-color: var(--border-primary-subtle);
  background: rgba(52, 199, 89, 0.05);
}

.how-step-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.how-step-title {
  font-size: var(--text-base-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.how-step-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

/* ── Why Us ── */
.why-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: 0 var(--space-lg) var(--space-2xl);
}

.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.why-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.why-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.why-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ── Empty State ── */
.empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  color: var(--text-secondary);
}

.empty-icon {
  font-size: var(--space-5xl);
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.empty h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.empty p {
  font-size: var(--text-base);
  color: var(--text-tertiary);
}

/* ── Field Labels ── */
.field {
  margin-bottom: var(--space-base);
}

.field-label {
  font-size: var(--text-base-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: var(--weight-medium);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: var(--radius-xs);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  :root {
    --content-max: 640px;
  }

  main {
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .auc-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ── Achievements ── */
.ach-toast {
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  animation: achToastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(232, 197, 71, 0.1);
}

@keyframes achToastIn {
  from { transform: translateX(-50%) translateY(-10px) scale(0.9); opacity: 0; }
  to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.ach-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: rgba(232, 197, 71, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(232, 197, 71, 0.2);
}

.ach-progress-bar {
  background: var(--surface-4);
  border-radius: 3px;
  height: 4px;
  width: 40px;
  overflow: hidden;
}

.ach-progress-fill {
  background: var(--color-primary);
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ── Animations ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
