:root {
  /* Frank's Musik brand (from franksmusik.com) */
  --bg: #07090c;
  --surface: #0d1117;
  --surface-2: #121821;
  --ink: #eef2ee;
  --muted: #9aa6a0;
  --line: rgba(255, 255, 255, .09);
  --pick: #6b9378;
  --glow: #8fd6a6;
  --amber: #f2b36b;
  --cream: #f4f1e8;
  --brand: var(--glow);
  --accent: var(--glow);
  --on-accent: #07110b;
  --ok-bg: rgba(143, 214, 166, .12); --ok-ink: #a9e5bb;
  --err-bg: rgba(255, 107, 107, .12); --err-ink: #ffb3b3;
  --radius: 22px;
  --shadow: 0 20px 60px -30px rgba(0, 0, 0, .8);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(900px 500px at 85% 0, rgba(107, 147, 120, .14), transparent 70%), var(--bg); background-attachment: fixed; color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--pick); color: #fff; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 .5rem; }
h2 { font-size: 1.7rem; line-height: 1.1; margin: 2.2rem 0 .9rem; }
h3 { margin: 0 0 .3rem; font-size: 1.5rem; line-height: 1.1; }
code { background: rgba(143, 214, 166, .1); color: var(--glow); padding: .1rem .35rem; border-radius: 6px; font-size: .88em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem clamp(16px, 4vw, 40px); background: rgba(7, 9, 12, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
.logo-pill { background: var(--cream); border-radius: 999px; padding: 6px 16px; display: block; transition: transform .4s var(--ease), box-shadow .4s; }
.brand:hover .logo-pill { transform: scale(1.04); box-shadow: 0 0 30px rgba(143, 214, 166, .35); }
.logo-pill img { height: 28px; width: auto; display: block; }
@media (max-width: 520px) { .brand-sub { display: none; } }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .3s; }
.nav a:hover { color: var(--ink); }
.nav a.muted { color: var(--muted); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 2.5rem 16px 4rem; flex: 1; }
.eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--glow); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--glow); }
.footer { border-top: 1px solid var(--line); padding: 2rem clamp(16px, 4vw, 40px); color: var(--muted); font-size: .85rem; display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--glow); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.hero { text-align: center; margin: 1.5rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.hero h1 em { font-style: italic; color: var(--glow); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: linear-gradient(140deg, var(--pick), var(--glow)); color: var(--on-accent); font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.host-block h2 a { color: var(--ink); text-decoration: none; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.event-card { position: relative; display: flex; flex-direction: column; gap: .3rem; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .5s, transform .6s var(--ease); }
.event-card::before { content: ""; position: absolute; left: 1.5rem; top: 0; width: 42px; height: 2px; background: var(--accent); }
a.event-card:hover { transform: translateY(-3px); border-color: rgba(143, 214, 166, .5); }
.event-card .meta { color: var(--muted); margin: 0; font-size: .9rem; }
.event-card .desc { margin: .4rem 0 0; font-size: .92rem; }
.event-card .cta { margin-top: auto; padding-top: .9rem; color: var(--accent); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.event-card.inactive { opacity: .6; }
.row { display: flex; gap: .5rem; margin-top: auto; padding-top: .6rem; }

.card { background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card.narrow { max-width: 620px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; background: linear-gradient(120deg, var(--pick), var(--glow)); color: var(--on-accent); padding: .8rem 1.5rem; border-radius: 999px; font: 600 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(143, 214, 166, .45); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .28); }
.btn.ghost:hover { border-color: var(--glow); color: var(--glow); box-shadow: none; }
.btn.danger { background: #c2412d; color: #fff; }
.btn.small { padding: .5rem 1rem; font-size: .7rem; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .5rem; }

label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .93rem; }
label.check { flex-direction: row; align-items: center; gap: .5rem; }
label.inline { flex-direction: row; align-items: center; gap: .6rem; margin-bottom: 1rem; }
input, select, textarea { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: .65rem .8rem; width: 100%; }
select option { background: var(--surface); }
label { color: var(--ink); }
input[type=checkbox] { width: auto; }
input[type=color] { padding: .15rem; height: 2.4rem; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
input[readonly] { opacity: .75; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.form-row label { flex: 1 1 200px; }
.prefixed { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.prefixed span { padding: 0 .6rem; color: var(--muted); font-size: .85rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefixed input { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; background: var(--ok-bg); color: var(--ok-ink); }
.flash.error { background: var(--err-bg); color: var(--err-ink); }
.error { color: var(--err-ink); min-height: 1em; margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.danger-zone { margin-top: 1.5rem; }

/* Booking page */
.booking-shell { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.booking-info { padding: 1.6rem; border-right: 1px solid var(--line); }
.booking-info .back { display: inline-block; margin-bottom: 1rem; text-decoration: none; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: .8rem 0; color: var(--muted); }
.facts li { margin: .3rem 0; }
.booking-picker { padding: 1.6rem; min-width: 0; }
.picker-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.picker-head h2 { margin: 0; }
.tz { font-size: .85rem; min-width: 200px; }
.picker-body { display: grid; grid-template-columns: 1fr 210px; gap: 1.5rem; }
.picker-body[hidden], .book-form[hidden] { display: none; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-nav button { border: 1px solid var(--line); background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid.loading { opacity: .5; }
.dow { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; padding: .3rem 0; }
.day { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; cursor: default; justify-self: center; }
.day.available { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; cursor: pointer; }
.day.available:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.day.selected { background: var(--accent); color: var(--on-accent); }
.slots { display: flex; flex-direction: column; gap: .5rem; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.slot { border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); background: transparent; border-radius: 999px; padding: .7rem; font: inherit; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.slot:hover { background: var(--accent); color: var(--on-accent); }
.book-form { display: flex; flex-direction: column; gap: .9rem; max-width: 460px; }
.selected { font-weight: 600; margin: 0; padding: .7rem .9rem; background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; }
@media (max-width: 820px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .picker-body { grid-template-columns: 1fr; }
  .slots { max-height: none; }
}

/* Manage page */
.confirm-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ok-ink); background: var(--ok-bg); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.confirm-badge.cancelled { color: var(--err-ink); background: var(--err-bg); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 1.2rem 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.manage-actions { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; margin-top: 1rem; }
.manage-actions details summary { list-style: none; }
.manage-actions details summary::-webkit-details-marker { display: none; }
.cancel-form { margin-top: .8rem; display: flex; flex-direction: column; gap: .6rem; min-width: 260px; }

/* Admin */
.booking-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.booking-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem; align-items: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: .8rem 1rem; }
.booking-row .when { display: flex; flex-direction: column; }
.booking-row.cancelled { opacity: .55; }
.booking-row .notes { font-size: .88rem; margin-top: .2rem; }
@media (max-width: 640px) { .booking-row { grid-template-columns: 1fr; } }
.avail-table { width: 100%; border-collapse: collapse; }
.avail-table th { text-align: left; width: 130px; padding: .45rem 0; font-weight: 600; }
.avail-table td { padding: .35rem 0; }
.override-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.override-list li { display: flex; gap: 1rem; align-items: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem; }
.override-list li span { flex: 1; color: var(--muted); }
.share { color: var(--muted); font-size: .9rem; }

/* Payments, agent & integrations */
.badges { display: flex; gap: .35rem; flex-wrap: wrap; margin: .25rem 0; }
.badge { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--ink); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: rgba(242, 179, 107, .14); color: var(--amber); }
.badge.danger { background: var(--err-bg); color: var(--err-ink); }
.badge.info { background: rgba(143, 214, 166, .12); color: var(--glow); }
.price-tag { display: inline-block; font-weight: 700; color: var(--accent); }
.status-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.status-row { display: flex; gap: .7rem; align-items: flex-start; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex: none; }
.dot.on { background: #16a34a; }
.dot.off { background: #a8a29e; }
.tool-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.call-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.call { padding: 1rem 1.2rem; }
.call-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.call p { margin: .5rem 0 0; }
.transcript { max-height: 320px; overflow-y: auto; font-size: .9rem; padding-top: .4rem; }
.pay-box { margin: 1rem 0; padding: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
