:root {
  /* Premium Gold & Black Palette */
  --ink: #0f1115;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  
  /* Metallic Gold Accents */
  --accent: #eab308;
  --accent-light: #facc15;
  --accent-gradient: linear-gradient(135deg, #eab308 0%, #facc15 100%);
  --accent-hover: #ca8a04;
  --accent-soft: #fefce8;
  
  --whatsapp: #25d366;
  --green: #10b981;
  
  --radius: 18px;
  --radius-sm: 12px;
  
  /* Lighter, optimized shadows */
  --shadow-sm: 0 1px 3px rgba(15, 17, 21, 0.05);
  --shadow: 0 8px 20px -6px rgba(15, 17, 21, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(15, 17, 21, 0.2);
  --shadow-gold: 0 6px 16px -4px rgba(234, 179, 8, 0.4);
  --shadow-wa: 0 6px 16px -4px rgba(37, 211, 102, 0.4);
  
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  font-family: var(--font); 
  font-size: 16px; 
  line-height: 1.6; 
  color: var(--ink); 
  background: var(--bg); 
  -webkit-font-smoothing: antialiased; 
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
.muted { color: var(--muted); }

.eyebrow { 
  display: inline-flex; 
  align-items: center;
  gap: 6px;
  font-size: .72rem; 
  font-weight: 800; 
  letter-spacing: .16em; 
  text-transform: uppercase; 
  color: var(--accent-hover); 
  margin-bottom: 12px; 
}
.eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow--light { color: var(--accent-light); }
.eyebrow--light::before { background: var(--accent-light); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 13px 26px; 
  border-radius: 999px; 
  font-weight: 700; 
  font-size: .95rem; 
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; 
  white-space: nowrap; 
}
.btn:active { transform: scale(0.96); }

.btn--primary { 
  background: var(--accent-gradient); 
  color: var(--ink); 
  box-shadow: var(--shadow-gold); 
}
.btn--primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 20px -4px rgba(234, 179, 8, 0.6);
}

.btn--whatsapp { 
  background: #25d366; 
  color: #fff; 
  box-shadow: var(--shadow-wa); 
}
.btn--whatsapp:hover { 
  background: #1ebe5a;
  transform: translateY(-2px); 
  box-shadow: 0 10px 20px -4px rgba(37, 211, 102, 0.6);
}

.btn--outline { 
  background: transparent; 
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.3); 
}
.btn--outline:hover { 
  border-color: #fff; 
  background: rgba(255,255,255,0.1); 
}

.btn--ghost { 
  background: #fff; 
  color: var(--ink); 
  border: 1px solid var(--line); 
}
.btn--ghost:hover { 
  border-color: #cbd5e1; 
  background: #f8fafc; 
  box-shadow: var(--shadow-sm);
}
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* Solid Header (removed backdrop-filter for performance) */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 60; 
  background: #ffffff; 
  border-bottom: 1px solid var(--line); 
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 88px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { 
  height: 68px; 
  width: auto; 
  object-fit: contain; 
  display: block;
}

.site-nav { display: flex; gap: 28px; margin-left: 20px; }
.site-nav a { font-size: .92rem; font-weight: 700; color: var(--muted); transition: color .2s ease; }
.site-nav a:hover { color: var(--accent-hover); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; color: var(--ink); padding: 8px 12px; border-radius: 999px; transition: background 0.2s; }
.header-call:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* Dynamic Hero */
.hero { position: relative; color: #fff; padding: 100px 0 130px; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.75) 40%, rgba(15,17,21,0.4) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 760px; }

.hero h1 { 
  margin-bottom: 20px; 
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero__sub { color: #94a3b8; font-size: 1.1rem; max-width: 560px; margin: 0 0 36px; }

/* Search Bar (removed backdrop-filter) */
.hero__search { 
  display: flex; gap: 8px; 
  background: rgba(255,255,255,0.95); 
  padding: 8px; 
  border-radius: 999px; 
  max-width: 560px; 
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s ease;
}
.hero__search:focus-within {
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.3);
}
.hero__search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 18px; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 500;}
.hero__search input::placeholder { color: #94a3b8; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 60px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.8rem; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.hero__stats span { font-size: .85rem; color: #94a3b8; font-weight: 500; margin-top: 4px; }

/* Showroom Grid */
.inventory { padding: 80px 0 100px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head__note { color: var(--muted); font-size: .95rem; font-weight: 500; margin: 0; }

/* Modern Filter Toolbar */
.toolbar { 
  background: #fff; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  padding: 24px; 
  box-shadow: var(--shadow-sm); 
  margin-bottom: 40px; 
}
.toolbar__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 16px; }
.toolbar__row--price { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { 
  width: 100%; 
  padding: 12px 16px; 
  border: 1px solid var(--line); 
  border-radius: var(--radius-sm); 
  background: #f8fafc; 
  outline: none; 
  transition: border-color .2s ease, box-shadow .2s ease; 
  font-size: .95rem; 
  font-weight: 500;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { 
  border-color: var(--accent); 
  background: #fff; 
  box-shadow: 0 0 0 3px rgba(234,179,8,.15); 
}
.field--range { flex: 1; }
.field--range output { color: var(--accent-hover); font-weight: 800; }
.field--range input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--accent); height: 24px; cursor: pointer; }

/* Sleek Car Cards - Optimized for 60fps */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.car-card { 
  background: var(--card); 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  cursor: pointer; 
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 
  display: flex; 
  flex-direction: column; 
  will-change: transform; /* GPU Acceleration */
  transform: translateZ(0); /* Force layer creation */
}
.car-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow); 
  border-color: rgba(234, 179, 8, 0.4);
}

.car-card__media { position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; will-change: transform; }
.car-card:hover .car-card__media img { transform: scale(1.04); }

.badge { 
  position: absolute; 
  top: 16px; 
  left: 16px; 
  padding: 6px 14px; 
  border-radius: 999px; 
  font-size: .7rem; 
  font-weight: 900; 
  letter-spacing: .08em; 
  text-transform: uppercase; 
  color: #fff; 
  background: #0f1115; /* Solid instead of blur */
}
.badge--new { background: var(--green); }
.badge--used { background: #0f1115; }
.badge--featured { left: auto; right: 16px; background: var(--accent-gradient); color: var(--ink); }

.car-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-card__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.car-card__sub { font-size: .9rem; color: var(--muted); font-weight: 500; margin: 0; }

.car-card__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.car-card__specs li { font-size: .75rem; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 6px 12px; }

.car-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.car-card__price { font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.car-card__link { font-size: .85rem; font-weight: 800; color: var(--accent-hover); display: flex; align-items: center; gap: 4px; }

/* Why / Contact / Footer */
.why { padding: 40px 0 100px; }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px; }
.why__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__icon { font-size: 1.6rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); margin-bottom: 20px; color: var(--accent-hover); }
.why__card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.why__card p { color: var(--muted); font-size: .95rem; margin: 0; }

.contact { background: var(--ink); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.contact__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.contact__sub { color: #94a3b8; margin: 16px 0 32px; max-width: 400px; font-size: 1.05rem; }
.contact__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact__item { display: flex; flex-direction: column; gap: 6px; }
.contact__k { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.contact__v { font-size: 1rem; color: #f1f5f9; font-weight: 500; }
a.contact__v:hover { color: var(--accent-light); text-decoration: underline; }

.site-footer { background: #04060a; color: #64748b; padding: 40px 0 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .9rem; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: #64748b; transition: color 0.2s, transform 0.2s; }
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.8); animation: fade .2s ease; }
.modal__panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5); animation: pop .2s ease; }
.modal__panel--wide { width: min(1050px, 100%); }
.modal__close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; color: var(--ink); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: background .2s ease; z-index: 2; }
.modal__close:hover { background: #e2e8f0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

/* Detail Modal */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #f1f5f9; }
.detail__thumbs { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; }
.thumb { flex: 0 0 86px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .6; transition: opacity .2s ease, border-color .2s ease; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--accent); opacity: 1; }

.detail__info h2 { margin: 8px 0; font-size: 2rem; }
.detail__trim { color: var(--muted); font-size: 1rem; font-weight: 500; margin: 0 0 16px; }
.detail__price { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; color: var(--accent-hover); margin: 0 0 24px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; background: #f8fafc; border-radius: 16px; margin-bottom: 28px; border: 1px solid var(--line); }
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec__k { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec__v { font-size: .95rem; font-weight: 700; color: var(--ink); }

.detail__info h3 { font-size: 1rem; margin: 28px 0 12px; color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.chips li { font-size: .8rem; font-weight: 700; background: #f1f5f9; color: #334155; padding: 8px 14px; border-radius: 999px; }
.detail__desc { color: #475569; font-size: .95rem; line-height: 1.7; margin: 0; }

.detail__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.detail__actions .btn { flex: 1; min-width: 180px; padding: 16px 24px; font-size: 1rem; }

/* Admin Area */
.admin-body { background: #f1f5f9; }
.admin-main { padding: 60px 0; min-height: calc(100vh - 76px); }
.admin-section { display: flex; justify-content: center; flex-direction: column; align-items: center; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); width: 100%; max-width: 900px; }
.admin-dashboard-head { width: 100%; max-width: 900px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.admin-dashboard-head h2 { margin-bottom: 4px; }

.post-form { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; border: 2px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; cursor: pointer; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon { font-size: 2rem; margin-bottom: 8px; }
.dropzone__text { font-size: 1rem; font-weight: 600; }
.dropzone__hint { font-size: .85rem; color: var(--muted); font-weight: 500; }

.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-top: 16px; }
.photo-preview:empty { margin-top: 0; }
.preview-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(15, 17, 21, 0.8); color: #fff; font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: background 0.2s; }
.preview-item button:hover { background: #b3261e; }

.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 14px 18px; font-size: .9rem; font-weight: 600; margin: 0; }
.post-form__actions { display: flex; justify-content: flex-end; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }

/* Admin Inventory List */
.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-list-item { display: flex; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.admin-list-item:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.admin-list-img { width: 100px; height: 75px; border-radius: 10px; overflow: hidden; background: #e2e8f0; flex-shrink: 0; }
.admin-list-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-list-info { flex: 1; min-width: 0; }
.admin-list-info h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-info p { margin: 0; font-size: .9rem; font-weight: 500; color: var(--muted); }
.admin-list-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Floating WhatsApp & Toast */
.whatsapp-float { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 20px -6px rgba(37,211,102,.5); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 28px -6px rgba(37,211,102,.6); }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: 16px 32px; border-radius: 999px; font-size: .95rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none; max-width: calc(100% - 48px); text-align: center; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Responsive Tweaks */
@media (max-width: 1024px) { 
  .toolbar__row { grid-template-columns: 1fr 1fr 1fr; } 
  .detail { grid-template-columns: 1fr; gap: 32px; } 
  .contact__inner { grid-template-columns: 1fr; gap: 40px; } 
}
@media (max-width: 820px) { 
  .site-nav { display: none; } 
  .header-call { display: none; } 
  .hero { padding: 80px 0 100px; } 
  .hero__stats { gap: 32px; } 
  .modal { padding: 0; align-items: flex-end; } 
  .modal__panel { max-height: 92vh; border-radius: 24px 24px 0 0; padding: 32px 24px; width: 100%; } 
}
@media (max-width: 640px) { 
  .logo__img { height: 52px; }
  .toolbar__row { grid-template-columns: 1fr 1fr; gap: 12px; } 
  .toolbar__row--price { flex-direction: column; align-items: stretch; } 
  .hero__search { flex-direction: column; border-radius: 20px; padding: 12px; } 
  .hero__search input { padding: 14px; } 
  .hero__search .btn { width: 100%; padding: 16px; } 
  .hero__actions { width: 100%; flex-direction: column; } 
  .hero__actions .btn { width: 100%; flex: 1; padding: 16px; } 
  .contact__grid { grid-template-columns: 1fr; } 
  .spec-grid { grid-template-columns: 1fr; } 
  .detail__actions { flex-direction: column; } 
  .detail__actions .btn { width: 100%; } 
  .whatsapp-float { width: 56px; height: 56px; right: 20px; bottom: 20px; } 
  .post-form__actions { flex-direction: column-reverse; } 
  .post-form__actions .btn { width: 100%; } 
  .admin-list-item { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; } 
  .admin-list-img { width: 100%; height: 180px; } 
  .admin-list-actions { justify-content: center; flex-wrap: wrap; } 
}

/* ============================================================
   Image Lightbox / Zoom
   ============================================================ */
.detail__main {
  cursor: zoom-in;
  transition: filter 0.2s ease;
}
.detail__main:hover {
  filter: brightness(0.95);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  animation: fade .2s ease;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: pop .2s ease;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   Image Lightbox / Zoom (Updated)
   ============================================================ */
.detail__main {
  cursor: zoom-in;
  transition: filter 0.2s ease;
}
.detail__main:hover {
  filter: brightness(0.95);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 10, 0.95);
  padding: 40px;
  animation: fade .2s ease;
}
.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: pop .2s ease;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

@media (max-width: 640px) {
  .lightbox { padding: 20px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__close { top: 10px; right: 10px; }
}