:root {
  --yellow: #D4FF00;
  --yellow-dim: #8BA800;
  --yellow-glow: rgba(212,255,0,0.15);
  --black: #0A0A0A;
  --dark: #111111;
  --bg: #111111;
  --bg-layer: #111111;
  --surface: #181818;
  --surface2: #202020;
  --border: rgba(212,255,0,0.18);
  --border-dim: rgba(255,255,255,0.06);
  --text: #E8E8E8;
  --text-dim: #999;
  --red: #FF3A2D;
  --green: #39FF14;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;

  /* ── Role colours ───────────────────────────────── */
  --role-admin:  #FF3A2D;          /* rouge */
  --role-active: #00D4C8;          /* turquoise */
  --role-member: #39FF14;          /* vert */
  --role-none:   #bebebe;          /* gris */
}

html {
  box-sizing: border-box;
  scroll-behavior: auto !important;
}
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  background: var(--black); 
  color: var(--text); 
  font-family: var(--font-body); 
  overflow-x: clip; 
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  touch-action: pan-x pan-y;
}

body::-webkit-scrollbar {
  display: none;
}

/* NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
}

#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* GLOBAL ENTRANCE ANIMATION */
@keyframes fadeInUpBlur {
  0% { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.initial-load .logo > div, .initial-load .header-right > *, .initial-load main > * {
  animation: fadeInUpBlur 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}

/* Stagger order */
.initial-load .logo > div { animation-delay: 0s; }
.initial-load .header-right > * { animation-delay: 0.1s; }
.initial-load main > *:not(.site-footer) { animation-delay: 0.2s; }

/* Reveal on Scroll */
.reveal-on-scroll { opacity: 0; }
.reveal-on-scroll.revealed { animation: fadeInUpBlur 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }

/* SLOT ANIMATION (ON BOOKING) */
@keyframes slotPop {
  0% { transform: scale(0.9); opacity: 0; filter: blur(6px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}
.slot-animate {
  animation: slotPop 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  position: relative;
  z-index: 20;
}

@keyframes event-pop-out {
  0% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
  30% { transform: scale(1.05) translateY(-5px); opacity: 1; filter: blur(0); }
  100% { transform: scale(0.6) translateY(20px); opacity: 0; filter: blur(10px); }
}

.event-block-deleted {
  animation: event-pop-out 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  z-index: 100;
}


/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(10,10,10,0.95); backdrop-filter: blur(8px);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.mobile-hamburger { display: none !important; background: transparent; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.mobile-hamburger:hover { color: var(--yellow); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 2px rgba(212,255,0,0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(212,255,0,0.9)); }
  100% { filter: drop-shadow(0 0 2px rgba(212,255,0,0.3)); }
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; animation: glowPulse 2.5s ease-in-out infinite; }
.logo-text {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 3px; color: var(--yellow); line-height: 1;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right > * {
  animation: headerItemFadeIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes headerItemFadeIn {
  0% { opacity: 0; filter: blur(3px); transform: scale(0.95); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
.header-login-notice {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-right: 15px;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .header-login-notice { display: none; }
}
.user-badge {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border-dim); padding: 4px 10px; border-radius: 2px;
  display: flex; align-items: center; gap: 6px;
}
.role-dot { width: 6px; height: 6px; border-radius: 50%; }
.role-dot.admin  { background: var(--role-admin);  box-shadow: 0 0 6px rgba(255,58,45,0.7); }
.role-dot.active { background: var(--role-active); box-shadow: 0 0 6px rgba(0,212,200,0.7); }
.role-dot.member { background: var(--role-member); box-shadow: 0 0 6px rgba(57,255,20,0.5); }
.role-dot.none   { background: var(--role-none); }

/* BUTTONS */
.btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; border: none;
  padding: 8px 16px; border-radius: 2px; transition: all .15s;
}
.btn-yellow { background: var(--yellow); color: #000; border: none; font-weight: 600; }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,255,0,0.3); }
.btn-gigs { transition: all 0.2s ease; }
.btn-gigs:hover { box-shadow: 0 0 12px rgba(212,255,0,0.6); background: rgba(212,255,0,0.1); }

.btn-solid-red { background: var(--red); color: #000; border: none; font-weight: 600; }
.btn-solid-red:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,58,45,0.4); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border-dim); }
.btn-ghost:hover { border-color: var(--border); color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(255,58,45,0.3); }
.btn-danger:hover { background: rgba(255,58,45,0.1); }

.btn-close-glow {
  background: rgba(255,58,45,0.05);
  color: var(--red);
  border: 1px solid rgba(255,58,45,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  padding: 0;
  font-size: 18px;
  transition: all 0.2s ease;
}
.btn-close-glow:hover {
  background: rgba(255,58,45,0.15);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(255,58,45,0.6);
  transform: scale(1.05);
}

.btn-sm { padding: 0 10px; font-size: 10px; height: 28px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; white-space: nowrap; }
.btn-square { width: 28px; padding: 0; }
.btn-icon { display: none; }
.btn-label { display: block; }

/* MAIN LAYOUT */
main { 
  display: flex;
  flex-direction: column;
  flex: 1; 
  padding: 24px 50px; 
  margin: 60px auto 0; 
  width: 100%; 
}

/* WEEK NAV */
.week-nav {
  display: flex; align-items: center; margin-bottom: 16px; gap: 0; width: 100%;
}
.view-toggle-container {
  flex: 0 0 50%; max-width: 50%; min-width: 0; overflow: hidden;
  display: flex; align-items: center;
}
.week-nav-controls {
  flex: 0 0 50%; max-width: 50%; min-width: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap;
}
.week-title {
  font-family: var(--font-display); font-size: 28px;
  color: var(--yellow); letter-spacing: 3px;
}
.week-info { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }

/* WEEK TAGS */
.week-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}
.week-tag.current {
  background: rgba(212,255,0,0.12); color: var(--yellow);
  border: 1px solid rgba(212,255,0,0.3);
}
.week-tag.future {
  background: rgba(255,58,45,0.08); color: var(--red);
  border: 1px solid rgba(255,58,45,0.25);
}
.week-tag.past {
  background: var(--surface2); color: var(--text-dim);
  border: 1px solid var(--border-dim);
}

/* FIREWALL NOTICE */
.firewall-notice {
  background: rgba(255,58,45,0.06); border: 1px solid rgba(255,58,45,0.2);
  border-radius: 2px; padding: 10px 16px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.5px;
}

/* QUOTA BAR */
.quota-bar {
  background: var(--surface); border: 1px solid var(--border-dim);
  border-radius: 2px; padding: 12px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.quota-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.quota-track { flex: 1; min-width: 120px; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.quota-fill { height: 100%; background: var(--yellow); border-radius: 2px; transition: width .3s; }
.quota-fill.full { background: var(--red); }
.quota-num { font-family: var(--font-mono); font-size: 12px; color: var(--yellow); }

/* CALENDAR GRID */
.cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cal-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(100px, 1fr));
  gap: 0;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  overflow: hidden;
  min-width: 752px;
}
.cal-header-empty { background: var(--surface); border-bottom: 1px solid var(--border-dim); }
.cal-day-header {
  background: var(--surface); border-bottom: 1px solid var(--border-dim);
  border-left: 1px solid var(--border-dim);
  padding: 10px 6px; text-align: center;
}
.day-name { font-family: var(--font-display); font-size: 16px; letter-spacing: 2px; color: var(--text); }
.day-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.day-header-today .day-name { color: var(--yellow); }
.day-header-today .day-date { color: var(--yellow-dim); }






.time-label {
  background: var(--surface); border-top: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
  font-family: var(--font-mono); font-size: 9px; color: var(--text-dim);
  height: 44px;
}

/* CALENDAR SLOTS */
.cal-slot {
  border-top: 1px solid var(--border-dim); border-left: 1px solid var(--border-dim);
  height: 44px; position: relative; overflow: hidden;
}

/* Free bookable slot — show + button on hover */
.cal-slot:not(.past):not(.booked-me):not(.booked-other):not(.locked) {
  cursor: default;
}
.cal-slot:not(.past):not(.booked-me):not(.booked-other):not(.locked):hover {
  background: var(--yellow-glow);
}

.cal-slot.past { 
  position: relative;
  border-color: rgba(255,255,255,0.04);
}
.cal-slot.past::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.12) 10px, rgba(255,255,255,0.12) 11px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.12) 10px, rgba(255,255,255,0.12) 11px);
  background-position: var(--mesh-x, 0) var(--mesh-y, 0);
}
.cal-slot.locked { opacity: 0.4; cursor: not-allowed; }

.slot-cancel-animate { animation: slotSink 0.35s cubic-bezier(0.1, 0.9, 0.2, 1); }
@keyframes slotSink {
  0% { transform: scale(1.05); background: rgba(255, 58, 45, 0.4); opacity: 1; }
  100% { transform: scale(1); background: transparent; opacity: 1; }
}

/* Slots by booking owner's role */
.cal-slot.booked-admin  { background: rgba(255,58,45,0.10);  border-left: 3px solid var(--role-admin); }
.cal-slot.booked-active { background: rgba(0,212,200,0.08);  border-left: 3px solid var(--role-active); }
.cal-slot.booked-member { background: rgba(57,255,20,0.07);  border-left: 3px solid var(--role-member); }
.cal-slot.booked-none   { background: rgba(85,85,85,0.07);   border-left: 3px solid var(--role-none); }
/* My own slot gets a yellow tint + the role border */
.cal-slot.booked-me-admin  { background: rgba(255,58,45,0.18); border-left: 3px solid var(--role-admin); }
.cal-slot.booked-me-active { background: rgba(0,212,200,0.18); border-left: 3px solid var(--role-active); }
.cal-slot.booked-me-member { background: rgba(57,255,20,0.18); border-left: 3px solid var(--role-member); }
.cal-slot.booked-me-none   { background: rgba(85,85,85,0.15);  border-left: 3px solid var(--role-none); }

/* + ADD BUTTON (appears on hover of free slot) */
.slot-add-btn {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--yellow); color: #000;
  border: none; border-radius: 2px; cursor: pointer;
  font-size: 14px; line-height: 18px; text-align: center;
  font-weight: 700; font-family: var(--font-mono);
  opacity: 0; transition: opacity .12s;
  padding: 0;
}
.cal-slot:hover .slot-add-btn { opacity: 1; }

/* SLOT LABEL (booked slots) */
.slot-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px;
  font-family: var(--font-mono); font-size: 9px;
  overflow: hidden;
}
.slot-label.mine   { color: var(--yellow); }
.slot-label.admin  { color: var(--role-admin); }
.slot-label.active { color: var(--role-active); }
.slot-label.member { color: var(--role-member); }
.slot-label.none   { color: var(--role-none); }

.slot-owner-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}

/* CANCEL / DELETE BUTTON inside booked slot */
.slot-cancel-btn {
  flex-shrink: 0;
  width: 16px; height: 16px;
  background: rgba(255,58,45,0.15); color: var(--red);
  border: 1px solid rgba(255,58,45,0.3); border-radius: 2px;
  cursor: pointer; font-size: 10px; line-height: 16px; text-align: center;
  padding: 0; font-family: var(--font-mono);
  opacity: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  margin-left: 4px;
}
.slot-cancel-btn:hover {
  background: rgba(255,58,45,0.35);
  border-color: rgba(255,58,45,0.6);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255,58,45,0.3);
}
.slot-cancel-btn:active {
  transform: scale(0.95);
  transition-duration: 0.08s;
}

.slot-cancel-btn.admin-del {
  background: rgba(255,58,45,0.2); color: var(--red);
  border-color: rgba(255,58,45,0.5);
  opacity: 0; transition: opacity .15s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cal-slot:hover .slot-cancel-btn.admin-del { opacity: 1; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: overlayFadeIn 0.5s ease-out forwards;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.modal-overlay.fade-out {
  animation: overlayFadeOut 0.5s ease-in forwards;
}
@media (max-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px 12px;
  }
  .modal {
    margin: auto;
  }
}
@keyframes modalGlitch {
  0% { opacity: 0; }
  5% { opacity: 1; }
  10% { opacity: 0; }
  15% { opacity: 1; }
  20% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  60% { opacity: 1; }
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; width: 100%; max-width: 420px;
  padding: 28px; position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: modalGlitch 0.45s steps(1, end) forwards;
}
.modal-title {
  font-family: var(--font-display); font-size: 24px;
  color: var(--yellow); letter-spacing: 3px; margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 1px; margin-bottom: 6px;
}
.form-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border-dim);
  color: var(--text); font-family: var(--font-mono); font-size: 13px;
  padding: 10px 12px; border-radius: 2px; outline: none;
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--yellow); }
.form-input[type="date"] { color-scheme: dark; }
.field-error { 
  border-color: var(--red) !important; 
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
::placeholder { color: rgba(255, 255, 255, 0.2); }
::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.2); }
::-moz-placeholder { color: rgba(255, 255, 255, 0.2); }
:-ms-input-placeholder { color: rgba(255, 255, 255, 0.2); }
.form-error { font-family: var(--font-mono); font-size: 10px; color: var(--red); margin-top: 4px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 20px; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; }

/* SETTINGS MODAL */
.modal-settings { max-width: 600px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.settings-layout { display: flex; flex-direction: row; align-items: stretch; height: 400px; }
.settings-sidebar {
  width: 220px; background: var(--surface2); border-right: 1px solid var(--border-dim);
  display: flex; flex-direction: column; padding: 20px 0; flex-shrink: 0;
}
.settings-tab {
  background: none; border: none; text-align: left; padding: 12px 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  cursor: pointer; transition: 0.2s; border-left: 2px solid transparent;
}
.settings-tab:hover { background: rgba(255,255,255,0.02); color: var(--text); }
.settings-tab.active { color: var(--yellow); border-left-color: var(--yellow); background: rgba(212,255,0,0.05); }

.settings-content { 
  flex: 1; 
  padding: 24px; 
  overflow-y: auto; 
  position: relative; 
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.settings-content::-webkit-scrollbar {
  display: none;
}
.settings-pane { display: none; }
.settings-pane.active { display: block; animation: blurFadeIn 0.3s forwards; }
.settings-pane-title {
  font-family: var(--font-display); font-size: 20px; color: var(--yellow);
  letter-spacing: 2px; margin-bottom: 20px;
}
@media (max-width: 640px) {
  .settings-layout { flex-direction: column; height: auto; display: flex; min-height: 100%;}
  .settings-sidebar { 
    width: 100%; background: transparent; border-right: none; border-bottom: none; 
    flex-direction: row; overflow-x: auto; padding: 16px; gap: 6px; justify-content: center; align-items: stretch;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .settings-sidebar::-webkit-scrollbar { display: none; }
  .settings-content { overflow: visible; padding: 0 16px 16px 16px; }
  .settings-tab { 
    padding: 8px 4px; border-left: none; border: 1px solid var(--border-dim); 
    border-radius: 4px; white-space: normal; text-align: center; flex: 1; font-size: 10px; line-height: 1.2;
    display: flex; align-items: center; justify-content: center;
  }
  .settings-tab.active { border-color: var(--yellow); background: rgba(212,255,0,0.05); border-left-color: var(--yellow); }
}

/* HEADER TOOLTIP */
.role-tooltip-container { position: relative; display: flex; align-items: center; gap: 6px; cursor: help; }
.role-tooltip {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 300px; margin-left: -150px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px; z-index: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0; pointer-events: none; transform: translateY(-5px);
  transition: 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  display: flex; flex-direction: column; gap: 16px;
}
.role-tooltip-container.tooltip-open .role-tooltip {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
@media (hover: hover) {
  .role-tooltip-container:hover .role-tooltip {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
}
.tooltip-item {
  display: flex; align-items: flex-start; gap: 8px; text-align: left;
}
.tooltip-item .role-dot { margin-top: 5px; flex-shrink: 0; }
.tooltip-text { flex: 1; display:flex; flex-wrap:wrap; align-items:center; gap: 4px; line-height: 1.4; }
.tooltip-role-name { 
  font-family: var(--font-display); font-size: 15px; color: var(--yellow); letter-spacing: 1px; white-space: nowrap; 
}
.tooltip-role-desc { 
  font-family: var(--font-mono); font-size: 10px; color: var(--text); 
}

/* ADMIN PANEL */
.admin-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; margin-top: 28px; overflow: hidden;
}
.admin-table-container {
  overflow-x: auto;
}
.user-name-col {
  max-width: 140px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}
.admin-panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.admin-panel-body {
  height: 420px; overflow-y: auto; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.admin-panel-body::-webkit-scrollbar { display: none; }
.admin-title {
  font-family: var(--font-display); font-size: 20px;
  color: var(--yellow); letter-spacing: 3px; margin-bottom: 0;
  display: flex; align-items: center; gap: 10px;
}
.admin-badge {
  font-family: var(--font-mono); font-size: 9px;
  background: var(--yellow); color: #000; padding: 2px 6px; border-radius: 2px;
}
.user-table { width: 100%; border-collapse: collapse; }
.user-table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface2);
  font-family: var(--font-mono); font-size: 9px; color: var(--text-dim);
  letter-spacing: 1px; text-align: left; padding: 6px 8px;
  border-bottom: 1px solid var(--border-dim);
}
.user-table td {
  font-family: var(--font-mono); font-size: 11px;
  padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.user-table tr:hover td { background: rgba(255,255,255,0.02); }
.role-pill {
  display: inline-block; font-size: 9px; padding: 2px 0; border-radius: 1px;
  letter-spacing: 1px; text-transform: uppercase; width: 95px; text-align: center;
}
.role-pill.admin  { background: rgba(255,58,45,0.12);  color: var(--role-admin);  border: 1px solid rgba(255,58,45,0.3); }
.role-pill.active { background: rgba(0,212,200,0.10);  color: var(--role-active); border: 1px solid rgba(0,212,200,0.3); }
.role-pill.member { background: rgba(57,255,20,0.08);  color: var(--role-member); border: 1px solid rgba(57,255,20,0.25); }
.role-pill.none   { background: rgba(85,85,85,0.12);   color: var(--role-none);   border: 1px solid rgba(85,85,85,0.3); }
/* ROLE DROPDOWN (admin table: merged display + edit) */
.role-dd-self {
  display: inline-flex; align-items: center; height: 28px;
  font-size: 10px; color: var(--text-dim); font-family: var(--font-mono);
}
.admin-view-toggle-wrap {
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  width: 100%;
  max-height: 48px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-view-toggle-wrap.admin-view-toggle-hide {
  max-height: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  pointer-events: none;
}
.role-dd-trigger {
  font-family: var(--font-mono); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  width: 130px; padding: 5px 8px; text-align: left;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.role-dd-trigger:hover { filter: brightness(1.3); transform: translateY(-1px); }
.role-dd-trigger:focus-visible { outline: 1px solid var(--yellow); outline-offset: 2px; }
.role-dd-trigger.open { box-shadow: 0 0 0 1px currentColor; }
.role-dd-chevron {
  font-size: 7px; line-height: 1; opacity: 0.8; flex-shrink: 0;
  transition: transform 0.2s;
}
.role-dd-trigger.open .role-dd-chevron { transform: rotate(180deg); }
.role-dd-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-dd-trigger.loading { cursor: progress; opacity: 0.75; transform: none; filter: none; }
.role-dd-trigger.loading .role-dd-chevron {
  font-size: 0; width: 8px; height: 8px; opacity: 1;
  border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: adminSpin 0.6s linear infinite;
}
.role-dd-trigger.role-dd-error { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }

/* Menu is portaled to <body> with position:fixed so table overflow can't clip it */
.role-dd-menu {
  position: fixed; z-index: 1000;
  display: flex; flex-direction: column; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: dropdownIn 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.role-dd-menu.open-up { animation-name: dropdownInUp; }
@keyframes dropdownInUp { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
.role-dd-option {
  width: 100%; box-sizing: border-box; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; text-align: left; cursor: pointer; outline: none;
  transition: filter 0.15s, box-shadow 0.15s;
}
.role-dd-option.focused { filter: brightness(1.35); box-shadow: 0 0 0 1px var(--yellow); }
.role-dd-option.current { box-shadow: inset 0 0 0 1px currentColor; }
.role-dd-option.current.focused { box-shadow: inset 0 0 0 1px currentColor, 0 0 0 1px var(--yellow); }
.role-dd-check { font-size: 11px; min-width: 10px; text-align: right; }
@media (pointer: coarse) {
  .role-dd-option { padding: 12px 12px; font-size: 11px; }
  .role-dd-trigger { padding: 7px 10px; }
}
.admin-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px; padding: 8px 16px;
  transition: border-color .2s;
  height: 48px; /* Fixed height */
  box-sizing: border-box;
}
.admin-search-wrap:focus-within { border-color: rgba(212, 255, 0, 0.4); }
.admin-search-icon {
  font-size: 18px; color: var(--text-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; /* Fixed dimensions */
}
.admin-search-input {
  background: none; border: none; outline: none;
  font-family: var(--font-display); font-size: 18px; letter-spacing: 1px;
  color: var(--text); flex-grow: 1; text-transform: uppercase;
}
.admin-search-input::placeholder { color: var(--text-dim); }

.admin-search-clear {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  flex-shrink: 0;
}
.admin-search-clear.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.admin-search-clear:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.admin-panel .admin-search-wrap {
  height: 28px;
  padding: 4px 10px;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
}
.admin-panel .admin-search-wrap:focus-within { border-color: var(--border); }
.admin-panel .admin-search-icon {
  font-size: 14px;
  width: 14px; height: 14px;
}
.admin-panel .admin-search-input {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px;
  width: 180px; flex-grow: 0;
}
.admin-panel .admin-search-clear {
  width: 15px; height: 15px;
  border-width: 1px;
  font-size: 9px;
}

/* ADMIN LOADING SPINNER */
.admin-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: adminSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}
@keyframes adminSpin { to { transform: rotate(360deg); } }

.admin-panel .admin-search-icon .admin-spinner {
  margin-right: 0;
}

/* ADMIN USER ANIMATIONS */
@keyframes userRowIn {
  0% { opacity: 0; transform: translateX(-30px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
.user-row-in {
  animation: userRowIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes userRowOut {
  0% { opacity: 1; transform: translateX(0); filter: blur(0); }
  100% { opacity: 0; transform: translateX(40px); filter: blur(8px); }
}
.user-row-out {
  animation: userRowOut 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.user-row-collapse td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  font-size: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) !important;
}
.user-row-collapse td * {
  max-height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) !important;
}

/* LOCAL STATUS BANNER */
.local-status-banner {
  text-align: center;
  padding: 8px 0;
  margin-bottom: 8px;
}
.local-status-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}
.local-status-name {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.1;
  margin: 4px 0;
}
.local-status-name.admin {
  color: var(--role-admin);
  text-shadow: 0 0 12px rgba(255,58,45,0.6), 0 0 30px rgba(255,58,45,0.3);
}
.local-status-name.active {
  color: var(--role-active);
  text-shadow: 0 0 12px rgba(0,240,255,0.6), 0 0 30px rgba(0,240,255,0.3);
}
.local-status-name.member {
  color: var(--role-member);
  text-shadow: 0 0 12px rgba(57,255,20,0.6), 0 0 30px rgba(57,255,20,0.3);
}
.local-status-available {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 4px;
  line-height: 1.1;
  margin: 4px 0;
  text-shadow: 0 0 20px rgba(212,255,0,0.3);
}

/* LEGEND */
.legend-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; width: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
}
.legend-dot { width: 12px; height: 12px; border-radius: 1px; }
.legend-dot.free   { background: var(--surface2); border: 1px solid var(--border-dim); }
.legend-dot.admin  { background: rgba(255,58,45,0.15); border-left: 3px solid var(--role-admin); }
.legend-dot.active { background: rgba(0,212,200,0.12); border-left: 3px solid var(--role-active); }
.legend-dot.member { background: rgba(57,255,20,0.10); border-left: 3px solid var(--role-member); }
.legend-dot.none   { background: rgba(85,85,85,0.10);  border-left: 3px solid var(--role-none); }

/* TOAST */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--yellow); padding: 10px 16px; border-radius: 2px;
  pointer-events: all; animation: toastIn .3s cubic-bezier(0.1, 0.9, 0.2, 1) both; 
  max-width: 280px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.toast.err { border-color: rgba(255,58,45,0.5); color: var(--red); }
.toast.out { animation: toastOut .3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }

@keyframes toastIn { 
  from { transform: translateY(20px); opacity: 0; filter: blur(4px); } 
  to { transform: translateY(0); opacity: 1; filter: blur(0); } 
}
@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; filter: blur(0); }
  to { transform: translateY(-20px); opacity: 0; filter: blur(4px); }
}

/* VIEW TOGGLE */
.view-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; background: var(--surface2); border: 1px solid var(--border-dim);
  padding: 3px; border-radius: 6px; width: 100%; max-width: 800px;
}
.view-toggle-option {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 0;
  cursor: pointer; border-radius: 4px; color: var(--text-dim); transition: 0.3s;
  text-align: center; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.view-toggle-option::after {
  display: block;
  content: attr(data-content);
  font-weight: bold;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.view-toggle-option.active {
  color: var(--yellow); font-weight: bold;
}
.view-toggle-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: rgba(212,255,0,0.1); border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.view-toggle.local .view-toggle-pill {
  transform: translateX(100%);
  background: rgba(255, 58, 45, 0.15);
}
.view-toggle.local .view-toggle-option:last-child {
  color: var(--red);
}

/* MOBILE */
@media (max-width: 640px) {
  html, body, #app { overflow-x: clip; width: 100%; position: relative; }
  header { padding: 0 15px; }
  .logo-text { font-size: 18px; }
  main { padding: 16px 12px; width: 100%; overflow-x: clip; }
  .week-title { font-size: 20px; }

  /* HEADER RIGHT HIDE & HAMBURGER SHOW */
  .mobile-hamburger { display: block !important; }
  
  /* SQUEEZE AGENDAS */
  .time-label, .cal-slot, .events-time-label, .events-bg-slot {
    height: 32px !important;
  }
  .cal-grid, .events-grid {
    grid-template-columns: 44px repeat(7, minmax(100px, 1fr));
    min-width: 744px;
  }
  .cal-mobile-3days, .events-mobile-3days {
    grid-template-columns: 35px repeat(3, 1fr) !important;
    min-width: 100% !important;
  }
  .legend-container {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .legend {
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }
  .legend-item {
    white-space: nowrap;
  }
  .day-name { font-size: 14px; }
  .day-date { font-size: 9px; }
  .slot-label { font-size: 8px; }
  .event-block { --event-scale: 0.65; }
  .cal-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* HIDE PENGUIN TRIGGER */
  .penguin-trigger { display: none !important; }

  /* ADMIN PANEL: CONTINUOUS LIST */
  .admin-panel-body { 
    height: auto !important; 
    overflow-y: visible !important; 
    overflow-x: auto; 
    max-height: none !important;
  }

  /* HIDE WEEK INFO */
  .week-tag, .week-info {
    display: none !important;
  }
  .week-nav-controls {
    justify-content: center;
    width: 100%;
  }
  .week-nav {
    flex-direction: column;
    gap: 12px;
  }
  .view-toggle-container, .week-nav-controls {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .view-toggle {
    max-width: none !important;
    width: 100% !important;
    margin: 0;
    padding: 4px;
  }
  .view-toggle-pill {
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
  }
  .view-toggle-option {
    font-size: 11px;
    padding: 8px 14px;
    white-space: nowrap;
  }
}

/* SITE FOOTER */
.site-footer {
  margin-top: auto; padding: 32px 20px 24px;
  border-top: 1px solid var(--border-dim);
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color .2s, transform .15s;
  opacity: 0.8;
}
.footer-link:hover { color: var(--yellow); opacity: 1; transform: translateY(-1px); }
.footer-link svg { opacity: 0.7; transition: opacity .2s; }
.footer-link:hover svg { opacity: 1; }
.footer-copyright {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 2px;
  opacity: 0.6;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* LINK BUTTON */
.btn-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--yellow-dim); letter-spacing: 0.5px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s; padding: 0;
}
.btn-link:hover { color: var(--yellow); }

/* VERIFICATION CODE INPUTS */
.verify-code-inputs {
  display: flex; gap: 8px; justify-content: center; margin: 12px 0;
}
.verify-digit {
  width: 44px; height: 52px;
  background: var(--surface2); border: 2px solid var(--border-dim);
  border-radius: 6px; color: var(--yellow);
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  text-align: center; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  caret-color: var(--yellow);
}
.verify-digit:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 12px rgba(212,255,0,0.25), inset 0 0 6px rgba(212,255,0,0.05);
  transform: translateY(-2px);
}
.verify-digit:not(:placeholder-shown) {
  border-color: rgba(212,255,0,0.4);
}

/* WIDE MODAL (for welcome email) */
.modal-wide { max-width: 480px; }

/* EMAIL ENVELOPE HEADER */
.email-envelope {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--surface2);
  border: 1px solid var(--border-dim); border-radius: 2px;
  margin-bottom: 4px;
}
.email-from {
  font-family: var(--font-mono); font-size: 10px; color: var(--yellow-dim);
}
.email-date {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-dim);
}

/* EMAIL CREDENTIALS CARD */
.email-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
}
.email-card-header {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  color: var(--yellow); background: rgba(212,255,0,0.08);
  border-bottom: 1px solid var(--border); padding: 8px 14px;
  text-transform: uppercase;
}
.email-cred-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border-dim);
  gap: 12px;
}
.email-cred-row:last-child { border-bottom: none; }
.email-cred-label {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
}
.email-cred-value {
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 4px 10px; border-radius: 2px;
  letter-spacing: 1px; word-break: break-all;
}

/* RADIOACTIVE LOGO ANIMATION */
@keyframes spin-startup { from { transform: rotate(0deg); } to { transform: rotate(1080deg); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-icon-inner { 
  transform-origin: 50% 50%; 
  animation: spin-startup 1.2s cubic-bezier(0.2, 0.8, 0.3, 1), spin 5s linear 1.2s infinite; 
}

@keyframes blurFadeIn {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes blurFadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.98); }
}
.switch-anim {
  animation: blurFadeIn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.fade-out {
  animation: blurFadeOut 0.2s forwards;
}

/* WEEK TRANSITIONS (Motion Blur + Slide) */
@keyframes slideLeftIn {
  0% { transform: translateX(100px); filter: blur(10px); opacity: 0; }
  100% { transform: translateX(0); filter: blur(0); opacity: 1; }
}
@keyframes slideLeftOut {
  0% { transform: translateX(0); filter: blur(0); opacity: 1; }
  100% { transform: translateX(-100px); filter: blur(10px); opacity: 0; }
}
@keyframes slideRightIn {
  0% { transform: translateX(-100px); filter: blur(10px); opacity: 0; }
  100% { transform: translateX(0); filter: blur(0); opacity: 1; }
}
@keyframes slideRightOut {
  0% { transform: translateX(0); filter: blur(0); opacity: 1; }
  100% { transform: translateX(100px); filter: blur(10px); opacity: 0; }
}

.anim-slide-left-in { animation: slideLeftIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.anim-slide-left-out { animation: slideLeftOut 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.anim-slide-right-in { animation: slideRightIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.anim-slide-right-out { animation: slideRightOut 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both; }

.cal-wrap { overflow-x: auto; position: relative; } /* Allow horizontal scroll, contain the slide */

/* EVENTS GRID */
.events-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(100px, 1fr));
  grid-template-rows: auto 1fr;
  gap: 0;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  overflow: hidden;
  min-width: 752px;
}
.events-col-time-header {
  background: var(--surface); border-bottom: 1px solid var(--border-dim);
  grid-column: 1; grid-row: 1;
}
.events-day-header {
  background: var(--surface); border-bottom: 1px solid var(--border-dim);
  border-left: 1px solid var(--border-dim);
  padding: 10px 6px; text-align: center;
  grid-row: 1;
}

.events-time-col {
  grid-column: 1; grid-row: 2;
}
.events-time-label {
  background: var(--surface); border-top: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
  font-family: var(--font-mono); font-size: 9px; color: var(--text-dim);
  height: 44px;
}
.events-time-label:first-child { border-top: none; }

.events-day-col {
  position: relative;
  grid-row: 2;
  border-left: 1px solid var(--border-dim);
}
.events-bg-slot {
  height: 44px; border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.events-bg-slot.past { border-color: rgba(255,255,255,0.04); }
.events-bg-slot.past::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.12) 10px, rgba(255,255,255,0.12) 11px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.12) 10px, rgba(255,255,255,0.12) 11px);
  background-position: var(--mesh-x, 0) var(--mesh-y, 0);
}
.events-bg-slot:last-child { border-bottom: none; }
.events-bg-slot.interactive:hover { background: var(--surface2); cursor: crosshair; }
.events-bg-slot.past:hover { cursor: default; }

.events-add-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; text-align: center; line-height: 24px;
  background: var(--yellow); color: #000; font-family: var(--font-mono); font-weight: bold;
  border-radius: 50%; opacity: 0; transition: 0.15s; pointer-events: none;
}
.events-bg-slot.interactive:hover .events-add-btn { opacity: 1; }

.event-block {
  --event-scale: 1;
  position: absolute; left: 0px;
  background: var(--yellow); color: var(--black);
  border-radius: 4px;
  padding: clamp(4px, calc(8px * var(--event-scale)), 8px);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(212,255,0,0.15);
  cursor: pointer;
  z-index: 10;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(2px, calc(4px * var(--event-scale)), 5px);
  transition: transform 0.1s;
  border: 1px solid rgba(0,0,0,0.1);
}
.event-block:hover { transform: scale(1.02); z-index: 11; }
.event-name {
  font-family: var(--font-display);
  font-size: calc(34px * var(--event-scale));
  line-height: 1.02;
  font-weight: bold;
  text-align: left; align-self: flex-start;
  width: 100%; max-width: 100%; min-width: 0;
  flex-shrink: 0;
  overflow: hidden;
  overflow-wrap: break-word; word-break: break-word;
}
.event-djs {
  font-family: var(--font-mono);
  font-size: calc(14px * var(--event-scale));
  line-height: 1.15;
  font-weight: bold; opacity: 0.92;
  margin: auto 0;
  width: 100%; max-width: 100%; min-width: 0;
  flex-shrink: 1; min-height: 0;
  overflow: hidden; text-overflow: ellipsis;
  overflow-wrap: break-word; word-break: break-word;
}
.event-hours {
  font-family: var(--font-mono);
  font-size: calc(21px * var(--event-scale));
  line-height: 1;
  font-weight: bold; opacity: 0.92;
  margin-top: auto; align-self: flex-end; text-align: right;
  white-space: nowrap; flex-shrink: 0;
  max-width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}

/* Measurement state for proportional auto-fit */
.event-block.event-measuring .event-name,
.event-block.event-measuring .event-djs,
.event-block.event-measuring .event-hours {
  flex-shrink: 0;
  overflow-wrap: normal;
  word-break: normal;
}

/* Narrow lane fallback */
.event-narrow { --event-scale: 0.65; }
.event-more-badge:hover { transform: scale(1.05); }

/* SIDE PANEL */
.side-panel-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.side-panel-overlay.show { opacity: 1; pointer-events: all; }

.side-panel {
  position: fixed; top: 0; right: -400px; width: 400px; height: 100vh;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 301; padding: 40px 24px; overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-panel * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-panel::-webkit-scrollbar,
.side-panel *::-webkit-scrollbar {
  display: none;
}
.stacking-card {
  position: sticky;
  transition: box-shadow 0.3s ease, filter 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
  cursor: default;
}
.stacking-card.card-focused {
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.4), 0 -10px 20px rgba(0,0,0,0.5);
}
.stacking-card.card-dimmed {
  opacity: 0.4;
}

.card-apply-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
  border-radius: inherit;
}
.stacking-card.card-focused .card-apply-overlay {
  opacity: 1;
  pointer-events: auto;
}
.card-apply-btn {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  padding: 16px 32px;
  transform: translateY(10px);
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.stacking-card.card-focused .card-apply-btn {
  transform: translateY(0);
}
.btn-ticket {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
}
.side-panel.show { right: 0; }
.side-panel-title { font-family: var(--font-display); font-size: 24px; color: var(--yellow); margin-bottom: 24px; }

/* CUSTOM SELECT */
.custom-select {
  position: relative;
  background: var(--surface2); border: 1px solid var(--border-dim);
  border-radius: 2px; cursor: pointer; user-select: none; margin-bottom: 8px;
}
.custom-select-display {
  padding: 10px 12px; font-family: var(--font-mono); font-size: 13px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.custom-select-display::after { content: '▼'; font-size: 10px; color: var(--text-dim); transition: transform 0.2s; }
.custom-select.open .custom-select-display::after { transform: rotate(180deg); }
.custom-select.open { border-color: var(--yellow); }

.custom-select-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; max-height: 200px; overflow-y: auto;
  z-index: 400; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none; flex-direction: column;
  scrollbar-width: none; -ms-overflow-style: none;
}
.custom-select-dropdown::-webkit-scrollbar { display: none; }
.custom-select.open .custom-select-dropdown { display: flex; animation: dropdownIn 0.2s cubic-bezier(0.1, 0.9, 0.2, 1); }
@keyframes dropdownIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }

.custom-select-option {
  padding: 10px 12px; font-family: var(--font-mono); font-size: 12px;
  display: flex; align-items: center; gap: 8px; transition: background 0.15s;
}
.custom-select-option:hover { background: rgba(255,255,255,0.05); }
.custom-select-option.selected { color: var(--yellow); background: rgba(212,255,0,0.05); }

/* Hour List for custom select */
.hour-grid {
  display: flex; flex-direction: column;
  background: var(--surface);
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.hour-grid::-webkit-scrollbar { display: none; }

.hour-option {
  background: var(--surface); padding: 12px 16px; text-align: left;
  font-family: var(--font-mono); font-size: 13px; cursor: pointer;
  border-bottom: 1px solid var(--border-dim);
  transition: 0.15s;
}
.hour-option:hover { background: var(--surface2); color: var(--yellow); }
.hour-option.selected { color: var(--yellow); background: rgba(212,255,0,0.05); font-weight: bold; }
.hour-option:last-child { border-bottom: none; }

.dj-name.admin { color: var(--role-admin); }
.dj-name.member { color: var(--role-member); }
.dj-name.active { color: var(--role-active); }
.dj-name.none { color: var(--role-none); }

#dj-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  min-height: 48px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s, background 0.2s;
}
#dj-badges:hover {
  border-color: var(--yellow-dim);
}
.dj-badges-empty {
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.3px;
  padding: 4px 6px;
  pointer-events: none;
}

.dj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,255,0,0.1);
  border: 1px solid var(--yellow);
  padding: 4px 8px 4px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--yellow);
  line-height: 1.1;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.dj-badge:hover {
  background: rgba(212,255,0,0.16);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.dj-drag-handle {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  color: var(--yellow);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dj-chip-fullname {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0.85;
  letter-spacing: 0.2px;
}
.dj-badge-x {
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  padding: 2px 6px;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.dj-badge-x:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(255,58,45,0.12);
  transform: scale(1.1);
}

@keyframes badgePop {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.dj-badge-anim { animation: badgePop 0.2s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }

/* ── CRÉNEAUX ET ASSIGNATIONS PANEL HIERARCHY ── */
.creneaux-section ::placeholder {
  color: var(--text-dim);
  opacity: 1;
}
.creneaux-panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--yellow);
  line-height: 1.1;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.creneaux-subsection-separator {
  height: 1px;
  background: var(--border-dim);
  margin: 16px 0 14px;
}
.creneaux-subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.creneaux-subsection-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.2px;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.2;
}
.creneaux-counter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.creneaux-waitlist-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dim);
}
.creneaux-empty-note {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1.45;
  padding: 4px 0;
}

/* ── SEARCH DROPDOWN STATUS BADGES ── */
.custom-select-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.015);
}
.custom-select-option.is-disabled:hover {
  background: rgba(255, 255, 255, 0.015);
}
.dj-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}
.dj-status-badge.placed-badge {
  background: var(--yellow-glow);
  border: 1px solid var(--border);
  color: var(--yellow);
}
.dj-status-badge.added-badge {
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
}

/* ── TIMESLOT CARDS ── */
.timeslot-row {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--yellow);
  border-radius: 4px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.timeslot-row.slot-selected {
  box-shadow: 0 0 12px var(--yellow-glow);
}
.timeslot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeslot-hours-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeslot-hour-range {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  color: var(--yellow);
  white-space: nowrap;
}
.timeslot-hour-val {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  border-bottom: 1px dashed rgba(212,255,0,0.4);
  transition: background 0.15s, border-color 0.15s;
}
.timeslot-hour-val:hover {
  background: rgba(212,255,0,0.1);
  border-bottom-color: var(--yellow);
}
.timeslot-hour-sep {
  color: var(--text-dim);
  user-select: none;
}
.timeslot-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.timeslot-comment {
  flex: 1;
  min-width: 80px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 2px;
}
.timeslot-comment:hover {
  background: rgba(255,255,255,0.04);
}
.timeslot-comment-placeholder {
  color: var(--text-dim);
}
.timeslot-delete-btn {
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── HOUR INPUT WITH NON-EDITABLE 'h' SUFFIX ── */
.hour-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.hour-input-wrap .hour-input-field {
  width: 100%;
  text-align: center;
  padding: 8px 18px 8px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
}
.hour-input-suffix {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--text-dim);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.hour-input-wrap:focus-within .hour-input-suffix {
  color: var(--yellow);
}
.hour-input-wrap.hour-input-inline {
  width: 52px;
}
.hour-input-wrap.hour-input-inline .hour-input-field {
  padding: 2px 16px 2px 4px;
  font-size: 14px;
  font-weight: bold;
  color: var(--yellow);
  background: var(--surface2);
  border: 1px solid var(--yellow);
  border-radius: 2px;
}
.hour-input-wrap.hour-input-inline .hour-input-suffix {
  right: 5px;
  font-size: 13px;
  color: var(--yellow);
}

/* ── ADD SLOT ROW ── */
.timeslot-row.timeslot-add-row {
  border: 1px dashed var(--yellow);
  background: var(--bg);
  margin-bottom: 4px;
}
.timeslot-add-fields {
  display: grid;
  grid-template-columns: 64px 64px 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}
.timeslot-add-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.timeslot-field-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}
.timeslot-add-field-style .form-input {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.2;
}
.timeslot-add-btn {
  width: 100%;
  min-height: 32px;
  white-space: nowrap;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  font-weight: 600;
  letter-spacing: 1px;
}
.timeslot-add-btn:hover {
  background: rgba(212,255,0,0.1);
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ── INLINE EDIT (Excel-style) ── */
.inline-edit-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--yellow);
  outline: none;
  font-family: var(--font-mono);
  color: inherit;
  padding: 0 2px;
  margin: 0;
  line-height: inherit;
  width: 100%;
  box-sizing: border-box;
  caret-color: var(--yellow);
  transition: border-color 0.2s;
}
.inline-edit-input:focus {
  border-bottom-color: var(--yellow);
  box-shadow: 0 2px 6px rgba(212,255,0,0.15);
}
.inline-edit-input.inline-edit-hours {
  font-size: 14px;
  font-weight: bold;
  color: var(--yellow);
  max-width: 140px;
  width: auto;
  min-width: 80px;
}
.inline-edit-input.inline-edit-comment {
  font-size: 11px;
  color: var(--text);
  width: 100%;
}

/* ── SLOT DROPZONE & DJ CHIPS ── */
.slot-dj-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--yellow);
  border-radius: 4px;
  background: rgba(212,255,0,0.03);
  cursor: default;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.slot-dj-chips-container.is-empty {
  justify-content: center;
}
.slot-dj-chips-container:hover {
  background: rgba(212,255,0,0.07);
}
.slot-dj-chips-container.is-selected {
  border-style: solid;
  background: rgba(212,255,0,0.09);
  box-shadow: inset 0 0 10px rgba(212,255,0,0.1);
}
.slot-dj-chips-container.drag-over,
.timeslot-row.drag-target .slot-dj-chips-container {
  border-style: solid;
  border-color: var(--yellow);
  background: rgba(212,255,0,0.12);
  box-shadow: inset 0 0 12px rgba(212,255,0,0.1);
}
.slot-dj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,255,0,0.14);
  border: 1px solid var(--yellow);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--yellow);
  cursor: grab;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s,
              margin 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s,
              background 0.15s;
  animation: badgePop 0.2s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.slot-dj-chip:hover {
  background: rgba(212,255,0,0.22);
  box-shadow: 0 0 8px rgba(212,255,0,0.15);
}
.slot-dj-chip:active {
  cursor: grabbing;
}
.slot-dj-chip.dragging {
  opacity: 0.35;
  transform: scale(0.92);
}
.slot-dj-chip .chip-x {
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.slot-dj-chip .chip-x:hover {
  color: var(--red);
  background: rgba(255,58,45,0.15);
  transform: scale(1.2);
}

@keyframes shrinkOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; margin-left: -20px; }
}

/* ── MAGNETIC / REPULSION EFFECT ── */
.slot-dj-chips-container.drag-over .slot-dj-chip {
  margin-left: 4px;
  margin-right: 4px;
}
.slot-dj-chips-container .drop-indicator {
  width: 2px;
  height: 22px;
  background: var(--yellow);
  border-radius: 1px;
  flex-shrink: 0;
  animation: dropIndicatorPulse 0.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(212,255,0,0.4);
}
@keyframes dropIndicatorPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* Slot container highlight on drag over */
.timeslot-row.drag-target {
  border-color: var(--yellow) !important;
  background: rgba(212,255,0,0.06) !important;
  box-shadow: 0 0 16px rgba(212,255,0,0.12);
}

/* Empty slot placeholder for dropping */
.slot-empty-drop-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text);
  font-family: var(--font-mono);
  text-align: center;
  padding: 2px 4px;
  transition: color 0.2s;
}
.slot-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.timeslot-row.drag-target .slot-empty-drop-hint,
.slot-dj-chips-container.is-selected .slot-empty-drop-hint {
  color: var(--yellow);
}

/* ── INTERESTED DJS ("ONT POSTULÉ") TWO-LINE CHIPS ── */
.dj-interested-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-badge.dj-interested-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  color: var(--text);
  cursor: grab;
}
.dj-badge.dj-interested-chip:hover {
  border-color: var(--border);
  background: var(--surface2);
}
.dj-badge.dj-interested-chip.is-placed {
  border-color: var(--border);
  background: rgba(212,255,0,0.03);
}
.dj-interested-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dj-interested-stagename {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.dj-interested-row1 .dj-badge-x {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  flex-shrink: 0;
}
.dj-interested-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.dj-interested-fullname {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  color: var(--text);
}
.dj-meta-badge.dj-dispo-badge {
  white-space: nowrap;
}
.dj-meta-badge.dj-b2b-badge {
  border-color: var(--border);
  color: var(--yellow);
  background: rgba(212,255,0,0.06);
}

/* EVENT ANIMATIONS */
@keyframes event-pop-in {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; filter: blur(10px); }
  50% { transform: scale(1.05) translateY(-5px); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.event-block-new {
  animation: event-pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 20px var(--yellow-glow), 0 4px 15px rgba(212,255,0,0.3);
  border: 1px solid var(--yellow);
  z-index: 20;
}

/* MULTI-DAY BADGE (calendar admin) */
.event-multiday-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #000;
  background: rgba(255,255,255,0.35);
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 2px;
  backdrop-filter: blur(4px);
}

/* CAPACITY BADGE (public cards) */
.event-capacity-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0,255,136,0.4);
  padding: 4px 0;
}
.event-capacity-badge.full {
  color: #ff4060;
  text-shadow: 0 0 8px rgba(255,64,96,0.4);
}

/* TOGGLE SWITCHES */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-dim);
  transition: .3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .toggle-slider {
  background-color: var(--yellow);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.switch-red input:checked + .toggle-slider {
  background-color: var(--red);
}


/* SHAKE DENY on toggle */
.toggle-shake .toggle-slider {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  background-color: var(--red) !important;
}

@keyframes toggleBgOnRed {
  0% { background-color: var(--border-dim); }
  100% { background-color: var(--red); }
}
.anim-toggle-on-red .toggle-slider:before {
  animation: toggleAnimOn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.anim-toggle-on-red .toggle-slider {
  animation: toggleBgOnRed 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes toggleBgOffRed {
  0% { background-color: var(--red); }
  100% { background-color: var(--border-dim); }
}
.anim-toggle-off-red .toggle-slider:before {
  animation: toggleAnimOff 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.anim-toggle-off-red .toggle-slider {
  animation: toggleBgOffRed 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.bouncing-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px;
}
.bouncing-dots div {
  width: 12px;
  height: 12px;
  background-color: var(--red);
  border-radius: 50%;
  animation: bounceWave 1.2s infinite ease-in-out;
}
.bouncing-dots div:nth-child(1) { animation-delay: 0s; }
.bouncing-dots div:nth-child(2) { animation-delay: 0.15s; }
.bouncing-dots div:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounceWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  background-color: var(--red) !important;
}

@keyframes toggleAnimOn {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}
@keyframes toggleBgOn {
  0% { background-color: var(--border-dim); }
  100% { background-color: var(--yellow); }
}
.anim-toggle-on .toggle-slider:before {
  animation: toggleAnimOn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.anim-toggle-on .toggle-slider {
  animation: toggleBgOn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes toggleAnimOff {
  0% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}
@keyframes toggleBgOff {
  0% { background-color: var(--yellow); }
  100% { background-color: var(--border-dim); }
}
.anim-toggle-off .toggle-slider:before {
  animation: toggleAnimOff 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.anim-toggle-off .toggle-slider {
  animation: toggleBgOff 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@font-face {
  font-family: 'QuestaSans';
  src: url('assets/fonts/Questa_Sans_Regular.otf') format('opentype');
}

/* ============================================================
   PENGUIN ENTITY
   =========================================================== */
#penguin-entity {
  image-rendering: -webkit-optimize-contrast; /* Safari */
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  width: 80px;
  height: 80px;
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.5s ease-out;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.penguin-name {
  font-family: 'QuestaSans', sans-serif;
  color: white;
  text-shadow: 1px 1px 1px black, -1px -1px 1px black, 1px -1px 1px black, -1px 1px 1px black;
  font-size: 15px;
  text-align: center;
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.penguin-trigger {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.8;
    transition: color .2s, transform .15s;
    cursor: pointer;
}

.penguin-trigger svg {
    opacity: 0.7;
    transition: opacity .2s;
}

.penguin-trigger:hover {
    opacity: 1;
    color: var(--yellow);
    transform: translateY(-1px);
}

.penguin-trigger:hover svg {
    opacity: 1;
}

/* CHAT BAR UI */
.chat-bar-container {
    position: fixed;
    bottom: 0; /* Always at the bottom */
    left: 50%;
    transform: translateX(-50%) translateY(100%); /* Start hidden below bottom */
    width: 800px; /* Massive size */
    height: 120px;
    background: url('assets/chat_bar.png') no-repeat center/contain;
    z-index: 1100;
    transition: transform 3.5s cubic-bezier(0.19, 1, 0.22, 1); /* Slower and smoother Expo ease-out */
    display: flex;
    align-items: center;
    padding: 0 80px;
}
.chat-bar-container.show {
    transform: translateX(-50%) translateY(0);
}

.chat-bar-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 15px; /* Added padding for text */
    color: white;
    font-family: 'QuestaSans', sans-serif;
    font-size: 22px;
    margin-left: 50px;
    margin-right: 70px;
    height: 40px;
    transform: translateY(28px) translateX(-50px);
    width: 50px;
}

.chat-bar-send-btn {
    position: absolute;
    right: 143px;
    top: 52%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-bar-send-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.chat-bar-exit-btn {
    position: absolute;
    right: 81px;
    top: 52%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}
.chat-bar-exit-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* SPEECH BUBBLE */
.penguin-bubble {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px; /* Narrower to force wrap */
    height: 140px;
    background: url('assets/bubble.png') no-repeat center/contain;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 32px 20px; /* Adjust text to center in bubble */
    opacity: 1; /* Instant appearance */
}

.bubble-text {
    font-family: 'QuestaSans', sans-serif;
    font-size: 18px; /* Larger text */
    color: #222;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    max-width: 110px; /* Narrower to force wrapping extremely fast (triggered by 9 'A's feedback) */
}

.bubble-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* ============================================================
   ARTISTES DIRECTORY PAGE
   ============================================================ */
.directory-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 10px 20px;
  min-height: 100vh;
}

.directory-header {
  margin-bottom: 40px;
}

.directory-title-left {
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 10px;
  text-align: left;
  text-transform: uppercase;
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.artist-filter-btn {
  background: var(--bg-surface);
  border: 3px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  font-weight: 700;
}

.artist-filter-btn:hover {
  border-color: rgba(212, 255, 0, 0.4);
  color: var(--text);
  background: rgba(212, 255, 0, 0.05);
}

.artist-filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.dir-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.dir-grid-card:hover {
  transform: translateY(-8px);
}

.dir-grid-photo-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
  background: var(--surface2);
}

.dir-grid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir-grid-photo-placeholder {
  width: 100%;
  height: 100%;
}

.dir-grid-name {
  font-family: var(--font-display);
  font-size: 36px;
  color: #fff;
  text-align: center;
  line-height: 1;
  transition: color 0.2s;
  text-transform: uppercase;
}

.dir-grid-card:hover .dir-grid-name {
  color: var(--yellow);
}

.directory-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.directory-footer {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

@keyframes slideDownOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(30px); }
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-slide-out {
  animation: slideDownOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.anim-slide-in {
  animation: slideUpIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* ============================================================
   ARTIST PROFILE STYLES & TAGS
   ============================================================ */

.style-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.style-tag-remove {
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
}
.style-tag-remove:hover {
  opacity: 1;
}

/* ── Style Bubble Selector ─────────────────────── */
.styles-bubbles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.style-bubble:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.style-bubble:active {
  transform: scale(0.95);
}

.style-bubble--active {
  background: rgba(212, 255, 0, 0.15);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(212, 255, 0, 0.1);
}

.style-bubble--active:hover {
  background: rgba(212, 255, 0, 0.22);
  border-color: var(--yellow);
  color: var(--yellow);
}

.style-bubble--deny {
  animation: bubble-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: rgba(255, 58, 45, 0.12) !important;
  box-shadow: 0 0 12px rgba(255, 58, 45, 0.15);
}

@keyframes bubble-shake {
  0%, 100% { transform: translateX(0); }
  10%      { transform: translateX(-5px); }
  20%      { transform: translateX(5px); }
  30%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  50%      { transform: translateX(-2px); }
  60%      { transform: translateX(2px); }
  70%      { transform: translateX(-1px); }
  80%      { transform: translateX(1px); }
}

.artist-styles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 0px;
}

.artist-style-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artist-style-tag.open-format {
  background: rgba(212, 255, 0, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(212, 255, 0, 0.3);
}

/* ============================================================
   ARTIST PAGE (INDIVIDUAL)
   ============================================================ */
.artist-page {
  width: 80%;
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
}

.artist-back-btn {
  margin-top: 0;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.profile-header {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: stretch;
}

.profile-header-left {
  flex: 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header-right {
  flex: 4;
  display: flex;
  align-items: flex-start;
}

.artist-title {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-color);
  margin: 0;
  margin-bottom: 4px;
}

.artist-role-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  background: none;
  padding: 0;
}
.artist-role-badge.admin  { color: var(--role-admin);  text-shadow: 0 0 12px rgba(255,58,45,0.6), 0 0 30px rgba(255,58,45,0.3); }
.artist-role-badge.active { color: var(--role-active); text-shadow: 0 0 12px rgba(0,212,200,0.6), 0 0 30px rgba(0,212,200,0.3); }
.artist-role-badge.member { color: var(--role-member); text-shadow: 0 0 12px rgba(57,255,20,0.6), 0 0 30px rgba(57,255,20,0.3); }
.artist-role-badge.none   { color: var(--role-none);   text-shadow: 0 0 12px rgba(190,190,190,0.4), 0 0 30px rgba(190,190,190,0.2); }

.artist-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--yellow);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.artist-bio-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 40px;
  white-space: pre-wrap;
}

.artist-meta-box {
  background-color: var(--bg-layer);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.artist-provenance {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.artist-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

.artist-photo-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--yellow);
  background-color: var(--bg-layer);
  box-shadow: 0 0 40px rgba(212, 255, 0, 0.25), 0 0 80px rgba(212, 255, 0, 0.1);
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #222, #111);
  color: var(--text-dim);
  font-family: var(--font-display);
}

.artist-performances-section {
  margin-top: 60px;
}

.perf-year-block {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.perf-year-header {
  padding: 16px 20px;
  background-color: var(--bg-layer);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.perf-year-header:hover {
  background-color: #222;
}

.perf-year-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.perf-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.perf-year-content {
  display: grid;
  grid-template-rows: 0fr;
  background-color: var(--bg-color);
  transition: grid-template-rows 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.perf-year-block.open .perf-year-content {
  grid-template-rows: 1fr;
}

.perf-year-inner {
  min-height: 0;
  overflow: hidden;
}

.perf-year-padding {
  padding: 20px;
}

.perf-year-block.open .perf-year-title {
  color: var(--yellow);
}

.perf-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.perf-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}



.perf-event-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-color);
  text-transform: uppercase;
}

.perf-event-date {
  color: var(--yellow-dim);
}

.perf-event-place {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
}

.perf-year-arrow {
  display: inline-block;
  font-size: 12px;
  margin-right: 0px;
  transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.perf-year-block.open .perf-year-arrow {
  transform: rotate(-180deg);
}

@media (max-width: 768px) {
  .directory-page {
    padding-top: 80px;
  }
  .artist-filter-btn {
    padding: 6px 12px;
    font-size: 14px;
    flex: 1 1 auto;
    text-align: center;
  }
  .artist-page {
    width: 90%;
    max-width: 90%;
    padding: 10px;
  }
  .desktop-only-photo {
    display: none !important;
  }
  .mobile-only-photo {
    display: block !important;
    margin: 24px 0;
  }
  .profile-header {
    flex-direction: column;
  }
  .profile-header-left,
  .profile-header-right {
    flex: none;
    width: 100%;
  }
  .artist-photo-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .artist-title {
    font-size: 48px;
  }
  .dir-grid-name {
    font-size: 24px;
  }
  .perf-item {
    flex-wrap: wrap;
  }
  .perf-event-place {
    margin-left: 18px;
    width: 100%;
    margin-top: 4px;
  }
}

/* ============================================================
   PUBLIC EVENTS — HERO SPLIT CARD
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 4fr 6fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--surface);
  min-height: 400px;
}
.hero-empty { opacity: 0.7; }

.hero-left {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--yellow);
  background: rgba(212,255,0,0.1);
  border: 1px solid rgba(212,255,0,0.2);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  width: fit-content;
}
.hero-title {
  font-family: var(--font-display);
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hero-title-main {
  font-size: clamp(32px, 5vw, 72px);
}
.hero-title-sub {
  font-size: clamp(32px, 5vw, 72px);
}
.hero-subtitle-text {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.8vw, 24px);
  color: #FFFFFF;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.hero-info-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hero-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.hero-info-row svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.hero-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
}

.hero-right {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
}
.hero-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 40%, #533483 100%);
  position: relative;
  overflow: hidden;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

/* ============================================================
   PUBLIC EVENTS — STACKING SCROLL CARDS
   ============================================================ */
.stacking-section {
  margin-bottom: 48px;
}
.stacking-section-header {
  margin-bottom: 24px;
}
.stacking-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--yellow);
}
.stacking-section-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
}

.stacking-container {
  position: relative;
  /* Query container: lets the event cards size their text relative to
     their own width (cqi units) instead of the viewport. */
  container-type: inline-size;
}
.stacking-card {
  position: -webkit-sticky;
  position: sticky;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  padding: 32px;
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.3s ease, filter 0.4s ease, opacity 0.4s ease;
}
.stacking-card.vertical-card {
  /* --cw = actual card width (400px on desktop, container width below).
     Every size inside the card is a fraction of --cw so the proportions
     are identical on every device. Desktop values: --cw = 400px. */
  --cw: min(400px, 100cqi);
  min-height: calc(var(--cw) * 1.25);   /* 500px @ 400px */
  padding: calc(var(--cw) * 0.08);      /* 32px  @ 400px */
  gap: calc(var(--cw) * 0.04);          /* keeps top/bottom blocks apart if content grows */
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vertical-card .stacking-card-tag {
  font-size: calc(var(--cw) * 0.05);      /* 20px @ 400px */
  letter-spacing: calc(var(--cw) * 0.00375);
}
.vertical-card .stacking-card-title {
  font-size: calc(var(--cw) * 0.16);      /* 64px @ 400px */
  letter-spacing: calc(var(--cw) * 0.005);
  overflow-wrap: break-word;
  word-break: normal;
}
.vertical-card .stacking-card-hours {
  font-size: calc(var(--cw) * 0.09);      /* 36px @ 400px */
  letter-spacing: calc(var(--cw) * 0.0025);
}
.vertical-card .stacking-card-place {
  font-size: calc(var(--cw) * 0.06);      /* 24px @ 400px */
  letter-spacing: calc(var(--cw) * 0.00125);
  overflow-wrap: break-word;
  max-width: 100%;
}
.vertical-card .stacking-card-djs,
.vertical-card .stacking-card-setlist-item {
  font-size: calc(var(--cw) * 0.045);     /* 18px @ 400px */
  overflow-wrap: break-word;
}
.vertical-card .stacking-card-setlist {
  margin-top: calc(var(--cw) * 0.02);     /* 8px @ 400px */
}
.vertical-card .stacking-card-setlist-item {
  margin-bottom: calc(var(--cw) * 0.01);  /* 4px @ 400px */
  font-family: var(--font-mono);
}
.vertical-card .event-capacity-badge {
  font-size: calc(var(--cw) * 0.0275);    /* 11px @ 400px */
  letter-spacing: calc(var(--cw) * 0.00375);
}
.vertical-card .btn-ticket {
  font-size: calc(var(--cw) * 0.0275);    /* 11px @ 400px */
  padding: calc(var(--cw) * 0.015) calc(var(--cw) * 0.03);
}
.vertical-card .stacking-card-ticket-wrap {
  margin-top: calc(var(--cw) * 0.04);     /* 16px @ 400px */
}
.vertical-card .card-apply-btn {
  font-size: calc(var(--cw) * 0.06);      /* 24px @ 400px */
  letter-spacing: calc(var(--cw) * 0.005);
  padding: calc(var(--cw) * 0.04) calc(var(--cw) * 0.08);
}
.vertical-card-top {
  align-self: flex-start;
  text-align: left;
  width: 100%;
}
.vertical-card-bottom {
  align-self: center;
  text-align: center;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stacking-card:hover:not(.card-dimmed) {
  transform: scale(1.005);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.4), 0 12px 40px rgba(0,0,0,0.6);
}

.stacking-card-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
}
.stacking-card-tag {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--yellow);
  margin-bottom: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.stacking-card-title {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 0px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.stacking-card-place {
  font-family: var(--font-display);
  font-size: 24px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  margin-top: 2px;
  margin-bottom: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}
.stacking-card-place:hover {
  color: var(--yellow);
}
.stacking-card-place::before {
  content: '📍 ';
}
.stacking-card-djs {
  font-family: var(--font-mono);
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  margin-bottom: 2px;
  font-weight: bold;
}
.stacking-card-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-top: 8px;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.stacking-card-hours {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: normal;
  color: var(--yellow);
  margin-bottom: 2px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ============================================================
   PUBLIC EVENTS — PARTNERS GRID
   ============================================================ */
.partners-section {
  margin-bottom: 32px;
}
.partners-section-header {
  margin-bottom: 24px;
  text-align: center;
}
.partners-section-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--yellow);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.partner-card {
  width: 220px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.partner-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.partner-logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.partner-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: sepia(0) saturate(1) hue-rotate(0deg);
  transition: filter 0.2s;
}
.partner-card:hover .partner-logo {
  filter: sepia(1) saturate(20) hue-rotate(10.4deg);
}
@keyframes partnerPopIn {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes partnerPopOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}
.partner-card-pop-in {
  animation: partnerPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.partner-card-pop-out {
  animation: partnerPopOut 0.26s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}
.partner-logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--yellow);
}
.partner-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   ADMIN — SPONSORS SECTION
   ============================================================ */
.sponsor-admin-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-layer, var(--surface2));
  border-top: 1px solid var(--border);
}
.sponsor-admin-title {
  margin-bottom: 20px;
}
.sponsor-admin-form {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}
.sponsor-admin-form-row {
  display: flex;
  gap: 12px;
}
.sponsor-logo-upload {
  border: 2px dashed var(--border-dim);
  border-radius: 4px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}
.sponsor-logo-upload:hover {
  border-color: var(--border);
}
.sponsor-logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
}
.sponsor-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sponsor-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  transition: opacity 0.3s;
}
.sponsor-admin-logo-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sponsor-admin-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sponsor-admin-logo-empty {
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--yellow);
}
.sponsor-admin-info {
  flex: 1;
  min-width: 0;
}
.sponsor-admin-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.sponsor-admin-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   EVENT IMAGE UPLOAD (admin panel)
   ============================================================ */
.ev-image-upload {
  border: 2px dashed var(--border-dim);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}
.ev-image-upload:hover {
  border-color: var(--border);
}
.ev-image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
}

/* ============================================================
   PUBLIC EVENTS — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title-main {
    font-size: 52px;
  }
  .hero-title-sub {
    font-size: 52px;
  }
  .hero-subtitle-text {
    font-size: 18px;
  }
  .hero-left {
    padding: 40px 32px;
  }
}
@media (max-width: 768px) {
  .hero-split {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 450px;
  }
  .hero-left {
    flex: none;
    padding: 16px 20px 24px;
  }
  .hero-title-main {
    font-size: clamp(32px, 10vw, 48px);
  }
  .hero-title-sub {
    font-size: clamp(32px, 10vw, 48px);
  }
  .hero-subtitle-text {
    font-size: clamp(14px, 4vw, 16px);
  }
  .hero-right {
    flex: 1;
    min-height: 0;
    width: 100%;
  }
  .stacking-card {
    min-height: 200px;
    padding: 20px;
  }
  /* Vertical event cards: text sizes scale with card width (see --cw),
     no fixed mobile overrides needed. */
  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .partner-card {
    width: 150px;
    height: 120px;
    padding: 10px;
  }
  .sponsor-admin-form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ============================================================
   ANNÉE LONGUE BUTTON
   ============================================================ */
.annee-longue-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 32px;
}
.annee-longue-btn {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  padding: 14px 48px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.annee-longue-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.annee-longue-btn:hover {
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 0 30px rgba(212, 255, 0, 0.25), 0 0 60px rgba(212, 255, 0, 0.1);
  transform: scale(1.04);
}

/* ============================================================
   /EVENEMENTS PAGE
   ============================================================ */
.evenements-back {
  padding: 24px 24px 0;
  padding-left: 8px;
}
.evenements-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 120px);
  color: var(--yellow);
  text-align: left;
  letter-spacing: 6px;
  line-height: 1;
  padding: 16px 24px 8px;
  user-select: none;
}

/* ── Month Bar ── */
.evenements-month-bar {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 24px 32px;
  flex-wrap: wrap;
}
.evenements-months-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.evenements-month-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.evenements-month-btn:hover {
  color: var(--text);
}
.evenements-month-btn.active {
  color: var(--yellow);
}

/* ── Year Dropdown ── */
.evenements-year-wrap {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.evenements-year-btn {
  background: none;
  color: var(--text-dim);
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.evenements-year-btn:hover {
  color: var(--text);
}
.evenements-year-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 100px;
}
.evenements-year-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.evenements-year-option {
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.evenements-year-option:hover {
  background: var(--surface-light);
  color: var(--yellow);
}
.evenements-year-option.selected {
  color: var(--yellow);
}


/* ── Events List ── */
.evenements-list {
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evenements-empty,
.evenements-loading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  padding: 48px 20px;
  letter-spacing: 2px;
}

/* ── Event Row ── */
.evenement-row {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUpBlur 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.evenement-row:hover {
  border-color: var(--border);
}
.evenement-row.expanded {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.08);
}

/* ── Row Header (always visible) ── */
.evenement-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  gap: 12px;
}
.evenement-row-header:hover {
  background: var(--surface2);
}
.evenement-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.evenement-row-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.evenement-header-info {
  flex: 1;
  min-width: 0;
}
.evenement-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.evenement-toggle {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--yellow);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
  font-weight: 700;
}
.evenement-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.evenement-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evenement-place, .evenement-place-mobile-inline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
}

/* Visibility Utilities */
.desktop-only { display: block; }
span.desktop-only, span.desktop-only-inline { display: inline; }
.mobile-only, .mobile-only-inline { display: none !important; }

/* ── Header Subtitle (hours + capacity) ── */
.evenement-header-subtitle {
  display: block;
  margin-top: 2px;
}
.evenement-header-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.evenement-capacity-wrap {
  display: inline-flex;
  flex-shrink: 0;
}
.evenement-header-hours {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.evenement-row.expanded .evenement-header-hours {
  visibility: visible;
  opacity: 1;
}
.evenement-header-capacity {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0,255,136,0.4);
  white-space: nowrap;
}
.evenement-header-capacity.full {
  color: #ff4060;
  text-shadow: 0 0 8px rgba(255,64,96,0.4);
}

/* ── Expanded Body (transition-driven expand/collapse) ── */
.evenement-row-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.evenement-body-inner {
  padding: 0;
  border-top: 1px solid var(--border-dim);
}
.evenement-row.expanded .evenement-row-body {
}

/* ── Artist List (vertical rows) ── */
.evenement-artist-list {
  display: flex;
  flex-direction: column;
}

a.evenement-artist-row {
  text-decoration: none;
  color: inherit;
}
.evenement-artist-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.2s ease;
  cursor: pointer;
  min-height: 64px;
}
.evenement-artist-row:last-child {
  border-bottom: none;
}
.evenement-artist-row:hover {
  background: rgba(212, 255, 0, 0.03);
}
.evenement-artist-row:hover .evenement-artist-row-name {
  color: var(--yellow);
}

/* Photo column */
.evenement-artist-row-photo-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.evenement-artist-row-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.evenement-artist-row-photo-empty {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-dim);
}

/* Name column */
.evenement-artist-row-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 1.5px;
  color: var(--text);
  text-align: center;
  padding: 0 16px;
  transition: color 0.2s ease;
  line-height: 1.1;
  /* Shrink name before wrapping */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Time column */
.evenement-artist-row-time {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  font-family: var(--font-display);
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
  border-left: 1px solid var(--border-dim);
}

/* ── Action Buttons (bottom) ── */
.evenement-actions {
  display: flex;
  border-top: 1px solid var(--border-dim);
}
.evenement-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.evenement-action-btn.full {
  width: 100%;
}
.evenement-action-btn.half {
  width: 50%;
}
.evenement-action-apply {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
}
.evenement-action-apply:hover {
  background: #e6ff33;
  box-shadow: 0 0 16px rgba(212, 255, 0, 0.4);
}
.evenement-action-ticket {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 700;
  border-left: 1px solid var(--border-dim);
}
.evenement-action-ticket:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ── /evenements Responsive ── */
@media (max-width: 768px) {
  .evenements-back {
    padding: 16px 16px 0;
    padding-left: 0;
  }
  .evenements-title {
    font-size: 56px;
    letter-spacing: 3px;
    padding: 12px 16px 24px;
  }
  .evenements-month-bar {
    padding: 0 16px 24px;
    gap: 10%;
    width: 100%;
  }
  .evenements-months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 70%;
    gap: 4px;
  }
  .evenements-year-wrap {
    width: 20%;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
  }
  .evenements-year-btn {
    width: 100%;
  }
  
  .mobile-only { display: block !important; }
  span.mobile-only-inline { display: inline !important; }
  .desktop-only, .desktop-only-inline { display: none !important; }
  
  .evenement-row:not(.expanded) span.expanded-only { display: none !important; }
  .evenement-row.expanded span.expanded-only { display: inline !important; color: rgba(255, 255, 255, 0.6); }
  .evenements-month-btn {
    font-size: 13px;
    padding: 8px 10px;
  }
  .evenements-list {
    padding: 0 16px 48px;
  }
  .evenement-row-header {
    padding: 12px 14px;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
  }
  .evenement-row-left {
    flex: 0 0 68%;
    max-width: 68%;
    align-items: flex-start;
    gap: 8px;
  }
  .evenement-row-right {
    flex: 0 0 32%;
    max-width: 32%;
    text-align: right;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .evenement-header-title-line {
    flex-wrap: wrap;
    gap: 6px;
  }
  .evenement-name {
    font-size: 19px;
  }
  .evenement-header-hours {
    font-size: 13px;
  }
  /* Artist list responsive */
  .evenement-artist-row-photo-wrap,
  .evenement-artist-row-photo,
  .evenement-artist-row-photo-empty {
    width: 60px;
    height: 60px;
  }
  .evenement-artist-row {
    min-height: 60px;
  }
  .evenement-artist-row-name {
    font-size: 22px;
    padding: 0 10px;
  }
  .evenement-artist-row-time {
    width: 70px;
    font-size: 16px;
  }
  /* Action buttons stack vertically on small screens */
  .evenement-actions {
    flex-direction: column;
  }
  .evenement-action-btn.half {
    width: 100%;
  }
  .evenement-action-ticket {
    border-left: none;
    border-top: 1px solid var(--border-dim);
  }
  .annee-longue-btn {
    font-size: 18px;
    padding: 12px 32px;
    letter-spacing: 3px;
  }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-slide-in {
  animation: pageSlideIn 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-out {
  animation: pageSlideOut 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-in-left {
  animation: pageSlideInLeft 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-out-left {
  animation: pageSlideOutLeft 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-in-right {
  animation: pageSlideInRight 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-out-right {
  animation: pageSlideOutRight 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-zoom-in {
  animation: pageZoomIn 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-zoom-out {
  animation: pageZoomOut 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-in-up {
  animation: pageSlideInUp 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-out-down {
  animation: pageSlideOutDown 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-in-down {
  animation: pageSlideInDown 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}
.page-slide-out-up {
  animation: pageSlideOutUp 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}

@keyframes pageSlideIn {
  0% { transform: translateX(100px); opacity: 0; filter: blur(5px); }
  100% { transform: translateX(0); opacity: 1; filter: blur(0); }
}
@keyframes pageSlideOut {
  0% { transform: translateX(0); opacity: 1; filter: blur(0); }
  100% { transform: translateX(-100px); opacity: 0; filter: blur(5px); }
}
@keyframes pageSlideInLeft {
  0% { transform: translateX(-100px); opacity: 0; filter: blur(5px); }
  100% { transform: translateX(0); opacity: 1; filter: blur(0); }
}
@keyframes pageSlideOutLeft {
  0% { transform: translateX(0); opacity: 1; filter: blur(0); }
  100% { transform: translateX(-100px); opacity: 0; filter: blur(5px); }
}
@keyframes pageSlideInRight {
  0% { transform: translateX(100px); opacity: 0; filter: blur(5px); }
  100% { transform: translateX(0); opacity: 1; filter: blur(0); }
}
@keyframes pageSlideOutRight {
  0% { transform: translateX(0); opacity: 1; filter: blur(0); }
  100% { transform: translateX(100px); opacity: 0; filter: blur(5px); }
}
@keyframes pageZoomIn {
  0% { transform: scale(0.9); opacity: 0; filter: blur(5px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}
@keyframes pageZoomOut {
  0% { transform: scale(1); opacity: 1; filter: blur(0); }
  100% { transform: scale(0.9); opacity: 0; filter: blur(5px); }
}
@keyframes pageSlideInUp {
  0% { transform: translateY(100px); opacity: 0; filter: blur(5px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes pageSlideOutDown {
  0% { transform: translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: translateY(100px); opacity: 0; filter: blur(5px); }
}
@keyframes pageSlideInDown {
  0% { transform: translateY(-100px); opacity: 0; filter: blur(5px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes pageSlideOutUp {
  0% { transform: translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: translateY(-100px); opacity: 0; filter: blur(5px); }
}

/* ABOUT PAGE STYLES */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.about-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--text-dim); text-decoration: none;
  letter-spacing: 1px; margin-bottom: 40px;
  transition: color .15s;
}
.about-back:hover { color: var(--yellow); }
.about-title {
  font-family: var(--font-display); font-size: 48px;
  color: var(--yellow); letter-spacing: 5px; margin-bottom: 8px;
}
.about-subtitle {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 40px;
}
.about-text {
  font-family: var(--font-body); font-size: 15px;
  color: var(--text); line-height: 1.8;
}
.about-text p { margin: 0 0 20px; }
.about-text strong { color: var(--yellow); }
.about-cta {
  font-family: var(--font-display); font-size: 28px;
  color: var(--yellow); letter-spacing: 3px;
  margin-top: 32px;
}
.about-divider {
  width: 60px; height: 2px;
  background: var(--yellow); margin: 32px 0;
  opacity: 0.4;
}

/* ============================================================
   CUSTOM DATE PICKER
   ============================================================ */

.custom-datepicker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: border-color 0.2s, background 0.2s;
}
.custom-datepicker-trigger:hover {
  border-color: var(--border);
  background: var(--surface2);
}

/* ── Modal overlay ── */
#custom-datepicker-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#custom-datepicker-modal.show {
  pointer-events: all;
}

.datepicker-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#custom-datepicker-modal.show .datepicker-backdrop {
  opacity: 1;
}

.datepicker-container {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  min-width: 340px;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 255, 0, 0.05);
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
#custom-datepicker-modal.show .datepicker-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Header ── */
.datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.datepicker-month-label {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--yellow);
  user-select: none;
}
.datepicker-nav {
  background: none;
  border: 1px solid var(--border-dim);
  color: var(--text);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.datepicker-nav:hover {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--yellow);
}

/* ── Grid ── */
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.datepicker-day-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 1px;
  user-select: none;
}
.datepicker-day {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  user-select: none;
}
.datepicker-day:not(.empty):not(.disabled):hover {
  background: var(--surface2);
  color: var(--yellow);
  transform: scale(1.1);
}
.datepicker-day.empty {
  cursor: default;
}
.datepicker-day.disabled {
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}
.datepicker-day.today {
  border: 1px dashed #FF7F00;
  color: #FF7F00;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
}
.datepicker-day.selected {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(212, 255, 0, 0.3);
}
.datepicker-day.selected:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Hide spin buttons for number inputs */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type="number"] {
  -moz-appearance: textfield;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Reserve chips (solid yellow border) */
.dj-badge.dj-assigned,
.dj-badge.dj-suspens {
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid var(--yellow);
  color: var(--yellow);
}

@media (max-width: 480px) {
  .side-panel {
    width: 100vw;
    right: -100vw;
    padding: 28px 16px;
  }
  .timeslot-add-fields {
    grid-template-columns: 58px 58px 1fr;
    gap: 6px;
  }
}

/* ============================================================
   CONFIRM MODALS
   =========================================================== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.confirm-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fixes for My Gigs UI and Mobile Header Role */
.desktop-only { display: inline; }

.evenement-artist-photo, .evenement-artist-photo-empty {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 12px;
  margin-right: 8px;
}

@media (max-width: 640px) {
  .desktop-only { display: none !important; }
  .badge-sep { display: none; }
  .badge-role { display: none; }
  .role-tooltip-container.show-role-mobile .badge-name { display: none; }
  .role-tooltip-container.show-role-mobile .badge-role { 
    display: inline; 
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  }
}

/* MOBILE MENU MODAL */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 200; display: flex; justify-content: flex-end;
}
.mobile-menu-overlay.closing {
  animation: mobileOverlayFadeOutBg 0.25s ease-in forwards;
}

.mobile-menu-panel {
  width: 85%; max-width: 400px; height: 100vh;
  margin: 0; border-radius: 0; padding: 0;
  display: flex; flex-direction: column;
  background: var(--surface); overflow: hidden;
  animation: slideInRight 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.mobile-menu-panel.closing {
  animation: slideOutRight 0.25s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.mobile-menu-pane { display: none; }
.mobile-menu-pane.active { display: block; animation: blurFadeIn 0.3s forwards; }

.mobile-menu-list {
  display: flex; flex-direction: column; gap: 24px; padding: 24px;
}

.mobile-menu-item {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-transform: uppercase;
}

.mobile-menu-item:hover { color: var(--yellow); }
.mobile-menu-item.danger { color: var(--red); }
.mobile-menu-item.danger:hover { color: #ff6b6b; }

.mobile-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; color: var(--yellow);
  font-family: var(--font-display); font-size: 18px; letter-spacing: 1px;
  cursor: pointer; padding: 0; margin-bottom: 20px;
  transition: transform 0.2s;
}
.mobile-back-btn:hover { transform: translateX(-4px); }

@keyframes popOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.8); opacity: 0; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes mobileOverlayFadeOutBg {
  from { background-color: rgba(0,0,0,0.85); }
  to { background-color: rgba(0,0,0,0); }
}

/* Custom styles for DJ cards in gigs */
a.evenement-artist-card:hover {
  border-color: var(--yellow) !important;
}
a.evenement-artist-card:hover .evenement-artist-card-name {
  color: var(--yellow) !important;
}
