/* ==========================================================================
   Aukcije Nekretnina HR — UI
   ========================================================================== */
:root {
  --navy: #0b1530;
  --navy-2: #13224a;
  --navy-3: #1c3166;
  --gold: #f5b942;
  --gold-2: #ffd27a;
  --emerald: #14b88a;
  --red: #ef4b5a;
  --blue: #3b82f6;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #0f1a33;
  --muted: #5d6b86;
  --line: #e2e8f3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 21, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 21, 48, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cat-zemljiste: #14b88a;
  --cat-poljoprivredno: #65a30d;
  --cat-gradjevinsko: #d97706;
  --cat-kuca: #3b82f6;
  --cat-stan: #a855f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
#app { min-height: 70vh; outline: none; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  transition: width .3s var(--ease), opacity .4s;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 48, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11, 21, 48, .96); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #f08c2e); color: var(--gold-2);
  box-shadow: 0 6px 18px -6px rgba(245,185,66,.7);
}
.brand-mark svg { width: 24px; height: 24px; color: var(--navy); }
.brand-mark svg rect { fill: var(--gold); }
.brand-text b { font-weight: 800; }
.brand-text em { font-style: normal; color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .94rem; color: rgba(255,255,255,.78);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); cursor: pointer; color: #fff;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: linear-gradient(135deg, var(--emerald), var(--blue)); color: #fff;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px;
  background: #fff; color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .2s var(--ease);
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; text-align: left; font-size: .94rem;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: .95rem;
  background: var(--b); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(11,21,48,.6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #f39c34); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 14px 28px -12px rgba(245,185,66,.8); }
.btn-emerald { background: linear-gradient(135deg, #19c99a, #0e9f77); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .9; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--red); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #22407f 0%, transparent 60%), var(--navy);
  padding: 90px 0 140px; margin-top: -1px;
}
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
  animation: float 16s ease-in-out infinite;
}
.hero .blob.b1 { width: 460px; height: 460px; background: #f5b94255; top: -120px; right: -80px; }
.hero .blob.b2 { width: 380px; height: 380px; background: #14b88a44; bottom: -160px; left: -100px; animation-delay: -5s; }
.hero .blob.b3 { width: 280px; height: 280px; background: #3b82f640; top: 40%; left: 45%; animation-delay: -9s; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--gold-2); margin-bottom: 22px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(20,184,138,.7); animation: pulse 1.8s infinite; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--gold), #ffe3a3, var(--emerald), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 30px; }
.hero-search {
  display: flex; gap: 8px; padding: 8px; border-radius: 999px; max-width: 580px;
  background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg);
}
.hero-search input { flex: 1; border: 0; outline: none; padding: 0 18px; background: transparent; color: var(--text); min-width: 0; }
.hero-search select { border: 0; background: var(--surface-2); border-radius: 999px; padding: 0 14px; color: var(--text); outline: none; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { color: rgba(255,255,255,.6); font-size: .88rem; }

.hero-card {
  position: relative; border-radius: 24px; padding: 22px; color: var(--text);
  background: rgba(255,255,255,.97); box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  animation: heroCard 1.2s var(--ease) both .3s;
}
.hero-card .hc-img {
  height: 200px; border-radius: 16px; overflow: hidden; margin-bottom: 16px; position: relative;
  background: linear-gradient(135deg, #2a4a8a, #14b88a);
}
.hero-card .hc-img svg { width: 100%; height: 100%; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-card .hc-price { font-size: 1.6rem; font-weight: 800; }
.hero-card .hc-bid {
  position: absolute; right: -24px; bottom: 60px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: .85rem; animation: bob 4s ease-in-out infinite;
}
.hero-card .hc-bid b { color: var(--gold); }
.hero-card .hc-timer {
  position: absolute; left: -26px; top: 40px; background: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: .85rem; display: flex; gap: 8px; align-items: center; animation: bob 5s ease-in-out infinite -2s;
}
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; color: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 0; }
.section-head p { margin: 6px 0 0; }
.kicker { display: inline-block; color: var(--emerald); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

/* Category cards */
.cats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; margin-top: -90px; position: relative; z-index: 2; }
.cat-card {
  --c: var(--emerald);
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px; background: var(--surface);
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
  display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card::before {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -80px; top: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
  transition: transform .5s var(--ease);
}
.cat-card:hover::before { transform: scale(1.3); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--c); box-shadow: 0 10px 20px -10px var(--c);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 1.35rem; margin: 6px 0 0; }
.cat-card .count { font-weight: 700; color: var(--c); }
.cat-card .subs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; position: relative; }
.sub-pill {
  --c: var(--emerald);
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); transition: transform .2s, background .2s;
}
.sub-pill:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 20%, #fff); }
.cat-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); position: relative; }
.cat-arrow svg { transition: transform .25s var(--ease); }
.cat-card:hover .cat-arrow svg { transform: translateX(5px); }

/* ---------- Auction grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 2px 6px -2px rgba(11,21,48,.06); transition: transform .35s var(--ease), box-shadow .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.card-media .ph svg { width: 56px; height: 56px; opacity: .85; }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.badge {
  --c: var(--navy);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--c); color: #fff; backdrop-filter: blur(6px);
}
.badge.live { --c: rgba(20,184,138,.95); }
.badge.upcoming { --c: rgba(59,130,246,.95); }
.badge.ended { --c: rgba(15,26,51,.8); }
.badge.cancelled { --c: rgba(239,75,90,.9); }
.badge.featured { --c: linear-gradient(135deg, var(--gold), #f39c34); color: var(--navy); }
.badge.cat { background: rgba(255,255,255,.92); color: var(--text); }
.badge .live-dot { width: 7px; height: 7px; background: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.08rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.card-loc svg { width: 15px; height: 15px; flex: none; }
.card-meta { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.price-lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.countdown-sm { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.countdown-sm.urgent { color: var(--red); animation: blink 1s steps(2) infinite; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #e9eef6 25%, #f5f8fc 37%, #e9eef6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 10px; }
.sk-card { height: 380px; border-radius: var(--radius); }

/* ---------- Listing page ---------- */
.page-hero {
  background: radial-gradient(800px 300px at 90% 0%, #22407f, transparent 60%), var(--navy); color: #fff; padding: 50px 0 80px; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; }
.breadcrumbs { display: flex; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }
.filters {
  margin-top: -46px; position: relative; z-index: 2; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px; display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; border: 1px solid var(--line);
}
.filters .field { margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 22px; }
.tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: .2s var(--ease);
}
.tab:hover { border-color: var(--navy); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.result-info { color: var(--muted); margin-bottom: 18px; font-size: .92rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.pagination button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty {
  text-align: center; padding: 70px 20px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line);
}
.empty svg { width: 70px; height: 70px; color: var(--muted); opacity: .5; margin: 0 auto 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { color: var(--red); font-size: .82rem; min-height: 0; }
.field .hint { color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }
.pw-meter { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

/* ---------- Maps ---------- */
.map-wrap {
  display: grid; grid-template-columns: 1fr 320px; border-radius: 24px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 520px;
}
.map-wrap-lg { min-height: 640px; }
.map-canvas { position: relative; min-height: 520px; background: #e8eef5; z-index: 0; }
.map-wrap-lg .map-canvas { min-height: 640px; }
.map-loading, .map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; gap: 8px; }
.map-loading { grid-auto-flow: column; }
.map-loading .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.map-list { border-left: 1px solid var(--line); overflow-y: auto; max-height: 640px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-wrap:not(.map-wrap-lg) .map-list { max-height: 520px; }
.ml-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid transparent;
  background: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ml-item:hover { background: var(--surface-2); transform: translateX(3px); }
.ml-item.active { background: color-mix(in srgb, var(--c) 10%, #fff); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.ml-dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); flex: none; font-size: 1.05rem; }
.ml-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ml-text b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-text small { color: var(--muted); font-size: .8rem; }
.ml-empty { padding: 30px 16px; text-align: center; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .85rem; color: var(--muted); align-items: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* markers: drop in with a bounce, live auctions pulse */
.auk-marker { background: none; border: 0; }
.pin-wrap { position: relative; width: 44px; height: 52px; animation: pinDrop .7s var(--ease) both; animation-delay: var(--d); }
.pin {
  position: absolute; left: 4px; top: 2px; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); border: 3px solid #fff; box-shadow: 0 8px 16px -6px rgba(11,21,48,.55); display: grid; place-items: center;
  transition: transform .25s var(--ease);
}
.pin span { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.pin-ring {
  position: absolute; left: 50%; bottom: 0; width: 20px; height: 8px; margin-left: -10px; border-radius: 50%;
  background: var(--c); opacity: .5; animation: pinPulse 1.8s ease-out infinite;
}
.auk-marker:hover .pin, .auk-marker.hover .pin { transform: rotate(-45deg) scale(1.18); }
.auk-marker.hover { z-index: 1000 !important; }
@keyframes pinDrop { 0% { opacity: 0; transform: translateY(-60px) scale(.6); } 60% { opacity: 1; transform: translateY(4px) scale(1.05); } 100% { transform: none; } }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

/* popup */
.auk-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auk-popup .leaflet-popup-content { margin: 0; width: 260px !important; font-family: inherit; }
.auk-popup a.leaflet-popup-close-button { color: #fff; top: 6px; right: 6px; width: 26px; height: 26px; background: rgba(11,21,48,.55); border-radius: 50%; font-size: 18px; line-height: 24px; z-index: 2; }
.map-pop { animation: pop .3s var(--ease); }
.mp-media { position: relative; height: 130px; background: var(--surface-2); }
.mp-media img, .mp-media .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; }
.mp-media .ph svg { width: 44px; height: 44px; }
.mp-media .badges { top: 8px; left: 8px; }
.mp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.mp-title { font-size: .98rem; line-height: 1.25; }
.mp-row { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin: 2px 0 6px; }
.mp-body .price { font-size: 1.1rem; }
.mp-body .btn { color: var(--navy); }
.leaflet-container a.btn-gold { color: var(--navy); }

/* auction page location map + admin picker */
.loc-map { position: relative; height: 340px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #e8eef5; z-index: 0; }
.loc-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pick-map { height: 280px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: #e8eef5; cursor: crosshair; z-index: 0; position: relative; }
.pick-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.leaflet-container { font-family: inherit; }
/* softer, more modern look for the standard OSM tiles */
.leaflet-tile-pane { filter: saturate(.75) contrast(.95) brightness(1.03); }

@media (max-width: 960px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-canvas, .map-wrap-lg .map-canvas { min-height: 420px; }
  .map-list { border-left: 0; border-top: 1px solid var(--line); max-height: 280px !important; }
}

/* Deposits */
.deposit-box h4 { margin: 0 0 6px; font-size: 1.05rem; }
.deposit-box p { font-size: .9rem; }
.pay-methods { display: grid; gap: 10px; margin-top: 12px; }
.pay-btn {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.pay-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 20px -12px rgba(245,185,66,.8); }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-btn .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.3rem; flex: none; }
.pay-btn b { display: block; }
.pay-btn small { color: var(--muted); font-size: .8rem; }
.dep-ok { background: #e7f8f2; color: #0b7a5b; font-weight: 700; font-size: .88rem; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.bank-box { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; margin: 12px 0; font-size: .9rem; }
.bank-box dl, dl.calc { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0; }
.bank-box dt, dl.calc dt { color: var(--muted); }
.bank-box dd, dl.calc dd { margin: 0; font-weight: 700; word-break: break-all; }
dl.calc { background: var(--surface-2); padding: 14px; border-radius: 14px; margin-bottom: 16px; }
.dep-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dep-methods { display: flex; gap: 6px; flex-wrap: wrap; }
.payer { font-size: .8rem; line-height: 1.45; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; margin: 6px 0 4px; white-space: normal; }
.dep-tbl code { font-size: .75rem; word-break: break-all; }
.dep-tbl tr.late td { background: #fff5f5; }
.dep-filterbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dep-filterbar .input { max-width: 300px; }
.kpi small { display: block; margin-top: 2px; }
.owner-box { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px 0; margin: 0 0 14px; }
.owner-box legend { font-weight: 700; font-size: .85rem; padding: 0 6px; }

/* CAPTCHA */
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-img { width: 230px; max-width: calc(100% - 52px); height: 70px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: opacity .2s; }
.captcha-refresh { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 1.3rem; transition: transform .4s var(--ease), background .2s; }
.captcha-refresh:hover { transform: rotate(180deg); background: #fff7e6; }
.captcha-field input { max-width: 290px; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(600px 400px at 0% 100%, #14b88a40, transparent 60%), radial-gradient(600px 400px at 100% 0%, #f5b94240, transparent 60%), var(--navy);
}
.auth-side h2 { font-size: 2.3rem; font-weight: 800; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); }
.auth-side li span.ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; color: var(--gold); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 2rem; font-weight: 800; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 700; }
.form-error { background: #fff1f2; color: #b4232f; border: 1px solid #fecdd3; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .92rem; }

/* ---------- Auction detail ---------- */
.detail { padding: 34px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
.gallery { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .5s var(--ease); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform .2s;
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.08); }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 92px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .65; transition: .2s; background: none; }
.thumbs button.active { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-top: 22px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 26px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.spec .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.spec .v { font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; white-space: pre-line; }

.bid-panel {
  position: sticky; top: 92px; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
}
.bid-head { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 22px 24px; position: relative; overflow: hidden; }
.bid-head::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: #f5b94233; filter: blur(40px); right: -60px; top: -80px; }
.bid-head .price-lbl { color: rgba(255,255,255,.6); }
.bid-head .big-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bid-head .big-price.bump { animation: bump .7s var(--ease); }
.bid-head .sub { color: rgba(255,255,255,.7); font-size: .9rem; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.timer div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; text-align: center; padding: 8px 4px; }
.timer b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.timer span { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.timer.urgent div { border-color: rgba(239,75,90,.6); background: rgba(239,75,90,.15); }
.bid-body { padding: 22px 24px; }
.bid-status { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.bid-status.leading { background: #e7f8f2; color: #0b7a5b; }
.bid-status.outbid { background: #fff1f2; color: #b4232f; }
.bid-status.info { background: var(--surface-2); color: var(--muted); }
.bid-status.won { background: linear-gradient(135deg, #fff6df, #fde7b0); color: #7a5300; }
.bid-input { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bid-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,185,66,.2); }
.bid-input span { padding: 0 14px; font-weight: 800; color: var(--muted); }
.bid-input input { flex: 1; border: 0; outline: none; padding: 14px 14px 14px 0; font-size: 1.25rem; font-weight: 800; min-width: 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.quick button { padding: 9px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 700; font-size: .85rem; transition: .2s; }
.quick button:hover { border-color: var(--gold); background: #fff7e6; }
.bid-note { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.history { border-top: 1px solid var(--line); padding: 18px 24px 22px; }
.history h4 { display: flex; justify-content: space-between; align-items: center; }
.history ol { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow: auto; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.history li.new { animation: slideIn .6s var(--ease); background: linear-gradient(90deg, #fff7e6, transparent); }
.history li:first-child .amt { color: var(--emerald); }
.history .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.history .me { font-size: .72rem; background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--surface); border-radius: 20px; padding: 26px; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: "0" counter(s); position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800;
  color: var(--surface-2);
}
.step .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; }
.cta {
  border-radius: 28px; padding: 54px; color: #fff; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  background: radial-gradient(500px 300px at 100% 0%, #f5b94255, transparent 60%), radial-gradient(500px 300px at 0% 100%, #14b88a44, transparent 60%), var(--navy);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0; }
.cta p { color: rgba(255,255,255,.7); margin: 8px 0 0; }

/* ---------- Dashboard / admin ---------- */
.dash { padding: 34px 0 80px; }
.dash-tabs { display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: 16px; border: 1px solid var(--line); width: fit-content; margin-bottom: 24px; flex-wrap: wrap; }
.dash-tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; color: var(--muted); transition: .2s; }
.dash-tabs button.active { background: var(--navy); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.kpi .k { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi .v { font-size: 1.9rem; font-weight: 800; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fafbfe; }
.tbl .thumb { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); }
.pill.live { background: #e7f8f2; color: #0b7a5b; }
.pill.upcoming { background: #e8f0fe; color: #1d4ed8; }
.pill.ended { background: #eef2f9; color: #475569; }
.pill.cancelled { background: #fff1f2; color: #b4232f; }
.pill.won { background: #fff6df; color: #7a5300; }

.img-manager { display: flex; gap: 10px; flex-wrap: wrap; }
.img-manager .im { position: relative; width: 110px; height: 80px; border-radius: 10px; overflow: hidden; }
.img-manager .im img { width: 100%; height: 100%; object-fit: cover; }
.img-manager .im button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(239,75,90,.95); color: #fff; cursor: pointer; font-weight: 700; line-height: 1; }
.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: .2s; color: var(--muted);
}
.dropzone.drag, .dropzone:hover { border-color: var(--blue); background: #f3f7ff; color: var(--text); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(11,21,48,.55); backdrop-filter: blur(6px); animation: fadeIn .25s; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 24px; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
.modal-box.sm { width: min(460px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px 26px; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--surface); }
.x { background: var(--surface-2); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.lightbox { background: rgba(5,10,25,.92); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; animation: pop .35s var(--ease); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; background: var(--navy); color: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: toastIn .45s var(--ease); border-left: 4px solid var(--emerald);
}
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--gold); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; transition: color .2s, transform .2s; }
.footer-grid a:not(.brand):hover { color: var(--gold); transform: translateX(3px); }
.brand-footer { color: #fff; margin-bottom: 14px; }
.footer .muted { color: rgba(255,255,255,.6); max-width: 360px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: .88rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); animation: rise .7s var(--ease) forwards; }
.stagger > *:nth-child(1) { animation-delay: .03s } .stagger > *:nth-child(2) { animation-delay: .09s } .stagger > *:nth-child(3) { animation-delay: .15s }
.stagger > *:nth-child(4) { animation-delay: .21s } .stagger > *:nth-child(5) { animation-delay: .27s } .stagger > *:nth-child(6) { animation-delay: .33s }
.stagger > *:nth-child(7) { animation-delay: .39s } .stagger > *:nth-child(8) { animation-delay: .45s } .stagger > *:nth-child(n+9) { animation-delay: .5s }
.page-enter { animation: pageIn .5s var(--ease); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,138,.7); } 70% { box-shadow: 0 0 0 10px rgba(20,184,138,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,138,0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.08); } 66% { transform: translate(-25px, 20px) scale(.95); } }
@keyframes shine { to { background-position: 300% 0; } }
@keyframes heroCard { from { opacity: 0; transform: perspective(1000px) rotateY(-25deg) rotateX(10deg) translateY(40px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.12); color: var(--gold); } 100% { transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } }
@keyframes blink { 50% { opacity: .55; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 16px; gap: 4px;
    transform: translateY(-120%); transition: transform .35s var(--ease); margin: 0; box-shadow: var(--shadow-lg); z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .burger { display: block; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .nav-actions .hide-m { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cats { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .bid-panel { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 120px; }
  .hero-search { flex-wrap: wrap; border-radius: 20px; }
  .hero-search input { padding: 12px; flex-basis: 100%; }
  .hero-search select, .hero-search .btn { flex: 1; padding: 12px; }
  .hero-stats { gap: 22px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  .section { padding: 56px 0; }
  .brand-text { font-size: .92rem; }
  .user-chip .nm { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 92vh; }
}
