/* K BYE shared styles (auth, dashboard, office, admin, rules) */

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

:root {
  --pink: #ff2d8a;
  --pink-glow: rgba(255, 45, 138, 0.4);
  --pink-dim: rgba(255, 45, 138, 0.08);
  --white: #f0eae8;
  --muted: rgba(240, 234, 232, 0.5);
  --faint: rgba(240, 234, 232, 0.2);
  --bg: #080808;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --border-pink: rgba(255, 45, 138, 0.35);
  --ok: #64ffaa;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: var(--pink); }

.bg-image {
  position: fixed; inset: 0; z-index: 0;
  background: url('/images/bg.jpeg') center / cover no-repeat;
  opacity: 0.14;
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(8,8,8,.7), rgba(8,8,8,.5) 50%, rgba(8,8,8,.92));
}

/* Top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(8,8,8,.92), rgba(8,8,8,0));
}
.topbar a, .topbar button {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.topbar a:hover, .topbar button:hover { color: var(--white); }
.topbar .logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .05em;
  color: #fff; text-shadow: 0 0 20px var(--pink-glow);
}
.topbar .right { display: flex; gap: 20px; align-items: center; }

.page {
  position: relative; z-index: 10;
  max-width: 1100px; margin: 0 auto;
  padding: 96px 20px 80px;
}
.page.narrow { max-width: 440px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

/* Cards and headings */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
}
.card + .card { margin-top: 20px; }

h1, .h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(40px, 6vw, 64px); letter-spacing: .04em; line-height: 1;
}
h2, .h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 30px; letter-spacing: .05em; line-height: 1; margin-bottom: 6px;
}
.label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--pink);
  margin-bottom: 10px; display: block; font-weight: 400;
}
.sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.rule {
  width: 40px; height: 1px; background: var(--pink);
  box-shadow: 0 0 8px var(--pink-glow); margin: 18px 0;
}

/* Forms */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300;
  padding: 11px 13px; outline: none; border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--border-pink); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0;
}
.check input { margin-top: 3px; accent-color: var(--pink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: var(--pink); border: 1px solid var(--pink); color: #fff;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .14em;
  cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, opacity .2s;
}
.btn:hover { box-shadow: 0 0 30px var(--pink-glow); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--pink); box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 14px; }
.linkbtn {
  background: none; border: none; color: var(--pink); cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; text-decoration: underline; padding: 0;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 500;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,.96); border: 1px solid var(--border);
  font-size: 13px; padding: 12px 22px; max-width: calc(100vw - 32px);
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--pink); color: var(--pink); }
.toast.success { border-color: rgba(100,255,170,.4); color: var(--ok); }

/* Status pills and banners */
.pill {
  display: inline-block; padding: 3px 9px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; border: 1px solid var(--border); color: var(--muted);
}
.pill.approved { border-color: rgba(100,255,170,.4); color: var(--ok); }
.pill.pending { border-color: rgba(255,200,80,.5); color: #ffc850; }
.pill.rejected { border-color: var(--pink); color: var(--pink); }
.banner {
  border: 1px solid var(--border-pink); background: var(--pink-dim);
  padding: 14px 18px; font-size: 13px; line-height: 1.6; margin-bottom: 20px;
}

/* Lists */
.list { list-style: none; }
.list li {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.list li:last-child { border-bottom: none; }
.list .meta { font-size: 12px; color: var(--muted); }

/* Progress */
.progress { height: 3px; background: rgba(255,255,255,.08); margin-top: 8px; }
.progress > div { height: 100%; width: 0; background: var(--pink); box-shadow: 0 0 10px var(--pink-glow); transition: width .2s; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 400; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal .card { max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; position: relative; }
.modal .close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer;
}

.rules-list { list-style: none; counter-reset: r; }
.rules-list li {
  counter-increment: r; position: relative; padding: 10px 0 10px 34px;
  font-size: 14px; line-height: 1.7; color: var(--muted); border-bottom: 1px solid var(--border);
}
.rules-list li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 10px;
  font-family: 'Bebas Neue', sans-serif; color: var(--pink); font-size: 18px;
}
.rules-list strong { color: var(--white); font-weight: 400; }

.privacy { margin-top: 28px; scroll-margin-top: 20px; }
.privacy h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .03em; color: #fff; margin: 4px 0 8px; }
.privacy p { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 10px; }
.privacy strong { color: var(--white); font-weight: 400; }

.hidden { display: none !important; }

/* ---------- small neon buttons (also defined on the club page) ---------- */
.chip-btn {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); cursor: pointer;
  background: rgba(0,0,0,.45); border: 1px solid var(--border); padding: 9px 14px; font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .2s, border-color .2s, background .2s;
}
.chip-btn:hover { color: #fff; border-color: rgba(255,45,138,.5); }
.chip-btn[aria-pressed="true"] { color: #fff; border-color: var(--pink); background: rgba(255,45,138,.38); box-shadow: 0 0 14px var(--pink-glow); }

/* faded black bricks, drawn without an image */
.bricks {
  background: #0b060b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Crect width='64' height='32' fill='%230d070d'/%3E%3Crect x='3' y='3' width='58' height='11' fill='%23120a12'/%3E%3Crect x='-29' y='19' width='58' height='11' fill='%23100810'/%3E%3Crect x='35' y='19' width='58' height='11' fill='%23130b13'/%3E%3C/svg%3E") repeat;
}

/* ---------- an office, full screen (office-view.js) ---------- */
html.ov-lock, html.ov-lock body { overflow: hidden; }
.office-view { position: fixed; inset: 0; z-index: 300; display: none; background: #000; overflow: hidden; }
.office-view.open { display: block; }
.ov-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); }
.ov-stage { position: absolute; transform-origin: 0 0; }
.ov-stage img { width: 100%; height: 100%; display: block; }
.ov-avatar { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.ov-close { position: absolute; top: 16px; right: 16px; z-index: 5; }
.ov-info {
  position: absolute; left: 16px; bottom: 16px; z-index: 5; max-width: min(380px, calc(100vw - 32px));
  background: rgba(0,0,0,.75); border: 1px solid rgba(255,45,138,.45); padding: 14px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ov-name { font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: .95; color: #fff; letter-spacing: .03em; margin-top: 4px; }
.ov-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ov-genres span { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; border: 1px solid rgba(255,45,138,.45); padding: 3px 7px; }
.ov-bio { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ov-links { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.ov-hint { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* labels pinned on things in the room */
.ov-hot { position: absolute; transform: translate(-50%, -50%); z-index: 3; }
.ov-hot > button {
  display: flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; color: #fff; font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(0,0,0,.75); border: 1px solid var(--pink); padding: 7px 10px; box-shadow: 0 0 18px var(--pink-glow);
}
.ov-hot > button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: ov-pulse 1.6s infinite; }
@keyframes ov-pulse { 50% { transform: scale(1.6); opacity: .5; } }
.ov-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(340px, 80vw);
  max-height: 46vh; overflow: auto; background: rgba(5,2,5,.94); border: 1px solid rgba(255,45,138,.45); padding: 12px 14px; font-size: 12px; line-height: 1.7;
}
.ov-hot.open .ov-pop { display: block; }
.ov-pop ul { list-style: none; }
.ov-pop li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 5px 0; }
.ov-pop li span:first-child { color: var(--muted); white-space: nowrap; }
.ov-pop a { color: var(--pink); }
.ov-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.ov-pop button { background: none; border: none; color: #fff; cursor: pointer; font: inherit; text-align: left; }
.ov-pop button:hover { color: var(--pink); }
.ov-player {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; width: min(420px, calc(100vw - 32px));
  background: rgba(0,0,0,.85); border: 1px solid var(--pink); padding: 10px 12px;
}
.ov-now { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .05em; margin-bottom: 6px; }
.ov-player audio { width: 100%; height: 32px; }
.ov-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: min(420px, 100vw); overflow: auto;
  background: rgba(5,2,5,.96); border-left: 1px solid rgba(255,45,138,.45); padding: 60px 20px 20px;
}
.ov-drawer h2 { margin: 4px 0 14px; }
.ov-drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) {
  .ov-name { font-size: 30px; }
  .ov-bio, .ov-hint { display: none; }
  .ov-info { padding: 10px 12px; }
  .ov-player { bottom: auto; top: 60px; }
}

/* ---------- signed-in button + menu ---------- */
.me { position: relative; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.me-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px;
  background: rgba(5,2,5,.96); border: 1px solid rgba(255,45,138,.45); padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.me-menu a, .me-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 14px; font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--white); background: none; border: none; cursor: pointer; text-decoration: none; letter-spacing: 0; text-transform: none;
}
.me-menu a:hover, .me-menu button:hover { background: rgba(255,45,138,.15); color: #fff; }
.me-who { padding: 8px 14px 10px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; line-height: 1.5; }
.me-who b { color: var(--white); font-weight: 400; word-break: break-all; }
.ov-edit { position: absolute; top: 16px; right: 120px; z-index: 5; color: #fff; border-color: var(--pink); }

/* calibration panels (club floor, floor labels, rooms) */
.cal-panel {
  position: fixed; left: 16px; top: 70px; z-index: 500; width: min(360px, calc(100vw - 32px));
  background: rgba(0,0,0,.88); border: 1px solid var(--pink); padding: 14px; font-size: 12px; line-height: 1.6;
}
.cal-panel b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 20px; color: #fff; letter-spacing: .04em; }
.cal-panel p { color: var(--muted); margin: 6px 0; }
.cal-panel select { width: 100%; margin: 6px 0; background: #000; color: var(--white); border: 1px solid var(--border); padding: 6px; font: inherit; }
.cal-panel textarea { width: 100%; background: #000; color: var(--white); border: 1px solid var(--border); font: 11px/1.5 monospace; padding: 6px; margin: 6px 0; resize: none; }
.cal-panel [data-fold] { cursor: pointer; }
.cal-panel.folded > :not([data-fold]) { display: none; }
