:root {
  --hero-gradient: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(25, 135, 84, 0.18));
  --surface-accent: rgba(255, 255, 255, 0.66);
  --theme-secondary-bg: #ffffff;
  --theme-secondary-border: rgba(33, 37, 41, 0.18);
  --theme-secondary-color: #212529;
  --theme-badge-bg: #212529;
  --theme-badge-color: #ffffff;
  --theme-pill-bg: #f8f9fa;
  --theme-pill-color: #212529;
}

[data-bs-theme='dark'] {
  --hero-gradient: linear-gradient(135deg, rgba(13, 110, 253, 0.35), rgba(25, 135, 84, 0.28));
  --surface-accent: rgba(33, 37, 41, 0.76);
  --theme-secondary-bg: rgba(255, 255, 255, 0.04);
  --theme-secondary-border: rgba(255, 255, 255, 0.22);
  --theme-secondary-color: #f8f9fa;
  --theme-badge-bg: #f8f9fa;
  --theme-badge-color: #212529;
  --theme-pill-bg: rgba(255, 255, 255, 0.08);
  --theme-pill-color: #f8f9fa;
}

body {
  background:
    radial-gradient(circle at top right, rgba(25, 135, 84, 0.12), transparent 40%),
    radial-gradient(circle at left center, rgba(13, 110, 253, 0.12), transparent 35%),
    var(--bs-body-bg);
  min-height: 100vh;
}

.hero-section {
  background: var(--hero-gradient);
}

.hero-card,
.slot-card,
.slot-option,
.trainer-card {
  backdrop-filter: blur(12px);
}

.hero-card {
  background: var(--surface-accent);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trainer-photo {
  height: 100%;
}

.slot-booking-form {
  width: 100%;
}

.slot-option {
  cursor: pointer;
}

.auth-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.btn-theme-secondary {
  background: var(--theme-secondary-bg);
  border: 1px solid var(--theme-secondary-border);
  color: var(--theme-secondary-color);
}

.btn-theme-secondary:hover,
.btn-theme-secondary:focus {
  background: var(--theme-secondary-color);
  border-color: var(--theme-secondary-color);
  color: var(--bs-body-bg);
}

.badge-theme {
  background: var(--theme-badge-bg);
  color: var(--theme-badge-color);
}

.pill-theme {
  background: var(--theme-pill-bg);
  color: var(--theme-pill-color);
  border: 1px solid var(--theme-secondary-border);
}

.avatar-shell {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(25, 135, 84, 0.18));
  flex-shrink: 0;
}

.avatar-sm {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.avatar-md {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.avatar-lg {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
}

.trainer-photo-frame {
  height: 280px;
  border-radius: 1rem 1rem 0 0;
}

.profile-photo-frame {
  width: 6rem;
  height: 6rem;
  border-radius: 1.25rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(25, 135, 84, 0.24));
  color: var(--bs-body-color);
  font-weight: 700;
}

.trainer-photo-placeholder {
  min-height: 280px;
  font-size: 2rem;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-meta {
  min-width: 0;
}

.avatar-meta .text-truncate {
  max-width: 100%;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--theme-secondary-border);
  background: var(--surface-accent);
}
