:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --panel: #ffffff;
  --page: #f4f7fb;
  --brand: #176b87;
  --brand-strong: #0f4d64;
  --mint: #2f9e7e;
  --amber: #b7791f;
  --red: #c24132;
  --nav: #101820;
  --soft-blue: #e8f3f7;
  --soft-green: #e9f7f2;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-surface="customer"] {
  display: block;
}

body[data-surface="customer"] .sidebar {
  display: none;
}

body[data-surface="customer"] main {
  padding: 0;
}

body[data-surface="customer"] .topbar,
body[data-surface="customer"] #suspendedBanner {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

body[data-surface="customer"] .topbar {
  padding-top: 24px;
}

body[data-surface="customer"] #customerView {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 36px;
}

body[data-surface="reception"],
body[data-surface="staff"] {
  grid-template-columns: 220px 1fr;
}

body[data-surface="reception"] .nav,
body[data-surface="staff"] .nav,
body[data-surface="reception"] .tenant-picker,
body[data-surface="staff"] .tenant-picker,
body[data-surface="customer"] .tenant-picker,
body[data-surface="customer"] .system-card,
body[data-surface="reception"] #resetDemo,
body[data-surface="staff"] #resetDemo,
body[data-surface="customer"] #resetDemo {
  display: none;
}

body[data-surface="reception"] .brand small {
  display: none;
}

body[data-surface="reception"] {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 158, 126, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(23, 107, 135, 0.18), transparent 28%),
    linear-gradient(135deg, #eef7f3 0%, #f8fbff 46%, #e8f3f7 100%);
}

body[data-surface="reception"] .sidebar,
body[data-surface="reception"] .topbar {
  display: none;
}

body[data-surface="reception"] main {
  min-height: 100vh;
  padding: clamp(14px, 3vw, 34px);
  display: grid;
  place-items: center;
}

body[data-surface="reception"] #receptionView.view.is-active {
  width: min(760px, 100%);
  display: block;
}

body[data-surface="reception"] .kiosk-shell {
  min-height: auto;
  display: block;
}

body[data-surface="reception"] .kiosk-main {
  min-height: min(920px, calc(100vh - 28px));
  border-radius: 32px;
  padding: clamp(20px, 4vw, 42px);
  gap: clamp(16px, 2.5vw, 24px);
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.90)),
    var(--panel);
  border: 1px solid rgba(23, 107, 135, 0.12);
  box-shadow: 0 30px 90px rgba(16, 24, 32, 0.16);
}

body[data-surface="reception"] .kiosk-result {
  margin-top: 18px;
  border-radius: 24px;
  padding: 20px 24px;
  min-height: 112px;
  text-align: center;
}

body[data-surface="reception"] .kiosk-result strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

body[data-surface="reception"] .kiosk-result span {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
}

.staff-login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(circle at 20% 15%, rgba(44, 232, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #061824 0%, #0b1020 100%);
  color: #fff;
}

.staff-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.staff-login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(10, 24, 38, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.staff-login-card h1 {
  margin: 0;
  font-size: 2.2rem;
}

.staff-login-card p,
.staff-login-card a {
  color: #dce7ff;
}

.staff-login-form,
.staff-password-form {
  display: grid;
  gap: 12px;
}

.staff-security-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.staff-security-panel > div,
.staff-security-panel details {
  display: grid;
  gap: 4px;
}

.staff-security-panel span {
  color: var(--muted);
  font-weight: 700;
}

.staff-security-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.staff-password-form {
  min-width: min(620px, 82vw);
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  margin-top: 12px;
}

body[data-surface="reception"] .kiosk-brand {
  text-align: center;
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

body[data-surface="reception"] .kiosk-logo {
  color: var(--brand-strong);
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

body[data-surface="reception"] .kiosk-brand p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 800;
}

body[data-surface="reception"] .kiosk-class-select {
  max-width: 430px;
  width: 100%;
  justify-self: center;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

body[data-surface="reception"] .kiosk-class-select span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

body[data-surface="reception"] .kiosk-class-select select {
  min-height: 48px;
  text-align: center;
  font-weight: 850;
  background: #f8fafc;
}

body[data-surface="reception"] .pin-display {
  min-height: clamp(76px, 13vh, 118px);
  max-width: 500px;
  width: 100%;
  justify-self: center;
  border-radius: 22px;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  letter-spacing: 0.12em;
  background: #101820;
  color: #ffffff;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-surface="reception"] .keypad {
  max-width: 520px;
  width: 100%;
  justify-self: center;
  gap: clamp(10px, 2vw, 16px);
}

body[data-surface="reception"] .keypad-key {
  min-height: clamp(72px, 12vh, 108px);
  border-radius: 22px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  background: #ffffff;
  border: 1px solid rgba(23, 107, 135, 0.14);
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.08);
}

body[data-surface="reception"] .keypad-key.utility {
  font-size: clamp(1rem, 2.8vw, 1.35rem);
}

body[data-surface="reception"] .kiosk-submit {
  max-width: 520px;
  width: 100%;
  justify-self: center;
  min-height: clamp(62px, 10vh, 88px);
  border-radius: 22px;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  background: var(--nav);
  color: #fff;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d9f1ea;
  color: #12352d;
  font-weight: 800;
}

.brand small,
.system-card small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-button,
.ghost-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 700;
}

.nav-button {
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.nav-button.is-active {
  background: #fff;
  color: var(--nav);
}

.tenant-picker {
  display: grid;
  gap: 8px;
}

.tenant-picker label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.tenant-picker select,
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.system-card {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--mint);
}

.status-dot.is-warn {
  background: var(--red);
}

main {
  min-width: 0;
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand);
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
  gap: 20px;
}

#customerView {
  color: #f8fbff;
}

#customerView .panel {
  background: rgba(5, 8, 24, 0.94);
  border-color: rgba(44, 232, 255, 0.34);
  box-shadow: 0 20px 70px rgba(27, 0, 56, 0.22), 0 0 28px rgba(44, 232, 255, 0.12);
}

#customerView label,
#customerView .empty-state {
  color: #c9d7f2;
}

#customerView input,
#customerView select {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(44, 232, 255, 0.45);
}

#customerView .eyebrow {
  color: #30f4ff;
}

#customerView .accent-panel {
  background: linear-gradient(145deg, rgba(6, 8, 26, 0.96), rgba(37, 8, 70, 0.92));
}

.signup-step {
  display: none;
}

.signup-step.is-active {
  display: grid;
  gap: 20px;
}

.signup-panel {
  max-width: 900px;
}

.customer-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  padding: 36px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(2, 4, 16, 0.96) 0%, rgba(2, 4, 16, 0.74) 44%, rgba(2, 4, 16, 0.18) 100%),
    var(--customer-hero-image, url("assets/kado-timetable.jpg")) center / cover;
  border: 1px solid rgba(44, 232, 255, 0.38);
  box-shadow: 0 22px 80px rgba(8, 7, 24, 0.3), 0 0 38px rgba(178, 62, 255, 0.22);
}

.customer-hero::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px 28px;
  height: 2px;
  background: linear-gradient(90deg, #2cf4ff, #f03cff, #2cf4ff);
  box-shadow: 0 0 22px #2cf4ff;
}

.hero-copy,
.hero-price-card {
  position: relative;
  z-index: 1;
}

.hero-top-login {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  min-height: 38px;
  padding: 8px 13px;
  border-color: rgba(44, 232, 255, 0.72);
  background: rgba(5, 8, 24, 0.78);
  color: #fff;
}

.hero-kicker {
  margin-bottom: 10px;
  color: #2cf4ff;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h2 {
  max-width: 680px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 3.6rem;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(44, 232, 255, 0.42);
}

.hero-copy p {
  max-width: 560px;
  color: #e8edff;
  font-size: 1.13rem;
  font-weight: 800;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  border: 1px solid rgba(44, 232, 255, 0.6);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(44, 232, 255, 0.16);
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-join-button,
.hero-login-button {
  width: fit-content;
  min-height: 66px;
  padding-inline: 48px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 22px;
  justify-content: center;
  max-width: 520px;
}

.hero-login-button {
  border: 1px solid rgba(44, 232, 255, 0.65);
  background: rgba(2, 4, 16, 0.78);
  color: #fff;
  box-shadow: 0 0 18px rgba(44, 232, 255, 0.16);
}

.hero-price-card {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(44, 232, 255, 0.65);
  border-radius: 8px;
  background: rgba(2, 4, 16, 0.82);
  box-shadow: 0 0 26px rgba(44, 232, 255, 0.22), inset 0 0 22px rgba(240, 60, 255, 0.12);
}

.hero-price-card span,
.hero-price-card small {
  color: #2cf4ff;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-price-card strong {
  color: #fff;
  font-size: 3.5rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(240, 60, 255, 0.5);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.panel,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.accent-panel {
  background: linear-gradient(135deg, #ffffff 0%, var(--soft-blue) 100%);
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-green);
  color: #206753;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.form-grid .primary-button {
  align-self: end;
}

.payment-note,
.banner,
.decision {
  margin-top: 16px;
  border-radius: 8px;
  padding: 14px;
}

.payment-note {
  background: #fff7e6;
  color: #704c13;
  border: 1px solid #f5d38b;
}

.plan-catalog {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-option {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(44, 232, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.package-choice-list {
  display: grid;
  gap: 12px;
}

.package-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(44, 232, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.package-choice div {
  display: grid;
  gap: 6px;
}

.package-choice div:last-child {
  justify-items: end;
}

.checkout-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(44, 232, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-card span {
  color: #dce7ff;
}

.package-choice strong {
  color: #fff;
}

.package-choice small,
.package-choice span {
  color: #dce7ff;
}

.plan-option header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.plan-option strong {
  font-size: 0.98rem;
}

.plan-price {
  color: #2cf4ff;
  font-weight: 900;
}

.confirmation-card {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid #96d8c4;
  border-radius: 8px;
  padding: 14px;
  background: #e9f7f2;
  color: #1d6f58;
  font-weight: 800;
}

#customerView .plan-option span,
#customerView .row-meta {
  color: #dce7ff;
}

#customerView .payment-note {
  background: rgba(255, 247, 230, 0.95);
}

#customerView .secondary-button {
  border-color: rgba(44, 232, 255, 0.45);
  background: #fff;
  color: #07111f;
}

#customerView .ghost-button {
  border-color: rgba(44, 232, 255, 0.72);
  background: rgba(5, 8, 24, 0.72);
  color: #fff;
}

#customerView .primary-button {
  background: linear-gradient(90deg, #0bbfd4, #8b35ff);
  box-shadow: 0 0 18px rgba(44, 232, 255, 0.28);
}

.banner {
  margin: 0 0 20px;
  background: #fff0ed;
  color: #8f2f23;
  border: 1px solid #f0b3aa;
}

.hidden {
  display: none;
}

.inline-form.hidden,
.member-session-actions.hidden,
.member-package-form.hidden {
  display: none;
}

.staff-tabs,
.member-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-tabs .is-active,
.member-tabs .is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.staff-tab-panel {
  display: none;
}

.staff-tab-panel.is-active {
  display: block;
}

.member-pass {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.pass-code {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 84px;
  border: 2px dashed #7aa6b8;
  border-radius: 8px;
  background: #050818;
  color: #2cf4ff;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 10px 16px;
  text-shadow: 0 0 12px rgba(44, 232, 255, 0.45);
}

.empty-state {
  color: var(--muted);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
}

.inline-form.compact {
  grid-template-columns: 1fr minmax(160px, 220px) auto;
}

.decision {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.decision.allow {
  background: #e9f7f2;
  border-color: #96d8c4;
  color: #1d6f58;
}

.decision.deny {
  background: #fff0ed;
  border-color: #f0b3aa;
  color: #9c3327;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px;
}

.stat small {
  color: var(--muted);
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.75rem;
}

.table-list,
.tenant-list,
.log-list,
.pricing-list {
  display: grid;
  gap: 10px;
}

.row-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.row-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #3b4756;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.good {
  background: #e9f7f2;
  color: #1d6f58;
}

.badge.bad {
  background: #fff0ed;
  color: #9c3327;
}

.tenant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-groups {
  display: grid;
  gap: 22px;
}

.member-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.member-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.member-table th,
.member-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.member-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-table tr:last-child td {
  border-bottom: 0;
}

.member-table input,
.member-table select,
.member-table textarea {
  min-height: 34px;
  padding: 8px 9px;
  font-size: 0.84rem;
}

.member-table textarea {
  min-width: 150px;
  min-height: 70px;
  resize: vertical;
}

.member-table td {
  min-width: 120px;
}

.member-table td:nth-child(4) {
  min-width: 190px;
}

.member-table-row.is-muted {
  background: #f8fafc;
}

.member-table-row small,
.class-admin-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.member-actions-cell {
  display: grid;
  gap: 6px;
  min-width: 120px;
}

.member-actions-cell button {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
}

.marketing-builder {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.finance-list {
  display: grid;
  gap: 10px;
}

.finance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(160px, 0.8fr) minmax(110px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.finance-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finance-actions button {
  min-height: 32px;
  padding: 7px 10px;
}

.payment-table {
  min-width: 980px;
}

.marketing-filters,
.marketing-copy-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.marketing-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-offer-field,
.marketing-actions {
  grid-column: 1 / -1;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketing-copy-panel textarea {
  min-height: 210px;
  resize: vertical;
}

.marketing-preview {
  margin-top: 12px;
}

.marketing-table {
  min-width: 900px;
}

.compact-heading {
  margin-top: 18px;
}

.mini-check {
  min-height: 28px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 4px 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-check input {
  width: auto;
  min-height: auto;
}

.staff-member-card {
  gap: 14px;
}

.staff-member-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.check-label {
  min-height: 42px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
}

.check-label input {
  width: auto;
  min-height: auto;
}

.tenant-card {
  gap: 16px;
}

.tenant-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tenant-profile-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.tenant-notes {
  grid-column: 1 / -1;
}

.account-summary {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.attendance-history,
.analytics-list {
  display: grid;
  gap: 8px;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-detail-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(44, 232, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.member-detail-grid small {
  color: #dce7ff;
  font-weight: 800;
}

.member-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-details-form .primary-button {
  align-self: end;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-log-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

#customerView .mini-log-row {
  border-color: rgba(44, 232, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mini-log-row span {
  color: var(--muted);
  font-weight: 700;
}

#customerView .mini-log-row span {
  color: #dce7ff;
}

.member-login-form {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
}

.member-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-package-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 12px;
}

.package-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) 110px 130px auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.class-admin-list {
  display: grid;
  gap: 10px;
}

.class-admin-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(240px, 1.6fr) 100px 130px 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.class-admin-row label {
  min-width: 0;
}

.class-description-field textarea {
  min-height: 74px;
  resize: vertical;
}

.class-package-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 140px 170px 180px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.session-builder {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 440px;
  gap: 14px;
  align-items: end;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.session-builder legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 900;
}

.day-checks {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 8px;
  min-width: 620px;
}

.day-checks label {
  min-height: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.day-checks input {
  width: auto;
  min-height: auto;
}

.session-time-row {
  display: grid;
  grid-template-columns: 140px 110px 160px;
  gap: 12px;
  align-items: end;
}

.session-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-preview.decision {
  display: block;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f3f7;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.session-chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #9c3327;
  font-weight: 900;
  line-height: 1;
}

.price-row strong {
  display: block;
}

.price-row small {
  color: var(--muted);
  font-weight: 800;
}

.danger-button {
  border: 1px solid #f0b3aa;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  background: #fff0ed;
  color: #9c3327;
  font-weight: 800;
}

.kiosk-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.kiosk-main,
.kiosk-result {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.kiosk-main {
  background: #fff;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.kiosk-main h2 {
  font-size: 1.5rem;
}

.pin-display {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 2.1rem;
  font-weight: 900;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.keypad-key {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
}

.keypad-key.utility {
  font-size: 1rem;
  color: var(--muted);
}

.kiosk-submit {
  min-height: 58px;
  font-size: 1.05rem;
}

.kiosk-result {
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: #f8fafc;
  color: var(--muted);
}

.kiosk-result strong {
  display: block;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.08;
}

.kiosk-result span {
  font-size: 1.08rem;
  font-weight: 700;
}

.kiosk-result.allow {
  background: #e9f7f2;
  border-color: #96d8c4;
}

.kiosk-result.allow strong,
.kiosk-result.allow span {
  color: #1d6f58;
}

.kiosk-result.deny {
  background: #fff0ed;
  border-color: #f0b3aa;
}

.kiosk-result.deny strong,
.kiosk-result.deny span {
  color: #9c3327;
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  main {
    padding: 22px;
  }

  .split-layout,
  .customer-hero,
  .package-choice,
  .kiosk-shell,
  .stats-grid,
  .analytics-grid,
  .member-detail-grid,
  .member-details-form,
  .form-grid,
  .inline-form,
  .inline-form.compact,
  .member-login-form,
  .member-package-form,
  .class-package-form,
  .class-admin-row,
  .finance-summary-grid,
  .finance-grid,
  .finance-row,
  .marketing-builder,
  .marketing-filters,
  .staff-password-form,
  .session-time-row,
  .session-builder,
  .staff-member-form,
  .tenant-profile-grid,
  .price-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-heading,
  .row-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .pill {
    white-space: normal;
  }

  .customer-hero {
    padding: 24px;
    min-height: 560px;
    align-items: end;
  }

  .hero-copy h2 {
    font-size: 2.4rem;
  }
}
