:root {
  --bg:       #050505;
  --bg-1:     #0b0b0c;
  --bg-2:     #121214;
  --bg-3:     #1a1a1d;
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.15);
  --line-3:   rgba(255,255,255,0.26);
  --text:     #f4f6f8;
  --muted:    #8a8f99;
  --muted-2:  #565a63;
  --accent:   #ffffff;
  --accent-2: #cfd6dd;
  --accent-g: linear-gradient(135deg, #ffffff, #c2ccd6);
  /* futuristic cyan-white glow */
  --glow:      #9fd8ff;
  --glow-soft: rgba(159,216,255,0.55);
  --glow-mid:  rgba(159,216,255,0.28);
  --glow-dim:  rgba(159,216,255,0.12);
  --mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw:     1380px;
  --r:        6px;
  --phone-ratio: 1206 / 2622;   /* iPhone 17 screen — used on the detail-page preview & hero */
  --card-ratio: 9 / 16;         /* gallery thumbnails — a bit shorter so cards aren't too tall */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Screen-reader-only / SEO content: in the DOM & accessible, visually hidden. */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
html, body { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  /* soft dot-matrix texture (replaces the square grid) — scrolls with content (no repaint jank) */
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 1.6px);
  background-size: 24px 24px;
}
/* ambient aurora — soft cyan glow behind everything (GPU-composited, gentle drift) */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 38% at 22% 26%, rgba(159,216,255,0.12), transparent 72%),
    radial-gradient(42% 40% at 82% 20%, rgba(159,216,255,0.08), transparent 70%),
    radial-gradient(50% 46% at 66% 88%, rgba(125,180,255,0.07), transparent 72%);
  filter: blur(16px);
  will-change: transform;
  transform: translateZ(0);
  animation: auroraDrift 40s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}
/* faint scanline overlay (cheap — no blend mode) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
.app { position: relative; z-index: 2; }
::selection { background: var(--glow); color: #001018; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input  { font-family: inherit; }
a      { text-decoration: none; color: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1c20; border-radius: 0; border: 2px solid var(--bg);
  box-shadow: inset 0 0 0 1px var(--glow-dim); }
::-webkit-scrollbar-thumb:hover { background: #26262b; box-shadow: inset 0 0 0 1px var(--glow-mid); }

/* ─── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 66px;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: .12em; user-select: none;
}
.logo-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-g);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.logo-icon svg { width: 16px; height: 16px; }
.logo-text { color: var(--text); -webkit-text-fill-color: var(--text); }
.logo-thin { font-weight: 300; opacity: .45; -webkit-text-fill-color: rgba(255,255,255,.45); }

.search-wrap {
  flex: 1; max-width: 500px; margin: 0 auto;
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 13px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s, background .18s;
}
.search-wrap:focus-within { border-color: rgba(255,255,255,.35); background: var(--bg-3); }
.search-icon { color: var(--muted-2); flex-shrink: 0; }
.search-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px;
}
.search-wrap input::placeholder { color: var(--muted-2); }
.search-clear {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; color: var(--muted);
  transition: color .15s, background .15s;
}
.search-clear:hover { color: var(--text); background: var(--line); }

.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-link {
  font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 9px;
  transition: color .15s, background .15s; letter-spacing: .01em; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--line); }
.nav-btn-admin {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #000;
  background: var(--accent-g);
  box-shadow: 0 2px 12px rgba(255,255,255,.15);
  transition: filter .15s, transform .12s;
}
.nav-btn-admin:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ─── HERO COVERFLOW ──────────────────────────────────────────────── */
.hero {
  position: relative; max-width: calc(var(--maxw) - 64px); margin: 28px auto 0;
  width: calc(100% - 64px); height: 560px; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; animation: heroFade .9s ease;
}
.hero-bg .wall { filter: blur(54px) brightness(.35) saturate(1.4); transform: scale(1.18); }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 0%, transparent 35%, rgba(8,8,8,.55) 100%),
    linear-gradient(0deg, rgba(8,8,8,.65), transparent 50%);
}

.hero-stage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
}
.hero-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 426px;
  margin-top: -213px; margin-left: -120px;
  border-radius: 20px; overflow: hidden; cursor: pointer;
  box-shadow: 0 28px 65px -20px rgba(0,0,0,.9);
  transition: transform .62s cubic-bezier(.25,.8,.3,1), filter .62s, opacity .62s;
  transform-style: preserve-3d; will-change: transform;
}
.hero-card.is-active {
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.12);
}
.hero-card-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 40%, transparent 100%);
}
.hero-card:not(.is-active) .hero-card-shade {
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.3));
}

/* Phone frame overlay */
.phone-frame {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}

.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 24px 20px 26px; text-align: center;
  animation: captionIn .5s ease;
}
@keyframes captionIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-cat {
  display: inline-block; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border-radius: 20px; padding: 4px 12px; margin-bottom: 10px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px;
  line-height: 1.08; letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.7);
  margin-bottom: 6px;
}
.hero-sub { font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 11px;
  font-weight: 600; font-size: 13px;
  background: var(--accent-g);
  color: #000;
  box-shadow: 0 4px 18px rgba(255,255,255,.12);
  transition: transform .12s, filter .15s;
}
.hero-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 8;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  transition: background .15s, transform .15s;
}
.hero-nav:hover { background: rgba(30,30,30,.9); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-next:hover { transform: translateY(-50%) translateX(2px); }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 8;
  display: flex; justify-content: center; gap: 6px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.28); transition: all .3s;
}
.hero-dot.is-active { background: #fff; width: 22px; }
.hero-dot:hover { background: rgba(255,255,255,.6); }

/* ─── STATS BAR ───────────────────────────────────────────────────── */
.stats-bar {
  max-width: var(--maxw); margin: 22px auto 0;
  padding: 0 32px;
  display: flex; align-items: center; gap: 0;
}
.stat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-1);
  flex: 1 1 0;
}
.stat-item + .stat-item { margin-left: 12px; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--accent-2);
  flex-shrink: 0;
}
.stat-info {}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; line-height: 1;
  color: var(--text);
}
.stat-lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ─── TOOLBAR ─────────────────────────────────────────────────────── */
.toolbar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px 32px 12px;
  position: sticky; top: 66px; z-index: 30;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
}
.toolbar-top {
  display: flex; align-items: center; gap: 10px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.toolbar-top::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 22px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.is-active {
  color: #000; font-weight: 600;
  background: var(--accent-g); border-color: transparent;
  box-shadow: 0 2px 12px rgba(255,255,255,.1);
}
.pill-emoji { font-size: 14px; }
.pill-count {
  font-size: 10.5px; opacity: .65;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.12); border-radius: 10px;
  padding: 1px 6px;
}
.pill.is-active .pill-count { opacity: .85; }

.toolbar-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px; flex-wrap: wrap;
}
.result-count { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sort-group { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.sort-btn {
  font-size: 12px; color: var(--muted); padding: 6px 12px;
  border-radius: 7px; transition: all .15s; white-space: nowrap;
}
.sort-btn:hover { color: var(--text); }
.sort-btn.is-active { color: var(--text); background: var(--line); }

/* ─── GALLERY ─────────────────────────────────────────────────────── */
.gallery {
  max-width: var(--maxw); margin: 0 auto;
  padding: 8px 32px 80px;
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Skip rendering offscreen cards until they're near the viewport — big scroll win on long galleries */
.gallery-item { content-visibility: auto; contain-intrinsic-size: auto 440px; }

/* Smooth fade-in: images are visible by default (no-JS safe); JS adds .is-loading
   to the ones still downloading, then removes it on load to fade them in. */
.card img.wall, .cat-tile img, .related-card img.wall { transition: opacity .45s ease; }
.card img.wall.is-loading, .cat-tile img.is-loading, .related-card img.wall.is-loading { opacity: 0; }

/* ─── CARD ────────────────────────────────────────────────────────── */
.card {
  position: relative; cursor: pointer; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-1);
  transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s, border-color .24s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.18);
}
.card .wall { width: 100%; aspect-ratio: 9/16; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.card:hover .wall { transform: scale(1.04); }

.card-badge-new {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; padding: 4px 9px; border-radius: 20px;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  box-shadow: 0 2px 8px rgba(244,63,94,.5);
}
.card-badge-hot {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; padding: 4px 9px; border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 2px 8px rgba(245,158,11,.45);
}

.card-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 45%, transparent 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s, transform .22s;
}
.card:hover .card-overlay { opacity: 1; transform: none; }

.card-actions {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.card:hover .card-actions { opacity: 1; transform: none; }
.card-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s, transform .12s;
}
.card-action-btn:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }
.card-action-btn.liked { color: #f43f5e; background: rgba(244,63,94,.2); border-color: rgba(244,63,94,.35); }

.card-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 14px 14px 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s, transform .22s;
}
.card:hover .card-info { opacity: 1; transform: none; }
.card-info-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card-meta h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: -.01em; line-height: 1.2; color: #fff;
}
.card-cat-tag {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,.6); margin-top: 4px;
}
.card-dl-btn {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff; color: #000;
  transition: transform .14s, filter .15s;
}
.card-dl-btn:hover { transform: scale(1.08); filter: brightness(.92); }

/* Color swatches */
.card-colors {
  position: absolute; bottom: 14px; left: 14px; z-index: 4;
  display: flex; gap: 4px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .22s .05s, transform .22s .05s;
}
.card:hover .card-colors { opacity: 1; transform: none; }
.color-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
}

/* ─── EMPTY STATE ─────────────────────────────────────────────────── */
.empty {
  padding: 100px 0; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.empty-icon { font-size: 48px; opacity: .3; }
.empty p { font-size: 15px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-weight: 500; font-size: 14px; color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.4); }

/* ─── MODAL ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(2,2,8,.75); backdrop-filter: blur(12px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 920px; max-height: 90vh;
  overflow: auto; background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.95);
  animation: popIn .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: 1px solid var(--line); transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.14); }

.modal-layout { display: grid; grid-template-columns: 1fr 1.15fr; }
@media (max-width: 680px) { .modal-layout { grid-template-columns: 1fr; } }

.modal-preview-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 28px; background: rgba(0,0,0,.35);
  border-right: 1px solid var(--line);
}
@media (max-width: 680px) {
  .modal-preview-panel { border-right: none; border-bottom: 1px solid var(--line); }
}
.modal-phone-wrap {
  position: relative; width: 200px;
}
.modal-phone-wall { aspect-ratio: 9/16; width: 200px; border-radius: 28px; overflow: hidden; }
.modal-phone-frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.modal-info-panel {
  padding: 32px 28px; display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
}
.modal-cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); padding: 5px 12px;
  border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line);
  width: fit-content;
}
.modal-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 26px; letter-spacing: -.02em; line-height: 1.15;
  margin-top: 8px;
}
.modal-meta { font-size: 13px; color: var(--muted); }
.modal-meta span + span::before { content: ' · '; }

.modal-section { display: flex; flex-direction: column; gap: 10px; }
.modal-label {
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--muted-2);
}
.res-list { display: flex; flex-direction: column; gap: 6px; }
.res-btn {
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  transition: all .14s;
}
.res-btn:hover { border-color: var(--line-2); color: var(--text); }
.res-btn.active { border-color: var(--accent); color: var(--text); background: rgba(255,255,255,.07); }
.res-dim { font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 500; }
.res-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  padding: 3px 8px; border-radius: 6px;
  background: var(--line); color: var(--muted);
}
.res-btn.active .res-tag { background: rgba(255,255,255,.18); color: #fff; }

.btn-download-main {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; border-radius: 13px; font-weight: 700; font-size: 15px;
  color: #000; background: var(--accent-g);
  box-shadow: 0 4px 20px rgba(255,255,255,.12);
  transition: transform .12s, filter .15s;
}
.btn-download-main:hover { filter: brightness(1.07); transform: translateY(-1px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px; color: var(--muted); padding: 5px 12px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.tag:hover { color: var(--text); border-color: var(--line-2); }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.related-card {
  cursor: pointer; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.related-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related-card .wall { aspect-ratio: 9/16; width: 100%; }

/* ─── TOAST ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--text);
  box-shadow: 0 20px 55px -15px rgba(0,0,0,.9);
  animation: toastUp .3s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
}
.toast strong { font-weight: 600; }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: blink 1.1s infinite;
}
@keyframes toastUp {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px 32px 56px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand {}
.footer-desc {
  font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 280px; line-height: 1.65;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links-title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.footer-link {
  font-size: 13px; color: var(--muted);
  transition: color .15s;
}
.footer-link:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 12.5px; color: var(--muted-2); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted);
}

/* ─── SCROLL TO TOP ───────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--bg-3); transform: translateY(-2px); }

/* ─── WALL BASE ───────────────────────────────────────────────────── */
.wall { background-position: center; background-size: cover; }
.wall-grain {
  position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay;
  pointer-events: none; background-size: 160px 160px;
}
.wall-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.4) 100%);
}

/* ─── LOADING SHIMMER ─────────────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════════
   FUTURISTIC HUD LAYER — bold sci-fi, B&W + cyan-white glow
   (appended overrides; later same-specificity rules win)
   ═══════════════════════════════════════════════════════════════════ */

/* shared utility: chamfered angular corners (cut top-right + bottom-left) */
.nav-btn-admin, .pill, .hero-cta, .btn-download-main, .btn-ghost, .scroll-top {
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

/* ── NAV ── */
.nav {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--glow-dim), 0 6px 24px -12px rgba(0,0,0,.9);
}
.logo { letter-spacing: .22em; }
.logo-icon {
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 14px var(--glow-mid);
}
.logo-text { letter-spacing: .22em; }
.nav-link {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; border-radius: 4px;
}
.nav-link:hover { color: var(--glow); background: var(--glow-dim);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }
.nav-btn-admin {
  border-radius: 0; font-family: var(--mono); font-weight: 700;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  box-shadow: none; filter: drop-shadow(0 0 8px var(--glow-mid));
}
.nav-btn-admin:hover { filter: drop-shadow(0 0 14px var(--glow-soft)) brightness(1.05); }

/* system-status chip (added in JSX) */
.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 6px 11px; border: 1px solid var(--line);
  background: var(--bg-1); white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.nav-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 8px var(--glow); animation: blink 1.4s infinite;
}

/* ── SEARCH ── */
.search-wrap {
  border-radius: 5px; background: var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.search-wrap:focus-within {
  border-color: var(--glow-mid);
  box-shadow: inset 0 0 0 1px var(--glow-mid), 0 0 18px -4px var(--glow-soft);
}
.search-wrap input { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.search-wrap input::placeholder { font-family: var(--mono); letter-spacing: .04em; }

/* ── HERO HUD FRAME ── */
.hero {
  border-radius: 4px; border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 1px var(--glow-dim), 0 0 60px -20px var(--glow-mid);
}
.hero::before, .hero::after {
  content: ''; position: absolute; width: 34px; height: 34px; z-index: 9;
  pointer-events: none; opacity: .8;
}
.hero::before { top: 14px; left: 14px;
  border-top: 2px solid var(--glow); border-left: 2px solid var(--glow);
  filter: drop-shadow(0 0 6px var(--glow-soft)); }
.hero::after { bottom: 14px; right: 14px;
  border-bottom: 2px solid var(--glow); border-right: 2px solid var(--glow);
  filter: drop-shadow(0 0 6px var(--glow-soft)); }
.hero-cat {
  font-family: var(--mono); border-radius: 0; letter-spacing: .26em;
  border: 1px solid var(--glow-mid); background: rgba(159,216,255,.08);
  color: var(--glow);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.hero-cta {
  border-radius: 0; font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  box-shadow: none; filter: drop-shadow(0 0 10px var(--glow-soft));
}
.hero-cta:hover { filter: drop-shadow(0 0 16px var(--glow)) brightness(1.05); }
.hero-nav { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--glow-dim); }
.hero-nav:hover { box-shadow: inset 0 0 0 1px var(--glow-mid), 0 0 18px -4px var(--glow-soft); }
.hero-dot.is-active { background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.hero-card.is-active {
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.95), 0 0 0 1px var(--glow-mid), 0 0 40px -8px var(--glow-soft);
}

/* ── STATS — readout panels ── */
.stat-item {
  border-radius: 4px; background: var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative; overflow: hidden;
}
.stat-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--glow); box-shadow: 0 0 10px var(--glow);
}
.stat-icon { border-radius: 4px; background: var(--glow-dim); color: var(--glow);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }
.stat-val { font-family: var(--mono); letter-spacing: .02em; text-shadow: 0 0 14px var(--glow-mid); }
.stat-lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

/* ── PILLS — angular tech tabs ── */
.pill {
  border-radius: 0; font-family: var(--mono); font-weight: 500;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--bg-1);
}
.pill:hover { color: var(--glow); border-color: var(--glow-mid);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }
.pill.is-active {
  color: #001018; background: var(--accent-g); border-color: transparent;
  box-shadow: none; filter: drop-shadow(0 0 8px var(--glow-mid));
}
.pill-count { border-radius: 2px; font-family: var(--mono);
  background: rgba(0,0,0,.18); }
.pill.is-active .pill-count { background: rgba(0,0,0,.22); }
.pill-emoji { filter: grayscale(1) brightness(1.4); }

/* ── SORT / RESULT ── */
.result-count { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.result-count::before { content: '// '; color: var(--glow); opacity: .7; }
.sort-group { border-radius: 4px; }
.sort-btn { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; }
.sort-btn.is-active { color: var(--glow); background: var(--glow-dim);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }

/* ── CARDS — HUD tiles ── */
.card { border-radius: 4px; background: var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--line); }
.card:hover {
  border-color: var(--glow-mid);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.95), inset 0 0 0 1px var(--glow-mid), 0 0 28px -8px var(--glow-soft);
}
.card::before, .card::after {
  content: ''; position: absolute; width: 20px; height: 20px; z-index: 6;
  pointer-events: none; opacity: 0; transition: opacity .22s; }
.card::before { top: 8px; left: 8px;
  border-top: 1.5px solid var(--glow); border-left: 1.5px solid var(--glow); }
.card::after { bottom: 8px; right: 8px;
  border-bottom: 1.5px solid var(--glow); border-right: 1.5px solid var(--glow); }
.card:hover::before, .card:hover::after { opacity: .9;
  filter: drop-shadow(0 0 4px var(--glow-soft)); }
.card-cat-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.card-cat-tag::before { content: '> '; color: var(--glow); }
.card-meta h3 { letter-spacing: .01em; }
.card-action-btn { border-radius: 4px; }
.card-action-btn:hover { box-shadow: inset 0 0 0 1px var(--glow-mid), 0 0 14px -4px var(--glow-soft); }
.card-dl-btn { border-radius: 4px; }
.card-dl-btn:hover { box-shadow: 0 0 16px -2px var(--glow-soft); }
.card-badge-new, .card-badge-hot {
  font-family: var(--mono); border-radius: 0; letter-spacing: .1em;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.card-badge-new { background: linear-gradient(135deg, var(--glow), #5fb8ee); color: #001018;
  box-shadow: 0 0 14px -2px var(--glow-soft); }
.card-badge-hot { background: #f0f4f8; color: #001018;
  box-shadow: 0 0 14px -2px rgba(255,255,255,.5); }
.color-dot { border-radius: 0; }

/* ── MODAL ── */
.modal-box { border-radius: 6px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.95), inset 0 0 0 1px var(--glow-dim), 0 0 60px -24px var(--glow-mid); }
.modal-close { border-radius: 4px; }
.modal-close:hover { box-shadow: inset 0 0 0 1px var(--glow-mid); }
.modal-cat-badge {
  font-family: var(--mono); border-radius: 0; color: var(--glow);
  border-color: var(--glow-mid); background: rgba(159,216,255,.07);
}
.modal-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.modal-label { font-family: var(--mono); }
.modal-label::before { content: '> '; color: var(--glow); }
.res-btn { border-radius: 4px; }
.res-btn.active { border-color: var(--glow-mid); background: var(--glow-dim);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }
.res-dim { font-family: var(--mono); }
.res-tag { font-family: var(--mono); border-radius: 2px; }
.res-btn.active .res-tag { background: var(--glow); color: #001018; }
.btn-download-main {
  border-radius: 0; font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  box-shadow: none; filter: drop-shadow(0 0 10px var(--glow-soft));
}
.btn-download-main:hover { filter: drop-shadow(0 0 16px var(--glow)) brightness(1.04); }
.tag { font-family: var(--mono); font-size: 11px; border-radius: 3px; }
.tag:hover { color: var(--glow); border-color: var(--glow-mid); }
.related-card { border-radius: 4px; }
.related-card:hover { border-color: var(--glow-mid);
  box-shadow: 0 0 16px -4px var(--glow-soft); }

/* ── TOAST ── */
.toast { border-radius: 4px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .03em;
  box-shadow: 0 20px 55px -15px rgba(0,0,0,.9), inset 0 0 0 1px var(--glow-mid), 0 0 24px -8px var(--glow-soft); }
.toast-dot { background: var(--glow); box-shadow: 0 0 8px var(--glow); }

/* ── FOOTER ── */
.footer-links-title { font-family: var(--mono); }
.footer-links-title::before { content: '# '; color: var(--glow); opacity: .6; }
.footer-link { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.footer-link:hover { color: var(--glow); }
.footer-copy { font-family: var(--mono); letter-spacing: .03em; }
.footer-badge { font-family: var(--mono); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }

/* ── SCROLL TOP ── */
.scroll-top { border-radius: 0; box-shadow: inset 0 0 0 1px var(--glow-dim); }
.scroll-top:hover { box-shadow: inset 0 0 0 1px var(--glow-mid), 0 0 18px -4px var(--glow-soft);
  color: var(--glow); }

/* ── EMPTY ── */
.btn-ghost { border-radius: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.btn-ghost:hover { color: var(--glow); border-color: var(--glow-mid);
  box-shadow: inset 0 0 0 1px var(--glow-mid); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE FIXES — kept LAST so they override the HUD layer above
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .nav-inner { padding: 0 20px; }
  .hero { width: calc(100% - 40px); height: 460px; }
  .hero-card { width: 190px; height: 338px; margin-top: -169px; margin-left: -95px; }
  .hero-title { font-size: 22px; }
  .stats-bar { padding: 0 20px; }
  .stat-item { padding: 12px 16px; }
  .stat-val { font-size: 16px; }
  .toolbar { padding: 18px 20px 10px; }
  .gallery { padding: 8px 20px 60px; }
  .footer { padding: 28px 20px 44px; }
  .scroll-top { bottom: 20px; right: 16px; }
}
/* tablet / small: let the search fill, drop the status chip */
@media (max-width: 720px) {
  .search-wrap { max-width: none; margin: 0; }
  .nav-status { display: none; }
}
@media (max-width: 480px) {
  /* compact nav — logo + search only */
  .nav-link { display: none; }
  .nav-inner { gap: 12px; }
  .logo { font-size: 15px; gap: 7px; }
  .logo-icon { width: 26px; height: 26px; }
  /* stack stats vertically so nothing is cramped */
  .stats-bar { flex-direction: column; }
  .stat-item { max-width: none; width: 100%; }
  .stat-item + .stat-item { margin-left: 0; margin-top: 10px; }
  .hero { height: 400px; }
  .hero-card { width: 160px; height: 284px; margin-top: -142px; margin-left: -80px; }
  .hero-title { font-size: 19px; }
  .hero-cta { font-size: 12px; height: 36px; padding: 0 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   STATIC PAGE STYLES (generated home / category / wallpaper pages)
   ═══════════════════════════════════════════════════════════════════ */
main { display: block; }

/* Card thumbnails are real <img> with width/height attrs — neutralize the
   presentational height hint so aspect-ratio + cover crop take over. */
.card img.wall { display: block; width: 100%; height: auto; aspect-ratio: var(--card-ratio); object-fit: cover; }
.related-card img.wall { aspect-ratio: var(--card-ratio); object-fit: cover; height: auto; }
/* wallpaper images can only be obtained via the Download button (deter drag / right-click save) */
.card img.wall, .related-card img.wall, .cat-tile img, .phone img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none;
}

/* sub-navigation (category pills bar) */
.subnav { position: sticky; top: 66px; z-index: 40;
  background: #0a0a0c;
  border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 32px;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav .pill { text-decoration: none; }

/* static hero (spotlight) */
.shero { max-width: var(--maxw); margin: 30px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.shero-media { display: flex; justify-content: center; }
.shero-copy { max-width: 520px; position: relative; z-index: 2; }

/* ── floating 3-phone showcase hero ── */
.showcase { position: relative; min-height: 560px; perspective: 1500px; }
.showcase .halo { position: absolute; top: 50%; left: 50%; width: 320px; height: 320px;
  margin: -160px 0 0 -160px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  filter: blur(52px); animation: haloPulse 5s ease-in-out infinite; }
.sc-slot { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.25,.8,.3,1), filter .7s; }
.sc-center { z-index: 3; transform: translate(-50%, -50%); }
.sc-left  { z-index: 2; transform: translate(-128%, -50%) rotateY(28deg) scale(.82); filter: brightness(.5); }
.sc-right { z-index: 2; transform: translate(28%, -50%) rotateY(-28deg) scale(.82); filter: brightness(.5); }
.sc-slot .phone { width: 244px; margin: 0; }
.sc-center .phone { box-shadow: 0 44px 90px -24px rgba(0,0,0,.95), 0 0 0 1px var(--glow-mid), 0 0 64px -16px var(--glow-soft); }
.sc-center .phone img { transition: opacity .25s ease; }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 5s ease-in-out infinite .4s; }
.float-c { animation: floaty 6.6s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes haloPulse { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .8; transform: scale(1.14); } }
.sc-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 7px; }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28);
  transition: all .3s; padding: 0; border: none; cursor: pointer; }
.sc-dot.on { background: var(--glow); width: 20px; border-radius: 99px; box-shadow: 0 0 8px var(--glow); }
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .showcase .halo { animation: none; }
}
.shero-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 14px; }
.shero-sub { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.shero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* phone frame for static images */
.phone { position: relative; display: block; width: 260px; max-width: 70vw;
  border-radius: 30px; overflow: hidden; border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.9), 0 0 0 1px var(--glow-dim), 0 0 50px -18px var(--glow-soft);
  aspect-ratio: var(--phone-ratio); background: var(--bg-2); }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 13px; border-radius: 8px; background: rgba(0,0,0,.85); z-index: 2; }
.phone::after { content: ''; position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); z-index: 2; }

/* category quick tiles */
.cat-strip { max-width: var(--maxw); margin: 40px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-tile { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--glow-mid);
  box-shadow: 0 0 20px -6px var(--glow-soft); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.cat-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; text-align: center; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }

/* section heads */
.section-head { max-width: var(--maxw); margin: 46px auto 0; padding: 0 32px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.section-title .result-count { font-family: var(--mono); font-size: 12px; }
.related { max-width: var(--maxw); margin: 0 auto; padding: 10px 32px 56px; }
.related .section-title { margin: 30px 0 16px; }
.no-results { text-align: center; color: var(--muted); padding: 60px 0; font-family: var(--mono); }

/* breadcrumb */
.breadcrumb { max-width: var(--maxw); margin: 22px auto 0; padding: 0 32px;
  font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .03em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--glow); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); margin: 0 4px; }

/* category landing header */
.cat-head { max-width: var(--maxw); margin: 16px auto 0; padding: 0 32px 4px; }
.cat-title { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700;
  letter-spacing: -.02em; }
.cat-intro { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 720px; margin: 12px 0 8px; }
.cat-head .result-count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* wallpaper detail */
.detail { max-width: var(--maxw); margin: 18px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 0.7fr 1fr; gap: 44px; align-items: start; }
/* breathing room before the footer when there's no "related" section */
main > .detail:last-child { margin-bottom: 64px; }
.detail-media { display: flex; justify-content: center; position: sticky; top: 130px; }
/* Detail-page preview: a bit wider and a touch shorter than the strict iPhone-17 frame. */
.detail-media .phone { width: 300px; max-width: 80vw; aspect-ratio: 9 / 16; }
.detail-cat { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--glow); margin-bottom: 8px; }
.detail-title { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1; }
.detail-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 12px 0 18px; }
.detail-desc { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; max-width: 560px; }
.detail .btn-download-main { display: inline-flex; padding: 0 26px; margin-bottom: 28px; }

/* Stack the hero EARLY — the fixed-size phone cluster needs room, otherwise the
   side phones spill over the headline at in-between widths. */
@media (max-width: 1180px) {
  .shero { grid-template-columns: 1fr; gap: 10px; text-align: center; padding-top: 18px; }
  .shero-copy { max-width: none; order: 2; }
  .showcase { order: 1; min-height: 520px; }
  .shero-cta-row { justify-content: center; }
  .shero-title { font-size: 32px; }
}
@media (max-width: 920px) {
  .shero-title { font-size: 30px; }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-media { position: static; }
  .detail-title { font-size: 30px; }
}
@media (max-width: 560px) {
  .subnav-inner { padding: 10px 20px; }
  .shero, .cat-strip, .section-head, .related, .breadcrumb, .cat-head, .detail { padding-left: 20px; padding-right: 20px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .cat-title { font-size: 26px; }
  /* one phone, centered, on small screens */
  .sc-left, .sc-right { display: none; }
  .sc-slot .phone { width: 210px; }
  .showcase { min-height: 440px; }
}

/* ── legal / info pages ── */
.legal { max-width: 800px; margin: 14px auto 0; padding: 0 32px 40px; }
.legal h1 { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700;
  letter-spacing: -.02em; }
.legal-updated { font-family: var(--mono); font-size: 12px; color: var(--muted-2);
  margin: 8px 0 26px; }
.legal h2 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600;
  margin: 30px 0 10px; color: var(--text); }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--muted); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--glow); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .legal-note { font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line);
  margin-top: 28px; padding-top: 18px; }

/* ── 404 page ── */
.error-page { max-width: 680px; margin: 60px auto 80px; padding: 0 32px; text-align: center; }
.error-code { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 110px;
  line-height: 1; letter-spacing: -.03em; color: transparent;
  background: var(--accent-g); -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 60px var(--glow-mid); }
.error-title { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; margin: 10px 0 12px; }
.error-sub { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 26px; }
.error-cats { margin-top: 40px; }
.error-cats .modal-label { display: block; margin-bottom: 14px; }
.error-cats .toolbar-top { gap: 10px; }
@media (max-width: 560px) {
  .legal { padding-left: 20px; padding-right: 20px; }
  .legal h1 { font-size: 27px; }
  .error-code { font-size: 84px; }
  .error-page { padding-left: 20px; padding-right: 20px; }
}

/* ── cookie consent banner ── */
button.footer-link { font: inherit; text-align: left; padding: 0; background: none;
  border: none; cursor: pointer; color: var(--muted); }
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 420px;
  background: var(--bg-1); border: 1px solid var(--line-2);
  box-shadow: 0 20px 55px -15px rgba(0,0,0,.9), inset 0 0 0 1px var(--glow-dim), 0 0 34px -12px var(--glow-soft);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  animation: toastUp .3s cubic-bezier(.2,.8,.3,1); }
.consent[hidden] { display: none; }
.consent-inner { padding: 18px 20px; }
.consent-text { font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--muted); margin-bottom: 14px; }
.consent-text a { color: var(--glow); }
.consent-text a:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent-btn { height: 36px; padding: 0 18px; font-family: var(--mono); font-size: 11.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #001018;
  background: var(--accent-g); filter: drop-shadow(0 0 8px var(--glow-mid));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.consent-btn:hover { filter: drop-shadow(0 0 14px var(--glow-soft)) brightness(1.04); }
.consent-btn.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line-2);
  filter: none; clip-path: none; border-radius: 4px; }
.consent-btn.ghost:hover { color: var(--text); border-color: var(--line-3); }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
