/* Neon-boudoir tokens — canonical values, copied from the brand standard.
   Dark-only by design, like the rest of the NXGF family. */
:root {
  --night: #0B0509;
  --pearl: #F2F2F2;
  --hotpink: #FF2DA6;
  --gold: #E7C873;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.045);
  --neon-soft: 0 0 14px rgba(255, 45, 166, 0.30);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--pearl);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

h1, h2, .gate-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 .4rem; }
a { color: var(--hotpink); }
.muted { color: rgba(242, 242, 242, 0.62); }
.small { font-size: .85rem; }
.wordmark { height: 38px; width: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line);
}
.top nav { display: flex; align-items: center; gap: 1rem; }

main { padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem); max-width: 1200px; margin: 0 auto; }
.intro { margin-bottom: 2rem; max-width: 46ch; }
.section-head { margin: 2.5rem 0 1rem; font-size: 1.2rem; }
.empty { padding: 3rem 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hotpink); color: #fff; border: 0; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; box-shadow: var(--neon-soft); transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(255, 45, 166, .45); }
.btn:focus-visible { outline: 2px solid var(--hotpink); outline-offset: 3px; }
.small-btn { padding: .4rem .9rem; font-size: .85rem; }
.danger { background: transparent; color: var(--hotpink); border: 1px solid var(--hotpink); box-shadow: none; }

/* --- grid ------------------------------------------------------------------ */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(255, 45, 166, .40); box-shadow: var(--neon-soft); }
.card img { display: block; width: 100%; height: auto; }
.card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem .9rem;
}
.meta { display: flex; flex-direction: column; min-width: 0; }
.meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.locked {
  margin-top: 2.5rem; padding: 1.5rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}

/* --- admin ----------------------------------------------------------------- */
.panel {
  display: grid; gap: .9rem; padding: 1.25rem; max-width: 560px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
label { display: grid; gap: .35rem; font-size: .9rem; color: rgba(242, 242, 242, .75); }
input, select {
  font: inherit; color: var(--pearl); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--hotpink); outline-offset: 1px; }

.rows { display: grid; gap: .75rem; }
.row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.rowthumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.rowform { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1; }
.rowform input[type=text] { flex: 1 1 140px; min-width: 0; }
.rowform input[type=number] { width: 7rem; }

footer {
  border-top: 1px solid var(--line); padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  margin-top: 3rem; display: grid; gap: .4rem;
}

/* --- age gate --------------------------------------------------------------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 1.5rem; background: rgba(11, 5, 9, .92); backdrop-filter: blur(10px);
}
.gate-card {
  display: grid; gap: .9rem; justify-items: center; text-align: center;
  max-width: 24rem; padding: 2rem; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
}
.gate-title { font-size: 1.4rem; margin: 0; }

.error {
  margin: 0 0 1rem; padding: .85rem 1rem; max-width: 560px;
  border: 1px solid var(--hotpink); border-radius: 12px;
  background: rgba(255, 45, 166, .10); color: var(--pearl);
}
button[disabled] { opacity: .6; cursor: default; }
