/* ==========================================================================
   Apple macOS Sequoia / Sonoma Light Glassmorphic Design System
   Raw Fitness Gym CRM + ERP — Ultra-Premium Operating System Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Apple Light Theme Color Palette */
  --bg-desktop: #F5F5F7;
  --bg-gradient: linear-gradient(135deg, #F5F5F7 0%, #E8EBF2 50%, #DFE4ED 100%);
  --bg-sidebar: rgba(246, 246, 248, 0.82);
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-solid: #FFFFFF;
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-input: rgba(255, 255, 255, 0.9);
  --bg-modal: rgba(255, 255, 255, 0.92);
  
  /* Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-glass: rgba(255, 255, 255, 0.8);
  
  /* Apple System Vibrant Accents */
  --apple-blue: #007AFF;
  --apple-blue-hover: #0062D2;
  --apple-blue-subtle: rgba(0, 122, 255, 0.12);
  --apple-blue-glow: rgba(0, 122, 255, 0.25);
  
  --apple-crimson: #FF3B30;
  --apple-crimson-subtle: rgba(255, 59, 48, 0.12);
  
  --apple-orange: #FF9500;
  --apple-orange-subtle: rgba(255, 149, 0, 0.12);
  
  --apple-green: #34C759;
  --apple-green-subtle: rgba(52, 199, 89, 0.14);
  
  --apple-purple: #AF52DE;
  --apple-purple-subtle: rgba(175, 82, 222, 0.12);
  
  --apple-teal: #30B0C7;
  --apple-indigo: #5856D6;

  /* Typography Colors */
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --text-white: #FFFFFF;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  
  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  
  --blur-glass: blur(30px) saturate(190%);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s var(--spring);
  --transition-smooth: all 0.35s var(--spring);
  
  --sidebar-width: 270px;
  --topbar-height: 64px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* Main Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* macOS Frosted Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: var(--blur-glass);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-smooth);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mac-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-indigo));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.brand-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-info span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
}

/* Gym Switcher Pill */
.gym-switcher-box {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-quick);
}

.gym-switcher-box:hover {
  background: rgba(0, 0, 0, 0.07);
}

.gym-switcher-box select {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  width: 100%;
}

.sidebar-menu {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 10px 14px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-quick);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--apple-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.nav-item .icon {
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.nav-item.active .icon {
  color: #fff;
}

/* Super Admin Return Bar in Gym Mode */
.super-return-bar {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.12), rgba(88, 86, 214, 0.12));
  border: 1px solid rgba(175, 82, 222, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-purple);
  box-shadow: 0 2px 8px rgba(175, 82, 222, 0.1);
}

.super-return-btn {
  background: #FFFFFF;
  color: var(--apple-purple);
  border: 1px solid rgba(175, 82, 222, 0.3);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-quick);
  display: flex;
  align-items: center;
  gap: 5px;
}

.super-return-btn:hover {
  background: var(--apple-purple);
  color: #fff;
  transform: scale(1.03);
}

.tier-badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tier-starter { background: rgba(0, 122, 255, 0.12); color: var(--apple-blue); }
.tier-pro { background: rgba(52, 199, 89, 0.14); color: var(--apple-green); }
.tier-enterprise { background: rgba(175, 82, 222, 0.14); color: var(--apple-purple); }

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition-smooth);
}

/* macOS Frosted Topbar */
.topbar {
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  width: 320px;
  transition: var(--transition-quick);
}

.search-bar:focus-within {
  background: #fff;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px var(--apple-blue-glow);
  width: 360px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-quick);
}

.user-profile-pill:hover {
  background: #fff;
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Page Container */
.page-container {
  padding: 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Grid System */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Apple macOS Card */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-quick);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.95);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Apple KPI Metric Cards */
.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.metric-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.metric-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-footer {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Apple Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-quick);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--apple-blue);
  color: #fff;
  box-shadow: 0 4px 14px var(--apple-blue-glow);
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.35);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-success {
  background: var(--apple-green);
  color: #fff;
}

.btn-danger {
  background: var(--apple-crimson);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Apple Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-active, .status-paid, .status-attended {
  background: var(--apple-green-subtle);
  color: #1B8738;
}

.status-expiring, .status-partial, .status-contacted, .status-trial_booked {
  background: var(--apple-orange-subtle);
  color: #B26200;
}

.status-expired, .status-unpaid, .status-lost, .status-cancelled {
  background: var(--apple-crimson-subtle);
  color: #C92A2A;
}

.status-new, .status-freezed {
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
}

/* Tables (Desktop View) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 13px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: var(--transition-quick);
}

.custom-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Responsive Adaptive Cards for Mobile & Tablet */
.responsive-card-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.responsive-item-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.responsive-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.responsive-item-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.responsive-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* macOS Modal Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--spring);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-modal);
  backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s var(--spring);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: var(--transition-quick);
}

.form-control:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px var(--apple-blue-glow);
  background: #fff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.tab-btn {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-quick);
  background: transparent;
  border: none;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: slideDown 0.3s var(--spring) forwards;
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile & Tablet Specific Responsiveness */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .page-container { padding: 20px; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-modal);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .grid-4, .grid-3, .grid-2, .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
  .search-bar {
    display: none;
  }
  .page-container {
    padding: 14px;
  }

  /* Transform Tables into Mobile Adaptive Cards */
  .table-responsive {
    display: none !important;
  }
  .responsive-card-list {
    display: flex !important;
  }

  .tabs-nav {
    width: 100%;
    overflow-x: auto;
  }
  
  #mobile-menu-toggle {
    display: flex !important;
  }
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--border-subtle);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  .page-container {
    padding-bottom: 80px;
  }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-quick);
}

.mobile-nav-btn .icon {
  font-size: 18px;
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.08);
}

/* Public Website Styles */
.website-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.website-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  border: 1px solid var(--border-glass);
}

.website-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.website-hero-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.website-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

.website-section {
  margin-bottom: 50px;
}

.website-section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.website-section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.plan-card-featured {
  border: 2px solid var(--apple-blue) !important;
  box-shadow: 0 12px 36px rgba(0, 122, 255, 0.15) !important;
  transform: translateY(-4px);
}

/* Member Digital ID Card */
.member-digital-card {
  background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  margin: 0 auto 24px;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.member-barcode {
  font-family: monospace;
  letter-spacing: 4px;
  font-size: 16px;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-weight: 900;
  margin-top: 16px;
}


/* ==========================================================================
   AUTHENTIC PRODUCTION GYM CRM & ERP THEME (MATCHING REFERENCE)
   ========================================================================== */

/* Dark Slate High-Contrast Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #171923 !important;
  color: #E2E8F0;
  border-right: 1px solid #2D3748 !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-smooth);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2D3748 transparent;
}

.sidebar-header {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #2D3748 !important;
  background: #14161F;
}

.sidebar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mac-badge {
  width: 38px;
  height: 38px;
  background: #E53E3E !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.brand-info h2 {
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF !important;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info .ver-tag {
  font-size: 10px;
  background: #E53E3E;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
}

.brand-info span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #A0AEC0 !important;
}

/* Red Prominent Action Button */
.btn-create-add {
  background: #E53E3E !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 13.5px;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 62, 62, 0.4);
  width: 100%;
}

.btn-create-add:hover {
  background: #C53030 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 62, 62, 0.5);
}

.sidebar-menu {
  padding: 10px 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9.5px 14px;
  border-radius: 8px;
  color: #A0AEC0 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
  transform: translateX(3px);
}

.nav-item.active {
  background: #007AFF !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4) !important;
}

.nav-item .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light Desktop Body */
body {
  background: #F0F4F8 !important;
  color: #1A202C !important;
}

.main-wrapper {
  background: #F0F4F8;
  min-height: 100vh;
}

/* Production Topbar */
.topbar {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.top-search-banner {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.top-search-banner input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #2D3748;
  width: 100%;
  margin-left: 10px;
}

.top-search-banner input::placeholder {
  color: #A0AEC0;
}

.search-count-pill {
  background: #EDF2F7;
  color: #4A5568;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #CBD5E0;
}

/* 2-Column Dashboard Grid */
.gymshim-dashboard-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .gymshim-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Follow Ups */
.followups-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.followups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #EDF2F7;
  margin-bottom: 14px;
}

.followups-title {
  font-size: 15px;
  font-weight: 800;
  color: #2D3748;
  display: flex;
  align-items: center;
  gap: 8px;
}

.followup-card-item {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.followup-card-item:hover {
  border-color: #CBD5E0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.followup-card-header {
  background: #2D3748;
  color: #EDF2F7;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
}

.badge-birthday {
  background: #ED8936;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-renewal {
  background: #38A169;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.followup-card-body {
  padding: 12px 14px;
}

.followup-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.followup-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.followup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #CBD5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #4A5568;
}

.followup-msg-box {
  font-size: 12px;
  color: #4A5568;
  line-height: 1.45;
  background: #F7FAFC;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid #007AFF;
  margin-top: 6px;
}

/* Right Column: Key Stats & Sales Cards */
.right-stats-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-stat-tiles-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-tile-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.stat-tile-box .val {
  font-size: 24px;
  font-weight: 900;
  color: #1A202C;
}

.stat-tile-box .lbl {
  font-size: 12px;
  font-weight: 700;
  color: #38A169;
  margin-top: 2px;
}

/* Sales Metric Cards */
.sales-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sales-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sales-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EDF2F7;
}

.sales-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #007AFF;
}

.sales-card-amount {
  font-size: 17px;
  font-weight: 900;
  color: #1A202C;
}

.sales-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11.5px;
}

.sales-subitem {
  background: #F8FAFC;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.sales-subitem .sub-lbl {
  color: #718096;
  font-size: 10.5px;
}

.sales-subitem .sub-val {
  font-weight: 800;
  color: #2D3748;
  margin-top: 2px;
}

/* Balance Bottom Bar */
.balance-bar-row {
  display: flex;
  gap: 14px;
}

.balance-item-box {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
