:root {
  --pp-bg: #f8fafc;
  --pp-bg-soft: #f1f5f9;
  --pp-surface: #ffffff;
  --pp-surface-alt: #f8fafc;
  --pp-text: #0f172a;
  --pp-muted: #475569;
  --pp-border: #e2e8f0;
  --pp-primary: #2563eb;
  --pp-primary-strong: #1d4ed8;
  --pp-accent: #0f766e;
  --pp-danger: #b91c1c;
  --pp-success: #166534;
  --pp-warning: #854d0e;
  --pp-focus: #0ea5e9;
  --pp-shadow-1: 0 8px 24px rgba(15, 23, 42, 0.06);
  --pp-shadow-2: 0 16px 40px rgba(15, 23, 42, 0.1);
  --pp-radius-lg: 16px;
  --pp-radius-md: 12px;
  --pp-radius-sm: 10px;
  --pp-space-1: 0.25rem;
  --pp-space-2: 0.5rem;
  --pp-space-3: 0.75rem;
  --pp-space-4: 1rem;
  --pp-space-5: 1.5rem;
  --pp-space-6: 2rem;
  --pp-space-7: 3rem;
  --pp-space-8: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  color: var(--pp-text);
  line-height: 1.6;
  background:
    radial-gradient(1000px 360px at -5% -10%, #dbeafe 0%, transparent 65%),
    radial-gradient(1000px 400px at 110% -20%, #ccfbf1 0%, transparent 65%),
    var(--pp-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.navbar-brand {
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--pp-primary-strong);
}

a:hover {
  color: #1e40af;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1100;
  background: #0f172a;
  color: #fff;
  padding: 0.625rem 0.75rem;
  border-radius: var(--pp-radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--pp-focus);
  outline-offset: 2px;
}

main {
  padding-bottom: var(--pp-space-6);
}

.page-shell {
  padding-block: var(--pp-space-7);
}

.section-title {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: var(--pp-space-3);
}

.section-subtitle {
  color: var(--pp-muted);
  max-width: 62ch;
  margin-bottom: var(--pp-space-5);
}

.pp-navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--pp-border);
  backdrop-filter: blur(8px);
}

.pp-navbar .navbar-brand {
  color: var(--pp-text);
  font-weight: 800;
}

.pp-navbar .navbar-toggler {
  border-color: var(--pp-border);
}

.pp-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.pp-navbar .nav-link {
  color: #334155;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-weight: 500;
}

.pp-navbar .nav-link:hover,
.pp-navbar .nav-link:focus,
.pp-navbar .nav-link.active {
  color: #0f172a;
  background: #e2e8f0;
}

.pp-navbar .dropdown-menu {
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-sm);
  box-shadow: var(--pp-shadow-1);
}

.pp-navbar .navbar-nav .btn {
  width: 100%;
}

.hero-section {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #0b1220 0%, #111827 52%, #1e293b 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 15%, rgba(56, 189, 248, 0.16), transparent 45%);
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pp-radius-lg);
  backdrop-filter: blur(8px);
}

.metric-pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 0.45rem 0.45rem 0;
}

.btn-brand {
  background: var(--pp-primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--pp-radius-sm);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--pp-primary-strong);
  color: #fff;
}

.btn-light-strong {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-light-strong:hover,
.btn-light-strong:focus {
  background: #fff;
  color: #0f172a;
}

.card,
.surface-card {
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--pp-border);
  box-shadow: var(--pp-shadow-1);
  background: var(--pp-surface);
}

.card-muted {
  background: var(--pp-surface-alt);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
}

.pp-footer {
  border-top: 1px solid var(--pp-border);
  background: #0b1220;
  color: #e2e8f0;
}

.pp-footer a {
  color: #bfdbfe;
}

.pp-alert {
  border: 0;
  border-left: 6px solid;
  border-radius: var(--pp-radius-sm);
  box-shadow: var(--pp-shadow-1);
}

.alert-success.pp-alert {
  border-left-color: var(--pp-success);
}

.alert-danger.pp-alert {
  border-left-color: var(--pp-danger);
}

.form-label {
  font-weight: 600;
  color: #1e293b;
}

.form-control,
.form-select {
  border-color: #cbd5e1;
  border-radius: var(--pp-radius-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pp-focus);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16);
}

.form-shell {
  max-width: 36rem;
  margin-inline: auto;
}

.table {
  margin-bottom: 0;
}

.table th {
  white-space: nowrap;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
}

.table td {
  vertical-align: middle;
}

.table-responsive {
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-md);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow-1);
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.trainer-photo-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trainer-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-photo-placeholder {
  font-size: 0.7rem;
  color: #1e3a8a;
  font-weight: 700;
}

.trainer-actions-cell {
  min-width: 250px;
  vertical-align: middle;
  white-space: nowrap;
}

.trainer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.trainer-file-btn {
  white-space: nowrap;
}

.trainer-delete-btn {
  margin-left: 0.4rem;
}

.trainer-delete-form {
  display: inline-block;
  vertical-align: middle;
}

.location-photo-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.location-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-photo-placeholder {
  font-size: 0.7rem;
  color: #1e3a8a;
  font-weight: 700;
}

.location-actions-cell {
  min-width: 275px;
  vertical-align: middle;
  white-space: nowrap;
}

.location-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.location-file-btn {
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: inherit;
  padding-inline: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
}

.location-create-row .form-control,
.location-create-row .form-select,
.location-create-row .location-file-btn,
.location-create-row .btn {
  height: calc(2.25rem + 2px);
}

.location-delete-btn {
  margin-left: 0.4rem;
}

.location-delete-form {
  display: inline-block;
  vertical-align: middle;
}

.location-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  user-select: none;
}

.admin-toolbar {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(6px);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-md);
  box-shadow: var(--pp-shadow-1);
  padding: 0.875rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 1rem;
}

.stat-card .metric {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0;
}

.stat-card .label {
  margin-bottom: 0.3rem;
  color: var(--pp-muted);
  font-size: 0.9rem;
}

.badge-soft {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-soft.success {
  background: #dcfce7;
  color: #166534;
}

.badge-soft.warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-soft.info {
  background: #dbeafe;
  color: #1e40af;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: var(--pp-radius-md);
  padding: 1rem;
  background: #f8fafc;
  color: var(--pp-muted);
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--pp-shadow-1);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.back-link:hover,
.back-link:focus {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.38);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.back-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.95rem;
  line-height: 1;
}

.booking-create-shell {
  display: grid;
  gap: 1.25rem;
}

.booking-create-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
}

.booking-create-panel {
  padding: 1.25rem;
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--pp-border);
  box-shadow: var(--pp-shadow-1);
}

.booking-create-panel-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.booking-create-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--pp-muted);
}

.booking-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.booking-class-option {
  display: block;
  cursor: pointer;
}

.booking-class-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-class-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,252,0.98) 100%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 55%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.booking-class-option:hover .booking-class-card {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.booking-class-radio:checked + .booking-class-card {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(224, 242, 254, 0.9) 100%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 55%);
}

.booking-class-topline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.booking-class-date {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.booking-class-title {
  font-size: 1rem;
  color: #0f172a;
}

.booking-class-meta,
.booking-class-waitlist {
  font-size: 0.88rem;
  color: var(--pp-muted);
}

.booking-class-waitlist {
  color: #92400e;
  font-weight: 600;
}

.booking-member-toolbar {
  display: grid;
  gap: 0.75rem;
}

.booking-member-toolbar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.booking-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #0f172a;
}

.booking-member-list {
  display: grid;
  gap: 0.75rem;
  max-height: 640px;
  overflow: auto;
  padding-right: 0.25rem;
}

.booking-member-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-member-row:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.booking-member-row:has(input:checked) {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.13);
  background: linear-gradient(180deg, #f0f9ff 0%, #eef8ff 100%);
}

.booking-member-check {
  padding-top: 0.1rem;
}

.booking-member-check input {
  width: 1.05rem;
  height: 1.05rem;
}

.booking-member-body {
  display: grid;
  gap: 0.2rem;
}

.booking-member-name {
  color: #0f172a;
}

.booking-member-email {
  color: #334155;
  font-size: 0.92rem;
}

.booking-member-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--pp-muted);
  font-size: 0.86rem;
}

.booking-create-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
}

.profile-layout .profile-form-card,
.profile-layout .profile-status-card {
  height: 100%;
}

.profile-image-uploader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-image-label {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #e0f2fe 0%, #dbeafe 100%);
  cursor: pointer;
  box-shadow: var(--pp-shadow-1);
}

.profile-image-preview,
.profile-image-placeholder {
  width: 100%;
  height: 100%;
}

.profile-image-preview {
  object-fit: cover;
}

.profile-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: #1e3a8a;
}

.profile-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity 160ms ease-in-out;
}

.profile-image-label:hover .profile-image-overlay,
.profile-image-label:focus-within .profile-image-overlay {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .profile-image-label {
    width: 150px;
    height: 150px;
  }

  .profile-image-placeholder {
    font-size: 2.4rem;
  }
}

.danger-zone {
  border: 2px solid var(--pp-danger);
  background: rgba(185, 28, 28, 0.04);
}

.profile-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--pp-border);
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  text-decoration: none;
  transition: all 160ms ease-in-out;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.profile-badge-link:hover {
  border-color: var(--pp-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

.profile-badge-link:focus-visible {
  outline: 3px solid var(--pp-focus);
  outline-offset: 2px;
}

.profile-badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badge-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
  user-select: none;
}

.profile-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.6rem !important;
  border-radius: var(--pp-radius-sm);
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  transition: all 160ms ease-in-out;
}

.profile-dropdown-toggle:hover,
.profile-dropdown-toggle:focus {
  background: var(--pp-surface-alt);
  border-color: var(--pp-primary);
}

.profile-dropdown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  flex-shrink: 0;
}

.profile-dropdown-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-dropdown-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e3a8a;
  user-select: none;
}

.profile-dropdown-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pp-text);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-toggle::after {
  margin-left: 0.35rem;
}

.cta-band {
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--pp-border);
  background: linear-gradient(120deg, #eff6ff 0%, #ecfeff 100%);
  box-shadow: var(--pp-shadow-1);
}

.home-class-card,
.home-trainer-card {
  overflow: hidden;
}

.home-class-image-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.home-class-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-class-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1e3a8a;
}

.home-class-location {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
}

.home-class-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.home-trainer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.home-trainer-chip-image,
.home-trainer-chip-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.home-trainer-chip-image {
  object-fit: cover;
}

.home-trainer-chip-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.75rem;
}

.home-trainer-image-wrap {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.home-trainer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-trainer-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a8a;
}

.member-quick-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dbeafe;
  box-shadow: var(--pp-shadow-1);
  margin-bottom: 0.8rem;
}

.member-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 1.6rem;
  font-weight: 700;
}

.member-profile-email {
  color: var(--pp-muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.pp-fade-in {
  animation: ppFadeIn 260ms ease-out;
}

@keyframes ppFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .admin-toolbar {
    top: 8px;
  }

  .page-shell {
    padding-block: var(--pp-space-6);
  }

  .booking-create-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .pp-navbar .navbar-collapse {
    padding-top: var(--pp-space-3);
    padding-bottom: var(--pp-space-2);
  }

  .pp-navbar .navbar-nav {
    gap: var(--pp-space-2);
  }

  .pp-navbar .navbar-nav .nav-item {
    width: 100%;
  }

  .pp-navbar .navbar-nav .btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding-block: 0.7rem;
  }

  .pp-navbar .navbar-nav .nav-item + .nav-item {
    margin-top: 0.15rem;
  }

  .pp-navbar .navbar-nav .nav-item:has(> .btn) + .nav-item:has(> .btn) {
    margin-top: 0.65rem;
  }

  .hero-section .display-4 {
    font-size: 2.1rem;
  }

  .home-class-image-wrap {
    height: 155px;
  }

  .home-trainer-image-wrap {
    height: 170px;
  }

  .table-responsive.mobile-stack table,
  .table-responsive.mobile-stack thead,
  .table-responsive.mobile-stack tbody,
  .table-responsive.mobile-stack th,
  .table-responsive.mobile-stack td,
  .table-responsive.mobile-stack tr {
    display: block;
    width: 100%;
  }

  .table-responsive.mobile-stack thead {
    display: none;
  }

  .table-responsive.mobile-stack tr {
    border-bottom: 1px solid var(--pp-border);
    padding: 0.75rem;
  }

  .table-responsive.mobile-stack td {
    border: 0;
    padding: 0.35rem 0;
  }

  .table-responsive.mobile-stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pp-muted);
    margin-bottom: 0.1rem;
  }

  .table-responsive.mobile-stack td .btn,
  .table-responsive.mobile-stack td .form-select,
  .table-responsive.mobile-stack td .form-control {
    width: 100%;
  }

  td.d-flex {
    flex-direction: column;
  }

  .booking-class-grid {
    grid-template-columns: 1fr;
  }

  .booking-create-panel,
  .booking-create-actions {
    padding: 1rem;
  }

  .booking-member-row {
    grid-template-columns: auto 1fr;
    padding: 0.85rem;
  }

  .trainer-actions-cell {
    min-width: 0;
  }

  .trainer-actions {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .location-actions {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .trainer-file-btn,
  .trainer-delete-btn {
    max-width: none;
    margin-left: 0;
  }

  .location-file-btn,
  .location-delete-btn {
    max-width: none;
    margin-left: 0;
  }

  .trainer-delete-form {
    display: block;
    width: 100%;
  }

  .location-actions-cell {
    min-width: 0;
  }

  .location-delete-form {
    display: block;
    width: 100%;
  }
}

/* Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 60px;
  right: 16px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  background: linear-gradient(145deg, var(--pp-primary), #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--pp-shadow-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 32px rgba(37, 99, 235, 0.34);
}

.chatbot-toggle span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: white;
}

.chatbot-container {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: min(94vw, 360px);
  height: min(72vh, 560px);
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  color: white;
  padding: 0.85rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.chatbot-header-copy h5 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.chatbot-header-copy p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chatbot-clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.36rem 0.58rem;
}

.chatbot-clear-btn:hover,
.chatbot-clear-btn:focus {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-header .btn-close {
  opacity: 0.95;
  margin-top: 0.1rem;
}

.chatbot-messages {
  flex: 1;
  padding: 0.9rem;
  overflow-y: auto;
  background: var(--pp-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 84%;
}

.message {
  padding: 0.66rem 0.82rem;
  border-radius: 13px;
  line-height: 1.45;
  font-size: 0.9rem;
  word-break: break-word;
}

.message-meta {
  margin-top: 0.22rem;
  font-size: 0.68rem;
  color: #64748b;
}

.message-row.bot {
  align-self: flex-start;
}

.message-row.user {
  align-self: flex-end;
}

.message-row.bot .message {
  background: var(--pp-surface);
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
}

.message-row.user .message {
  background: var(--pp-primary);
  color: white;
}

.message-row.user .message-meta {
  text-align: right;
}

.chatbot-quick-prompts {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.55rem 0.75rem 0.45rem;
  border-top: 1px solid var(--pp-border);
  background: #f8fbff;
}

.chatbot-prompt-btn {
  white-space: nowrap;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
}

.chatbot-prompt-btn:hover,
.chatbot-prompt-btn:focus {
  background: #dbeafe;
}

.chatbot-input {
  padding: 0.72rem;
  border-top: 1px solid var(--pp-border);
  display: flex;
  gap: 0.45rem;
  background: var(--pp-surface);
}

.chatbot-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  font-size: 0.9rem;
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.12);
}

.chatbot-input button {
  border-radius: 999px;
  padding: 0.56rem 0.9rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .chatbot-widget {
    right: 12px;
    bottom: 8px;
  }

  .chatbot-container {
    width: min(95vw, 360px);
    height: 70vh;
    right: 0;
    bottom: 72px;
  }

  .message-row {
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Trainer Card Styles */
.trainer-card {
  overflow: hidden;
  transition: all 200ms ease-in-out;
}

.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.trainer-card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trainer-card-placeholder {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.trainer-initials {
  font-size: 3rem;
  font-weight: 800;
  color: #1e3a8a;
  user-select: none;
}

@media (max-width: 767.98px) {
  .trainer-card-image {
    height: 200px;
  }

  .trainer-initials {
    font-size: 2.4rem;
  }
}
