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

:root {
  --accent: #f4b400;
  --accent-dark: #f4b400;
  --accent-light: #2a2200;
  --bg: #111111;
  --surface: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #888888;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.6);
  --radius: 14px;
  --nav-h: 68px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(244,180,0,0.3);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #1a1a1a;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 100px;
  transition: background 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { background: rgba(0,0,0,0.13); }

.back-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.12);
  border: none;
  border-radius: 100px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.back-btn:hover { background: rgba(0,0,0,0.2); }

.search-wrap {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 6px 8px 6px 16px;
  gap: 8px;
  min-width: 0;
  flex: 0 1 260px;
  transition: background 0.18s;
}
.search-wrap:focus-within {
  background: rgba(0,0,0,0.17);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}
.search-wrap input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}
.search-wrap input::placeholder { color: rgba(0,0,0,0.45); }

.search-btn {
  background: #1a1a1a;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.search-btn:hover { background: #333; transform: scale(1.06); }
.search-btn svg { width: 15px; height: 15px; }

.dark-toggle {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.dark-toggle:hover { background: rgba(255,255,255,0.25); }
.dark-toggle svg { width: 18px; height: 18px; display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #1a1a1a 100%);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(244,180,0,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 75% 30%, rgba(244,180,0,0.08) 0%, transparent 70%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  color: #fff;
  letter-spacing: 3px;
  line-height: 0.95;
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  font-weight: 300;
  max-width: 360px;
  margin: 0 auto;
}

/* ── CONTENT WRAPPER ── */
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

/* ── HOME SECTIONS ── */
.home-section { margin-bottom: 56px; }

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.home-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--text);
}
.see-all-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
}
.see-all-btn:hover { opacity: 0.7; }

.home-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .home-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .home-row { grid-template-columns: 1fr; } }

/* ── CATEGORY PAGE HEADER ── */
.cat-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1.5px;
  color: var(--text);
}
.count-badge {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.06);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── CATEGORY GRID (3 col → 20 items) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ── CARD ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.28s;
}
.card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8e4;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.card:hover .card-img-wrap img { transform: scale(1.07); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.28s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay-title { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; }
.card-body { padding: 14px 16px 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* TAG COLORS — all 8 categories */
.tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent-dark);
}
.tag.erotic    { background: #fff3cc;  color: #d49800; }
.tag.cosplay   { background: #fce4ec;  color: #ad1457; }
.tag.asian     { background: #e3f2fd;  color: #1565c0; }
.tag.tattoo    { background: #e8f5e9;  color: #2e7d32; }
.tag.fitness   { background: #ede7f6;  color: #4527a0; }
.tag.amateur   { background: #e1f0ff;  color: #0d47a1; }
.tag.tiktok    { background: #f1f8e9;  color: #558b2f; }
.tag.dark      { background: #f3e5f5;  color: #6a1b9a; }

.card-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  line-height: 1.45; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-muted); font-size: 12px;
}
.card-meta .res {
  background: #1a1a1a; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 4px;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: none; text-align: center; padding: 80px 24px; grid-column: 1/-1;
}
.empty-state p { color: var(--text-muted); font-size: 16px; }
.empty-state .big { font-size: 48px; margin-bottom: 12px; display: block; }

/* ── DARK MODE ── */
body.light {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1a1a1a;
  --text-muted: #6b6b6b; --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  --accent-light: #fff3cc; --accent-dark: #d49800;
}
body.light .tag.erotic    { background: #fff3cc; color: #b8860b; }
body.light .tag.cosplay   { background: #fce4ec; color: #ad1457; }
body.light .tag.asian     { background: #e3f2fd; color: #1565c0; }
body.light .tag.tattoo    { background: #e8f5e9; color: #2e7d32; }
body.light .tag.fitness   { background: #ede7f6; color: #4527a0; }
body.light .tag.amateur   { background: #e3f2fd; color: #0d47a1; }
body.light .tag.tiktok    { background: #f1f8e9; color: #558b2f; }
body.light .tag.dark      { background: #f3e5f5; color: #6a1b9a; }
body.light .card-meta .res { background: var(--accent); color: #1a1a1a; }
body.light .count-badge { background: rgba(0,0,0,0.07); color: #1a1a1a; }
body.light .back-btn { color: #1a1a1a; }
body.light .model-info-card { background: #e8f4fd; border-color: #b3d9f5; }
body.light .model-info-note code { background: rgba(0,0,0,0.07); }

/* ── MOBILE ── */
@media (max-width: 760px) {
  nav { padding: 0 14px; gap: 10px; }
  .nav-links { display: none; }
  .search-wrap { flex: 1; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  user-select: none;
}

.lightbox-img-wrap.zoomed { cursor: move; }

.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.25s ease;
  transform-origin: center center;
  pointer-events: none;
}

.lightbox-info {
  margin-top: 18px;
  text-align: center;
  color: rgba(255,255,255,0.85);
}
.lightbox-info .lb-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}
.lightbox-info .lb-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.lightbox-info .lb-res {
  background: var(--accent);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 1001;
}
.lb-close:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }

.lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 1001;
}
.lb-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-zoom-hint {
  position: fixed;
  bottom: 20px;
  left: 50%; transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  letter-spacing: 0.5px;
}

.lb-zoom-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.lb-zoom-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lb-zoom-btn:hover { background: rgba(255,255,255,0.22); }


/* ── CATEGORY CARDS GRID (home page) ── */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .cat-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cat-cards-grid { grid-template-columns: 1fr; } }

.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.28s;
  background: var(--surface);
}
.cat-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

.cat-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #e8e8e4;
}
.cat-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.cat-card:hover .cat-card-img-wrap img { transform: scale(1.1); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  transition: background 0.28s;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}

.cat-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
  margin-bottom: 10px;
  width: fit-content;
}

.cat-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.cat-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.cat-card:hover .cat-card-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ── DOWNLOAD BUTTON ── */
.dl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85) translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  z-index: 10;
}
.dl-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.card:hover .dl-btn {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.dl-btn:hover {
  background: var(--accent);
  color: #1a1a1a;
}
.dl-btn:hover svg { stroke: #1a1a1a; }
.dl-btn:active { transform: scale(0.92); }

.dl-btn.downloading {
  background: rgba(0,0,0,0.65);
  cursor: wait;
  opacity: 1;
  transform: scale(1);
}
.dl-btn.done {
  background: #2e7d32;
  opacity: 1;
  transform: scale(1);
}

@keyframes spin {
  to { stroke-dashoffset: 0; transform: rotate(360deg); transform-origin: center; }
}
.spin-circle { animation: spin 0.8s linear infinite; }

/* Also add dl button in lightbox */
.lb-download {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  border: none;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.12s;
  z-index: 1002;
  letter-spacing: 0.3px;
}
.lb-download:hover { background: #d49800; transform: scale(1.04); }
.lb-download:active { transform: scale(0.97); }
.lb-download svg { width: 15px; height: 15px; }

/* ── MODEL GRID (category page — 20 model cards) ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .model-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px)  { .model-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px)  { .model-grid { grid-template-columns: 1fr; } }

.model-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.28s;
}
.model-card:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-hover); }

.model-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #e8e8e4;
}
.model-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.model-card:hover .model-card-img-wrap img { transform: scale(1.08); }

.model-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity 0.25s;
}
.model-card:hover .model-card-overlay { opacity: 1; }
.model-photo-count {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.18); padding: 3px 9px; border-radius: 100px;
}

.model-card-body { padding: 12px 14px 14px; }
.model-card-name { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.model-card-tag {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 9px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent-dark);
}

/* ── PHOTOS GRID (model page — 5 photos) ── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .photos-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px) { .photos-grid { grid-template-columns: 1fr; } }

.photo-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.photo-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8e4;
  cursor: zoom-in;
}
.photo-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); display: block;
}
.photo-item:hover .photo-img-wrap img { transform: scale(1.07); }

.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-zoom-icon { font-size: 28px; color: #fff; }

/* ── DOWNLOAD ALL BAR ── */
.download-all-bar {
  grid-column: 1 / -1;
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.download-all-info {
  font-size: 15px;
  color: var(--text);
}
.download-all-info strong {
  font-weight: 600;
}

.download-all-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-single-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
}
.dl-single-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.dl-single-btn:hover { background: var(--accent-light); transform: scale(1.04); }
.dl-single-btn:active { transform: scale(0.97); }

.dl-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  color: #1a1a1a;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.dl-all-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.dl-all-btn:hover { background: var(--accent-dark); transform: scale(1.04); }
.dl-all-btn:active { transform: scale(0.97); }
.dl-all-btn.downloading { background: #888; cursor: wait; }
.dl-all-btn.done { background: #2e7d32; color: #fff; }
.dl-all-btn:disabled { opacity: 0.8; }

body.light .dl-single-btn { background: #f5f5f5; color: #1a1a1a; border-color: #f4b400; }
body.light .dl-single-btn:hover { background: #fff3cc; }

/* ── MODEL INFO CARD ── */
.model-info-card {
  display: flex;
  gap: 18px;
  background: #0d2235;
  border: 1px solid #1a4a6e;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.model-info-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #2196f3;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.model-info-icon svg { width: 26px; height: 26px; }

.model-info-body { flex: 1; }
.model-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.model-info-body p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.5;
}
.model-info-body em { font-style: italic; font-weight: 500; }
.model-info-key {
  font-weight: 700;
  margin-right: 4px;
}
.model-info-note {
  margin-top: 10px;
  font-size: 12px !important;
  color: var(--text-muted) !important;
  font-style: italic;
}
.model-info-note code {
  font-family: var(--font-mono, monospace);
  background: rgba(0,0,0,0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
/* ── BIG DOWNLOAD BUTTON ── */
.model-dl-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding-bottom: 12px;
}
.model-dl-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(76,175,80,0.35);
}
.model-dl-all-btn:hover {
  background: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,80,0.45);
}
.model-dl-all-btn:active { transform: translateY(0); }
.model-dl-all-btn.downloading { background: #888; cursor: wait; box-shadow: none; }
.model-dl-all-btn.done { background: #1b5e20; box-shadow: none; }

/* ── VERTICAL PHOTO STACK ── */
.photos-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 8px;
}

.stack-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transition: box-shadow 0.3s, transform 0.3s;
}
.stack-item:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  transform: translateY(-3px);
}

.stack-img-wrap {
  position: relative;
  width: 80%;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
}
.stack-img-wrap img {
  width: 70%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.3s;
}
.stack-item:hover .stack-img-wrap img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.stack-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 24px;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  pointer-events: none;
}
.stack-item:hover .stack-overlay { opacity: 1; }

.stack-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
}

.stack-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  letter-spacing: 0.2px;
}
.stack-dl-btn svg { width: 15px; height: 15px; }
.stack-dl-btn:hover { background: #388e3c; transform: scale(1.06); }
.stack-dl-btn:active { transform: scale(0.97); }
.stack-dl-btn.downloading { background: #888; cursor: wait; }
.stack-dl-btn.done { background: #1b5e20; }

@media (max-width: 600px) {
  .stack-item { width: 100% !important; }
  .stack-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }
}

/* ── MORE MODELS SECTION ── */
.more-models-section {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.light .more-models-section { border-top-color: rgba(0,0,0,0.08); }

.more-models-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.more-models-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--text);
}

.more-models-refresh {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.12s;
}
.more-models-refresh svg { width: 15px; height: 15px; transition: transform 0.45s ease; }
.more-models-refresh:hover { color: var(--accent); border-color: var(--accent); }
.more-models-refresh.spinning svg { transform: rotate(360deg); }

.more-models-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .more-models-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .more-models-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── PER-PHOTO DOWNLOAD BAR ── */
.stack-photo-dl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.light .stack-photo-dl-bar { border-top-color: rgba(0,0,0,0.07); }

.stack-photo-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Make <a> download links look like buttons */
a.stack-dl-btn {
  text-decoration: none;
  display: inline-flex;
}

/* Download All as <a> link */
a.model-dl-all-btn {
  text-decoration: none;
  display: inline-flex;
}
