/* ============================================================
   موتوجاپن — حراج موتورسیکلت ژاپن (بازار ایران)
   RTL · Vazirmatn · Mobile-first
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --bg-card: #161d27;
  --bg-soft: #1a2330;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f7;
  --text-muted: #93a0b4;
  --text-dim: #6b778c;
  --primary: #e85d04;
  --primary-hover: #f48c06;
  --primary-soft: rgba(232, 93, 4, 0.15);
  --accent: #00b4d8;
  --accent-soft: rgba(0, 180, 216, 0.12);
  --success: #2ecc71;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --header-h: 72px;
  --topbar-h: 40px;
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -20%, rgba(232, 93, 4, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 180, 216, 0.08), transparent);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--text); }
.hidden { display: none !important; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Topbar ---------- */
.topbar {
  background: #070a0e;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.topbar-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.meta-divider { opacity: 0.4; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.link-muted { color: var(--text-muted); transition: color var(--transition); }
.link-muted:hover { color: var(--text); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff9e00);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-text strong { font-size: 1.15rem; font-weight: 700; }
.logo-text small { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.logo-sm .logo-mark { width: 36px; height: 36px; font-size: 0.8rem; border-radius: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active {
  color: #fff;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8c00);
  color: #111;
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #ffb703);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: var(--primary-soft);
}

.btn-ghost {
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-lg { padding: 0.85rem 1.1rem; font-size: 1.05rem; }
.input-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; width: auto; }

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

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  background: var(--primary-soft);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary-hover), #ffd60a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-visual { display: flex; justify-content: center; }

.hero-card {
  width: min(100%, 320px);
  background: linear-gradient(160deg, var(--bg-card), #1a2535);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(232, 93, 4, 0.2), transparent 55%);
  pointer-events: none;
}

.hero-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--success);
  color: #0a0a0a;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-bike-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.hero-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.hero-card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-card-price { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-card-price .yen { font-size: 1.35rem; font-weight: 800; color: var(--primary-hover); direction: ltr; text-align: right; }
.hero-card-price .toman { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Tabs ---------- */
.tabs-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.6);
  backdrop-filter: blur(8px);
}

.sticky-tabs { position: sticky; top: var(--header-h); z-index: 90; }

.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.tab:hover { color: var(--text); background: var(--bg-soft); }
.tab.active {
  background: var(--primary);
  color: #111;
}

/* ---------- Panels ---------- */
.main { padding: 2rem 0 3rem; }

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.panel-head { margin-bottom: 1.5rem; }
.panel-head h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.25rem; }
.panel-sub { color: var(--text-muted); font-size: 0.92rem; }
.panel-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.panel-block h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.panel-foot { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Auction date cards */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.auction-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  color: inherit;
}

.auction-card:hover,
.auction-card:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.15);
  outline: none;
}

.auction-card.past { opacity: 0.55; }
.auction-card.past:hover { opacity: 0.85; }

.auction-month {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.auction-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.auction-weekday {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.5rem;
}

.auction-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-hover);
  background: var(--primary-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* Lot search */
.lot-form {
  display: flex;
  gap: 0.65rem;
  max-width: 480px;
}

.lot-form .input { flex: 1; }
.hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; }

/* Maker grid */
.maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.maker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-align: right;
}

.maker-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.maker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 0.25rem;
}

.maker-card strong { font-size: 1.05rem; }
.maker-card .en { font-size: 0.8rem; color: var(--text-dim); direction: ltr; }
.maker-card .cnt { font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* Model chips */
.search-bar { margin-bottom: 1.25rem; max-width: 520px; }

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  direction: ltr;
}

.chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* Results table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table tbody tr:last-child td { border-bottom: none; }

.price-cell { font-weight: 700; color: var(--primary-hover); direction: ltr; text-align: right; }
.grade-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.grade-badge.high { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.grade-badge.mid { background: rgba(241, 196, 15, 0.15); color: var(--warning); }
.grade-badge.low { background: rgba(231, 76, 60, 0.15); color: var(--danger); }

/* Services */
.services {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, transparent, rgba(0, 180, 216, 0.04));
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-head h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: 0.4rem; }
.section-head p { color: var(--text-muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.service-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* How steps */
.how { padding: 2rem 0 4rem; }

.steps {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin-inline: auto;
}

.steps li {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.steps h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.steps p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Listing page ---------- */
.listing-hero {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.listing-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.breadcrumb a:hover { color: var(--primary-hover); }

.listing-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.listing-meta { color: var(--text-muted); font-size: 0.9rem; }

.view-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.view-btn {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--transition);
}

.view-btn.active,
.view-btn:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.listing-main { padding-top: 1.5rem; }

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Filters */
.filters {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.filters-head h2 { font-size: 1.05rem; font-weight: 700; }

.filter-group { margin-bottom: 1.15rem; }
.filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.check-list { display: flex; flex-direction: column; gap: 0.4rem; }

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

.check-item:hover { color: var(--text); }
.check-item input { accent-color: var(--primary); width: 16px; height: 16px; }
.check-item .cnt { margin-right: auto; font-size: 0.75rem; color: var(--text-dim); }

.range-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.range-row .input { flex: 1; min-width: 0; }
.range-row span { color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0; }

.filters-open { display: none; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
}

/* Toolbar */
.listing-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.toolbar-info {
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toolbar-info strong { color: var(--text); }

/* Bike grid */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.bike-grid[data-layout="list"] {
  grid-template-columns: 1fr;
}

.bike-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bike-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 93, 4, 0.12);
}

.bike-grid[data-layout="list"] .bike-card {
  flex-direction: row;
  align-items: stretch;
}

.bike-thumb {
  aspect-ratio: 16 / 11;
  background: linear-gradient(145deg, #1c2634, #0f141c);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.bike-grid[data-layout="list"] .bike-thumb {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 140px;
}

.bike-thumb .emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.bike-card:hover .bike-thumb .emoji { transform: scale(1.08) rotate(-3deg); }

.bike-lot {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  direction: ltr;
}

.bike-type {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.bike-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.bike-maker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  direction: ltr;
  text-align: right;
}

.bike-model {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  direction: ltr;
  text-align: right;
}

.bike-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}

.bike-specs span { display: inline-flex; align-items: center; gap: 0.25rem; }

.bike-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.bike-price .yen {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-hover);
  direction: ltr;
  display: block;
  text-align: right;
}

.bike-price .toman {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Empty */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { margin-bottom: 0.35rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary-hover); }
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  width: min(100%, 420px);
  max-height: min(90vh, 800px);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
}

.modal-lg { width: min(100%, 720px); }

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

.modal-close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--danger); color: #fff; }

.modal h2 { font-size: 1.35rem; margin-bottom: 0.35rem; padding-left: 2rem; }
.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.modal-foot { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.modal-foot a { color: var(--primary-hover); font-weight: 600; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* Detail content */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.detail-visual {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #1c2634, #0f141c);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 6rem;
  border: 1px solid var(--border);
}

.detail-info h2 {
  font-size: 1.4rem;
  padding-left: 2rem;
  direction: ltr;
  text-align: right;
}

.detail-maker {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  direction: ltr;
  text-align: right;
}

.detail-price-box {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
}

.detail-price-box .yen {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-hover);
  direction: ltr;
  text-align: right;
  display: block;
}

.detail-price-box .toman {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.detail-item {
  background: var(--bg);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
}

.detail-item label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.detail-item span {
  font-weight: 600;
  font-size: 0.92rem;
}

.cost-breakdown {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.cost-breakdown h4 {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--text-muted);
}

.cost-row.total {
  border-top: 1px solid rgba(0, 180, 216, 0.25);
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #070a0e;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-cols a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.footer-cols a:hover { color: var(--primary-hover); }

.footer-note { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { width: min(100%, 280px); }
  .listing-layout { grid-template-columns: 1fr; }

  .filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    max-height: 100vh;
    z-index: 160;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }

  .filters.open { transform: translateX(0); }
  .filters-open { display: inline-flex; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { aspect-ratio: 16/10; font-size: 4.5rem; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header { position: relative; }
  .header.nav-open { position: sticky; }

  .header-inner { position: relative; }

  .topbar-meta { font-size: 0.7rem; }
  .topbar-actions .link-muted { display: none; }

  .lot-form { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .hero { padding: 2rem 0 1.5rem; }

  .bike-grid[data-layout="list"] .bike-card { flex-direction: column; }
  .bike-grid[data-layout="list"] .bike-thumb { width: 100%; aspect-ratio: 16/11; min-height: 0; }

  .footer-cols { grid-template-columns: 1fr; }
  .toolbar-info { width: 100%; margin-right: 0; order: 3; }
  .listing-toolbar { gap: 0.65rem; }
}

@media (max-width: 400px) {
  .auction-grid { grid-template-columns: repeat(2, 1fr); }
  .container { width: min(100% - 1.25rem, var(--container)); }
}

/* Persian number friendly */
.num, .yen, .auction-day, .bike-lot {
  font-variant-numeric: tabular-nums;
}
