:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --border: #e4e7ec;
  --primary: #f26b1d;
  --primary-dark: #d4550b;
  --primary-soft: #fff1e8;
  --dark: #111827;
  --green: #12805c;
  --green-soft: #e7f6ef;
  --red: #c62828;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fef6e7;
  --blue: #1d4ed8;
  --blue-soft: #eaf0fe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
.h2 { font-size: 1.6rem; font-weight: 800; }
.h3 { font-size: 1.15rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; margin-top: 1.2em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #c7ccd4; background: #fafafa; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #f5c6c6; }
.btn-danger:hover { background: #fbd9d9; }
.btn-warning { background: var(--amber-soft); color: var(--amber); border-color: #f6dfb2; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-link { background: none; color: var(--primary-dark); padding-left: 6px; padding-right: 6px; }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 7px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Top bar ---- */
.topbar { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); }
.search { flex: 1; max-width: 460px; display: flex; background: #fff; border-radius: 9px; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 10px 14px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 14px; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav > a { color: #d1d5db; font-weight: 500; }
.nav > a:hover { color: #fff; text-decoration: none; }
.nav .btn-primary { color: #fff; }
.nav-admin { color: #fbbf24 !important; }
.bell { position: relative; display: inline-flex; align-items: center; }
.bell .badge { position: absolute; top: -6px; right: -9px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; padding: 1px 6px; }
.nav-label { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; margin-left: auto; }
.dropdown { position: relative; }
.dropdown-btn { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-width: 200px; padding: 6px; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; color: var(--text); border-radius: 7px; background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); text-decoration: none; }

/* ---- Alerts ---- */
.flashes { padding-top: 16px; }
.alert { position: relative; padding: 12px 40px 12px 16px; border-radius: 10px; margin-bottom: 10px; border: 1px solid; font-weight: 500; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: #bfe6d4; }
.alert-danger { background: var(--red-soft); color: var(--red); border-color: #f5c6c6; }
.alert-warning { background: var(--amber-soft); color: var(--amber); border-color: #f6dfb2; }
.alert-info { background: var(--blue-soft); color: var(--blue); border-color: #cddafc; }
.alert-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }

/* ---- Hero ---- */
.hero { background: radial-gradient(1200px 400px at 80% -20%, rgba(242,107,29,.35), transparent), var(--dark); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 60px; }
.hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--primary); }
.hero p { color: #cbd5e1; font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats { display: grid; gap: 12px; }
.hero-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; }
.hero-stats span { color: #cbd5e1; }

/* ---- Tabs & filters ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
.tabs a span { background: var(--border); color: var(--muted); font-size: .75rem; padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.tabs a.active span { background: var(--primary-soft); color: var(--primary-dark); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font: inherit; background: #fff; min-width: 0; }
.filters input[type=search] { flex: 1; min-width: 180px; }

/* ---- Cards & grid ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 22px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lot-card { display: flex; flex-direction: column; color: inherit; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.lot-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #eef0f3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.placeholder, .gallery-main img.placeholder { object-fit: contain; padding: 18%; opacity: .5; }
.chip { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; background: #fff; color: var(--text); }
.chip.inline { position: static; display: inline-block; }
.chip-live { background: var(--green); color: #fff; }
.chip-upcoming { background: var(--blue); color: #fff; }
.chip-ended { background: #4b5563; color: #fff; }
.chip-cancelled { background: var(--red); color: #fff; }
.chip-buynow { left: auto; right: 10px; background: var(--dark); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.card-title { font-size: 1rem; font-weight: 700; margin: 4px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.card-extra { margin-top: 10px; }
.price { font-size: 1.3rem; font-weight: 800; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--red); }
.countdown.ended { color: var(--muted); }
.countdown.big { font-size: 1.25rem; }
.flash { animation: flash 1.5s ease; }
.card-stale { opacity: .6; }
.admin-bar .end-now { display: inline-block; margin-left: 8px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .check > span { display: block; }
#bid-msg { margin: 0; }
@keyframes flash { 0% { background: #fde68a; } 100% { background: transparent; } }

.empty { text-align: center; padding: 60px 20px; color: var(--text); }
.empty svg { color: #9ca3af; margin: 0 auto 12px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--primary); margin: 0; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a { min-width: 38px; padding: 8px 12px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.how-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; margin-bottom: 10px; }
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; font-size: .9rem; }

/* ---- Lot page ---- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.admin-bar { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.lot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.lot-side { position: sticky; top: 84px; }
.gallery { margin-bottom: 18px; }
.gallery-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 76px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: 200px 1fr; margin: 0 0 16px; }
.specs dt, .specs dd { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }
.description { white-space: pre-line; }
.lot-title { font-size: 1.35rem; font-weight: 800; margin: 10px 0 16px; }
.bid-price-row { display: flex; justify-content: space-between; align-items: flex-end; }
.big-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; border-radius: 6px; }
.reserve { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); }
.reserve.met { background: var(--green-soft); color: var(--green); }
.time-left { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.status { padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: .9rem; background: var(--bg); margin-bottom: 12px; display: block; }
.status-win { background: var(--green-soft); color: var(--green); }
.status-lose { background: var(--red-soft); color: var(--red); }
.bid-form { display: grid; gap: 10px; }
.bid-form label { font-weight: 600; font-size: .9rem; }
.bid-input { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.bid-input:focus-within { border-color: var(--primary); }
.bid-input span { padding: 0 4px 0 14px; font-weight: 700; color: var(--muted); font-size: 1.2rem; }
.bid-input input { flex: 1; border: 0; padding: 12px 12px 12px 4px; font: inherit; font-size: 1.2rem; font-weight: 700; outline: none; min-width: 0; }
.or { text-align: center; margin: 14px 0; position: relative; color: var(--muted); font-size: .85rem; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.or span { background: #fff; padding: 0 10px; position: relative; }
.help { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.help summary { cursor: pointer; font-weight: 600; color: var(--text); }
.watch { margin-top: 8px; }
.trust ul { padding-left: 18px; margin: 4px 0 10px; }
.trust p { margin: 6px 0; }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tr.top td { font-weight: 700; }
.table tfoot th { font-size: 1.1rem; color: var(--text); text-transform: none; letter-spacing: 0; border-bottom: 0; }
.table.card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.tag { font-size: .68rem; background: var(--bg); color: var(--muted); border: 1px solid var(--border); padding: 0 6px; border-radius: 5px; font-weight: 600; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: capitalize; margin-right: 4px; }
.pill-unpaid { background: var(--amber-soft); color: var(--amber); }
.pill-paid { background: var(--blue-soft); color: var(--blue); }
.pill-shipped { background: #f3e8ff; color: #7e22ce; }
.pill-founder { background: #fef3c7; color: #92400e; }
.rename summary { list-style: none; }
.rename summary::-webkit-details-marker { display: none; }
.rename-form { display: flex; gap: 6px; margin-top: 6px; }
.rename-form input { width: 140px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: .85rem; }
.pill-completed {background: var(--green-soft); color: var(--green); }
.pill-select { border: 1px solid var(--border); border-radius: 99px; padding: 5px 10px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }

/* ---- Forms ---- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; font-weight: 400; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.form input:disabled { background: var(--bg); color: var(--muted); }
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form .card.pad { display: grid; gap: 14px; margin-bottom: 0; }
.form .card.pad h2 { margin-bottom: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.auth { display: flex; justify-content: center; padding-top: 48px; padding-bottom: 60px; }
.auth-card { width: 100%; max-width: 480px; }
.quick-durations { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.inline-form { margin: 0; }

/* ---- Notifications ---- */
.notif-list { overflow: hidden; }
.notif { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: var(--primary-soft); }
.notif time { white-space: nowrap; }

/* ---- Invoice ---- */
.invoice-head { display: flex; justify-content: space-between; margin-bottom: 24px; }
.invoice-head .brand { color: var(--text); }
.invoice-parties { margin-bottom: 20px; line-height: 1.6; }
.pay-online { border: 2px solid var(--primary-soft); border-radius: 12px; padding: 4px 20px 16px; margin: 20px 0; }
.pay-online #paypal-buttons { max-width: 420px; margin-top: 8px; }
.pay-box {background: var(--bg); border-radius: 10px; padding: 4px 18px 14px; margin: 20px 0; }

/* ---- Prose ---- */
.prose h3 { margin-top: 1.6em; }
.prose .lead { font-size: 1.1rem; color: var(--muted); }

/* ---- Admin ---- */
.admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { display: grid; gap: 2px; position: sticky; top: 84px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.admin-nav .label { padding: 4px 10px 8px; }
.admin-nav a { padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.admin-nav a:hover { background: var(--bg); text-decoration: none; }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat a { color: inherit; text-decoration: none; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.thumb-cell { width: 64px; }
.thumb-cell img { width: 56px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.thumb-cell img.placeholder { object-fit: contain; padding: 8px; opacity: .5; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.admin-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-image { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.admin-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.admin-image .chip { position: absolute; top: 8px; left: 8px; }
.admin-image-actions { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }

/* ---- Language switch ---- */
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: .78rem; font-weight: 700; color: #9ca3af; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.active { background: var(--primary); color: #fff; }

/* ---- Security pages ---- */
.code-input { font-size: 1.3rem !important; letter-spacing: .2em; font-variant-numeric: tabular-nums; max-width: 220px; }
.inline-row { display: flex !important; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-row label { flex: 0 1 240px; }
.setup-steps { padding-left: 20px; display: grid; gap: 16px; }
.qr { background: #fff; display: inline-block; padding: 8px; border: 1px solid var(--border); border-radius: 10px; margin: 10px 0 4px; }
.qr svg { width: 200px; height: 200px; display: block; }
.secret-key { font-size: .95rem; background: var(--bg); padding: 3px 8px; border-radius: 6px; word-break: break-all; }
.codes-card { border: 2px solid var(--amber); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.recovery-codes code { background: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 1rem; text-align: center; }
.danger-zone { margin-top: 18px; }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 600; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.checklist li::before { content: "✓"; display: inline-block; width: 22px; font-weight: 800; color: var(--green); }
.checklist li.warn::before { content: "!"; color: var(--red); }
.checklist li.warn { color: var(--red); font-weight: 600; }
.row-warn td { background: #fff7f7; }
.stat-alert { border-color: #f5c6c6; background: var(--red-soft); }
.cond { font-weight: 700; }
.cond-notes { background: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.secure-note { display: flex; align-items: center; gap: 6px; }
.card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Footer ---- */
.footer { background: var(--dark); color: #cbd5e1; margin-top: 40px; padding: 36px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { margin-bottom: 6px; }
.footer .muted { color: #94a3b8; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; }
.footer-links a { color: #cbd5e1; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 16px; font-size: .85rem; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .lot-layout { grid-template-columns: 1fr; }
  .lot-side { position: static; order: -1; }
  .lot-main { order: 1; }
  .two-col { grid-template-columns: 1fr; }
  .how-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; order: 4; }
  body.nav-open .nav { display: flex; }
  .nav > a, .nav .dropdown { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .nav .btn-primary { margin-top: 8px; }
  .nav-label { display: inline; margin-left: 8px; }
  .bell .badge { position: static; margin-left: 6px; order: 2; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 6px 0 0; }
  .dropdown-btn { display: none; }
  .dropdown-menu a, .dropdown-menu button { color: #d1d5db; padding: 8px 0; }
  .dropdown-menu a:hover, .dropdown-menu button:hover { background: none; color: #fff; }
  .lang-switch { align-self: flex-start; margin: 10px 0 4px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero h1 { font-size: 1.9rem; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .admin-nav .label { display: none; }
  .admin-nav a { white-space: nowrap; }
  .form-row, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .how-strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card.pad { padding: 16px; }
  .notif { flex-direction: column; gap: 4px; }
  .table th, .table td { padding: 8px 6px; }
}
@media print {
  .topbar, .footer, .no-print, .flashes { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
}
