:root {
    --bg: #0c0f14;
    --card: #141924;
    --text: #e8edf6;
    --muted: #a9b3c7;
    --accent: #3b82f6; /* Tomorrowband blue */
    --accent-soft: rgba(59, 130, 246, 0.15);
    --radius: 14px;
    --nav-h: 64px;
    /* Splash palette */
    --rose: #f43f5e; --rose-soft: rgba(244,63,94,.18);
    --amber: #f59e0b; --amber-soft: rgba(245,158,11,.18);
    --violet: #8b5cf6; --violet-soft: rgba(139,92,246,.18);
    --teal: #14b8a6; --teal-soft: rgba(20,184,166,.18);
  }
  
  html[data-theme="bright"] {
    --bg: #f9fbff;
    --card: #ffffff;
    --text: #1a2433;
    --muted: #4a5a75;
    /* accent is site-specific; see .site-* overrides */
  }
  
  body {
    background: radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent),
                radial-gradient(1000px 500px at -10% 110%, var(--accent-soft), transparent),
                var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: .2px;
  }
  /* Use a flat background on admin/global pages to avoid subtle banding */
  body.site-global { background: var(--bg) !important; }

  /* Skip link - visible on focus for keyboard users */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
  }
  .skip-link:focus {
    left: 0;
  }

  /* Focus styles for keyboard accessibility */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* Empty state - centered message with CTA */
  .empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
  }
  .empty-state .btn { margin-top: 0.5rem; }

  /* Load-more button loading state */
  .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  /* Event badge for events within 7 days */
  .event-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    margin-right: 0.5rem;
  }

  /* 404 page */
  .error-404 {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: radial-gradient(ellipse 90% 60% at 50% 20%, var(--accent-soft) 0%, transparent 65%);
  }
  html[data-theme="bright"] .error-404 {
    background: radial-gradient(ellipse 90% 60% at 50% 20%, var(--accent-soft) 0%, rgba(59, 130, 246, 0.06) 30%, transparent 55%);
  }
  .site-tomorrowband .error-404 {
    background: radial-gradient(ellipse 90% 60% at 50% 20%, rgba(53, 93, 189, 0.12) 0%, rgba(53, 93, 189, 0.05) 40%, transparent 65%);
  }
  .error-404__card {
    background: var(--card);
    border-radius: calc(var(--radius) + 6px);
    padding: 3.5rem 2.5rem;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  html[data-theme="bright"] .error-404__card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
  }
  .error-404__content {
    text-align: center;
  }
  .error-404__icon {
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 1rem;
  }
  .error-404__icon svg {
    display: inline-block;
    vertical-align: middle;
  }
  .error-404__number {
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 50%, rgba(59, 130, 246, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
  }
  .site-futureband .error-404__number {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 50%, rgba(153, 35, 87, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .error-404__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
  }
  .error-404__text {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  .error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
  }
  .error-404__btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  }
  .site-futureband .error-404__btn {
    box-shadow: 0 2px 8px rgba(153, 35, 87, 0.25);
  }

  /* Admin polish */
  body.site-global .nav-tabs {
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  html[data-theme="bright"] body.site-global .nav-tabs { border-color: rgba(0,0,0,.08); }
  body.site-global .nav-tabs .nav-link {
    border: none;
    color: var(--muted);
    padding: .5rem 1rem;
    border-radius: 10px;
    margin-right: .25rem;
  }
  body.site-global .nav-tabs .nav-link:hover { background: rgba(0,0,0,.03); text-decoration: none; }
  body.site-global .nav-tabs .nav-link.active {
    background: var(--card);
    color: var(--text) !important;
    border: 1px solid rgba(0,0,0,.08);
  }

  body.site-global .table {
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    overflow: hidden;
  }
  body.site-global .table thead th { border-bottom-color: rgba(0,0,0,.06); font-weight: 700; color: var(--muted); }
  body.site-global .table tbody tr { transition: background .12s ease; }
  body.site-global .table tbody tr:hover { background: rgba(0,0,0,.03); }
  /* Keep action buttons visible */

  body.site-global .badge { border-radius: 999px; font-weight: 600; }
  body.site-global .btn { border-radius: 10px; }
  body.site-global .btn-outline-secondary { border-color: rgba(0,0,0,.2); color: var(--muted); }
  body.site-global .btn-outline-secondary:hover { color: var(--text); }
  body.site-global .btn-outline-danger { border-color: rgba(220, 38, 38, .35); color: #ef4444; }
  body.site-global .btn-outline-danger:hover { background: rgba(239, 68, 68, .08); }

  body.site-global .form-select, body.site-global .form-control { border-radius: 10px; border-color: rgba(0,0,0,.12); }
  body.site-global .form-control:focus, body.site-global .form-select:focus { box-shadow: 0 0 0 .15rem var(--accent-soft); border-color: var(--accent); }

  /* Small brand icons inside buttons/links */
  .brand-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: -3px; }
  .site-main { display: block; padding-top: var(--nav-h); }
  /* Add breathing room on admin/global pages */
  body.site-global .site-main { padding: 24px; }
  .container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
  .container-wide { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
  /* Better mobile padding */
  @media (max-width: 576px) {
    .container-narrow, .container-wide { 
      padding: 0 1rem; 
      max-width: 100%;
    }
    body.site-global .site-main { padding: 16px; }
  }
  
  @media (max-width: 768px) {
    .container-narrow, .container-wide {
      padding: 0 1.25rem;
    }
  }

  /* Site-specific accents (from logos) */
  /* Tomorrowband: #355DBD -> rgb(53,93,189) */
  .site-tomorrowband { --accent: #355DBD; --accent-soft: rgba(53, 93, 189, 0.15); }
  /* Futureband: #992357 -> rgb(153,35,87) */
  .site-futureband { --accent: #992357; --accent-soft: rgba(153, 35, 87, 0.15); }
  
  .band-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    background: rgb(10,12,16); /* fallback when no site class */
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: background .2s ease;
  }
  .site-tomorrowband .band-navbar { background: #0f1a3d; }
  .site-tomorrowband .band-navbar.scrolled { background: #0f1a3d; }
  .site-futureband .band-navbar { background: #2a0a18; }
  .site-futureband .band-navbar.scrolled { background: #2a0a18; }
  
  .band-navbar .nav-link {
    position: relative;
  }
  .band-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
  }
  .band-navbar .nav-link:hover::after {
    width: 100%;
  }
  
  .navbar .logo {
    height: 44px; width: auto; object-fit: contain;
  }
  /* Mobile navbar improvements */
  @media (max-width: 991px) {
    .navbar .container { 
      padding-left: 1rem; 
      padding-right: 1rem; 
      max-width: 100%;
    }
    .navbar-brand {
      font-size: 1rem;
    }
    .navbar-brand .logo {
      height: 32px;
      width: 32px;
    }
    .navbar-toggler {
      border: 1px solid rgba(255,255,255,.2);
      padding: 0.4rem 0.6rem;
      margin-left: auto;
    }
    .navbar-toggler:focus {
      box-shadow: 0 0 0 0.2rem rgba(255,255,255,.25);
    }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .navbar-collapse {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255,255,255,.1);
      max-height: 80vh;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .navbar-collapse:not(.show) {
      max-height: 0;
      margin-top: 0;
      padding-top: 0;
      border-top-color: transparent;
    }
    .navbar-nav {
      padding-bottom: 0.5rem;
    }
    .navbar-nav .nav-item {
      margin-bottom: 0.25rem;
    }
    .navbar-nav .nav-link {
      padding: 0.5rem 0.75rem;
    }
    .navbar-nav .btn {
      margin-top: 0.5rem;
      margin-left: 0 !important;
      width: 100%;
      text-align: center;
      display: block;
    }
  }
  
  .card { background: var(--card); color: var(--text); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); overflow: hidden; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
  .card img { transition: transform 0.3s ease; }
  .card:hover img { transform: scale(1.05); }
  .list-group-item { background: var(--card); color: var(--text); border-color: rgba(255,255,255,.06); }
  .btn { border-radius: 999px; padding:.6rem 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 20px -8px var(--accent); }
  .btn-primary:hover { transform: scale(1.02); }
  .btn-outline-light { border-color: #fff; color: #fff; }
  .cta-banner { background: var(--accent); color: #fff; border-radius: var(--radius); }
  .cta-banner .btn { background: #0a0d12; color: #fff; border-color: #0a0d12; }
  .cta-banner .btn:hover { transform: scale(1.03); box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
  .site-main > .hero:first-child { margin-top: calc(-1 * var(--nav-h)); }
  .hero { position: relative; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
  .hero .overlay { position: absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.5)); }
  .site-tomorrowband .hero .overlay { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65)); }
  .hero h1, .hero .lead { text-shadow: 0 2px 10px rgba(0,0,0,.35); }
  .hero .content, .hero .content h1, .hero .content .lead { color: #fff; }
  .hero .content { position: relative; opacity: 0; transform: translateY(24px); animation: heroFadeUp 0.6s ease forwards; }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero .content { opacity: 1; transform: none; animation: none; }
  }
  /* Mobile hero improvements */
  @media (max-width: 576px) {
    .hero {
      margin-bottom: 1rem !important;
    }
    .hero img,
    .hero > div > div[style*="height"] {
      height: 400px !important;
      min-height: 400px;
    }
    .hero .content {
      padding-bottom: 2rem;
    }
    .hero .content .container-narrow {
      padding: 1.5rem !important;
      margin: 0 1rem;
      width: calc(100% - 2rem);
      max-width: none;
    }
    .hero .content h1 {
      font-size: 1.75rem !important;
      margin-bottom: 0.75rem;
    }
    .hero .content .lead {
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
      max-width: 100% !important;
    }
    .hero .content .btn {
      display: block;
      width: 100%;
      margin-bottom: 0.75rem;
      margin-right: 0 !important;
      padding: 0.75rem 1rem;
    }
    .hero .content .btn:last-child {
      margin-bottom: 0;
    }
  }
  
  @media (max-width: 768px) {
    .hero img,
    .hero > div > div[style*="height"] {
      height: 480px !important;
    }
  }
  
  /* Prevent horizontal overflow on mobile */
  @media (max-width: 576px) {
    html, body {
      overflow-x: hidden;
      width: 100%;
    }
    .container, .container-narrow, .container-wide {
      max-width: 100%;
      width: 100%;
      padding-left: 1rem;
      padding-right: 1rem;
    }
    img {
      max-width: 100%;
      height: auto;
    }
    .hero img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
    .cta-banner {
      padding: 1.5rem !important;
    }
    .cta-banner .h4 {
      font-size: 1.25rem;
    }
    .section-title {
      font-size: 1.5rem;
    }
  }
  /* Decorative divider that lets the next section flow into the hero */
  .section-divider { position: relative; height: 80px; margin-top: -80px; z-index: 2; pointer-events: none; }
  .section-divider svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .section-divider path { fill: var(--bg); }
  .section-title { border-left: none; padding-left: 0; font-weight: 800; letter-spacing: .2px; margin-bottom: 1.25rem; position: relative; }
.section-title::before { content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em; width: 4px; background: var(--accent); border-radius: 2px; }
.section-title { padding-left: 14px; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  .gallery-img { height: 220px; object-fit: cover; }
  .event-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
  .section { padding: 4rem 0; position: relative; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .section.section-visible { opacity: 1; transform: translateY(0); }
  @media (max-width: 768px) {
    .section { padding: 3rem 0; }
  }
  @media (max-width: 576px) {
    .section { padding: 2.5rem 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .section { opacity: 1; transform: none; transition: none; }
    .section.section-visible { opacity: 1; transform: none; }
  }
  .section.overlap-top { margin-top: -2.25rem; z-index: 3; }
  /* Overflowing color splashes */
  .section.splash::before { content: ""; position: absolute; z-index: 0; left: -10%; right: -10%; top: -110px; height: 320px; border-radius: 50%; filter: blur(24px); background: radial-gradient(900px 240px at 20% 20%, var(--splash-color, var(--accent-soft)), transparent); pointer-events: none; }
  .section.splash.splash-right::before { background: radial-gradient(900px 240px at 80% 20%, var(--splash-color, var(--accent-soft)), transparent); }
  .section.splash.splash-bottom::before { top: auto; bottom: -130px; background: radial-gradient(900px 240px at 20% 80%, var(--splash-color, var(--accent-soft)), transparent); }
  .splash-accent { --splash-color: var(--accent-soft); }
  .splash-rose { --splash-color: var(--rose-soft); }
  .splash-amber { --splash-color: var(--amber-soft); }
  .splash-violet { --splash-color: var(--violet-soft); }
  .splash-teal { --splash-color: var(--teal-soft); }
  /* Poster download button - ensure visibility on light splash background */
  #materialen .btn-primary, #materialen a.btn[download] {
    background: var(--accent) !important;
    color: #fff !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
  }
  /* Futureband: materialen links in Futureband style (magenta) */
  .site-futureband #materialen.splash-teal { --splash-color: var(--accent-soft); }
  .site-futureband #materialen .btn-primary, .site-futureband #materialen a.btn[download] {
    background: #992357 !important;
    border-color: #992357 !important;
  }
  html[data-theme="bright"] #materialen .btn-primary,
  html[data-theme="bright"] #materialen a.btn[download] {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
  }
  html[data-theme="bright"] .site-futureband #materialen .btn-primary,
  html[data-theme="bright"] .site-futureband #materialen a.btn[download] {
    background: #992357 !important;
    border-color: #7a1c45 !important;
  }
  #materialen .btn-primary:hover, #materialen a.btn[download]:hover {
    filter: brightness(1.08);
  }
  .section > * { position: relative; z-index: 1; }
  .photo-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 10px; gap: .6rem; }
  @media (max-width: 992px) { .photo-mosaic { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 576px) { .photo-mosaic { grid-template-columns: repeat(2, 1fr); } }
  .photo-mosaic img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; grid-row: span 18; transition: transform .2s ease, box-shadow .2s ease; cursor: zoom-in; }
  .photo-mosaic img:nth-child(6n+1) { grid-row: span 28; grid-column: span 2; }
  .photo-mosaic img:nth-child(6n+3) { grid-row: span 24; grid-column: span 2; }
  .photo-mosaic img:nth-child(6n) { grid-row: span 32; grid-column: span 3; }
  @media (max-width: 992px) {
    .photo-mosaic img:nth-child(6n) { grid-column: span 2; grid-row: span 26; }
  }
  @media (max-width: 576px) {
    .photo-mosaic img, .photo-mosaic img:nth-child(6n), .photo-mosaic img:nth-child(6n+1), .photo-mosaic img:nth-child(6n+3) { grid-column: span 1; grid-row: span 22; }
  }
  .photo-mosaic img:hover { transform: scale(1.02); box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }

  /* Cards grid */
  .grid { display: grid; gap: 1rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 992px) { 
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); } 
  }
  @media (max-width: 768px) { 
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); } 
  }
  @media (max-width: 576px) { 
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; } 
  }
  .card-cover { height: 220px; object-fit: cover; }
  /* Staggered card animations when section becomes visible */
  @keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .section-visible .grid > .card {
    opacity: 0;
    animation: cardFadeIn 0.4s ease forwards;
  }
  .section-visible .grid > .card:nth-child(1) { animation-delay: 0.05s; }
  .section-visible .grid > .card:nth-child(2) { animation-delay: 0.1s; }
  .section-visible .grid > .card:nth-child(3) { animation-delay: 0.15s; }
  .section-visible .grid > .card:nth-child(4) { animation-delay: 0.2s; }
  .section-visible .grid > .card:nth-child(5) { animation-delay: 0.25s; }
  .section-visible .grid > .card:nth-child(6) { animation-delay: 0.3s; }
  .section-visible .grid > .card:nth-child(7) { animation-delay: 0.35s; }
  .section-visible .grid > .card:nth-child(8) { animation-delay: 0.4s; }
  .section-visible .grid > .card:nth-child(9) { animation-delay: 0.45s; }
  .section-visible .grid > .card:nth-child(10) { animation-delay: 0.5s; }
  .section-visible .grid > .card:nth-child(11) { animation-delay: 0.55s; }
  .section-visible .grid > .card:nth-child(12) { animation-delay: 0.6s; }
  @media (prefers-reduced-motion: reduce) {
    .section-visible .grid > .card {
      opacity: 1;
      animation: none;
    }
  }
  .section.alt { background: rgba(255,255,255,.03); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
  
  /* Better card spacing on mobile */
  @media (max-width: 576px) {
    .grid {
      gap: 1.25rem;
    }
    .card {
      margin-bottom: 0;
    }
    .card .p-3 {
      padding: 1.25rem !important;
    }
    .card h6 {
      font-size: 1.1rem;
      line-height: 1.4;
      margin-bottom: 0.5rem;
    }
    .card .small {
      font-size: 0.9rem;
      line-height: 1.5;
    }
  }
  
  @media (max-width: 768px) {
    .grid {
      gap: 1.15rem;
    }
  }

  /* Lightbox */
  .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; overflow-y: auto; opacity: 0; transition: opacity 0.25s ease; }
  /* Lighter backdrop + light panel for events */
  .lightbox.is-event { background: rgba(0,0,0,.35); }
  .lightbox.is-event .lightbox-panel { background: #ffffff; color: #1a2433; border-color: rgba(0,0,0,.08); }
  .lightbox.is-event .lightbox-panel .small, .lightbox.is-event .lightbox-panel .text-muted { color: #4a5a75; }
  .lightbox.show { display: flex; }
  .lightbox.show.lightbox-visible { opacity: 1; }
  .lightbox-body { max-width: 100%; max-height: 100%; color: #fff; overflow-y: auto; transform: scale(0.95); transition: transform 0.25s ease; }
  .lightbox.show.lightbox-visible .lightbox-body { transform: scale(1); }
  @media (prefers-reduced-motion: reduce) {
    .lightbox { transition: none; }
    .lightbox-body { transition: none; }
  }
  
  /* Admin modal specific styling */
  #adminModal {
    overflow-y: auto;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  
  #adminModal .lightbox-body {
    max-width: 900px;
    width: 100%;
    margin: auto;
    overflow-y: visible;
    background: var(--card);
    border-radius: 12px;
    padding: 0;
    max-height: none;
  }
  
  /* Ensure admin forms can scroll in modal */
  #adminModal .lightbox-body > div {
    overflow-y: visible;
    min-height: auto;
  }
  
  /* Make sure the modal content doesn't get cut off */
  @media (max-height: 800px) {
    #adminModal {
      align-items: flex-start;
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
  }
  .lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
  .lightbox-panel { background: #121620; color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; max-width: 760px; width: 100%; padding: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  .lightbox-panel .cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: .75rem; }
  .lightbox-close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: transparent; border-radius: 50%; width: 36px; height: 36px; display: block; cursor: pointer; }
  .lightbox-close:hover { background: rgba(255,255,255,.2); }
  .lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #fff; transform-origin: center; }
  .lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: transparent; display: block; cursor: pointer; }
  .lightbox-prev::before, .lightbox-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform-origin: center; }
  .lightbox-prev::before { transform: translate(-50%, -50%) rotate(-45deg); }
  .lightbox-next::before { transform: translate(-50%, -50%) rotate(135deg); }
  .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  @media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox .lightbox-body { transition: none; }
  }
  .event-card { cursor: pointer; }
  html { scroll-behavior: smooth; }
  /* Limit active link styling to pill-style navs to avoid hiding text on tab navs */
  .nav-pills .nav-link.active { color: #fff !important; position: relative; }
  .nav-pills .nav-link.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px; background: #fff; border-radius: 2px; }

  /* Admin: site-colored badges */
  body.site-global .badge-site { border-radius: 999px; font-weight: 700; border: 1px solid transparent; }
  body.site-global .badge-site-tomorrowband { background: #355DBD; color: #fff; }
  body.site-global .badge-site-futureband { background: #992357; color: #fff; }

  /* Floating Join button */
  .join-fab { position: fixed; right: 20px; bottom: 20px; background: var(--accent); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .8rem 1.1rem; z-index: 1100; box-shadow: 0 16px 40px -18px var(--accent); font-weight: 700; animation: fabPulse 2.5s ease-in-out infinite; }
  .join-fab:hover { text-decoration: none; transform: translateY(-1px); }
  @media (max-width: 576px) { .join-fab { right: 12px; bottom: 12px; } }

  /* Back-to-top button - bottom right, above join-fab */
  .back-to-top { position: fixed; right: 20px; bottom: 80px; z-index: 1090; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.25rem; opacity: 0.7; visibility: visible; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
  .back-to-top.visible { opacity: 1; }
  .back-to-top:hover { color: #fff; transform: translateY(-2px); }
  @media (max-width: 576px) { .back-to-top { right: 12px; bottom: 72px; width: 40px; height: 40px; } }
  @keyframes fabPulse {
    0%, 100% { box-shadow: 0 16px 40px -18px var(--accent); }
    50% { box-shadow: 0 16px 48px -12px var(--accent); }
  }
  @media (prefers-reduced-motion: reduce) {
    .join-fab { animation: none; }
  }
  
  /* Footer */
  .footer { text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
  .footer-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .footer-links a { color: var(--muted); text-decoration: none; }
  .footer-links a:hover { color: var(--accent); text-decoration: underline; }
  .footer-social a { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
  .footer-social a:hover { color: var(--accent); }
  .footer-copy { color: var(--muted); }

  /* Contact links */
  .contact-link { transition: opacity 0.2s ease; }
  .contact-link:hover { opacity: 0.8; text-decoration: underline; }
  
  /* Contact info responsive grid */
  .contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  @media (min-width: 768px) {
    .contact-details-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Simple WYSIWYG Editor Styles */
  .simple-editor-content {
    outline: none;
    line-height: 1.6;
  }
  
  .simple-editor-content:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .15rem var(--accent-soft);
  }
  
  .simple-editor-content p {
    margin: 0 0 0.5rem 0;
  }
  
  .simple-editor-content p:last-child {
    margin-bottom: 0;
  }
  
  .simple-editor-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
  }
  
  .simple-editor-content ul:last-child {
    margin-bottom: 0;
  }
  
  .simple-editor-content li {
    margin: 0.25rem 0;
  }
  
  .simple-editor-content strong,
  .simple-editor-content b {
    font-weight: 700;
  }
  
  .simple-editor-content em,
  .simple-editor-content i {
    font-style: italic;
  }
  
  /* Toolbar button active state */
  .editor-btn-bold.active,
  .editor-btn-italic.active {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  
  .editor-btn-bold.active strong,
  .editor-btn-italic.active em {
    color: inherit;
  }
  
  html[data-theme="bright"] .simple-editor-content {
    background-color: #fff;
    color: var(--text);
  }
  
  html[data-theme="bright"] .simple-editor-content:focus {
    background-color: #fff;
  }

  /* Admin form improvements */
  body.site-global .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
  }
  
  body.site-global .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  body.site-global .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
  }
  
  body.site-global .form-label.fw-semibold {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  
  body.site-global .form-control:focus,
  body.site-global .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem var(--accent-soft);
  }
  
  body.site-global input[type="date"]:focus,
  body.site-global input[type="time"]:focus,
  body.site-global input[type="url"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem var(--accent-soft);
  }
  
  body.site-global .text-danger {
    color: #ef4444;
  }

  /* Global reduced-motion: respect user preference for all animations */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
