/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07070d;
  --bg-card: #111118;
  --bg-elevated: #18181f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.12);
}

.nav-link.active {
  color: var(--accent-light);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Models Grid ── */
.models-section {
  padding: 2rem 0 5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.15);
}

.model-card-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 280) 60% 25%) 0%,
    hsl(calc(var(--hue, 280) + 40) 50% 15%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.model-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 50%);
}

.model-initials {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  z-index: 1;
}

.model-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.model-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.model-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-light);
}

/* ── Profile Page ── */
.profile-hero {
  padding: 2.5rem 0 2rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .profile-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  border: 3px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.profile-avatar img,
.model-card-image img.cover-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-btn:not([href]),
.of-btn[href=""] {
  display: none;
}

.profile-info h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.of-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  background: #0095f6;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 149, 246, 0.35);
}

.of-btn:hover {
  background: #0077cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 246, 0.45);
}

.profile-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .profile-buttons {
    justify-content: flex-start;
  }
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  background: #5865F2;
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.discord-btn:hover {
  transform: translateY(-2px);
  background: #4752C4;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.45);
}
.discord-btn[hidden],
.discord-btn:not([href]),
.discord-btn[href=""] {
  display: none !important;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #ff0040,
    #ff8800,
    #ffee00,
    #00e676,
    #00b0ff,
    #7c4dff,
    #e040fb,
    #ff0040
  );
  background-size: 400% 100%;
  animation: rainbow-shift 10s ease infinite;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}

.profile-buttons .telegram-btn {
  padding: 0.65rem 1.75rem;
  font-size: 0.95rem;
}

.profile-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-light);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.profile-bio {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.seo-intro {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

.seo-faq {
  margin-top: 2.5rem;
  max-width: 720px;
}
.seo-faq h2,
.related-leaks h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.seo-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.seo-faq p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.related-leaks {
  margin-top: 2rem;
}
.related-leaks ul,
.leak-index {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  padding: 0;
}
.related-leaks a,
.leak-index a {
  color: var(--accent-light);
  font-weight: 600;
}
.related-leaks a:hover,
.leak-index a:hover {
  text-decoration: underline;
}
.leak-index {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 640px) {
  .profile-stats {
    justify-content: flex-start;
  }
}

.stat {
  text-align: center;
}

@media (min-width: 640px) {
  .stat {
    text-align: left;
  }
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Content Gallery ── */
.content-section {
  padding: 2rem 0 5rem;
}

.content-section .section-title {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
}

.content-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.content-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--text);
}

.tab-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--accent-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
}

.gallery-item:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.gallery-item:has(img[src]:not([src=""])) {
  border-style: solid;
}

.gallery-item:has(img[src]:not([src=""])) .gallery-placeholder {
  display: none;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 280) 40% 18%) 0%,
    hsl(calc(var(--hue, 280) + 30) 30% 12%) 100%
  );
}

button.gallery-item {
  appearance: none;
  -webkit-appearance: none;
}

.gallery-item.live {
  border-style: solid;
  border-color: var(--border);
  background: var(--bg-elevated);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 1;
}

.gallery-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

.js-gallery:not(:empty) + .gallery-empty {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image,
.lightbox-video {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.js-model-nav {
  display: contents;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 28, 135, 0.18), transparent 55%),
    #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.viewer[hidden] { display: none !important; }
.viewer.is-photo .player-bar { display: none !important; }
.viewer.is-video .photo-hint { display: none !important; }

.viewer-top {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.7rem + env(safe-area-inset-top)) 0.9rem 0.5rem;
  z-index: 4;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.viewer-counter {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}
.viewer-top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.viewer.is-video .viewer-top .js-full { display: none; }
.viewer-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.viewer-icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.viewer-icon-btn:active { transform: scale(0.96); }
.viewer-icon-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.viewer-stage {
  grid-area: 2 / 1;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4.5rem;
  overflow: hidden;
}
.viewer-image,
.viewer-video {
  display: none !important;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer.is-photo .viewer-image { display: block !important; }
.viewer.is-video .viewer-video {
  display: block !important;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.viewer-image {
  touch-action: none;
  transform-origin: center center;
  border-radius: 4px;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 18, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s ease, opacity 0.25s ease;
}
.viewer-nav:hover { background: rgba(168, 85, 247, 0.55); }
.viewer-nav svg { width: 26px; height: 26px; display: block; }
.viewer-prev { left: 0.7rem; }
.viewer-next { right: 0.7rem; }

.player-bar {
  grid-area: 3 / 1;
  z-index: 4;
  padding: 0.35rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 20%, transparent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.player-bar .viewer-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
}
.player-bar .viewer-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.player-play { width: 44px !important; height: 44px !important; }
.player-time {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  min-width: 4.6rem;
}
.player-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.player-vol {
  width: 72px;
  height: 4px;
  accent-color: var(--accent-light);
  cursor: pointer;
}
.player-seek {
  position: relative;
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.player-seek-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: visible;
}
.player-seek:hover .player-seek-track,
.player-seek.is-dragging .player-seek-track { height: 7px; }
.player-seek-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.player-seek-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s ease;
  pointer-events: none;
}
.player-seek:hover .player-seek-knob,
.player-seek.is-dragging .player-seek-knob { transform: translate(-50%, -50%) scale(1); }

.photo-hint {
  position: absolute;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.viewer.is-idle.playing .viewer-top,
.viewer.is-idle.playing .viewer-nav,
.viewer.is-idle.playing .player-bar {
  opacity: 0;
  pointer-events: none;
}
.viewer.is-idle.playing { cursor: none; }

.viewer:fullscreen,
.viewer:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}
.viewer:fullscreen .viewer-stage,
.viewer:-webkit-full-screen .viewer-stage {
  padding: 0 4.5rem;
}

@media (max-width: 720px) {
  .player-vol { display: none; }
  .viewer-stage { padding: 0 0.35rem; }
  .viewer-nav {
    width: 40px;
    height: 40px;
    background: rgba(12, 12, 18, 0.4);
  }
  .viewer-prev { left: 0.2rem; }
  .viewer-next { right: 0.2rem; }
  .header-brand .telegram-btn,
  .header-brand .discord-btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; }
  .model-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .model-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--accent-light);
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Mobile Nav ── */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }
}

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.35rem auto;
  padding: 0 1rem;
  min-height: 50px;
  overflow: hidden;
}
.ad-slot-ready {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem 1rem;
}
.ad-slot ins {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
.viewer.is-open ~ .ad-slot,
body:has(.viewer.is-open) .ad-slot {
  visibility: hidden;
}

.tg-welcome {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(4, 4, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.tg-welcome-open {
  overflow: hidden;
}
body.tg-welcome-open .ad-slot {
  visibility: hidden;
}
.tg-welcome-card {
  width: min(440px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px var(--accent-glow);
}
.tg-welcome-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.tg-welcome-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.tg-welcome-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.tg-welcome-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-height: 56px;
  transition: var(--transition);
}
.tg-welcome-link:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}
.tg-welcome-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 280) 50% 28%) 0%,
    hsl(calc(var(--hue, 280) + 40) 45% 16%) 100%
  );
  position: relative;
}
.tg-welcome-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-welcome-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tg-welcome-meta strong {
  font-size: 0.95rem;
  line-height: 1.2;
}
.tg-welcome-meta span {
  font-size: 0.75rem;
  color: #229ED9;
  font-weight: 600;
}
.tg-welcome-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.tg-welcome-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.tg-welcome-continue {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.tg-welcome-continue:hover {
  filter: brightness(1.08);
}
