/* Owner admin panel */
.adm-login { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 0%, rgba(215, 255, 58, 0.09), transparent 55%), var(--bg); }
.adm-login form { width: 100%; max-width: 400px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.adm-login h1 { font-family: var(--font-display); font-weight: 400; font-size: 38px; text-transform: uppercase; margin: 18px 0 4px; line-height: 1; }
.adm-login p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

.adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100svh; }
.adm-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; font-weight: 700; }
.adm-brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background 0.2s, color 0.2s; }
.adm-nav a svg { width: 18px; height: 18px; flex: none; }
.adm-nav a:hover { color: var(--text); background: var(--surface-2); }
.adm-nav a.active { color: var(--accent-ink); background: var(--accent); }
.adm-foot { margin-top: auto; display: grid; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 8px; }
.adm-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; line-height: 1; margin: 0; }
.adm-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.adm-card > h3 { margin: 0 0 14px; font-size: 16px; }
.adm-card .card-title h3 { font-size: 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.adm-grid .field { margin-bottom: 14px; }
.adm .field select.input, .adm .field textarea.input { appearance: auto; }
.adm textarea.input { color: var(--text); font: inherit; font-size: 14px; height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.adm .input { height: 44px; border-radius: 11px; font-size: 14px; }
.adm-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.adm-tools .input { max-width: 300px; }
.adm .table-wrap { margin: 0; overflow-x: auto; }
.adm table { min-width: 620px; }
.adm th, .adm td { padding: 11px 12px; font-size: 13.5px; }
.adm td small { display: block; color: var(--muted); font-size: 12px; }
.adm tr[data-link] { cursor: pointer; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-xs { min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--text); }
.btn-xs:hover { border-color: var(--accent); }
.btn-xs.danger { color: var(--danger); border-color: rgba(255, 93, 93, 0.4); }
.btn-danger { background: var(--danger); color: #1a0505; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-tabs button { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted); }
.adm-tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.adm-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.adm-switch input { accent-color: var(--accent); width: 18px; height: 18px; }
.adm-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.adm-repeat { padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 10px; }
.adm-coach { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.adm-coach img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--surface-3); }
.adm-exrow { display: grid; grid-template-columns: minmax(180px, 2fr) 64px 100px 76px 62px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.adm-exhint { display: none; }
.adm-exhead { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.adm-ex { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.adm-preview { border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #1b1b21, #0b0b0e 72%); position: sticky; top: 14px; }
.adm-bars { position: relative; display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.adm-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.adm-bar i { display: block; width: min(100%, 40px); min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.adm-bar span { position: absolute; bottom: -22px; font-size: 12px; color: var(--muted); }
.adm-bar .tip { display: none; position: absolute; bottom: calc(100% - 40px); z-index: 2; width: max-content; padding: 7px 10px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-strong); font-size: 12px; color: var(--text); }
.adm-bar:hover .tip { display: block; }
.adm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.adm-log li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.adm-log small { color: var(--muted); white-space: nowrap; }
.pill-status.waived { color: var(--muted); background: var(--surface-3); }
.pill-status.suspended, .pill-status.missed { color: var(--danger); background: rgba(255, 93, 93, 0.1); }
.pill-status.attended { color: var(--ok); background: rgba(61, 220, 151, 0.1); }
.pill-status.booked { color: var(--warn); background: rgba(255, 181, 71, 0.1); }

/* Public site notices */
.site-banner { position: fixed; left: 16px; bottom: 16px; z-index: 120; width: min(420px, calc(100vw - 32px)); padding: 14px 44px 14px 16px; border-radius: 14px; background: rgba(24, 24, 29, 0.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14px; }
.site-banner.offer { border-color: var(--accent); }
.site-banner.alert { border-color: var(--danger); }
.site-banner strong { display: block; }
.site-banner p { margin: 2px 0 0; color: var(--muted); }
.site-banner a { color: var(--accent); font-weight: 600; }
.site-banner button { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; }
.site-banner button svg { width: 14px; height: 14px; }
.site-maint { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); }
.site-maint h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 7vw, 64px); text-transform: uppercase; margin: 0 0 10px; }
.site-maint p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .adm-nav a { flex: none; }
  .adm-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .adm-ex { grid-template-columns: minmax(0, 1fr); }
  .adm-preview { position: static; }
  .adm-exrow { grid-template-columns: 1fr 1fr 1fr; }
  .adm-exrow select { grid-column: 1 / -1; }
  .adm-exhead { display: none; }
  .adm-exhint { display: block; }
}
input[type="date"] { color-scheme: dark; }
