:root {
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --muted: #666;
  --bg: #f4f6f8;
  --panel: #fff;
  --text: #222;
  --text-color: #222;
  --link-color: #0066ff;
  --headings-color: #222;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --sidebar-bg: #1a1f2b;
  --sidebar-active: #151a24;
  --sidebar-text: #fff;
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-muted: #94a3b8;
  --icon-color: #94a3b8;
  --icon-active: #fff;
  --border-subtle: rgba(255,255,255,0.06);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.16);
  --gradient-sidebar: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-brand: linear-gradient(90deg, #fff, rgba(255,255,255,0.9));
  --error: #ff4b4b;
}

/* Base styles */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Segoe UI, Arial, sans-serif;
  background: var(--page-bg, var(--bg));
  margin: 0;
  color: var(--text-color);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--headings-color);
}

a {
  color: var(--link-color);
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 16px 12px calc(16px + var(--sidebar-width));
  background: var(--header-bg, var(--panel));
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-right: auto;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 24px 12px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-muted) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--sidebar-muted);
  border-radius: 4px;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  margin-bottom: 36px;
  height: 40px;
  background: var(--gradient-sidebar);
  border-radius: 12px;
}

.sidebar-brand i {
  font-size: 24px;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0,102,255,0.2));
}

.sidebar-brand span {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--sidebar-text);
  text-decoration: none;
  margin-bottom: 6px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-sidebar);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-link:hover::before {
  opacity: 1;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.sidebar-link.active {
  background: var(--sidebar-active);
  box-shadow: var(--shadow-md);
}

.sidebar-link.active::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), rgba(0,102,255,0.8));
}

.sidebar-link.active i,
.sidebar-link.active span {
  color: var(--icon-active);
}

.sidebar-link i {
  color: var(--icon-color);
  margin-right: 14px;
  font-size: 20px;
  width: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-link span {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-wallet-balance {
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#wallet-balance-display {
    font-weight: 700;
    color: #fff;
}

/* Logout Button */
.sidebar-logout {
  padding: 0 8px;
  margin: 16px 0;
}

.logout-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: var(--sidebar-active);
  color: var(--sidebar-text);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.logout-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,75,75,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logout-button:hover::before {
  opacity: 1;
}

.logout-button:hover {
  background: var(--sidebar-active);
  color: #ff4b4b;
  border-color: rgba(255,75,75,0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.logout-button i {
  margin-right: 14px;
  font-size: 20px;
  width: 24px;
  text-align: center;
  color: #ff4b4b;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(255,75,75,0.2));
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 20px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sidebar-active);
  margin: 24px -12px 0;
}

.footer-copyright {
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Collapsed State */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
  padding: 24px 8px;
}

body.sidebar-collapsed .sidebar .sidebar-brand span,
body.sidebar-collapsed .sidebar .sidebar-link span,
body.sidebar-collapsed .sidebar .logout-button span,
body.sidebar-collapsed .sidebar .sidebar-footer {
  opacity: 0;
  visibility: hidden;
  width: 0;
  transform: translateX(10px);
}

body.sidebar-collapsed .sidebar .sidebar-brand {
  justify-content: center;
  margin-bottom: 32px;
}

body.sidebar-collapsed .sidebar .sidebar-link {
  padding: 14px;
  justify-content: center;
}

body.sidebar-collapsed .sidebar .sidebar-link i {
  margin: 0;
  font-size: 22px;
}

body.sidebar-collapsed .sidebar .logout-button {
  padding: 14px;
  justify-content: center;
}

body.sidebar-collapsed .sidebar .logout-button i {
  margin: 0;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 28px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* allow content to shrink inside flex containers and prevent overflow */
  min-width: 0;
}

body.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .site-header {
  padding-left: calc(16px + var(--sidebar-collapsed-width));
}

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
}

body.sidebar-open .sidebar-backdrop {
  display: block;
}

/* Navigation Toggle */
.nav-toggle {
  background: transparent;
  border: 0;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.05);
}

/* Mobile Styles */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    padding: 16px;
  }

  .site-header {
    padding-left: 16px !important;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-collapsed .sidebar .sidebar-brand span,
  body.sidebar-collapsed .sidebar .sidebar-link span,
  body.sidebar-collapsed .sidebar .logout-button span,
  body.sidebar-collapsed .sidebar .sidebar-footer {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    transform: none !important;
  }

  body.sidebar-collapsed .sidebar .sidebar-link,
  body.sidebar-collapsed .sidebar .logout-button {
    padding: 14px 16px !important;
    justify-content: flex-start !important;
  }

  body.sidebar-collapsed .sidebar .sidebar-link i,
  body.sidebar-collapsed .sidebar .logout-button i {
    margin-right: 14px !important;
    width: 24px !important;
  }
}

/* Dashboard Styles */
.dashboard-welcome {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 16px;
  margin-bottom: 48px;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.welcome-header {
  text-align: center;
}

.welcome-header h2 {
  font-size: 32px;
  margin: 0 0 8px;
}

.welcome-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

/* Ensure separation between welcome banner and stats grid */
.dashboard-welcome + .grid-4 {
  margin-top: 8px;
}

.stat-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.stat-content h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.stat-big {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1;
}

.stat-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: auto;
    grid-template-areas:
      "upcoming progress"
      "activity trainer";
    align-items: start;
  }
  .dashboard-card { height: 100%; }
  .upcoming-classes { grid-area: upcoming; }
  .progress-section { grid-area: progress; }
  .activity-feed { grid-area: activity; }
  .personal-trainer { grid-area: trainer; }
}

.dashboard-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: var(--accent);
}

.btn {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-text, white);
  border: none;
  padding: var(--btn-padding, '8px 16px');
  border-radius: var(--btn-radius, '8px');
  font-size: var(--btn-font-size, 14px);
  font-weight: var(--btn-font-weight, 500);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover {
  background: var(--btn-hover-bg, var(--accent-hover));
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.list-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}

.class-info {
  display: flex;
  flex-direction: column;
}

.class-info strong {
  font-size: 15px;
  margin-bottom: 4px;
}

.trainer-name {
  font-size: 13px;
  color: var(--muted);
}

.class-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.progress-grid {
  display: grid;
  gap: 16px;
}

.progress-card {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-header label {
  font-size: 14px;
  font-weight: 500;
}

.progress-header span {
  font-size: 13px;
  color: var(--muted);
}

.progress {
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.trainer-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.trainer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.trainer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-info {
  flex: 1;
}

.trainer-info h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.trainer-info p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.trainer-stats {
  display: flex;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.next-session {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
}

.next-session h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.next-session p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.activity-icon.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.activity-icon.booked {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.activity-icon.achievement {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin: 0 0 4px;
  font-size: 14px;
}

.activity-time {
  font-size: 13px;
  color: var(--muted);
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s forwards, fadeOut 0.5s 2.5s forwards;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Mobile Responsive Dashboard */
@media (max-width: 768px) {
   .dashboard-welcome {
    padding: 24px 16px;
    margin-bottom: 40px;
  }

  .welcome-header h2 {
    font-size: 24px;
  }

  .welcome-subtitle {
    font-size: 16px;
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .stat-big {
    font-size: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .card-header {
    margin-bottom: 16px;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .list-item {
    padding: 12px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .class-meta {
    width: 100%;
    justify-content: space-between;
  }

  .trainer-profile {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .trainer-stats {
    justify-content: center;
  }

  .activity-item {
    gap: 12px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Very small screens adjustments */
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 12px; }
  .site-header { padding: 10px 12px; }
  .logo { font-size: 16px; }
  .dashboard-welcome { padding: 18px 12px; margin-bottom: 32px; }
  .welcome-header h2 { font-size: 20px; }
  .grid-4 { gap: 16px; margin-bottom: 24px; }
  .stat-card { padding: 12px; }
  .stat-big { font-size: 20px; }
  .trainer-avatar { width: 64px; height: 64px; }
  .avatar { width: 64px; height: 64px; font-size: 20px; }
  .price { font-size: 36px; }
  .card { padding: 16px; }
  .section { padding: 32px 0; }
  .grid-3 { margin-bottom: 32px; }
  .classes-grid { margin-bottom: 32px; }
  .trainers-grid { margin-bottom: 32px; }
  .pricing-grid { margin-bottom: 32px; }
}

/* Mirror / glass effect for inputs and highlighted cards */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: var(--text);
}

input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder { color: rgba(11,18,32,0.45); }

input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
  background: rgba(255,255,255,0.78);
}

.card, .media-card, .lp-feature, .plan-option, .price-card, .stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.58));
  border: 1px solid rgba(255,255,255,0.44);
  box-shadow: none;
}

.card::after, .media-card::after, .lp-feature::after, .plan-option::after, .price-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
  pointer-events: none;
  border-top-left-radius: inherit; border-top-right-radius: inherit;
}

.section-title { position: relative; display: inline-block; padding: 6px 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.5)); border: 1px solid rgba(255,255,255,0.45); box-shadow: 0 6px 18px rgba(2,6,23,0.06); }
/*
/* Slightly stronger button contrast when near glass inputs */
.btn { border-radius: 10px; padding: 10px 16px; box-shadow: 0 6px 18px rgba(2,6,23,0.06); }
.btn:hover { transform: translateY(-2px); }

/* Ensure small media card thumbnails inherit rounded glass look */
.media-card img, .lp-video { border-radius: 8px; }

@media (max-width: 640px) {
  input[type="text"], textarea, select { padding: 10px; }
  .card::after, .media-card::after { height: 28%; }
}

/* Survey Page Styles */
.survey-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  padding: 20px;
}

.survey-container {
  width: 100%;
  max-width: 800px;
  background: var(--panel);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Plans modal shown after survey */
.survey-plans-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.survey-plans-box {
  width: 920px;
  max-width: 95%;
  background: var(--panel);
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.4);
}
.survey-plans-header h2 { margin: 0 0 6px; }
.survey-plans-header .muted { color: var(--muted); margin: 0 0 12px; }
.survey-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.plan-option {
  background: linear-gradient(180deg, var(--panel), #fbfdff);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-head { display:flex;justify-content:space-between;align-items:center }
.plan-name { font-weight:700; font-size:16px; color:var(--text) }
.plan-badge { background:#ffea00;padding:6px 8px;border-radius:999px;font-size:12px;color:#111 }
.plan-price { font-weight:800; font-size:20px; color:var(--accent) }
.plan-desc { color:var(--muted); font-size:13px }
.plan-features { list-style:none; padding:0; margin:8px 0 0; color:var(--muted); font-size:14px }
.plan-features li { margin:6px 0 }
.plan-features li.locked { opacity:0.45; text-decoration:line-through }
.plan-cta { margin-top:10px; text-align:right }
.survey-plans-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:14px }
.btn-outline { background:transparent; border:1px solid #dbe6ff; color:var(--text) }

@media (max-width: 900px) {
  .survey-plans-grid { grid-template-columns: 1fr; }
  .survey-plans-box { padding: 16px; }
}

.survey-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 8px;
}

.progress-bar .progress {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: var(--muted);
}

.survey-form h2 {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--text);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Input Styles */
.survey-form input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s;
}

.survey-form input[type="number"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.survey-form input.error {
  border-color: var(--error);
}

/* Radio Card Styles */
.gender-options,
.goal-options,
.body-type-options,
.activity-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.radio-card,
.goal-card,
.body-type-card,
.activity-card {
  position: relative;
}

.radio-card input[type="radio"],
.goal-card input[type="radio"],
.body-type-card input[type="radio"],
.activity-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-content,
.goal-content,
.body-type-content,
.activity-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-content i,
.goal-content i,
.activity-content i {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}

.radio-content span,
.goal-content span,
.body-type-content span,
.activity-content span {
  font-weight: 500;
  margin-bottom: 4px;
}

.body-type-content img,
.activity-content small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

input[type="radio"]:checked + .radio-content,
input[type="radio"]:checked + .goal-content,
input[type="radio"]:checked + .body-type-content,
input[type="radio"]:checked + .activity-content {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.radio-card.error .radio-content,
.goal-card.error .goal-content,
.body-type-card.error .body-type-content,
.activity-card.error .activity-content {
  border-color: var(--error);
}

/* Survey Navigation */
.survey-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.survey-navigation button {
  min-width: 120px;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success {
  background: #10b981;
}

.btn-success:hover {
  background: #059669;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .survey-container {
    padding: 24px;
    border-radius: 16px;
  }

  .survey-form h2 {
    font-size: 20px;
  }

  .gender-options,
  .goal-options,
  .body-type-options,
  .activity-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .radio-content,
  .goal-content,
  .body-type-content,
  .activity-content {
    padding: 16px;
  }
}



/* Container and Grid Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Card Styles */
.card {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.link:hover {
  color: var(--accent-hover);
}

/* Classes Grid */
.section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  margin: 0 0 32px;
  font-size: 24px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.class-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.class-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.class-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

/* Trainers Grid */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  text-align: center;
}

.trainer {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trainer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  margin: 0 auto 16px;
}

.trainer h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.trainer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.price-card {
  background: var(--panel);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
}

.price-card.featured .price,
.price-card.featured .price span,
.price-card.featured ul {
  color: white;
}

.price-card.featured .btn {
  background: white;
  color: var(--accent);
}

.price-card.featured .btn:hover {
  background: rgba(255,255,255,0.9);
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1;
  color: var(--accent);
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-card li {
  margin-bottom: 8px;
}

/* Landing page styles */
.lp-hero {
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,102,255,0.02));
  padding: 80px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* landing-page specific header (fixed + blur on scroll) */
.landing-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: transparent;
  transition: background 280ms ease, backdrop-filter 280ms ease, box-shadow 280ms ease;
  padding: 14px 20px;
}
.landing-page main { padding-top: 74px; }
.landing-page .site-header.scrolled {
  background: rgba(255,255,255,0.72);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* header blur variant when admin enables transparent blur */
.landing-page .site-header.header-blur {
  background: rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .logo { font-weight: 800; letter-spacing: 0.2px }

/* Workouts & Highlights boxes: overlay effect on all media-cards */
.media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.media-card:hover::after { opacity: 0.2; transform: scale(1.02); }

.media-card .media-meta { position: absolute; left: 12px; bottom: 12px; z-index: 4; color: white; text-shadow: 0 6px 14px rgba(0,0,0,0.6); }

/* hero background decorative layer (parallax images) */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.lp-hero-bg .bg-img {
  position: absolute;
  width: 380px;
  height: 260px;
  border-radius: 12px;
  opacity: 0.85;
  transform: translateY(0) translateX(0) scale(1);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms;
}
.lp-hero-bg .bg-video {
  position: absolute;
  width: 380px;
  height: 260px;
  border-radius: 12px;
  opacity: 0.9;
  transform: translateY(0) translateX(0) scale(1);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms;
}
.lp-hero-bg .bg-full {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  opacity: 0.95 !important;
  z-index: 0;
}
.lp-hero-bg .bg-full + .bg-img,
.lp-hero-bg .bg-full + .bg-video {
  display: none;
}
.lp-hero-bg .bg-1 { left: 6%; top: 8%; }
.lp-hero-bg .bg-2 { right: 6%; top: 6%; width: 420px; height: 300px; opacity:0.92 }
.lp-hero-bg .bg-3 { left: 18%; bottom: 4%; width: 320px; height: 220px; opacity:0.78 }
.lp-hero-inner { position: relative; z-index: 2; }
.lp-hero-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}
.hero-text-wrap { position: relative; z-index: 3; display: inline-block; padding: 0; border-radius: 0; background: none; color: #fff; box-shadow: none; }
.hero-text-wrap h1 { margin: 0 0 8px; color: #fff; text-shadow: 0 20px 40px rgba(2,6,23,0.55), 0 4px 10px rgba(0,0,0,0.3); font-size: 44px; line-height: 1.02 }
.hero-text-wrap p.lead { margin: 0 0 12px; color: rgba(255,255,255,0.9); font-size: 16px }

.hero-reflection { margin-top: 8px; display: block; transform-origin: top; z-index: 2; pointer-events: none; }
.hero-reflection .reflected { transform: scaleY(-1); opacity: 0.18; filter: none; margin: 8px 0 0; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)); mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)); }
.hero-reflection .reflected-lead { transform: scaleY(-1); opacity: 0.12; filter: none; margin: 6px 0 0; font-size: 14px }

/* Media showcase glow/blur behind the grid */
.media-grid { position: relative; }
.media-grid::before { content: ''; position: absolute; inset: -24px; background: radial-gradient(600px 200px at 50% 50%, rgba(2,6,23,0.06), rgba(2,6,23,0.02) 40%, transparent 70%); filter: blur(24px); z-index: 0; pointer-events: none; border-radius: 18px; }
.media-grid > .media-card { position: relative; z-index: 1; box-shadow: 0 18px 50px rgba(2,6,23,0.12); transition: transform 200ms ease, box-shadow 200ms ease; }
.media-grid > .media-card:hover { transform: translateY(-8px); box-shadow: 0 28px 80px rgba(2,6,23,0.18); }

/* Radial-fade halo behind highlighted elements to avoid hard edges */
.hero-text-wrap::before {
  content: '';
  position: absolute;
  left: -18px; right: -18px; top: -18px; bottom: -18px;
  border-radius: 18px;
  background: radial-gradient(40% 60% at 30% 30%, rgba(2,6,23,0.65), rgba(2,6,23,0.40) 28%, rgba(2,6,23,0.18) 44%, rgba(2,6,23,0.06) 62%, transparent 78%);
  z-index: 2;
  pointer-events: none;
}

/* We also add a faint corner halo for more organic falloff */
.hero-text-wrap::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px; right: -60px; bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(2,6,23,0.18), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* Reflection smoothing: slightly blur and fade more smoothly toward edges */
.hero-reflection .reflected { filter: none; opacity: 0.16; }

/* Media grid halo: larger, soft radial fade under grid for corner falloff */
.media-grid::before {
  content: '';
  position: absolute;
  inset: -36px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px 260px at 50% 30%, rgba(2,6,23,0.08), rgba(2,6,23,0.02) 40%, transparent 70%);
  border-radius: 20px;
}

/* Card halo: subtle radial behind each media-card for smooth edge */
.media-grid .media-card::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 14px;
  background: radial-gradient(60% 40% at 50% 40%, rgba(2,6,23,0.06), rgba(2,6,23,0.02) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.landing-page {
  background: var(--landing-bg, var(--bg));
}

/* Ensure content sits above halos */
.hero-text-wrap > *, .media-grid .media-card > * { position: relative; z-index: 3; }

/* Improved hero text edge and contrast handling */
.hero-text-wrap.light-text h1, .hero-text-wrap.light-text p.lead {
  color: #0b1220;
}
.hero-text-wrap.dark-text h1, .hero-text-wrap.dark-text p.lead {
  color: #ffffff;
}

/* Strong yet soft text-edge for both light and dark text */
.hero-text-wrap h1, .hero-text-wrap p.lead {
  -webkit-text-stroke-width: 0.6px;
  -webkit-text-stroke-color: rgba(0,0,0,0.28);
  text-shadow: 0 6px 20px rgba(2,6,23,0.45), 0 2px 8px rgba(0,0,0,0.32), 0 0 2px rgba(255,255,255,0.02);
}

/* When text is light on dark backgrounds we add a faint outer glow to smooth edges */
.hero-text-wrap.dark-text h1 {
  text-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4), 0 0 6px rgba(0,0,0,0.18);
}

/* When text is dark on light backgrounds, add subtle white stroke for separation */
.hero-text-wrap.light-text h1 {
  -webkit-text-stroke-color: rgba(255,255,255,0.85);
  text-shadow: 0 8px 22px rgba(255,255,255,0.82), 0 1px 3px rgba(0,0,0,0.06) inset;
}

/* fallback overlay behind hero text to guarantee legibility if sampling fails */
.hero-text-wrap.fallback-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.48), rgba(0,0,0,0.20));
  z-index: -1;
}
.lp-hero h1 { font-size: 40px; margin:0 0 12px; color:var(--text); line-height:1.05 }
.lp-hero p.lead { font-size:18px; color:var(--muted); margin:0 0 18px }
.lp-ctas { display:flex; gap:12px; align-items:center }
.lp-cta-btn { padding:12px 18px; border-radius:10px; font-weight:600; border:0; cursor:pointer }
.lp-cta-primary { background:var(--accent); color:white }
.lp-cta-ghost { background:transparent; border:2px solid rgba(0,102,255,0.12); color:var(--text) }
.lp-features { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:36px }
.lp-feature { background:var(--panel); padding:18px; border-radius:12px; box-shadow:var(--shadow-sm); text-align:left }
.lp-feature h4 { margin:0 0 8px }
.lp-illustration { width:100%; border-radius:12px; box-shadow:var(--shadow-md); background: linear-gradient(180deg,#fff,#f7fbff); padding:12px }

/* animation helpers */
.reveal { opacity:0; transform: translateY(18px) scale(0.995); transition: all 520ms cubic-bezier(.2,.9,.2,1); }
.reveal.in-view { opacity:1; transform: none }

@media (max-width: 980px) {
  .lp-hero-inner { grid-template-columns: 1fr; text-align:center }
  .lp-illustration { display:none }
  .lp-features { grid-template-columns: 1fr }
  .lp-hero-bg .bg-img { display:none }
}

/* Media showcase styles */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.media-card {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
}
.media-card img { width: 100%; height: 220px; object-fit: cover; display:block }
.lp-video { width:100%; height:220px; object-fit:cover; display:block; background:#000 }
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); transition: transform 200ms ease }



        .complete-checkbox {
            margin-top: 1rem;
        }

        .exercise-card-visual {
            position: relative;
            width: 100%;
            height: 120px; /* Adjust height as needed */
            margin-bottom: 1rem;
            border-radius: 0.75rem;
            overflow: hidden;
            background-color: #e0e0e0; /* Placeholder background */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .exercise-card-visual .exercise-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7; /* Make image slightly transparent for icon */
        }

        .exercise-card-visual .exercise-icon {
            position: absolute;
            color: #fff; /* Icon color */
            font-size: 3rem; /* Icon size */
            text-shadow: 0 2px 4px rgba(0,0,0,0.4);
        }

        @media (max-width: 768px) {
            .section-header h1 {
                font-size: 2rem;
            }
            .account-container {
                padding: 1rem;
            }
        }

    