/* SECRET GALLERY — accounts preview extras (builds on neo.css + styles.css) */
.user-nav { display: flex; gap: 8px; align-items: center; margin-left: 18px; }
.user-nav .nb-btn.is-on { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.user-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ava {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px;
  background: var(--purple); color: #fff; border: 2px solid var(--ink);
  font: 700 12px/1 var(--body); letter-spacing: .04em;
}
.bottom-nav { display: none; }

/* login / register */
.btn-google {
  width: 100%; background: #fff; font-weight: 700;
}
.btn-google .gmark { width: 18px; height: 18px; display: block; }
.or-split {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.or-split::before, .or-split::after { content: ""; flex: 1; height: 3px; background: var(--ink); opacity: .2; }
.auth-tabs { display: flex; gap: 0; margin: 0 0 16px; border: var(--bw) solid var(--ink); }
.auth-tabs a {
  flex: 1; text-align: center; padding: 10px 8px; font: 700 14px/1 var(--body);
  text-decoration: none; background: #fff; color: var(--ink);
}
.auth-tabs a + a { border-left: var(--bw) solid var(--ink); }
.auth-tabs a.is-on { background: var(--yellow); }
.pw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* shop cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 26px; }
.shop-card { margin-top: 30px; }
.shop-card .stack { position: relative; aspect-ratio: 1.45 / 1; overflow: hidden; background:
  repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 12px), var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.shop-card .photo img { filter: none; }
.shop-card .photo.is-blur img { /* pre-blurred asset + slight extra */
  filter: blur(2px); transform: scale(1.12); transform-origin: center;
}
.shop-card .blur-stamp {
  position: absolute; z-index: 4; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.shop-card .card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.shop-card .card-top { display: flex; align-items: flex-start; gap: 10px; }
.shop-card .card-meta { flex: 1; min-width: 0; }
.shop-card .card-meta b { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.price-row .amt { font: 400 22px/1 var(--head); }
.price-row .amt small { font: 700 12px/1 var(--body); color: var(--muted); margin-left: 4px; letter-spacing: 0; text-transform: none; }
.card-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-acts .nb-btn { width: 100%; padding: 10px 8px; font-size: 13px; white-space: nowrap; }
.owned-banner {
  background: #d6f5d9; border: 2px solid var(--ink); padding: 6px 8px; font: 700 12px/1.2 var(--body);
  text-transform: uppercase; letter-spacing: .04em;
}

/* gallery detail */
.detail-head { --accent: var(--yellow); display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: end; margin-bottom: 28px; padding: 18px 18px 16px; background: var(--accent); border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.detail-head .kicker { margin: 0 0 8px; }
.detail-title { font: 400 clamp(28px, 4.2vw, 58px)/.95 var(--head); text-transform: uppercase; margin: 0; }
.detail-desc { margin: 10px 0 0; font-weight: 600; max-width: 60ch; }
.detail-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 240px; }
.detail-cta .nb-btn { width: 100%; justify-content: space-between; }
.detail-cta .sub { font: 700 12px/1 var(--body); color: var(--muted); text-align: right; font-weight: 600; }

.preview-block { margin: 0 0 36px; }
.preview-block .section-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-note {
  background: #fff3c4; border: var(--bw) solid var(--ink); box-shadow: var(--sh-sm);
  padding: 12px 14px; font-weight: 600; font-size: 14px; margin: 0 0 14px;
}
.media-grid.blurred-grid .media-tile { cursor: default; pointer-events: none; }
.media-tile.is-blur { position: relative; }
.media-tile.is-blur img { filter: blur(7px); transform: scale(1.16); transform-origin: center; }
.media-tile.is-blur::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 18, 14, .22);
}
.tile-lock {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--sh-sm);
}
.tile-lock svg { width: 20px; height: 20px; }

.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px 22px; }
.folder-card.is-locked .stack { filter: none; }
.folder-card .stack { position: relative; aspect-ratio: 1.45 / 1; overflow: hidden; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.lock-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(20, 18, 14, .38);
  color: #fff; text-align: center; padding: 12px;
}
.lock-overlay .pad {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--pink); border: var(--bw) solid var(--ink); box-shadow: var(--sh-sm); color: var(--ink);
}
.lock-overlay .pad svg { width: 26px; height: 26px; }
.lock-overlay b { font: 400 16px/1 var(--head); text-transform: uppercase; color: #fff;
  background: var(--ink); padding: 4px 8px; }
.lock-overlay span { font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 1px 0 #000; }
.folder-card .card-foot { padding: 10px 12px; }
.folder-card .card-acts { grid-template-columns: 1fr; }

/* checkout packages */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.pkg { display: flex; flex-direction: column; margin-top: 0; }
.pkg .body .inner { display: flex; flex-direction: column; height: 100%; }
.pkg .price { margin: 4px 0 14px; }
.pkg ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pkg li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.pkg li .nb-chip { width: 28px; height: 28px; flex-basis: 28px; }
.pkg li .nb-chip svg { width: 14px; height: 14px; }
.pkg .nb-btn.big { margin-top: auto; }
.pkg.is-featured { transform: translateY(-6px); }
.pkg.is-featured .body { box-shadow: var(--sh-lg); }
.methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; }
.checkout-wrap { max-width: 980px; margin: 0 auto; }
.checkout-lead { margin: 0 0 22px; font-weight: 600; max-width: 62ch; }

/* settings */
.set-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.set-card .inner { padding: 16px !important; }
.field + .field { margin-top: 14px; }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.device-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 2px solid var(--ink); background: #fff;
}
.device-list .meta { flex: 1; min-width: 0; }
.device-list .meta b { display: block; }
.device-list .meta small { color: var(--muted); font-weight: 600; }
.google-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); background: #d6f5d9; font-weight: 700; }

/* admin extras */
.sw { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; cursor: default; }
.sw-ui {
  width: 42px; height: 24px; border: 2px solid var(--ink); background: #e5e1d8; position: relative; flex: 0 0 42px;
  box-shadow: 1px 1px 0 var(--ink);
}
.sw-ui i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border: 2px solid var(--ink); }
.sw.on .sw-ui { background: var(--pink); }
.sw.on .sw-ui i { left: 20px; background: var(--yellow); }
.radio-pill { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--ink); padding: 5px 8px; background: #fff; }
.radio-pill.is-on { background: var(--yellow); }
.folder-admin { display: grid; gap: 8px; }
.folder-admin .it-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumb-pick { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; }
.thumb-pick img { width: 84px; height: 64px; object-fit: cover; border: 2px solid var(--ink); display: block; }

.shelf.tight { padding-top: 22px; }

@media (max-width: 900px) {
  .pkg-grid, .set-grid, .detail-head { grid-template-columns: 1fr; }
  .detail-cta { min-width: 0; }
  .pkg.is-featured { transform: none; }
}
@media (max-width: 640px) {
  .user-nav-top { display: none; }
  .user-pill .uname { display: none; }
  .pw-row, .card-acts, .price-fields { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; gap: 26px; }
  .folder-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  body.has-tabbar { padding-bottom: 78px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: var(--bw) solid var(--ink);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 8px 4px 12px; text-decoration: none; font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink);
  }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.is-on { background: var(--yellow); }
  .detail-title { font-size: clamp(26px, 8.4vw, 40px); }
  .nb-top .nb-actions .nb-btn.hide-sm { display: none; }
}
@media (min-width: 641px) {
  .bottom-nav { display: none !important; }
}

/* preview table polish */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.tbl td small { color: var(--muted); font-weight: 600; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ed-grid { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) {
  .ed-grid, .src-grid { grid-template-columns: 1fr !important; }
  .stats { grid-template-columns: 1fr 1fr !important; }
}

.gmark, .btn-google svg, .google-ok svg { width: 18px !important; height: 18px !important; flex: 0 0 18px; display: block; }
.google-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); background: #d6f5d9; font-weight: 700; }
.google-ok svg { width: 18px !important; height: 18px !important; }
.folder-card .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.folder-card .card-top { width: 100%; }
.folder-card .card-acts .nb-btn { width: 100%; }
.shop-card a.stack { color: inherit; text-decoration: none; display: block; }
.adm-nav .nb-btn.is-on { background: var(--yellow); }
.pkg { height: 100%; }
.pkg .body { display: flex; flex-direction: column; flex: 1; }
.pkg .body .inner { flex: 1; }
::placeholder { color: #8a867c; font-weight: 500; }
.nb-input::placeholder { color: #8a867c; font-weight: 500; }

/* Lightbox (album) */
.lb{position:fixed;inset:0;z-index:80;background:rgba(10,10,10,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px 24px}
.lb[hidden]{display:none}
.lb-stage{max-width:min(96vw,1200px);max-height:80vh;display:flex;align-items:center;justify-content:center}
.lb-stage img,.lb-stage video{max-width:96vw;max-height:80vh;border:4px solid var(--ink);background:#000}
.lb-cap{margin-top:12px;color:#fff;font-weight:700}
.lb-close,.lb-prev,.lb-next{position:absolute;background:var(--yellow);border:3px solid var(--ink);box-shadow:3px 3px 0 var(--ink);font:inherit;font-weight:800;cursor:pointer;width:44px;height:44px;font-size:22px}
.lb-close{top:12px;right:12px}
.lb-prev{left:12px;top:50%}
.lb-next{right:12px;top:50%}

/* Heavily censored covers (server-blurred; CSS is only framing) */
.folder-card .stack.is-censor,
.shop-card .stack.is-censor { background: #1a1814; }
.folder-card .censor-cover,
.shop-card .censor-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
