/* ============================================================
   JANA AUTOMOBILE — Design System
   Premium dark automotive showroom theme
   Palette: dark navy · electric blue · deep red · bright red
   ============================================================ */

:root {
  --navy-950: #060b1a;
  --navy-900: #0a1128;
  --navy-800: #0e1c42;
  --navy-700: #12234d;
  --navy-600: #1a3070;
  --blue-500: #2f7bff;
  --blue-400: #4d9aff;
  --blue-300: #7db8ff;
  --red-700: #7f0d16;
  --red-600: #b3121e;
  --red-500: #e91d24;
  --red-400: #ff4149;
  --ink-100: #f4f7ff;
  --ink-200: #dfe7f8;
  --ink-300: #b9c6e4;
  --ink-400: #8b9cc0;
  --ink-500: #5f6f94;
  --line: rgba(125, 184, 255, 0.14);
  --line-strong: rgba(125, 184, 255, 0.28);
  --glass: rgba(14, 28, 66, 0.55);
  --glass-2: rgba(10, 17, 40, 0.72);
  --grad-hero: linear-gradient(135deg, #060b1a 0%, #0a1128 45%, #12234d 100%);
  --grad-red: linear-gradient(135deg, #7f0d16 0%, #e91d24 100%);
  --grad-blue: linear-gradient(135deg, #12234d 0%, #2f7bff 100%);
  --grad-cta: linear-gradient(135deg, #1a3070 0%, #2f7bff 60%, #4d9aff 100%);
  --grad-card-border: linear-gradient(140deg, rgba(77,154,255,.55), rgba(233,29,36,.45), rgba(77,154,255,.2));
  --shadow-1: 0 8px 24px rgba(2, 6, 18, 0.45);
  --shadow-2: 0 16px 48px rgba(2, 6, 18, 0.6);
  --shadow-glow-blue: 0 0 0 1px rgba(77,154,255,.25), 0 8px 32px rgba(47,123,255,.25);
  --shadow-glow-red: 0 0 0 1px rgba(255,65,73,.3), 0 8px 32px rgba(233,29,36,.28);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --header-h: 64px;
  --font: 'Segoe UI', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', monospace;
  --speed: 0.22s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(47,123,255,.14), transparent 60%),
    radial-gradient(900px 480px at -10% 8%, rgba(233,29,36,.10), transparent 55%),
    var(--grad-hero);
  background-attachment: fixed;
  color: var(--ink-200);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue-300); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--blue-400); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(47,123,255,.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--navy-600), var(--blue-500)); border-radius: 6px; }

/* ---------------------------- Layout ---------------------------- */
.container { width: min(1200px, 92%); margin-inline: auto; }
.page-pad { padding-block: 24px 110px; }
main { min-height: calc(100vh - var(--header-h)); }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6, 11, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-glow-blue); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name b {
  font-size: 15px; letter-spacing: 1.5px; color: var(--ink-100); white-space: nowrap;
  text-shadow: 0 0 18px rgba(77,154,255,.4);
}
.brand-name span { font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink-300); white-space: nowrap; transition: all var(--speed);
}
.nav-links a:hover { color: #fff; background: rgba(47,123,255,.12); }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, rgba(47,123,255,.28), rgba(233,29,36,.22)); box-shadow: inset 0 0 0 1px var(--line-strong); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink-200);
  transition: all var(--speed);
  font-size: 16px;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: #fff;
  transform: translateY(-1px);
}

.icon-btn.active {
  background: var(--grad-blue);
  color: #fff;
}

.burger { display: none; }
.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 89;
  background: rgba(6,11,26,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding: 12px 5vw 18px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 10px; border-radius: 12px; color: var(--ink-200); font-size: 15px; border-bottom: 1px solid rgba(125,184,255,.06); }
.mobile-menu a.active { color: #fff; background: rgba(47,123,255,.14); }

/* ---------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 14px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
  transition: all var(--speed); position: relative; overflow: hidden; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-glow-blue); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(77,154,255,.5), 0 10px 36px rgba(47,123,255,.4); transform: translateY(-2px); }
.btn-danger { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-glow-red); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,65,73,.5), 0 10px 36px rgba(233,29,36,.4); }
.btn-outline { background: transparent; color: var(--ink-200); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue-400); color: #fff; background: rgba(47,123,255,.1); }
.btn-ghost { background: transparent; color: var(--ink-300); }
.btn-ghost:hover { color: #fff; background: rgba(125,184,255,.08); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* Sheen animation on primary CTAs */
.btn-sheen::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg); animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -80%; } 100% { left: 160%; } }

/* ------------------------- Floating actions ---------------------- */
.fab-stack { position: fixed; right: 18px; bottom: 84px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; box-shadow: var(--shadow-2); transition: transform var(--speed);
}
.fab:hover { transform: scale(1.08); }
.fab-call { background: var(--grad-blue); }
.fab-wa { background: linear-gradient(135deg, #128c4a, #25d366); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }
.fab-call::before, .fab-wa::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  animation: fabPulse 2.4s ease-out infinite; z-index: -1;
}
.fab-call::before { box-shadow: 0 0 0 0 rgba(77,154,255,.55); }
.fab-wa::before { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }

/* --------------------------- Hero / banner ------------------------ */
.hero {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background:
    radial-gradient(700px 340px at 80% 0%, rgba(233,29,36,.16), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(47,123,255,.2), transparent 55%),
    linear-gradient(160deg, #060b1a, #0a1128 55%, #12234d);
  padding: 56px 0 64px; margin-top: -1px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(125,184,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(125,184,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(700px 400px at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); line-height: 1.08; color: #fff; letter-spacing: .5px; margin-bottom: 14px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue-400), var(--red-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(15px, 2vw, 18px); color: var(--ink-300); max-width: 54ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line-strong); }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 24px; color: #fff; }
.hero-stat span { font-size: 12.5px; color: var(--ink-400); letter-spacing: .4px; }

.offer-banner {
  margin-top: 18px; border-radius: var(--r-md); padding: 14px 18px;
  background: linear-gradient(90deg, rgba(127,13,22,.5), rgba(233,29,36,.28) 55%, rgba(47,123,255,.22));
  border: 1px solid rgba(255,65,73,.35); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: var(--shadow-1);
}
.offer-banner .tag {
  background: var(--grad-red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; flex-shrink: 0;
}
.offer-banner b { color: #fff; font-size: 15.5px; }
.offer-banner p { color: var(--ink-200); font-size: 13.5px; flex-basis: 100%; }
/* Uploaded banner artwork — responsive on every screen size */
.offer-banner-img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: var(--r-md); border: 1px solid rgba(255,65,73,.35); background: #060b1a; }
.offer-banner.has-img { padding: 10px; flex-direction: column; align-items: stretch; }
.offer-banner.has-img .offer-banner-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.offer-banner.has-img .offer-banner-top p { flex-basis: 100%; }
@media (max-width: 640px) {
  .offer-banner-img { max-height: 190px; object-fit: cover; }
  .offer-banner.has-img .offer-banner-top { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* -------------------------- Section shell ------------------------ */
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(21px, 3vw, 28px); color: #fff; letter-spacing: .4px; }
.section-head h2 em { font-style: normal; color: var(--blue-400); }
.section-head p { color: var(--ink-400); font-size: 14px; margin-top: 4px; }
.section-link { font-size: 14px; font-weight: 600; }

/* ---------------------------- Cards ------------------------------ */
.card {
  background: var(--glass); border-radius: var(--r-md); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1); position: relative;
}
.card-grad { position: relative; background-clip: padding-box; border: 1px solid transparent; }
.card-grad::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad-card-border); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* --------------------------- Bike card --------------------------- */
.bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.bike-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.bike-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2), var(--shadow-glow-blue); border-color: var(--line-strong); }
.bike-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0a1128; }
.bike-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bike-card:hover .bike-thumb img { transform: scale(1.06); }
.bike-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(6,11,26,.75); border: 1px solid var(--line-strong); color: var(--ink-100); backdrop-filter: blur(6px);
}
.badge-offer { background: var(--grad-red); border: none; color: #fff; }
.badge-feat { background: var(--grad-blue); border: none; color: #fff; }
.bike-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bike-mfr { font-size: 11.5px; letter-spacing: 1.6px; color: var(--blue-300); text-transform: uppercase; font-weight: 700; }
.bike-reg { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--ink-300); background: rgba(47,123,255,.08); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; width: fit-content; }
.bike-title { font-size: 17px; color: #fff; font-weight: 700; letter-spacing: .3px; }
.bike-meta { font-size: 13px; color: var(--ink-400); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bike-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-500); }
.bike-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.price-range { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.price-range small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-500); letter-spacing: 1.2px; }
.bike-foot .btn { flex-shrink: 0; }

/* ------------------------- Filter / search ------------------------ */
.search-panel { padding: 20px; margin-top: 24px; }
.search-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .8px; color: var(--ink-400); margin-bottom: 6px; text-transform: uppercase; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 14.5px;
  background: rgba(6,11,26,.6); border: 1px solid var(--line-strong); color: var(--ink-100);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,123,255,.18); }
.input::placeholder { color: var(--ink-500); }
select.input option { background: var(--navy-900); color: var(--ink-100); }
textarea.input { resize: vertical; min-height: 90px; }
.result-count { font-size: 14px; color: var(--ink-300); margin: 18px 0 14px; }
.result-count b { color: #fff; }

/* --------------------------- Skeletons --------------------------- */
.skeleton {
  border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); overflow: hidden; position: relative;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(125,184,255,.09), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel-thumb { aspect-ratio: 16/10; background: rgba(47,123,255,.05); }
.skel-line { height: 12px; border-radius: 6px; background: rgba(125,184,255,.08); margin: 12px 16px; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }

/* --------------------------- Empty state ------------------------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-400); }
.empty-state .icon { font-size: 46px; margin-bottom: 12px; opacity: .8; }
.empty-state h3 { color: var(--ink-200); font-size: 18px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; max-width: 40ch; margin-inline: auto; }

/* --------------------------- Bike details ------------------------ */
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; margin-top: 24px; }
/* Auto-fit gallery: the frame flexes with the screen and NEVER crops a photo —
   originals of any ratio (portrait/landscape/square) letterbox neatly inside. */
.gallery-main {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  max-height: min(72vh, 640px); width: 100%;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  background: transparent;
}
.gallery-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22,.9,.3,1); }
.gallery-slide { min-width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(6,11,26,.65); border: 1px solid var(--line-strong); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: all var(--speed);
}
.gallery-nav:hover { background: var(--grad-blue); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.gallery-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all var(--speed); }
.gallery-dots i.on { background: #fff; width: 20px; border-radius: 5px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img {
  width: 74px; height: 54px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .6; transition: all var(--speed); flex-shrink: 0;
}
.thumbs img.on { border-color: var(--blue-400); opacity: 1; }
.thumbs img:hover { opacity: 1; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 16px; }
.spec {
  display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px;
  background: rgba(6,11,26,.45); border: 1px solid var(--line); font-size: 13.5px;
}
.spec span { color: var(--ink-400); } .spec b { color: var(--ink-100); font-weight: 600; text-align: right; }
.price-box { padding: 18px 20px; margin-top: 16px; }
.price-box .range { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .4px; }
.price-box .note { font-size: 12px; color: var(--ink-500); margin-top: 3px; letter-spacing: .3px; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.trust-chip {
  font-size: 12px; font-weight: 600; color: var(--ink-200); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(47,123,255,.08); display: inline-flex; gap: 6px; align-items: center;
}
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.desc-block { margin-top: 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink-300); }

/* --------------------------- Modal ------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(3,6,15,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease;
}
.modal {
  width: min(480px, 100%); max-height: 88vh; overflow: auto; border-radius: var(--r-lg);
  background: linear-gradient(165deg, #0d1730, #0a1128); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2); animation: popIn .22s cubic-bezier(.2,.9,.3,1.2);
}
.modal.wide { width: min(640px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { color: #fff; font-size: 18px; }
.modal-body { padding: 16px 22px 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 20px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } }

/* Fullscreen viewer */
.viewer { position: fixed; inset: 0; z-index: 300; background: #02040a; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-2); }
.viewer-close { position: absolute; top: 16px; right: 20px; font-size: 26px; background: none; border: none; color: #fff; }
.viewer .gallery-nav { width: 48px; height: 48px; font-size: 22px; }

/* --------------------------- Toasts ------------------------------ */
.toast-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 14px; font-size: 14px;
  background: var(--glass-2); border: 1px solid var(--line-strong); color: var(--ink-100);
  box-shadow: var(--shadow-2); backdrop-filter: blur(12px);
  display: flex; gap: 10px; align-items: flex-start; animation: toastIn .28s cubic-bezier(.2,.9,.3,1.2);
}
.toast.out { animation: toastOut .25s forwards; }
.toast b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.toast p { font-size: 13px; color: var(--ink-300); }
.toast .ticon { font-size: 17px; }
.toast-success { border-left: 3px solid #2ecc71; }
.toast-error { border-left: 3px solid var(--red-500); }
.toast-info { border-left: 3px solid var(--blue-400); }
.toast-warn { border-left: 3px solid #f5a623; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* --------------------------- Language gate ------------------------ */
.gate {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 500px at 70% 10%, rgba(233,29,36,.14), transparent 55%),
              radial-gradient(900px 600px at 20% 90%, rgba(47,123,255,.18), transparent 55%),
              linear-gradient(160deg, #060b1a, #0a1128 60%, #12234d);
  padding: 20px;
}
.gate-card { width: min(520px, 100%); text-align: center; padding: 42px 36px; }
.gate-card img { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--shadow-glow-blue); }
.gate-card h2 { color: #fff; font-size: 26px; letter-spacing: 1.5px; }
.gate-card .bn-name { color: var(--ink-300); font-size: 16px; margin: 4px 0 22px; }
.lang-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.lang-opt {
  padding: 20px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: rgba(6,11,26,.5); color: var(--ink-200); font-size: 17px; font-weight: 700;
  transition: all var(--speed);
}
.lang-opt small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-500); margin-top: 4px; }
.lang-opt:hover { border-color: var(--blue-400); background: rgba(47,123,255,.1); transform: translateY(-2px); }

/* --------------------------- Visitor form ------------------------ */
.gate-step { animation: fadeIn .3s; }
.gate-step h3 { color: #fff; margin-bottom: 6px; font-size: 20px; }
.gate-step .hint { font-size: 13.5px; color: var(--ink-400); margin-bottom: 18px; }
.gate-step .field { margin-bottom: 14px; text-align: left; }
.input-error { border-color: var(--red-500) !important; box-shadow: 0 0 0 3px rgba(233,29,36,.15) !important; }
.field-err { color: var(--red-400); font-size: 12.5px; margin-top: 5px; display: none; }
.field-err.show { display: block; }

/* --------------------------- Footer ------------------------------ */
.site-footer {
  margin-top: 60px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,11,26,.4), rgba(6,11,26,.9));
  padding: 44px 0 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; letter-spacing: .8px; }
.footer-grid p, .footer-grid a { font-size: 13.5px; color: var(--ink-400); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-500); }
.social-row { display: flex; gap: 10px; margin-top: 12px; }
/* PNG icons (resource folder) inside icon buttons */
.icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn .btn-ico, .btn .icon-img { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* ------------------------ Forms (sell page) ---------------------- */
.form-card { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.upload-cell { text-align: center; }
.upload-box {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; border: 1.5px dashed var(--line-strong);
  background: rgba(6,11,26,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-400); font-size: 12.5px; cursor: pointer; overflow: hidden; transition: all var(--speed);
}
.upload-box:hover { border-color: var(--blue-400); color: var(--blue-300); background: rgba(47,123,255,.06); }
.upload-box.has-img { border-style: solid; border-color: var(--blue-400); }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-box .up-icon { font-size: 24px; }
.upload-box .up-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,11,26,.72); font-size: 12px; color: #fff; }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box .upload-opts {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 6px;
  padding: 6px; justify-content: center; background: rgba(6,11,26,.55); backdrop-filter: blur(4px);
}
.upload-box.has-img .upload-opts { background: rgba(6,11,26,.72); }
.mini-btn {
  border: 1px solid var(--line-strong); background: rgba(18,27,55,.85); color: var(--ink-200);
  border-radius: 8px; font-size: 11px; padding: 4px 9px; cursor: pointer; transition: all var(--speed);
}
.mini-btn:hover { border-color: var(--blue-400); color: var(--blue-300); }
.img-missing {
  background: repeating-linear-gradient(45deg, rgba(125,184,255,.06) 0 12px, rgba(125,184,255,.12) 12px 24px);
  opacity: .35;
}
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.check-all-wrap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-300); cursor: pointer; }
.tbl input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue-400); cursor: pointer; }
.photo-tile.is-thumb { outline: 2px solid var(--blue-400); outline-offset: -2px; }
.photo-tile .tile-tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; padding: 2px 7px; border-radius: 8px; background: rgba(6,11,26,.8); color: var(--blue-300); }
.upload-remove {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(127,13,22,.9); color: #fff; border: none; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

/* --------------------------- Progress ---------------------------- */
.progress { height: 6px; border-radius: 4px; background: rgba(125,184,255,.12); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--grad-cta); border-radius: 4px; transition: width .3s ease; }

/* --------------------------- Charts (admin) ---------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat-card .s-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }
.stat-card .s-value { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.stat-card .s-sub { font-size: 12px; color: var(--ink-500); }
.stat-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; filter: blur(2px); opacity: .16; }
.stat-blue::after { background: radial-gradient(circle, var(--blue-400), transparent 70%); }
.stat-red::after { background: radial-gradient(circle, var(--red-500), transparent 70%); }
.stat-green::after { background: radial-gradient(circle, #2ecc71, transparent 70%); }
.stat-amber::after { background: radial-gradient(circle, #f5a623, transparent 70%); }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-col i { width: 100%; max-width: 42px; border-radius: 8px 8px 3px 3px; background: var(--grad-blue); min-height: 4px; transition: height .5s ease; }
.bar-col.alt i { background: var(--grad-red); }
.bar-col span { font-size: 11px; color: var(--ink-400); }
.bar-col b { font-size: 13px; color: var(--ink-200); }

/* --------------------------- Admin shell -------------------------- */
.admin-wrap { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: rgba(6,11,26,.85); border-right: 1px solid var(--line); padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; backdrop-filter: blur(12px);
}
.admin-side .brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px;
  color: var(--ink-300); font-size: 14px; font-weight: 500; transition: all var(--speed);
}
.side-nav a:hover { background: rgba(47,123,255,.09); color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, rgba(47,123,255,.22), rgba(233,29,36,.14)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.side-nav .s-ico { width: 20px; text-align: center; }
.side-nav .pill {
  margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--grad-red); color: #fff; min-width: 20px; text-align: center;
}
.admin-main { padding: 22px clamp(16px, 3vw, 34px) 60px; min-width: 0; }
.admin-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-top h1 { font-size: 22px; color: #fff; letter-spacing: .4px; }
.admin-top .spacer { flex: 1; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.userchip { display: flex; align-items: center; gap: 10px; }
.userchip small { display: block; color: var(--ink-500); font-size: 11px; }
.userchip b { color: var(--ink-100); font-size: 13.5px; font-weight: 600; }

.panel-card { padding: 20px; }
.panel-card h3.panel-title { color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: .3px; }

/* Admin tables */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th {
  text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--ink-400); background: rgba(6,11,26,.6); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(125,184,255,.07); color: var(--ink-200); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(47,123,255,.05); }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl img.rowthumb { width: 52px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Status pills */
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-available, .st-completed, .st-accepted, .st-sold, .st-approved { color: #7ee2a0; background: rgba(46,204,113,.1); }
.st-new, .st-interested { color: var(--blue-300); background: rgba(47,123,255,.12); }
.st-contacted, .st-inspection-done, .st-negotiation, .st-reserved { color: #ffd479; background: rgba(245,166,35,.12); }
.st-cancelled, .st-rejected { color: #ff8f94; background: rgba(233,29,36,.12); }
.st-draft, .st-hidden { color: var(--ink-400); background: rgba(125,184,255,.08); }
.st-pending, .st-inspection-pending, .st-followup, .st-booked { color: #c9a7ff; background: rgba(160,110,255,.12); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: rgba(125,184,255,.15);
  border: 1px solid var(--line-strong); transition: all var(--speed); cursor: pointer;
}
.switch .track::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; top: 3px; left: 3px;
  background: var(--ink-400); transition: all var(--speed);
}
.switch input:checked + .track { background: var(--grad-cta); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(18px); background: #fff; }

/* Perm matrix */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.perm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; background: rgba(6,11,26,.4); border: 1px solid var(--line); font-size: 13.5px;
}

/* --------------------------- Bottom nav (mobile) ------------------ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none;
  background: rgba(6,11,26,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-500); font-size: 10.5px; font-weight: 600; padding: 5px 2px; border-radius: 10px;
}
.bottom-nav a .bn-ico { font-size: 19px; }
.bottom-nav a.active { color: var(--blue-300); }

/* --------------------------- Auth page ---------------------------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: min(420px, 100%); padding: 34px 30px; }
.auth-card .auth-logo { text-align: center; margin-bottom: 20px; }
.auth-card .auth-logo img { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 16px; }
.auth-card h2 { color: #fff; text-align: center; font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--ink-400); font-size: 13px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 14px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-400); margin-top: 16px; }
.demo-note { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(47,123,255,.07); border: 1px dashed var(--line-strong); font-size: 12px; color: var(--ink-400); }
.demo-note code { color: var(--blue-300); font-family: var(--mono); }

/* --------------------------- Misc -------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-dim { color: var(--ink-400); font-size: 13.5px; }
.text-err { color: var(--red-400); font-size: 13px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: none; }
.tag-mini { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(125,184,255,.1); border: 1px solid var(--line); color: var(--ink-300); }
.kbd { font-family: var(--mono); font-size: 12px; background: rgba(6,11,26,.7); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; color: var(--blue-300); }
.breadcrumb { font-size: 12.5px; color: var(--ink-500); margin-top: 18px; }
.breadcrumb a { color: var(--ink-400); }
.lazy-img { opacity: 0; transition: opacity .4s ease; }
.lazy-img.loaded { opacity: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ========================== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  /* Phones: a slightly taller frame suits mixed portrait/landscape shots. */
  .gallery-main { aspect-ratio: 4/5; max-height: 68vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .bottom-nav { display: flex; }
  .fab-stack { bottom: 78px; right: 14px; }
  .fab { width: 52px; height: 52px; font-size: 22px; }
  .site-footer { padding-bottom: 130px; }
  .search-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 262px; z-index: 120;
    transform: translateX(-105%); transition: transform .28s ease;
  }
  .admin-side.open { transform: none; box-shadow: var(--shadow-2); }
  .admin-burger { display: inline-flex !important; }
  .hero { padding: 38px 0 44px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .lang-opts { grid-template-columns: 1fr 1fr; }
  .cta-row { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .admin-burger { display: none !important; }
}
@media (max-width: 480px) {
  .brand-name span { display: none; }
  .bike-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  /* Footer: single column, no overlap between Explore and the first column */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid > div + div { border-top: 1px solid var(--line); padding-top: 18px; }
  .footer-grid h4 { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .header-actions { gap: 6px; }
  .header-inner { gap: 10px; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }
  .lang-switch { width: 40px; font-weight: 800; }
}

/* Print: hide chrome */
@media print {
  .site-header, .fab-stack, .bottom-nav, .site-footer { display: none !important; }
}
