:root {
  --bg-primary: #0b0f0d;
  --bg-secondary: #131916;
  --bg-card: #18221d;
  --bg-input: #1e2a24;
  
  --primary: #1e5c3f;
  --primary-light: #2c845b;
  --accent-gold: #d4af37;
  --accent-gold-rgb: 212, 175, 55;
  --accent-gold-hover: #e5c158;
  
  --text-primary: #ffffff;
  --text-secondary: #a2b4aa;
  --text-muted: #647d70;
  
  --border-color: #24352d;
  --border-highlight: #3a5447;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
  
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);

  --base-font-size: 20px;
}

html {
  font-size: var(--base-font-size);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #050706;
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem; /* 14px */
}

.desktop-wrapper {
  width: 100%;
  height: 100%;
  max-width: 768px;
  background-color: var(--bg-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

/* Splash Loading Screen */
#splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow) ease-in-out, visibility var(--transition-slow);
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.splash-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(var(--accent-gold-rgb), 0.3));
  animation: pulse-logo 2s infinite ease-in-out;
}

.splash-circle-pulse {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px solid rgba(var(--accent-gold-rgb), 0.2);
  border-radius: 50%;
  animation: circle-expand 2s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.splash-title span {
  color: var(--accent-gold);
}

.splash-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.splash-loader {
  margin-top: 40px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* App Shell Layout */
.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transition: opacity var(--transition-normal) ease-in-out;
}

.app-container.visible {
  opacity: 1;
}

/* Header styling */
.app-header {
  height: 64px;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(19, 25, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

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

.header-logo {
  font-size: 1.5rem;
}

.header-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.header-title span {
  color: var(--accent-gold);
}

.header-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-action-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.header-action-btn svg {
  width: 20px;
  height: 20px;
}

/* Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  /* Extra bottom padding to ensure contents are not clipped by the bottom navbar */
  padding: 20px 20px calc(80px + var(--safe-area-bottom)) 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.app-content::-webkit-scrollbar {
  width: 4px;
}

.app-content::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: var(--radius-full);
}

/* Page Section Switching */
.page-section {
  display: none;
  animation: fade-in-up var(--transition-normal) forwards;
}

.page-section.active {
  display: block;
}

/* Bottom Navigation Bar */
.app-navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(68px + var(--safe-area-bottom));
  background-color: rgba(19, 25, 22, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px var(--safe-area-bottom) 10px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 60px;
  height: 52px;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 500;
  gap: 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform var(--transition-fast), stroke-width var(--transition-fast);
}

.nav-item::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-item.active {
  color: var(--accent-gold);
}

.nav-item.active svg {
  stroke-width: 2.5;
  transform: translateY(-2px);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-item:active svg {
  transform: scale(0.9);
}

/* Typography & Layout Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Card Styling */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.card:active {
  transform: scale(0.98);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Badge Styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.badge-gold {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-green {
  background-color: rgba(30, 92, 63, 0.25);
  color: var(--text-primary);
  border: 1px solid var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(30, 92, 63, 0.4) 0%, rgba(19, 25, 22, 0.95) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-highlight);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::after {
  content: '🏏';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 7.5rem;
  opacity: 0.08;
  transform: rotate(-30deg);
}

.hero-logo-container {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-primary:active {
  background-color: var(--accent-gold-hover);
  transform: translateY(1px);
}

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

.btn-secondary:active {
  background-color: var(--bg-card);
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline:active {
  background-color: rgba(212, 175, 55, 0.1);
  transform: translateY(1px);
}

/* Staff Profiles Carousel/Grid */
.staff-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-card {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.staff-card:active {
  transform: scale(0.98);
  border-color: var(--border-highlight);
}

.staff-avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.staff-avatar {
  font-size: 2rem;
}

.staff-info {
  flex: 1;
}

.staff-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.staff-role {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.staff-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.staff-card.expanded .staff-desc {
  display: block;
  overflow: visible;
}

/* User Stats Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-footer {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chart-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding-top: 15px;
  margin-top: 10px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.bar-track {
  width: 14px;
  height: 80px;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  transition: height 1s ease-in-out;
  height: 0%; /* Dynamic fill via JS */
}

.bar-fill.gold {
  background-color: var(--accent-gold);
}

.bar-label {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

/* Booking setup */
.booking-wizard {
  display: flex;
  flex-direction: column;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
  padding: 0 10px;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  z-index: 2;
  transition: all var(--transition-fast);
}

.wizard-step-node.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 12px rgba(var(--accent-gold-rgb), 0.3);
}

.wizard-step-node.completed {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
}

.wizard-content-panel {
  display: none;
}

.wizard-content-panel.active {
  display: block;
  animation: fade-in var(--transition-normal) forwards;
}

.coach-select-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.coach-select-card {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.coach-select-card.selected {
  border-color: var(--accent-gold);
  background-color: rgba(212, 175, 55, 0.05);
}

.coach-select-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.coach-select-card .details {
  flex: 1;
}

.coach-select-card .name {
  font-size: 0.875rem;
  font-weight: 600;
}

.coach-select-card .type {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.price-indicator {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Time slots selection */
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 20px 0;
}

.time-slot-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-slot-btn.selected {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(var(--accent-gold-rgb), 0.2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Payments Simulated UI */
.payment-summary {
  background-color: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent-gold);
}

.payment-card-ui {
  background: linear-gradient(135deg, #20352a 0%, #0d1e15 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.payment-card-ui::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background-color: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
}

.card-number-wrapper {
  margin-bottom: 12px;
}

.card-expiry-cvv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Success Modal/Screen */
.booking-success-screen {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: rgba(30, 92, 63, 0.2);
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary-light);
  animation: bounce-in var(--transition-normal);
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

/* Tours & Camps Cards */
.tour-card, .camp-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: transform var(--transition-fast);
}

.tour-card:active, .camp-card:active {
  transform: scale(0.99);
}

.tour-banner, .camp-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 12px;
}

.tour-banner::after, .camp-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(19, 25, 22, 1) 0%, rgba(19, 25, 22, 0.2) 100%);
}

.tour-tag, .camp-tag {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.tour-banner-title, .camp-banner-title {
  position: relative;
  z-index: 2;
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tour-details, .camp-details {
  padding: 16px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.detail-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.tour-price, .camp-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 12px 0;
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  margin-top: 8px;
}

.accordion-content {
  display: none;
  padding-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-color);
  margin-top: 8px;
}

.accordion-content p {
  margin-bottom: 8px;
}

/* Toast Notifications */
.toast-container {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  animation: slide-in var(--transition-normal) forwards;
  pointer-events: auto;
}

.toast-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-message {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Animations */
@keyframes pulse-logo {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(var(--accent-gold-rgb), 0.3));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 35px rgba(var(--accent-gold-rgb), 0.55));
  }
}

@keyframes circle-expand {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.8; }
  70% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-select-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-header-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-back:active {
  transform: translateY(1px);
  background-color: var(--bg-input);
}

.coach-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coach-profile-hero {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--accent-gold);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

#coach-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-profile-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.coach-profile-subtitle {
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 24px;
  max-width: 90%;
  line-height: 1.5;
}

.coach-profile-content {
  text-align: left;
  width: 100%;
}

.coach-profile-content .card {
  margin-bottom: 16px;
}

.coach-profile-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.coach-profile-content p:last-child {
  margin-bottom: 0;
}

/* Login / Sign Up screen */
.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
}

.auth-logo-container {
  margin-bottom: 16px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.auth-heading {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.auth-heading span {
  color: var(--accent-gold);
}

.auth-subheading {
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

.auth-form {
  display: none;
  width: 100%;
  text-align: left;
}

.auth-form.active {
  display: block;
  animation: fade-in var(--transition-normal) forwards;
}

/* Profile overview card (Home page) */
.profile-overview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-overview-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-overview-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold);
}

.profile-overview-name {
  font-size: 1rem;
  font-weight: 700;
}

.profile-overview-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.profile-overview-actions {
  display: flex;
  gap: 10px;
}

/* Logged-out state hides the app chrome so the auth screen is the only focus */
body.logged-out .app-navbar,
body.logged-out .app-header .header-action-btn {
  display: none;
}
