/* ==========================================================================
   Nexus Club — habillage complet
   ========================================================================== */

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

[hidden] { display: none !important; }

:root {
  --bg: #06030f;
  --bg-2: #0c0720;
  --bg-3: #140a2e;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: #150c2e;
  --line: rgba(168, 85, 247, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f6f4ff;
  --muted: #a79fc4;
  --purple: #a855f7;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --lime: #a3e635;
  --orange: #fb923c;
  --gold: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 40px rgba(168, 85, 247, 0.28);
  --nav-h: 70px;
  --header-h: 62px;
  --maxw: 1180px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: floaty 16s ease-in-out infinite alternate;
}
body::before { top: -14vw; left: -18vw; background: var(--violet); }
body::after { bottom: -18vw; right: -18vw; background: var(--cyan); animation-delay: -6s; }

@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 5vh, 0) scale(1.15); }
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 5vw, 2.1rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 12px; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------ Ecran d'ouverture ----------------------- */
#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #06030f;
}
#app-splash.show { display: flex; animation: splashOut 0.4s ease 1.2s forwards; }
#app-splash img { border-radius: 24px; box-shadow: var(--shadow-glow); }
#app-splash .splash-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--cyan);
}
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.admin-body #app-splash { background: #12082a; }

/* ------------------------------ En-tete --------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: rgba(8, 4, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.admin-body .app-header { background: rgba(18, 8, 42, 0.82); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  flex: 0 0 auto;
}
.admin-body .brand-mark { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-avatar img, .header-avatar-fallback {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--purple);
}
.header-avatar-fallback {
  display: grid; place-items: center; background: var(--violet); font-weight: 700; color: #fff;
}

/* ------------------------------ Boutons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.btn-neon {
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  color: #04202a;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.32);
}
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-soft); }
.btn-danger { background: rgba(239, 68, 68, 0.16); color: #fecaca; border-color: rgba(239, 68, 68, 0.4); }
.btn-mini { padding: 8px 13px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------ Structure ------------------------------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.section { margin: 0 0 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card.solid { background: var(--card-strong); }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.card-title svg { color: var(--cyan); flex: 0 0 auto; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 30px 20px;
  margin-bottom: 26px;
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(168, 85, 247, 0.45), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(34, 211, 238, 0.38), transparent 55%),
    linear-gradient(160deg, #17092f, #06030f);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
}
.hero-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
.hero-image { position: relative; border-radius: 20px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.35), rgba(6, 3, 15, 0.55));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.02rem; color: #ddd7f5; max-width: 56ch; }

/* ------------------------------ Statistiques ---------------------------- */
.stat {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 15px;
  text-align: center;
}
.admin-body .stat { background: rgba(255, 255, 255, 0.06); }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ------------------------------ Salles ---------------------------------- */
.room-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.25s ease;
}
.room-card:active { transform: scale(0.97); }
.room-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 3, 15, 0.1), rgba(6, 3, 15, 0.92));
}
.room-body { padding: 15px 16px 17px; position: relative; }
.room-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 3, 15, 0.7); border: 1px solid var(--line-soft);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600;
  color: #fff;
}
.room-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--muted); margin-top: 8px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
.pulse-dot.calm { background: #64748b; box-shadow: none; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.25); } }

.energy-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 10px; }
.energy-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width 0.5s ease; }

/* ------------------------------ Avatars --------------------------------- */
.avatar-grid { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avatar-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-strong);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  padding: 0;
  transition: transform 0.12s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.avatar-card:active { transform: scale(0.97); }
.avatar-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5); }
.avatar-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.avatar-card:hover .avatar-photo img { transform: scale(1.06); }
.avatar-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 3, 15, 0.94));
}
.avatar-meta { padding: 11px 13px 13px; }
.avatar-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.98rem; }
.avatar-species { font-size: 0.76rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.07em; }
.avatar-accroche { font-size: 0.79rem; color: var(--muted); margin-top: 5px; }
.avatar-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(6, 3, 15, 0.75); border: 1px solid var(--line-soft); color: #fff;
}
.cat-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.cat-filter::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.chip:active { transform: scale(0.97); }
.chip.active { background: linear-gradient(120deg, var(--violet), var(--pink)); color: #fff; border-color: transparent; }

/* ------------------------------ Piste de danse -------------------------- */
.floor {
  position: relative;
  border-radius: 22px;
  padding: 20px 14px;
  min-height: 300px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 46px),
    radial-gradient(90% 90% at 50% 0%, rgba(168, 85, 247, 0.35), transparent 65%),
    linear-gradient(180deg, #150a2d, #08041a);
  border: 1px solid var(--line);
  overflow: hidden;
}
.floor.live { box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.22); }
.floor-dancers { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dancer {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}
.dancer:active { transform: scale(0.97); }
.dancer img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dancer-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px 7px;
  font-size: 0.74rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(6, 3, 15, 0.95));
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.dancer-likes { color: var(--gold); font-size: 0.72rem; }
.dancer.off { opacity: 0; transform: scale(0.6); pointer-events: none; }
.dancer-off { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.8rem; }
.dancer.dancing { animation: bounce 0.62s ease-in-out infinite; }
.dancer.dancing:nth-child(2n) { animation-delay: 0.12s; }
.dancer.dancing:nth-child(3n) { animation-delay: 0.24s; }
.dancer.dancing:nth-child(5n) { animation-delay: 0.36s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
.dancer .like-float {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.68rem; font-weight: 700; color: #fff;
  background: rgba(236, 72, 153, 0.85);
  padding: 2px 7px; border-radius: 999px;
}
.floor-empty { text-align: center; color: var(--muted); padding: 46px 10px; }

/* ------------------------------ Platines -------------------------------- */
.booth { display: grid; gap: 14px; grid-template-columns: 1fr; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: #000;
  border: 1px solid var(--line);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 20px;
}
.platter {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-soft);
}
.disc {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto;
  background:
    radial-gradient(circle at center, #0b0618 0 16%, transparent 17%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 4px),
    conic-gradient(from 0deg, var(--purple), var(--cyan), var(--pink), var(--purple));
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.4);
}
.disc.spin { animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-playing { min-width: 0; }
.now-playing .titre { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.now-playing .artiste { font-size: 0.84rem; color: var(--muted); }
.track-list { display: grid; gap: 8px; }
.track-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.2s ease;
  color: var(--text); text-align: left; width: 100%;
}
.track-item:active { transform: scale(0.98); }
.track-item.active { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.track-index { width: 24px; text-align: center; color: var(--muted); font-size: 0.82rem; flex: 0 0 auto; }

/* ------------------------------ File DJ --------------------------------- */
.queue-current {
  border-radius: 16px; padding: 15px;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid var(--line);
}
.queue-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  margin-top: 8px;
}
.queue-row.me { border: 1px solid var(--cyan); }
.queue-pos {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem; font-weight: 700;
}
.queue-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-soft); }
.countdown {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--cyan);
}
.progress-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width 1s linear; }

/* ------------------------------ Tchat ----------------------------------- */
.chat-box {
  display: flex; flex-direction: column;
  height: min(58vh, 460px);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 9px; align-items: flex-start; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line-soft); }
.chat-body { background: rgba(255, 255, 255, 0.06); border-radius: 13px; padding: 8px 12px; max-width: 82%; }
.chat-author { font-size: 0.76rem; font-weight: 700; color: var(--cyan); }
.chat-text { font-size: 0.92rem; word-break: break-word; }
.chat-time { font-size: 0.68rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); background: rgba(6, 3, 15, 0.6); }
.chat-form input { flex: 1; }

/* ------------------------------ Formulaires ----------------------------- */
label { display: block; font-size: 0.83rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.field { margin-bottom: 14px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }

.auth-shell { max-width: 460px; margin: 0 auto; }
.auth-shell .card { padding: 22px; }

.alert {
  border-radius: 13px; padding: 11px 14px; font-size: 0.88rem; margin-bottom: 13px;
  border: 1px solid transparent;
}
.alert-error { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.42); color: #fecaca; }
.alert-success { background: rgba(163, 230, 53, 0.13); border-color: rgba(163, 230, 53, 0.4); color: #d9f99d; }
.alert-info { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.36); color: #cffafe; }

/* ------------------------------ Navigation basse ------------------------ */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 5, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.admin-body .bottom-nav { background: rgba(20, 9, 44, 0.76); }
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 3px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.66rem; font-weight: 600;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.97); }
.nav-item.active { background: linear-gradient(120deg, rgba(124, 58, 237, 0.9), rgba(236, 72, 153, 0.85)); color: #fff; }
.admin-body .nav-item.active { background: linear-gradient(120deg, rgba(236, 72, 153, 0.9), rgba(124, 58, 237, 0.85)); }
.nav-icon { display: grid; place-items: center; }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ------------------------------ Modal installation ---------------------- */
.install-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(3, 1, 9, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.install-modal { max-width: 400px; width: 100%; text-align: center; }
.install-modal h4 { margin-bottom: 10px; }
.install-logos { display: flex; justify-content: center; gap: 12px; margin: 14px 0 16px; }
.install-logo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-soft);
  font-size: 0.84rem; font-weight: 600;
}

/* ------------------------------ Divers ---------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}
.pill.ok { background: rgba(163, 230, 53, 0.16); color: var(--lime); }
.pill.warn { background: rgba(251, 191, 36, 0.16); color: var(--gold); }
.pill.off { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.pill.live { background: rgba(34, 211, 238, 0.18); color: var(--cyan); }

.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.list-row:last-child { border-bottom: 0; }

.toast-wrap {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px);
}
.toast {
  padding: 12px 15px; border-radius: 13px;
  background: rgba(20, 10, 44, 0.96); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 0.88rem;
  animation: toastIn 0.28s ease;
}
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.toast.success { border-color: rgba(163, 230, 53, 0.45); color: #d9f99d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.footer-note {
  text-align: center; color: var(--muted); font-size: 0.8rem;
  padding: 22px 10px 6px; border-top: 1px solid var(--line-soft); margin-top: 22px;
}

/* ------------------------------ Administration -------------------------- */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
table.admin-table th, table.admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.admin-table th { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.07em; }
table.admin-table tr:active { background: rgba(255, 255, 255, 0.03); }
.admin-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.chart-box { position: relative; height: 240px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-row .bar-label { width: 74px; font-size: 0.78rem; color: var(--muted); flex: 0 0 auto; }
.bar-track { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.bar-value { font-size: 0.78rem; color: var(--muted); width: 46px; text-align: right; flex: 0 0 auto; }
.gate { max-width: 460px; margin: 40px auto; }

/* ------------------------------ Responsive ------------------------------- */
@media (min-width: 420px) {
  .floor-dancers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booth { grid-template-columns: 1.3fr 0.7fr; }
  .salon-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
  .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .floor-dancers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .page { padding: 26px 22px 54px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avatar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .floor-dancers { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .salon-col { display: block; }
  .hero { padding: 24px 16px; }
}
