/* =========================================================
   iBio.is — Full consolidated style.css
   Clean, modern, responsive design (2026-01)
========================================================= */

/* ========== COLOR VARIABLES ========== */
:root {
  --bg: #0b0d10;
  --fg: #eef1f5;
  --muted: #9aa4b2;
  --card: #12161b;
  --accent: #7dd3fc;
  --btn: #1f2937;
  --chip: #111827;

  --radius-lg: 16px;
  --radius-md: 14px;

  --ring: rgba(255,255,255,.06);
  --chip-ring: rgba(255,255,255,.08);

  /* layout */
  --page-width: 1400px;
  --pad-desktop: 16px;
}

/* ========== BASE ========== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  height: 100%;
  min-height: 100svh;
}

body {
  display: flex;
  flex-direction: column;

  /* FOOTER STICKY FIX:
     ensures layout can stretch to full viewport height */
  min-height: 100svh;
}

/* FOOTER STICKY FIX:
   make main area absorb remaining space so footer stays at bottom */
main,
main.container{
  flex: 1 0 auto;
}

/* ========== CONTAINER (single source of truth) ========== */
.container,
.site-header .container,
main.container {
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-desktop);
  padding-right: var(--pad-desktop);
}

/* main gets vertical padding */
main.container {
  padding-top: 0rem;
  padding-bottom: 1rem;
}

/* Desktop: add space between day-nav and content */
@media (min-width: 768px){
  main.container{
    padding-top: 0.5rem;
  }
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: relative;
  top: auto; left: auto; right: auto;
  padding: 10px 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  z-index: 20;

  background: rgba(15,15,15,0.55);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo { display: flex; align-items: center; gap: .5rem; }
.site-logo img { display: block; height: 40px; width: auto; }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.selected-cinema {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  line-height: 1.2;
  display: inline-block;
  vertical-align: middle;

  -webkit-mask-image: none;
          mask-image: none;

  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--ring);
  color: var(--fg);
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.filter-toggle:hover { transform: translateY(-1px); background: #131922; }
.filter-toggle:focus { outline: none; border-color: var(--accent); }
.filter-toggle .icon { font-size: 1.05rem; line-height: 1; }

/* Header responsive adjustments */
@media (max-width: 520px) {
  .site-logo img { height: 34px; }
  .header-right { gap: 0.5rem; }
  .selected-cinema { max-width: 180px; font-size: 0.9rem; }
  .filter-toggle { width: 36px; height: 36px; border-radius: 9px; }
}
@media (min-width: 521px) and (max-width: 768px) {
  .selected-cinema { max-width: 220px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .selected-cinema { max-width: 240px; }
}
@media (min-width: 1025px) {
  .selected-cinema { max-width: 260px; }
}

/* =========================================================
   DAY NAV (UNIFIED — DESKTOP + MOBILE)
========================================================= */

.day-nav{
  position: sticky;
  top: 0;
  z-index: 90;

  width: 100%;
  margin: 0;
  padding: 10px 0;

  background: rgba(15, 18, 22, 0.90);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.day-nav-inner{
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-desktop);
  padding-right: var(--pad-desktop);

  display: grid;
  /* Match header menu button bubble size */
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  column-gap: 10px;
}

/* arrows */
.day-arrow,
a.day-arrow,
button.day-arrow{
  /* Match header menu button bubble (menu-toggle) */
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid var(--ring);
  background: var(--chip);
  color: var(--fg);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.day-arrow:hover{ background: #131922; }
.day-arrow.disabled{ opacity: .45; cursor: default; }

.day-arrow.prev{ justify-self: start; }
.day-arrow.next{ justify-self: end; }

/* center bubble (gear + date label) */
.day-nav-bubble{
  justify-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 38px;              /* ← MATCH arrows */
  padding: 0 14px;           /* horizontal padding only */
  border-radius: 10px;       /* same visual radius as arrows */
  border: 1px solid var(--ring);
  background: var(--btn);
  color: var(--fg);

  cursor: pointer;
  max-width: 100%;
}

.day-gear{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 0.95em;
  opacity: 0.75;
  line-height: 1;
}

.day-label{
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   GRID / MOVIE CARDS
========================================================= */

.grid{
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 3 columns */
@media (min-width: 768px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 4 columns */
@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 5 columns */
@media (min-width: 1280px){
  .grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  width: 100%;

  /* FOOTER STICKY FIX:
     push footer to bottom when content is short */
  margin-top: auto;

  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,15,15,0.65);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.footer-link{
  color: var(--fg);
  text-decoration:none;
  opacity: 0.9;
}
.footer-link:hover{ opacity: 1; }

.footer-search{
  display:flex;
  align-items:center;
  gap: 8px;
}
.footer-search input{
  width: min(240px, 52vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  max-width: 100%;
}
.footer-search button{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: var(--fg);
  cursor:pointer;
}
.footer-search button:hover{ background: rgba(255,255,255,0.14); }

@media (max-width:700px){
  .footer-inner{ flex-direction: column; align-items: stretch; }
  .footer-search input{ width: 100%; }
}

/* =========================================================
   MOBILE (<= 700px)
========================================================= */
@media (max-width: 700px){

  :root{
    --dock-bottom: 0px;
    --pad-desktop: 6px; /* posters closer to edges */
  }

  /* Header: reduce top/bottom spacing */
  .site-header{
    position: relative;
    top: auto;
    transform: none;

    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 48px;
  }
  .site-header .container{
    padding-top: 0;
    padding-bottom: 0;

    /* Align logo + menu button with poster grid edges */
    padding-left: var(--pad-desktop) !important;
    padding-right: var(--pad-desktop) !important;
  }
  .site-logo img{
    height: 32px;
    max-height: 32px;
  }

  body{
    padding-top: 0;
    padding-bottom: calc(var(--daynav-h, 72px) + env(safe-area-inset-bottom));
  }

  .day-nav{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: var(--dock-bottom) !important;

    width: 100vw !important;
    z-index: 9999 !important;

    /* KEY: remove side padding so arrows align with posters */
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .day-nav-inner{
    /* Match header menu button bubble size */
    grid-template-columns: 38px 1fr 38px;
  }
  .day-arrow{
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .day-nav-bubble{
    padding: 0.55rem 0.9rem;
  }
  .day-label{
    font-size: 1.0rem;
  }

  .grid{
    gap: 0.7rem;
  }
}

/* =========================================================
   HEADER MENU (hamburger + drawer)
========================================================= */

.menu-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--ring);
  color: var(--fg);
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.menu-toggle:hover{ transform: translateY(-1px); background: #131922; }
.menu-toggle:focus{ outline: none; border-color: var(--accent); }

.menu-icon{
  display:inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-icon span{
  display:block;
  width: 18px;
  height: 2px;
  background: currentColor;
  opacity: .95;
  border-radius: 999px;
}

/* Drawer */
.menu-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 9997;
}
.menu-backdrop.open{ opacity: 1; }

.menu-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  width: min(360px, 86vw);
  background: rgba(15, 18, 22, 0.96);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  border-left: 1px solid rgba(255,255,255,0.10);
  box-shadow: -24px 0 60px rgba(0,0,0,.45);
  transform: translateX(102%);
  transition: transform .18s ease;
  z-index: 9998;
  display:flex;
  flex-direction: column;
}
.menu-drawer.open{ transform: translateX(0); }

.menu-drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.menu-drawer-title{
  font-weight: 700;
  font-size: 1.05rem;
}
.menu-close{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg);
  cursor:pointer;
}
.menu-close:hover{ background: rgba(255,255,255,0.10); }

.menu-drawer-body{
  padding: 12px 12px 18px;
  overflow:auto;
}

.menu-section-title{
  margin: 14px 6px 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.menu-link{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin: 8px 0;
}
.menu-link:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* Prevent background scroll when menu is open */
.no-scroll{ overflow: hidden; }

/* =========================================================
   EXTRA RULES MOVED FROM index.php (to support subpages)
========================================================= */
html, body { height: 100%; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

    body { background: var(--bg); color: var(--fg); }

    /* Mobile tweaks */
    @media (max-width:520px) {
      .site-header { height: 56px; }
      body { padding-top: 0; }
    }

    .site-logo img { height: 34px; width: auto; display: block; }
    .header-right { display: flex; align-items: center; gap: 0.8rem; }

    .selected-cinema{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
      max-width: clamp(220px, 40vw, 520px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* fade overlay */
    .selected-cinema::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 32px;
      background: linear-gradient(to right, rgba(11, 13, 16, 0) 60%, var(--bg) 100%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
      z-index: 2;
    }
    .selected-cinema.truncated::after { opacity: 1; }

    /* mobile adjustments */
    @media (max-width: 520px) {
      .selected-cinema {
        font-size: 0.9rem;
        max-width: 180px;
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.2;
        text-align: right;
      }
      .selected-cinema::after {
        width: 28px;
        background: linear-gradient(to right, rgba(11, 13, 16, 0) 40%, var(--bg) 100%);
      }
    }

    @media (max-width: 520px) {
      .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 14px 16px;
      }
      .site-logo img { height: 26px; }
      .header-right {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.6rem;
      }
      .selected-cinema {
        font-size: 0.9rem;
        max-width: 160px;
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.2;
        text-align: right;
      }
      .selected-cinema::after { width: 28px; }
      .filter-toggle { flex: 0 0 auto; }
    }

    .filter-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem;
      border-radius: 999px;
      border: 1px solid var(--ring);
      background: var(--chip);
      color: var(--fg);
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    .filter-toggle .icon { font-size: 1.1rem; line-height: 1; }



    /* GRID / MOVIE CARDS */
    .grid { display: grid; gap: 1rem; margin: 10px 0 28px; }
    .card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
    .poster-wrap { display: block; margin: 0; aspect-ratio: 2/3; background: transparent; border: 0; position: relative; }
    .poster-wrap img {
      display: block; width: 100%; height: 100%;
      object-fit: cover; border: 0; border-radius: 14px;
      background: var(--card);
      transition: transform 0.25s ease;
    }
    .poster-wrap:hover img { transform: scale(1.03); }
    .poster-placeholder {
      display: grid; place-items: center; aspect-ratio: 2/3;
      background: var(--chip); color: var(--muted);
      border-radius: 14px; font-size: 0.95rem;
    }
    .card-body { margin: 0; padding: 12px 14px; background: transparent; border: 0; box-shadow: none !important; }
    .cinema-block { margin-top: 6px; }
    .cinema-name { font-size: 0.92rem; color: var(--muted); margin: 4px 0 6px 2px; }
    /* Showtimes layout:
       - index.php (and other grid pages): 2 showtimes per row on BOTH desktop + mobile
       - film.php: 4 showtimes per row on desktop, 2 per row on mobile
    */

    /* Default: 2 per row everywhere */
    .cinema-block .chips {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      column-gap: 0.5rem;
      row-gap: 0.5rem;
      padding: 0 2px; /* equal inset on both sides */
      align-items: start;
    }

    /* Each chip fills its grid cell and spaces TIME (left) + TAG (right) */
    .cinema-block .chips .chip,
    .cinema-block .chips .chip.disabled{
      justify-self: stretch;
      width: 100%;
      justify-content: space-between;
      box-sizing: border-box;
      grid-column: auto !important; /* never span */
      min-width: 0;
    }

    /* film.php showtimes:
   - Wide desktop: 6 per row
   - Steps down smoothly on resize to avoid cramping/overlap
   - Mobile: 2 per row (handled below)
*/
body.film-page .cinema-block .chips{
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1500px){
  body.film-page .cinema-block .chips{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1280px){
  body.film-page .cinema-block .chips{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1050px){
  body.film-page .cinema-block .chips{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
/* Mobile rules */
    @media (max-width: 700px){
      /* index.php (and other NON-film pages): 1 per row on mobile */
      body:not(.film-page) .cinema-block .chips{
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
      }
      /* film.php: keep 2 per row on mobile */
      body.film-page .cinema-block .chips{
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }


    /* NOTE: fixed selector typo: ".chip, chip.disabled" -> ".chip, .chip.disabled" */
    .chip, .chip.disabled {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.42rem 0.6rem;
      border-radius: 10px;
      border: 1px solid var(--ring);
      background: var(--chip);
      color: var(--fg);
      text-decoration: none;
      font-size: 0.95rem;
    }
    .chip:hover { filter: brightness(1.05); }
    .chip.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
    .chip .chip-tag {
      display: inline-block;
      margin-left: 0.4rem;
      padding: 0.1rem 0.35rem;
      font-size: 0.78em;
      line-height: 1;
      border-radius: 6px;
      border: 1px solid var(--ring);
      background: rgba(255, 255, 255, 0.06);
      color: var(--fg);
      vertical-align: middle;
    }
    .chip.disabled .chip-tag { opacity: 0.8; }

    .empty-today, .empty-day { text-align: center; font-size: 1.2rem; padding: 1.25rem 0 0; color: var(--muted); }
    .empty-day .actions, .empty-today .actions { display: flex; justify-content: center; margin-top: 14px; }
    .empty-day .actions .btn, .empty-today .actions .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.6rem 0.95rem;
      border-radius: 12px;
      border: 1px solid var(--ring);
      background: var(--btn);
      color: var(--fg);
      font-size: 0.95rem;
      text-decoration: none;
    }
    .empty-day .actions .btn:hover, .empty-today .actions .btn:hover { filter: brightness(1.05); }

    /* FILTER PANEL */
    .filter-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
      z-index: 999;
    }
    .filter-backdrop.open { opacity: 1; pointer-events: auto; }

    .filter-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.96);
      background: rgba(18, 22, 27, 0.92);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
      border: 1px solid var(--ring);
      border-radius: 16px;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
      width: min(560px, 92vw);
      max-height: 85vh;
      overflow-y: auto;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 1000;
    }
    .filter-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
    body.no-scroll { overflow: hidden; }
    .filter-panel-inner { padding: 18px; }

    .filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .filter-header h2 { margin: 0; font-size: 1.1rem; color: var(--fg); }
    .filter-close { background: transparent; border: 0; color: var(--fg); font-size: 1.2rem; cursor: pointer; }

    .filter-row { display: grid; gap: 8px; margin-bottom: 14px; }
    .filter-row label { font-size: 0.95rem; color: var(--muted); }
    .filter-row select {
      padding: 0.6rem 0.75rem;
      border-radius: 10px;
      border: 1px solid var(--ring);
      background: var(--chip);
      color: var(--fg);
    }

    .toggle { display: flex; align-items: center; gap: 0.6rem; }
    .toggle .state { min-width: 2.2rem; text-align: left; }

    .switch {
      position: relative;
      width: 52px;
      height: 28px;
      background: var(--chip);
      border: 1px solid var(--ring);
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.18s ease, border-color 0.18s ease;
      display: inline-block;
    }
    .switch::after {
      content: "";
      position: absolute;
      top: 2px;
      left: 2px;
      width: 24px;
      height: 24px;
      background: #fff;
      border-radius: 50%;
      transition: left 0.18s ease;
    }
    .switch.on { background: var(--accent); border-color: transparent; }
    .switch.on::after { left: 26px; }

    .cinema-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .cinema-chip {
      user-select: none;
      cursor: pointer;
      padding: 0.5rem 0.7rem;
      border-radius: 999px;
      border: 1px solid var(--ring);
      background: var(--chip);
      color: var(--fg);
      font-size: 0.95rem;
    }
    .cinema-chip.active { background: var(--accent); color: #0b0d10; border-color: transparent; }

    .filter-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 16px; }
    .btn {
      padding: 0.6rem 0.95rem;
      border-radius: 12px;
      border: 1px solid var(--ring);
      background: var(--btn);
      color: var(--fg);
      cursor: pointer;
    }
    .btn.primary { background: var(--accent); color: #0b0d10; border-color: transparent; }
    .btn.ghost { background: transparent; }

    /* NOTE: removed ONE stray extra "}" here that was breaking CSS parsing */

    /* badges */
    .badge-new {
      position: absolute; left: 8px; top: 8px; z-index: 3;
      background: #ef4444; color: #fff; font-weight: 700;
      padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; line-height: 1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    .badge-classic {
      position: absolute; left: 8px; top: 8px; z-index: 3;
      background: #3b82f6; color: #fff; font-weight: 700;
      padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; line-height: 1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .badge-custom{
      position: absolute; left: 8px; top: 8px; z-index: 3;
      background: #111827; color: #fff; font-weight: 800;
      padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; line-height: 1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255,255,255,0.14);
    }
    /* Optional color tokens from admin dropdown */
    .badge-custom.badge-gold   { background:#b45309; }
    .badge-custom.badge-pink   { background:#db2777; }
    .badge-custom.badge-blue   { background:#2563eb; }
    .badge-custom.badge-green  { background:#16a34a; }
    .badge-custom.badge-red    { background:#dc2626; }
    .badge-custom.badge-purple { background:#7c3aed; }
    .badge-custom.badge-gray   { background:#334155; }


    /* Extra breathing room above footer */
    main.container { padding-bottom: 80px; }
