/* =====================================================================
   Studio19 — Dark rock / rehearsal studio aesthetic
   Mobile-first, Bootstrap 5 overrides
   ===================================================================== */

:root {
  --bg:          #0a0a0d;
  --bg-soft:     #101015;
  --surface:     #15151c;
  --surface-2:   #1c1c26;
  --surface-3:   #24242f;
  --line:        #2c2c39;
  --text:        #f3f3f6;
  --muted:       #9a9aac;
  --accent:      #e63946;
  --accent-hi:   #ff4d5a;
  --amber:       #ff8a3d;
  --success:     #35c46a;
  --warning:     #f5b942;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 45px rgba(0, 0, 0, .55);
  --font:        "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", Impact, var(--font);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(230, 57, 70, .16), transparent 60%),
    radial-gradient(900px 520px at -10% 10%, rgba(255, 138, 61, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; }

.display-brand {
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: .95;
}

.text-muted, .text-secondary { color: var(--muted) !important; }

a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #fff; }

::selection { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- Navbar */
.navbar-studio {
  background: rgba(10, 10, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
}
.navbar-studio .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.05rem;
}
.navbar-studio .brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}
.navbar-studio .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .93rem;
  padding: .55rem .9rem !important;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.navbar-studio .nav-link:hover,
.navbar-studio .nav-link.active { color: #fff; background: rgba(255, 255, 255, .06); }
.navbar-studio .navbar-toggler {
  border: 1px solid var(--line);
  padding: .35rem .55rem;
}
.navbar-studio .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(230, 57, 70, .25); }
.navbar-studio .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='%23f3f3f6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------------------- Buttons */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: .01em; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #c1121f);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 70, .3);
}
.btn-accent:hover, .btn-accent:focus {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: #fff; border-color: #3a3a4a; }
.btn-outline-light { border-color: rgba(255,255,255,.35); }
.btn-lg { padding: .8rem 1.5rem; }

/* ---------------------------------------------------------------- Cards */
.card-studio {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-studio .card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
  font-weight: 700;
}
.card-studio .card-body { padding: 1.25rem; }

.stat-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.28), transparent 70%);
}
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.stat-card .stat-icon { font-size: 1.4rem; color: var(--accent-hi); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}

/* ---- Hero slider ---- */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 7s linear;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-content { position: relative; z-index: 1; }

.hero-controls {
  position: absolute;
  left: 0; right: 0; bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  z-index: 2;
}
.hero-arrow {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,10,13,.45);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .18s, border-color .18s, transform .18s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.hero-dots { display: flex; align-items: center; gap: .45rem; }
.hero-dot {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.32);
  transition: width .22s ease, background .22s ease;
}
.hero-dot.is-active { width: 26px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .2s linear; transform: none !important; }
}

/* ---- Settings: hero slide editor ---- */
.hero-slide-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .9rem;
}
.hero-slide-slot {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: .6rem;
  background: var(--surface-2);
}
.hero-slide-slot.has-image { border-style: solid; }
.hero-slide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.hero-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-thumb span {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  color: var(--muted); font-size: .72rem;
}
.hero-slide-thumb i { font-size: 1.2rem; }
.badge-soft {
  background: rgba(230,57,70,.14);
  color: var(--accent-hi);
  border: 1px solid rgba(230,57,70,.35);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .6rem;
}

@media (max-width: 575.98px) {
  .hero-controls { bottom: .9rem; gap: .5rem; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-slide-editor { grid-template-columns: 1fr 1fr; gap: .6rem; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,9,.94) 0%, rgba(6,6,9,.78) 45%, rgba(6,6,9,.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 45%);
  z-index: -1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 138, 61, .35);
  background: rgba(255, 138, 61, .08);
  padding: .45rem .85rem;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .01em;
  margin: 1.1rem 0 .6rem;
}
.hero h1 .accent { color: var(--accent); text-shadow: 0 0 40px rgba(230,57,70,.55); }
.hero p.lead { color: #cfcfda; max-width: 34rem; font-size: 1.02rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1.6rem; color: var(--muted); font-size: .86rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta i { color: var(--accent-hi); }

/* ---------------------------------------------------------------- Sections */
.section { padding: 3.2rem 0; }
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.eyebrow {
  color: var(--accent-hi);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(230, 57, 70, .12);
  border: 1px solid rgba(230, 57, 70, .25);
  color: var(--accent-hi);
  font-size: 1.25rem;
}

.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.07);
  color: #d6d6e0;
  font-size: .93rem;
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list i { color: var(--success); margin-top: .15rem; }

/* ---------------------------------------------------------------- Forms */
.form-label { font-weight: 700; font-size: .84rem; color: #d8d8e2; margin-bottom: .4rem; }
.form-control, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .18);
}
.form-control::placeholder { color: #6c6c7d; }
.form-control:disabled, .form-control[readonly] { background: #101015; color: var(--muted); }
.form-text { color: var(--muted); }
.input-group-text {
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 10px;
}
.form-check-input {
  background-color: var(--surface-3);
  border-color: #3a3a4a;
}
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(230, 57, 70, .18); }
.form-check-label { color: #d6d6e0; }
hr { border-color: var(--line); opacity: 1; }

/* ---------------------------------------------------------------- Auth */
.auth-wrap { padding: 2.2rem 0 3.5rem; }
.auth-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-side {
  background:
    linear-gradient(180deg, rgba(10,10,13,.55), rgba(10,10,13,.92)),
    url("../img/hero.png") center/cover no-repeat;
  min-height: 220px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth-body { padding: 2rem; }

/* ------------------------------------------------ Bootstrap dark-theme vars */
/* Bootstrap defaults to light-theme text colours (near black) for tables,
   headings and emphasis; map them to the studio palette on every page. */
:root, [data-bs-theme=light] {
  --bs-body-color: var(--text);
  --bs-emphasis-color: var(--text);
  --bs-emphasis-color-rgb: 243,243,246;
  --bs-heading-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-color: var(--muted);
}
.table > :not(caption) > * > *,
.table-studio > :not(caption) > * > *,
.table td .fw-bold, .table th .fw-bold,
.table td strong, .table td b { color: var(--text) !important; }
.table td a.fw-bold { color: var(--accent-hi, var(--text)) !important; }
.table .text-muted, .table .small.text-muted { color: var(--muted) !important; }

/* ---------------------------------------------------------------- Tables */
.table-studio, .table {
  color: var(--text); margin: 0;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-striped-color: var(--text);
  --bs-table-hover-color: var(--text);
  --bs-table-active-color: var(--text);
  --bs-emphasis-color: var(--text);
}
/* Bootstrap paints cells with a dark emphasis colour; keep text & icons readable on the dark theme. */
.table-studio > :not(caption) > * > *, .table > :not(caption) > * > * { color: var(--text); }
.table-studio .text-muted, .table .text-muted { color: var(--muted) !important; }
.table-studio > :not(caption) > * > * {
  background: transparent;
  border-bottom-color: var(--line);
  padding: .85rem .75rem;
  vertical-align: middle;
}
.table-studio thead th {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table-studio tbody tr:hover > * { background: rgba(255,255,255,.025); }
.table-responsive { border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- Badges */
.badge { font-weight: 700; letter-spacing: .02em; padding: .42em .7em; border-radius: 7px; }
.badge-warning   { background: rgba(245,185,66,.15); color: #ffcf70; border: 1px solid rgba(245,185,66,.3); }
.badge-success   { background: rgba(53,196,106,.14); color: #6ee79b; border: 1px solid rgba(53,196,106,.3); }
.badge-secondary { background: rgba(154,154,172,.14); color: #b9b9c8; border: 1px solid rgba(154,154,172,.25); }
.badge-info      { background: rgba(80,160,255,.14); color: #8fc2ff; border: 1px solid rgba(80,160,255,.3); }

/* ---------------------------------------------------------------- Booking */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .55rem;
}
.slot-pill {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: .6rem .5rem;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .16s ease;
  user-select: none;
}
.slot-pill:hover { border-color: #4a4a5e; background: var(--surface-3); }
.slot-pill input { position: absolute; opacity: 0; pointer-events: none; }
.slot-pill.selected,
.slot-pill:has(input:checked) {
  background: linear-gradient(135deg, var(--accent), #b3121d);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(230,57,70,.35);
}
.slot-pill.taken:has(input:checked),
.slot-pill.past:has(input:checked) {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.slot-pill.taken {
  background: repeating-linear-gradient(45deg, #1a1a22, #1a1a22 6px, #20202a 6px, #20202a 12px);
  color: #5d5d6e;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-pill.taken small { display: block; font-size: .62rem; text-decoration: none; color: #6f6f82; }
.slot-pill.past { opacity: .35; cursor: not-allowed; }

.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.equip-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 10px;
  padding: .7rem .8rem;
  display: flex; align-items: center; gap: .6rem;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.equip-card:hover { border-color: #4a4a5e; }
.equip-card:has(input:checked) { border-color: var(--accent); background: rgba(230,57,70,.09); }
.equip-card input { margin: 0; }
.equip-card span { font-size: .88rem; font-weight: 600; }

.summary-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .9rem; }
.summary-row span:first-child { color: var(--muted); }
.summary-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .7rem; font-size: 1.1rem; font-weight: 800; }

/* ---------------------------------------------------------------- Calendar */
.calendar-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-dow {
  padding: .55rem .3rem;
  text-align: center;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.calendar-cell {
  min-height: 76px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .4rem;
  position: relative;
  font-size: .78rem;
  background: var(--surface);
}
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.muted { background: #0c0c11; color: #4a4a58; }
.calendar-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-cell.closed { background: repeating-linear-gradient(45deg, #0e0e13, #0e0e13 8px, #121218 8px, #121218 16px); }
.calendar-cell .daynum { font-weight: 800; color: #d8d8e2; }
.calendar-cell.muted .daynum { color: #4a4a58; }
.calendar-cell.closed .daynum { color: #5a5a68; }
.calendar-cell .evt {
  display: block;
  margin-top: .3rem;
  padding: .18rem .3rem;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.evt-pending   { background: rgba(245,185,66,.18); color: #ffcf70; border-left: 2px solid var(--warning); }
.evt-confirmed { background: rgba(53,196,106,.16); color: #7deba6; border-left: 2px solid var(--success); }
.calendar-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .35rem; }

/* ---------------------------------------------------------------- QR */
.qr-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.qr-frame {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  line-height: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.qr-frame img, .qr-frame canvas { display: block; max-width: 100%; height: auto; }
.qr-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: .7rem;
}

/* ---------------------------------------------------------------- Alerts */
.alert { border-radius: 12px; border: 1px solid transparent; font-size: .9rem; }
.alert-success { background: rgba(53,196,106,.1); border-color: rgba(53,196,106,.3); color: #8ef0b2; }
.alert-danger  { background: rgba(230,57,70,.1); border-color: rgba(230,57,70,.35); color: #ff9aa2; }
.alert-warning { background: rgba(245,185,66,.1); border-color: rgba(245,185,66,.3); color: #ffd98a; }
.alert-info    { background: rgba(80,160,255,.1); border-color: rgba(80,160,255,.3); color: #a9d0ff; }
.btn-close { filter: invert(1) grayscale(1); opacity: .6; }

/* ---------------------------------------------------------------- Misc */
.divider-dot { width: 4px; height: 4px; border-radius: 50%; background: #4a4a58; display: inline-block; }
.receipt-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: pointer;
}
.empty-state { text-align: center; padding: 2.6rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: #3a3a4a; display: block; margin-bottom: .7rem; }

.nav-pills-studio .nav-link {
  color: var(--muted); font-weight: 700; border-radius: 9px; font-size: .88rem;
}
.nav-pills-studio .nav-link.active { background: var(--accent); color: #fff; }

.step-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 800;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- Footer */
.footer-studio {
  background: #08080b;
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 1.4rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: .88rem;
}
.footer-studio a { color: #c9c9d6; }
.footer-studio a:hover { color: var(--accent-hi); }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .05em; color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.1rem; font-size: .78rem; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 767.98px) {
  .hero { min-height: 78vh; padding: 3.5rem 0 2.5rem; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(6,6,9,.86) 0%, rgba(6,6,9,.8) 55%, var(--bg) 100%);
  }
  .section { padding: 2.3rem 0; }
  .auth-body { padding: 1.4rem; }
  .auth-side { min-height: 150px; padding: 1.4rem; }
  .calendar-cell { min-height: 58px; padding: .25rem; }
  .calendar-cell .evt { font-size: .55rem; padding: .12rem .2rem; }
  .calendar-cell .daynum { font-size: .72rem; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .stat-card .stat-value { font-size: 1.55rem; }
  .navbar-studio .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: .7rem;
    padding: .6rem;
  }
}

@media (max-width: 575.98px) {
  .calendar-cell { min-height: 50px; }
  .calendar-cell .evt { display: none; }
  .calendar-cell.has-events::after {
    content: "";
    position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  }
  .table-studio { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Dropdowns */
.dropdown-menu {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .4rem;
}
.dropdown-menu .dropdown-item {
  color: var(--text);
  border-radius: 8px;
  font-size: .9rem;
  padding: .55rem .75rem;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: var(--surface-3);
  color: #fff;
}
.dropdown-menu .dropdown-item.text-danger { color: #ff8a92 !important; }
.dropdown-menu .dropdown-item.text-danger:hover { background: rgba(230,57,70,.15); color: #fff !important; }
.dropdown-divider { border-color: var(--line); }
.form-select option, select option { background: var(--surface-2); color: var(--text); }

/* ---------------------------------------------------------------- Print (QR) */
@media print {
  .navbar-studio, .footer-studio, .btn, .alert { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .qr-card, .card-studio { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; }
  .qr-url, .text-muted { color: #444 !important; }
}


/* ---------------------------------------------------------------- Slot picker */
.slot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.slot-toolbar .btn-group .btn {
  padding: .3rem .6rem;
  font-size: .78rem;
  font-weight: 700;
}
.slot-toolbar .btn-group .btn.active,
.slot-toolbar .btn-group .btn:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.end-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--surface-2);
}
.end-time-row #endTimeSelect:disabled { opacity: .6; }
.slot-pill { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot-pill small { font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 575.98px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .slot-pill { padding: .5rem .2rem; font-size: .76rem; min-height: 44px; }
  .slot-toolbar { flex-direction: column; align-items: flex-start; }
  .slot-toolbar .btn-group { flex-wrap: wrap; }
  .equip-grid { grid-template-columns: 1fr 1fr; }
  .equip-card { padding: .55rem .6rem; }
  .equip-card span { font-size: .8rem; }
}

/* ------------------------------------------- File inputs & disabled fields */
/* Bootstrap's light-theme file button and disabled background made labels unreadable. */
.form-control::file-selector-button {
  background: var(--surface-3) !important;
  color: var(--text) !important;
  border: 0;
  border-inline-end: 1px solid var(--line);
  font-weight: 600;
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
  background: var(--accent-hi) !important;
  color: #fff !important;
}
.form-control::-webkit-file-upload-button { background: var(--surface-3); color: var(--text); border: 0; }
.form-control:disabled, .form-control[readonly]:not([type=date]),
.form-select:disabled {
  background-color: var(--surface-2) !important;
  color: var(--muted) !important;
  opacity: .75;
  cursor: not-allowed;
}
.form-control::placeholder { color: var(--muted); opacity: 1; }

/* ---------------------------------------------------------------- Hero fire / burning effect */
.hero-fire { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-fire-glow {
  position: absolute; left: -10%; right: -10%; bottom: -12%; height: 55%;
  background:
    radial-gradient(60% 70% at 20% 100%, rgba(255,90,20,.55), transparent 70%),
    radial-gradient(50% 60% at 55% 100%, rgba(255,40,40,.5), transparent 70%),
    radial-gradient(55% 65% at 85% 100%, rgba(255,150,30,.45), transparent 70%);
  filter: blur(18px); mix-blend-mode: screen;
  animation: heroFlicker 2.8s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes heroFlicker {
  0%   { opacity: .65; transform: scaleY(.92) translateX(0); }
  25%  { opacity: .9;  transform: scaleY(1.05) translateX(-1.5%); }
  50%  { opacity: .7;  transform: scaleY(.97) translateX(1%); }
  75%  { opacity: 1;   transform: scaleY(1.1) translateX(-.5%); }
  100% { opacity: .8;  transform: scaleY(1) translateX(1.5%); }
}
.hero-embers span {
  position: absolute; bottom: -10px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0%, #ffb02e 40%, #ff3d1f 75%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(255,120,30,.8);
  opacity: 0;
  animation: heroEmber var(--d) linear infinite; animation-delay: var(--delay);
}
@keyframes heroEmber {
  0%   { transform: translate(0,0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  60%  { opacity: .85; }
  100% { transform: translate(var(--drift), -95vh) scale(.2); opacity: 0; }
}
/* Burn-through transition when the slide changes */
.hero-burn {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 110%, transparent 0 0%, #ffd36b 6%, #ff6a1a 12%, #a01010 20%, rgba(0,0,0,.95) 30%, rgba(0,0,0,.95) 100%);
  background-size: 100% 100%;
  mix-blend-mode: normal;
}
.hero.is-burning .hero-burn { animation: heroBurn 1.25s ease-out forwards; }
@keyframes heroBurn {
  0%   { opacity: .9; background: radial-gradient(circle at 50% 110%, transparent 0%, #ffd36b 3%, #ff6a1a 7%, #a01010 12%, rgba(0,0,0,.9) 18%); }
  40%  { opacity: .85; background: radial-gradient(circle at 50% 110%, transparent 35%, #ffd36b 40%, #ff6a1a 46%, #a01010 54%, rgba(0,0,0,.85) 62%); }
  100% { opacity: 0; background: radial-gradient(circle at 50% 110%, transparent 95%, #ffd36b 100%, #ff6a1a 100%); }
}
/* Flaming headline accent */
.hero-flame {
  background: linear-gradient(0deg, #ff2d2d 0%, #ff7a1a 40%, #ffd24a 75%, #fff3b0 100%);
  background-size: 100% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(255,90,30,.65)) drop-shadow(0 0 26px rgba(255,40,40,.4));
  animation: heroFlameText 1.6s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes heroFlameText {
  0%   { background-position: 0 0%;   filter: drop-shadow(0 0 8px rgba(255,90,30,.55)) drop-shadow(0 0 20px rgba(255,40,40,.35)); }
  100% { background-position: 0 100%; filter: drop-shadow(0 0 14px rgba(255,140,40,.85)) drop-shadow(0 0 34px rgba(255,40,40,.55)); }
}
.hero .btn-accent { animation: heroBtnHeat 2.2s ease-in-out infinite; }
@keyframes heroBtnHeat {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,80,30,.0), 0 8px 24px rgba(230,57,70,.35); }
  50%     { box-shadow: 0 0 22px 4px rgba(255,110,30,.55), 0 8px 28px rgba(230,57,70,.5); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fire-glow, .hero-embers span, .hero-flame, .hero .btn-accent, .hero.is-burning .hero-burn { animation: none !important; }
  .hero-embers { display: none; }
}
