/* ============================================================
   Your Friend's Band — Design System
   assets/yfb.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:         #0A1F3A;
  --navy-mid:     #11315A;
  --navy-light:   #3D5A6B;
  --orange:       #ED6C2F;
  --orange-light: #FF8C5A;
  --blue:         #00CFFF;
  --pink:         #FF2D78;
  --green:        #39FF14;
  --cream:        #FFF8F0;
  --cream-muted:  rgba(255, 248, 240, 0.6);
  --cream-faint:  rgba(255, 248, 240, 0.15);
  --white-border: rgba(255, 255, 255, 0.1);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-pill: 100px;

  --transition: 0.18s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--cream);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--cream-muted); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,207,255,0.3), rgba(255,45,120,0.3), transparent);
  margin: 2rem 0;
}

strong { font-weight: 600; }

/* ── Layout ───────────────────────────────────────────────── */
.yfb-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.yfb-container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.yfb-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.yfb-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.yfb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 58, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--white-border);
}

.yfb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.yfb-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.yfb-nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yfb-nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: white;
  line-height: 1;
}

.yfb-nav__logo-text span { color: var(--orange); }

.yfb-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.yfb-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.yfb-nav__links a:hover,
.yfb-nav__links a.active {
  color: var(--cream);
}

.yfb-nav__links a.active {
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
}

.yfb-nav__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}

.yfb-nav__cta:hover {
  background: var(--orange-light);
  color: white;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.yfb-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.yfb-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.yfb-nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-top: 0.5px solid var(--white-border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
}

.yfb-nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream-muted);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--white-border);
}

.yfb-nav__mobile a:last-child { border-bottom: none; }
.yfb-nav__mobile a.active { color: var(--cream); }

.yfb-nav__mobile.is-open { display: flex; }

@media (max-width: 640px) {
  .yfb-nav__links { display: none; }
  .yfb-nav__cta { display: none; }
  .yfb-nav__burger { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.yfb-hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.yfb-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background:
    radial-gradient(ellipse at 40% 40%, rgba(0,207,255,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 60%, rgba(255,45,120,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.yfb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0.5px solid rgba(0,207,255,0.4);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.yfb-hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.yfb-hero__title {
  font-size: clamp(3rem, 9vw, 6rem);
  margin-bottom: 1rem;
}

.yfb-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.yfb-hero__sub {
  font-size: 1.05rem;
  color: var(--cream-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.yfb-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Neon Rule Divider ────────────────────────────────────── */
.yfb-rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,207,255,0.4) 25%,
    rgba(255,45,120,0.4) 55%,
    rgba(57,255,20,0.25) 80%,
    transparent 100%);
  margin: 2rem 0;
}

/* ── Section ──────────────────────────────────────────────── */
.yfb-section {
  padding: 3rem 0;
}

.yfb-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.2rem;
}

.yfb-section-label--blue { color: var(--blue); }
.yfb-section-label--green { color: var(--green); }
.yfb-section-label--orange { color: var(--orange); }

/* ── Buttons ──────────────────────────────────────────────── */
.yfb-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 11px 26px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
}

.yfb-btn--primary {
  background: var(--orange);
  color: white;
}
.yfb-btn--primary:hover {
  background: var(--orange-light);
  color: white;
  transform: translateY(-1px);
}

.yfb-btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  border: 0.5px solid rgba(255,255,255,0.2);
}
.yfb-btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
}

.yfb-btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 0.5px solid rgba(0,207,255,0.4);
}
.yfb-btn--ghost:hover {
  background: rgba(0,207,255,0.08);
  color: var(--blue);
}

.yfb-btn--danger {
  background: rgba(255,45,120,0.15);
  color: var(--pink);
  border: 0.5px solid rgba(255,45,120,0.35);
}
.yfb-btn--danger:hover {
  background: rgba(255,45,120,0.25);
  color: var(--pink);
}

.yfb-btn--green {
  background: rgba(57,255,20,0.12);
  color: var(--green);
  border: 0.5px solid rgba(57,255,20,0.35);
}
.yfb-btn--green:hover {
  background: rgba(57,255,20,0.22);
  color: var(--green);
}

.yfb-btn--sm {
  font-size: 12px;
  padding: 7px 16px;
}

.yfb-btn--full { width: 100%; text-align: center; display: block; }

/* ── Cards ────────────────────────────────────────────────── */
.yfb-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.yfb-card--elevated {
  background: #0D2547;
  border-color: rgba(0,207,255,0.15);
}

/* ── Show Banner ──────────────────────────────────────────── */
.yfb-show-banner {
  background: #0D2547;
  border: 0.5px solid rgba(0,207,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.yfb-show-banner__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.yfb-show-banner__divider {
  border: none;
  border-top: 0.5px solid rgba(0, 207, 255, 0.2);
  margin: 0.9rem 0 0.75rem;
}

.yfb-show-banner__reminders {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.yfb-show-banner__reminders li {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  line-height: 1.5;
}

.yfb-show-banner__reminders li strong {
  color: var(--orange-light);
  font-weight: 600;
}

.yfb-show-banner__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}

.yfb-show-banner__name {
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: white;
}

.yfb-show-banner__location {
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 2px;
}

.yfb-show-banner__details {
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 3px;
}

/* ── Song List ────────────────────────────────────────────── */
.yfb-song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.yfb-song-row {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.yfb-song-row__title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.yfb-song-row__artist {
  font-size: 12px;
  color: var(--cream-muted);
}

.yfb-song-row__order {
  font-size: 11px;
  color: var(--cream-faint);
  min-width: 1.5rem;
  padding-top: 2px;
}

/* ── Instrument Chips ─────────────────────────────────────── */
.yfb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.yfb-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.yfb-chip--blue   { background: rgba(0,207,255,0.12);  color: var(--blue);  border: 0.5px solid rgba(0,207,255,0.35); }
.yfb-chip--pink   { background: rgba(255,45,120,0.12); color: var(--pink);  border: 0.5px solid rgba(255,45,120,0.35); }
.yfb-chip--green  { background: rgba(57,255,20,0.1);   color: var(--green); border: 0.5px solid rgba(57,255,20,0.3); }
.yfb-chip--orange { background: rgba(237,108,47,0.12); color: var(--orange-light); border: 0.5px solid rgba(237,108,47,0.35); }
.yfb-chip--taken  { background: rgba(255,255,255,0.04); color: rgba(255,248,240,0.25); border: 0.5px solid rgba(255,255,255,0.08); text-decoration: line-through; }
.yfb-chip--open   { background: rgba(57,255,20,0.1); color: var(--green); border: 0.5px solid rgba(57,255,20,0.3); }

/* ── Status Badge ─────────────────────────────────────────── */
.yfb-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.yfb-badge--green  { background: var(--green); color: #0D2D00; }
.yfb-badge--blue   { background: rgba(0,207,255,0.15); color: var(--blue); border: 0.5px solid rgba(0,207,255,0.35); }
.yfb-badge--orange { background: rgba(237,108,47,0.15); color: var(--orange); border: 0.5px solid rgba(237,108,47,0.35); }
.yfb-badge--muted  { background: rgba(255,248,240,0.06); color: var(--cream-muted); border: 0.5px solid rgba(255,248,240,0.15); }

/* ── Forms ────────────────────────────────────────────────── */
.yfb-form-group {
  margin-bottom: 1.25rem;
}

.yfb-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 7px;
}

.yfb-input,
.yfb-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.yfb-input:focus,
.yfb-select:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0,207,255,0.05);
}

.yfb-input::placeholder { color: rgba(255,248,240,0.3); }

.yfb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300CFFF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.yfb-select option {
  background: var(--navy-mid);
  color: var(--cream);
}

/* ── Login Box ────────────────────────────────────────────── */
.yfb-login-box {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}

.yfb-login-box h2 {
  margin-bottom: 0.5rem;
}

.yfb-login-box p {
  color: var(--cream-muted);
  font-size: 14px;
  margin-bottom: 2rem;
}

/* ── Roster List ──────────────────────────────────────────── */
.yfb-roster {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.yfb-roster li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--white-border);
  font-size: 14px;
  margin-bottom: 0;
}

.yfb-roster li:last-child { border-bottom: none; }

.yfb-roster__instrument { color: var(--cream-muted); }
.yfb-roster__player { font-weight: 600; color: white; }
.yfb-roster__open { color: var(--green); font-style: italic; font-size: 13px; }

/* ── Your Parts ───────────────────────────────────────────── */
.yfb-my-part {
  background: rgba(57,255,20,0.06);
  border: 0.5px solid rgba(57,255,20,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.yfb-my-part__song { font-weight: 600; font-size: 14px; }
.yfb-my-part__artist { font-size: 12px; color: var(--cream-muted); margin-top: 2px; }
.yfb-my-part__est-time { font-size: 11px; color: rgba(255, 248, 240, 0.35); margin-top: 3px; font-style: italic; }
.yfb-my-part__instrument {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(57,255,20,0.1);
  border: 0.5px solid rgba(57,255,20,0.3);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── Reserve Form ─────────────────────────────────────────── */
.yfb-reserve-block {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.yfb-reserve-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.yfb-reserve-block h5 {
  margin-bottom: 0.9rem;
}

/* ── Stats Row ────────────────────────────────────────────── */
.yfb-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem 0 0;
}

.yfb-stat { text-align: center; }
.yfb-stat__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: white;
  display: block;
  line-height: 1;
}
.yfb-stat__label {
  font-size: 11px;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Date Picker ──────────────────────────────────────────── */
.yfb-date-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.yfb-date-picker .yfb-select {
  flex: 1;
  min-width: 200px;
}

/* ── Content Sections (for home page text) ────────────────── */
.yfb-content-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--white-border);
}

.yfb-content-block:last-child { border-bottom: none; }

.yfb-content-block h2 {
  margin-bottom: 1rem;
  color: var(--cream);
}

.yfb-content-block p {
  color: var(--cream-muted);
  max-width: 680px;
  line-height: 1.75;
}

.yfb-content-block p strong { color: var(--cream); }

/* ── Social Icons ─────────────────────────────────────────── */
.yfb-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.yfb-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid var(--white-border);
  transition: all var(--transition);
}

.yfb-social a:hover {
  background: rgba(237,108,47,0.15);
  border-color: rgba(237,108,47,0.4);
}

.yfb-social img { width: 20px; height: 20px; }

/* ── Footer ───────────────────────────────────────────────── */
.yfb-footer {
  border-top: 0.5px solid var(--white-border);
  padding: 1.5rem;
  text-align: center;
}

.yfb-footer p {
  font-size: 13px;
  color: rgba(255,248,240,0.25);
  margin: 0;
}

.yfb-footer a {
  color: rgba(255,248,240,0.4);
}

.yfb-footer a:hover { color: var(--orange); }

/* ── Sort Toggle ──────────────────────────────────────────── */
.yfb-sort-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.yfb-sort-toggle a {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--white-border);
  color: var(--cream-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.yfb-sort-toggle a:hover,
.yfb-sort-toggle a.active {
  background: rgba(0,207,255,0.1);
  border-color: rgba(0,207,255,0.4);
  color: var(--blue);
}

/* ── Alerts / Messages ────────────────────────────────────── */
.yfb-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 1.25rem;
}

.yfb-alert--success {
  background: rgba(57,255,20,0.08);
  border: 0.5px solid rgba(57,255,20,0.25);
  color: var(--green);
}

.yfb-alert--error {
  background: rgba(255,45,120,0.08);
  border: 0.5px solid rgba(255,45,120,0.25);
  color: var(--pink);
}

.yfb-alert--info {
  background: rgba(0,207,255,0.08);
  border: 0.5px solid rgba(0,207,255,0.25);
  color: var(--blue);
}

/* ── Utility ──────────────────────────────────────────────── */
.yfb-text-center { text-align: center; }
.yfb-text-muted  { color: var(--cream-muted); }
.yfb-mt-1 { margin-top: 0.75rem; }
.yfb-mt-2 { margin-top: 1.5rem; }
.yfb-mt-3 { margin-top: 2.5rem; }
.yfb-mb-1 { margin-bottom: 0.75rem; }
.yfb-mb-2 { margin-bottom: 1.5rem; }

/* ── Meet The Band Chart ──────────────────────────────────── */
.yfb-mtb-chart {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 2rem auto 3rem;
}

/* Rotated "Friend ↓" label on left */
.yfb-mtb-ylabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  white-space: nowrap;
  flex-shrink: 0;
}

.yfb-mtb-chart-col { flex: 1; min-width: 0; }

/* "Band →" label above grid, right-aligned */
.yfb-mtb-xlabel {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Wrapper that gives edge-bubbles room to overflow without clipping */
.yfb-mtb-gridwrap {
  position: relative;
  padding: 68px; /* ≥ half of max bubble (120px / 2 = 60px) */
}

/* The actual square grid */
.yfb-mtb-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  overflow: visible; /* bubbles may overflow at 0% / 100% edges */
}

/* Quadrant guide lines */
.yfb-mtb-hline {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.yfb-mtb-vline {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Corner labels (sit inside gridwrap, outside the grid) */
.yfb-mtb-corner {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
.yfb-mtb-corner--tl { top:  72px; left:  72px; color: rgba(237, 108,  47, 0.45); }
.yfb-mtb-corner--tr { top:  72px; right: 72px; color: rgba(  0, 207, 255, 0.35); }
.yfb-mtb-corner--bl { bottom: 72px; left:  72px; color: rgba(255,  45, 120, 0.35); }
.yfb-mtb-corner--br { bottom: 72px; right: 72px; color: rgba(255, 248, 240, 0.25); }

/* Performer bubbles */
.yfb-mtb-bubble {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--orange);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
  transition: left 3s ease-in-out, top 3s ease-in-out,
              transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  z-index: 1;
}

.yfb-mtb-bubble:hover {
  transform: translate(-50%, -50%) scale(1.14);
  border-color: var(--blue);
  box-shadow: 0 0 22px rgba(0, 207, 255, 0.28);
  z-index: 10;
}

.yfb-mtb-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yfb-mtb-bubble__init {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.8rem);
  color: var(--cream);
  line-height: 1;
  pointer-events: none;
}

/* Name tooltip that appears below bubble on hover */
.yfb-mtb-bubble__label {
  position: absolute;
  bottom: calc(-100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 31, 58, 0.92);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--white-border);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.yfb-mtb-bubble:hover .yfb-mtb-bubble__label { opacity: 1; }

/* ── Meet The Band Bios ────────────────────────────────────── */
.yfb-mtb-bios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.yfb-mtb-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  scroll-margin-top: 80px; /* offset for sticky nav */
  transition: border-color var(--transition);
}

.yfb-mtb-bio:target {
  border-color: rgba(0, 207, 255, 0.4);
}

.yfb-mtb-bio__img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
}

.yfb-mtb-bio__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yfb-mtb-bio__init {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
}

.yfb-mtb-bio__name {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.yfb-mtb-bio__text {
  font-size: 13px;
  color: var(--cream-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Quadrant group headings (above each bio section) ─────── */
.yfb-mtb-group-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 0.75rem;
}
.yfb-mtb-group-heading--tl { color: var(--orange); }
.yfb-mtb-group-heading--tr { color: var(--blue); }
.yfb-mtb-group-heading--bl { color: var(--pink); }
.yfb-mtb-group-heading--br { color: var(--cream-muted); }

/* Suppress transition during initial placement so bubbles snap to their edge position */
.yfb-mtb-no-transition { transition: none !important; }

/* Quadrant group description */
.yfb-mtb-group-desc {
  font-size: 13px;
  color: var(--cream-muted);
  margin: 0.15rem 0 1.25rem;
  max-width: 560px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show chart but only The All In (TL) performers */
  .yfb-mtb-chart       { display: flex; max-width: 380px; margin-bottom: 1rem; }
  .yfb-mtb-gridwrap    { padding: 44px; }
  .yfb-mtb-chart-rule  { display: none; }
  /* Hide non-TL bubbles */
  .yfb-mtb-bubble:not([data-q="tl"]) { display: none !important; }
  /* Hide all quadrant labels and axis labels (TL people are top-tier in both) */
  .yfb-mtb-corner,
  .yfb-mtb-ylabel,
  .yfb-mtb-xlabel      { display: none; }
  /* Stack bios */
  .yfb-mtb-bios        { grid-template-columns: 1fr; }
  .yfb-mtb-bio         { flex-direction: column; }
}

@media (max-width: 480px) {
  .yfb-show-banner { flex-direction: column; align-items: flex-start; }
  .yfb-song-row { flex-direction: column; }
  .yfb-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .yfb-my-part { flex-direction: column; align-items: flex-start; }
}

/* ── Player's Room ─────────────────────────────────────────── */

/* Top bar: greeting + logout */
.yfb-gr-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Status badges + coin tokens strip */
.yfb-gr-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 3-column panel grid */
.yfb-gr-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* Individual panel */
.yfb-gr-panel {
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.yfb-gr-panel__header {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 0.5px solid var(--white-border);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.yfb-gr-panel__body {
  padding: 1rem 1.1rem;
  max-height: 72vh;
  overflow-y: auto;
}

/* Thin scrollbar inside panels */
.yfb-gr-panel__body::-webkit-scrollbar        { width: 3px; }
.yfb-gr-panel__body::-webkit-scrollbar-track  { background: transparent; }
.yfb-gr-panel__body::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Sort toggle link inside Panel 2 header */
.yfb-gr-sort-toggle {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border: 0.5px solid rgba(0, 207, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
  transition: all var(--transition);
}
.yfb-gr-sort-toggle:hover {
  background: rgba(0, 207, 255, 0.08);
  color: var(--blue);
}

/* ── Panel 1 — Your Parts ──────────────────────────────────── */

.yfb-gr-part {
  background: rgba(57, 255, 20, 0.04);
  border: 0.5px solid rgba(57, 255, 20, 0.14);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

/* Larger gap between part cards */
div[style*="flex-direction:column; gap:8px"] { gap: 14px !important; }

.yfb-gr-part__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Each instrument row inside a part card */
.yfb-gr-part__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 4px;
}

/* Notes link styled as a small chip */
.yfb-gr-notes-bubble {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 207, 255, 0.1);
  color: var(--blue);
  border: 0.5px solid rgba(0, 207, 255, 0.3);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.yfb-gr-notes-bubble:hover {
  background: rgba(0, 207, 255, 0.2);
  color: var(--blue);
}

/* ── Panel 2 — Available Parts ─────────────────────────────── */

/* Instrument section heading in by-instrument view */
.yfb-gr-inst-group {
  margin-bottom: 1.25rem;
}

.yfb-gr-inst-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

/* ── Panel 2 — Song Request Section ────────────────────────── */

.yfb-gr-req-deadline {
  font-size: 11px;
  color: rgba(255, 248, 240, 0.38);
}

/* Remove button next to each instrument in the request view */
.yfb-gr-req-remove {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 45, 120, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition);
}
.yfb-gr-req-remove:hover { color: var(--pink); }

/* ── Song Request Page (songRequest.php) ────────────────────── */

.yfb-sr-song {
  border-bottom: 0.5px solid var(--white-border);
}
.yfb-sr-song:last-child { border-bottom: none; }

.yfb-sr-song__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.yfb-sr-song__label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.yfb-sr-song__artist {
  font-weight: 400;
  color: var(--cream-muted);
}

.yfb-sr-song__title {
  font-weight: 600;
  color: var(--cream);
  transition: color var(--transition);
}
.yfb-sr-song__toggle:hover .yfb-sr-song__title { color: var(--orange); }

.yfb-sr-song__arrow {
  font-size: 20px;
  color: rgba(255, 248, 240, 0.3);
  flex-shrink: 0;
  line-height: 1;
  transition: color var(--transition);
}
.yfb-sr-song__toggle:hover .yfb-sr-song__arrow { color: var(--orange); }

.yfb-sr-song__parts {
  padding: 0.25rem 0 1rem 1.25rem;
  flex-direction: column;
  gap: 0.6rem;
}
/* Only display as flex when the hidden attribute is absent */
.yfb-sr-song__parts:not([hidden]) {
  display: flex;
}

.yfb-sr-part {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.yfb-sr-part input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}

.yfb-sr-part__name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cream-muted);
  transition: color var(--transition);
}
.yfb-sr-part:has(input:checked) .yfb-sr-part__name {
  color: var(--orange);
}

.yfb-sr-new-song {
  border: 1px solid rgba(255,248,240,0.12);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: rgba(255,248,240,0.04);
}
.yfb-sr-new-song__heading {
  font-size: 0.95rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* ── Part row (label + star) ─────────────────────────────────────── */
.yfb-sr-part-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Star button */
.yfb-sr-star {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 248, 240, 0.2);
  cursor: pointer;
  transition: color var(--transition), transform 0.15s ease;
}
.yfb-sr-star:hover {
  color: rgba(255, 200, 60, 0.7);
  transform: scale(1.15);
}
.yfb-sr-star--active {
  color: #ffc83c;
}
.yfb-sr-star--active:hover {
  color: rgba(255, 200, 60, 0.6);
}

/* ── Favorites section ───────────────────────────────────────────── */
.yfb-sr-favorites {
  background: rgba(255, 200, 60, 0.05);
  border: 0.5px solid rgba(255, 200, 60, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.yfb-sr-favorites__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc83c;
}
.yfb-sr-favorites__summary::-webkit-details-marker { display: none; }
.yfb-sr-favorites__summary:hover { opacity: 0.8; }

#sr-fav-count {
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 200, 60, 0.6);
}

.yfb-sr-favorites__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.65rem;
}

.yfb-sr-fav-song {
  font-weight: 600;
  color: var(--cream);
}

.yfb-sr-submit-bar {
  position: sticky;
  bottom: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

/* ── Panel 3 — Full Setlist ─────────────────────────────────── */

.yfb-gr-setlist-song {
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--white-border);
}
.yfb-gr-setlist-song:first-child { padding-top: 0; }
.yfb-gr-setlist-song:last-child  { border-bottom: none; padding-bottom: 0; }

.yfb-gr-setlist-song__header {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

.yfb-gr-setlist-song__num {
  color: rgba(255, 248, 240, 0.3);
  font-weight: 400;
  font-size: 11px;
  min-width: 1.2rem;
  flex-shrink: 0;
}

.yfb-gr-setlist-song__artist {
  font-size: 11px;
  font-weight: 400;
  color: var(--cream-muted);
  width: 100%;
}

.yfb-gr-setlist-parts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yfb-gr-setlist-parts li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  margin: 0;
  gap: 0.5rem;
}

.yfb-gr-setlist-parts__inst   { color: var(--cream-muted); flex-shrink: 0; }
.yfb-gr-setlist-parts__player { font-weight: 600; color: var(--cream); text-align: right; }
.yfb-gr-setlist-parts__open   { color: var(--green); font-style: italic; font-size: 11px; text-align: right; }

.yfb-gr-setlist-parts__open-row { opacity: 0.55; }

/* "All parts taken" prominent message in Panel 2 */
.yfb-gr-all-taken {
  background: rgba(0, 207, 255, 0.06);
  border: 0.5px solid rgba(0, 207, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-muted);
  text-align: center;
}

/* Settings page layout */
.yfb-gr-settings-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.yfb-gr-settings-card {
  padding: 1.75rem;
}

@media (max-width: 640px) {
  .yfb-gr-settings-page { grid-template-columns: 1fr; }
}

/* ── Admin Banner ───────────────────────────────────────────── */
.yfb-gr-admin {
  background: rgba(237, 108, 47, 0.07);
  border: 0.5px solid rgba(237, 108, 47, 0.22);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.yfb-gr-admin__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(237, 108, 47, 0.14);
  border: 0.5px solid rgba(237, 108, 47, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.yfb-gr-admin__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yfb-gr-admin__links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--orange-light);
  text-decoration: none;
}
.yfb-gr-admin__links a:hover { color: var(--orange); text-decoration: underline; }

/* ── Settings (collapsible) ─────────────────────────────────── */
.yfb-gr-settings {
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.yfb-gr-settings summary.yfb-gr-settings__toggle {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
  background: rgba(255, 255, 255, 0.03);
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.yfb-gr-settings summary.yfb-gr-settings__toggle::-webkit-details-marker { display: none; }
.yfb-gr-settings[open] summary.yfb-gr-settings__toggle {
  color: var(--cream);
  border-bottom: 0.5px solid var(--white-border);
}

.yfb-gr-settings__body {
  padding: 1.5rem 1.25rem;
}

.yfb-gr-settings__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Streaming preference toggle buttons */
.yfb-gr-streaming-opts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.yfb-gr-streaming-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
  user-select: none;
}
.yfb-gr-streaming-opt input[type="radio"] { display: none; }
.yfb-gr-streaming-opt:hover { background: rgba(255, 255, 255, 0.05); }
.yfb-gr-streaming-opt--active {
  background: rgba(0, 207, 255, 0.08);
  border-color: rgba(0, 207, 255, 0.4);
  color: var(--blue);
}

/* ── Player's Room Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .yfb-gr-panels {
    grid-template-columns: 1fr;
  }
  .yfb-gr-panel__body {
    max-height: none;
  }
  .yfb-gr-settings__cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .yfb-gr-admin { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ============================================================
   Photos Page (photos.php)
   ============================================================ */

.yfb-photos-page-header {
  margin-bottom: 2rem;
}
.yfb-photos-page-sub {
  color: var(--cream-muted);
  font-size: 14px;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.yfb-photos-empty {
  color: var(--cream-muted);
  text-align: center;
  padding: 3rem 0;
}

/* ── Per-show collapsible section ─────────────────────────── */
.yfb-photos-section {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.yfb-photos-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.yfb-photos-summary::-webkit-details-marker { display: none; }
.yfb-photos-summary::marker { display: none; }

.yfb-photos-section[open] .yfb-photos-summary {
  border-bottom: 0.5px solid var(--white-border);
}
.yfb-photos-summary:hover { background: rgba(255,255,255,0.04); }

.yfb-photos-summary__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yfb-photos-summary__venue {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.yfb-photos-summary__loc {
  font-size: 13px;
  color: var(--cream-muted);
}

.yfb-photos-summary__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.yfb-photos-summary__date {
  font-size: 14px;
  color: var(--orange);
  font-weight: 500;
}
.yfb-photos-summary__count {
  font-size: 12px;
  color: var(--cream-muted);
}

/* ── Photo grid ──────────────────────────────────────────── */
.yfb-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1rem;
  align-items: flex-start;
}

/* Wrapper — must not grow; stacks button + caption vertically */
.yfb-photos-grid__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* The clickable image button — no browser chrome */
.yfb-photos-grid__btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0; /* removes phantom gap under img */
}
.yfb-photos-grid__btn:hover .yfb-photos-grid__img {
  opacity: 0.82;
  transform: translateY(-2px);
}

.yfb-photos-grid__img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.yfb-photos-grid__caption {
  display: block;
  font-size: 11px;
  color: var(--cream-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 120px;
}

/* ── Lightbox ────────────────────────────────────────────── */

/* Hidden by default — critical on mobile where dialog CSS can leak */
.yfb-lightbox {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

/* Only shown when the [open] attribute is present */
.yfb-lightbox[open] {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: rgba(5, 15, 30, 0.96);
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.yfb-lightbox::backdrop {
  background: rgba(5, 15, 30, 0.9);
}

.yfb-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 140px);
  max-height: 90vh;
}

.yfb-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.yfb-lightbox__caption {
  color: var(--cream-muted);
  font-size: 14px;
  margin-top: 0.75rem;
  text-align: center;
}

.yfb-lightbox__counter {
  color: rgba(255,248,240,0.35);
  font-size: 12px;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.yfb-lightbox__close,
.yfb-lightbox__prev,
.yfb-lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background var(--transition);
  z-index: 1000;
}
.yfb-lightbox__close:hover,
.yfb-lightbox__prev:hover,
.yfb-lightbox__next:hover {
  background: rgba(255,255,255,0.18);
}

.yfb-lightbox__close { top: 1rem; right: 1rem; font-size: 26px; }
.yfb-lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.yfb-lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .yfb-photos-grid {
    gap: 5px;
    padding: 0.75rem;
  }
  .yfb-photos-grid__img {
    height: 50px;
  }
  .yfb-lightbox__content {
    max-width: calc(100vw - 100px);
  }
  .yfb-lightbox__prev { left: 0.4rem; }
  .yfb-lightbox__next { right: 0.4rem; }
}

/* ============================================================
   Admin Photos Page (adminPhotos.php)
   ============================================================ */

.yfb-ap-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.yfb-ap-flash--ok  { background: rgba(57,255,20,0.1);  color: var(--green); border: 0.5px solid rgba(57,255,20,0.3); }
.yfb-ap-flash--err { background: rgba(255,45,120,0.1); color: var(--pink);  border: 0.5px solid rgba(255,45,120,0.3); }

/* Date selector row */
.yfb-ap-date-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Upload section */
.yfb-ap-upload {}

.yfb-ap-dropzone {
  border: 1.5px dashed rgba(0,207,255,0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}
.yfb-ap-dropzone--over {
  background: rgba(0,207,255,0.06);
  border-color: var(--blue);
}
.yfb-ap-dropzone__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.yfb-ap-dropzone__text { font-size: 16px; color: var(--cream); margin-bottom: 0.25rem; }
.yfb-ap-dropzone__sub  { color: var(--cream-muted); font-size: 13px; margin-bottom: 0.75rem; }
.yfb-ap-dropzone__hint { font-size: 12px; color: rgba(255,248,240,0.35); margin-top: 0.75rem; margin-bottom: 0; }

/* Preview grid (before upload) */
.yfb-ap-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.yfb-ap-preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yfb-ap-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.yfb-ap-preview-name {
  font-size: 11px;
  color: var(--cream-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Existing photos management grid */
.yfb-ap-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.yfb-ap-manage-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--white-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.yfb-ap-manage-thumb-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.yfb-ap-manage-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.yfb-ap-manage-thumb:hover { transform: scale(1.04); }

.yfb-ap-manage-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.yfb-ap-manage-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.yfb-ap-manage-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yfb-ap-manage-order-input {
  width: 64px !important;
  padding: 7px 10px;
  flex-shrink: 0;
}
