/* ===== THEME & VARIABLES — Apple Intelligence Aesthetic ===== */
:root {
  --bg: #07070C;
  --bg-card: rgba(22,22,36,0.55);
  --bg-card-hover: rgba(28,28,44,0.65);
  --bg-sidebar: rgba(22,22,36,0.55);
  --bg-input: rgba(36,36,56,0.75);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #ECECF6;
  --text-dim: #A6A6BD;
  --text-muted: #6A6A82;
  --purple: #7c3aed;
  --purple-soft: rgba(124,58,237,0.15);
  --teal: #14b8a6;
  --teal-soft: rgba(20,184,166,0.15);
  --orange: #f59e0b;
  --orange-soft: rgba(245,158,11,0.15);
  --green: #34D399;
  --green-soft: rgba(52,211,153,0.14);
  --red: #F87171;
  --red-soft: rgba(248,113,113,0.14);
  --blue: #3b82f6;
  --blue-soft: rgba(59,130,246,0.15);
  --sidebar-w: 250px;
  --sidebar-collapsed: 72px;
  --topbar-h: 56px;
  --radius: 14px;
  --radius-sm: 8px;
  --glass-blur: 28px;
  --transition: .2s cubic-bezier(.4,0,.2,1);

  /* Iridescent beams */
  --beam-1: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124,92,255,0.25), transparent 60%);
  --beam-2: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(59,130,246,0.20), transparent 60%);
  --beam-3: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(236,72,153,0.12), transparent 60%);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

[data-theme="light"] {
  --bg: #F4F5FB;
  --bg-card: rgba(255,255,255,0.65);
  --bg-card-hover: rgba(255,255,255,0.80);
  --bg-sidebar: rgba(255,255,255,0.65);
  --bg-input: rgba(0,0,0,0.04);
  --border: rgba(15,15,30,0.07);
  --border-hover: rgba(15,15,30,0.12);
  --text: #0B0B14;
  --text-dim: #4B4B62;
  --text-muted: #7B7B92;
  --green: #059669;
  --red: #DC2626;
  --orange: #D97706;
  --beam-1: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124,92,255,0.12), transparent 60%);
  --beam-2: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(59,130,246,0.12), transparent 60%);
  --beam-3: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(236,72,153,0.06), transparent 60%);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--beam-1), var(--beam-2), var(--beam-3), var(--bg);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::selection { background: var(--purple); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  margin-bottom: 32px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: conic-gradient(from 210deg, #7C5CFF, #3B82F6, #34D399, #E879F9, #7C5CFF);
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.55), inset 0 0 0 1px rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { stroke: #fff; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover { color: var(--text); background: var(--bg-card-hover); }
.nav-item.active {
  color: var(--purple);
  background: var(--purple-soft);
  box-shadow: 0 0 20px rgba(124,58,237,0.1);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px;
  background: var(--purple);
  border-radius: 0 3px 3px 0;
}

.sidebar-bottom { margin-top: auto; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.user-avatar {
  width: 36px; height: 36px;
  background: conic-gradient(from 200deg, #7C5CFF, #3B82F6, #34D399, #E879F9, #7C5CFF);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.user-plan { font-size: .7rem; color: var(--text-dim); }

/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 0 32px 32px;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  z-index: 50;
  padding: 0 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.menu-toggle {
  display: none;
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 6px;
}
.topbar-left { flex: 1; }
.page-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.page-date { font-size: .8rem; color: var(--text-dim); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: border var(--transition);
}
.search-box:focus-within { border-color: var(--purple); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .85rem; width: 180px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box.small { padding: 5px 10px; }
.search-box.small input { width: 160px; font-size: .8rem; }

.theme-btn, .notif-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}
.theme-btn:hover, .notif-btn:hover { color: var(--text); border-color: var(--border-hover); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.topbar-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-circle {
  width: 34px; height: 34px;
  background: conic-gradient(from 200deg, #7C5CFF, #3B82F6, #34D399, #E879F9, #7C5CFF);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
}
.avatar-name { font-size: .85rem; font-weight: 500; }

/* ===== PAGES ===== */
.page { display: none; animation: fadeIn .35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stat-card { animation: slideUp .5s ease both; }
.stat-card:nth-child(1) { animation-delay: .05s; }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .15s; }
.stat-card:nth-child(4) { animation-delay: .2s; }
.chart-card { animation: slideUp .5s ease both; animation-delay: .25s; }
.bottom-row .card { animation: slideUp .5s ease both; }
.bottom-row .card:nth-child(1) { animation-delay: .3s; }
.bottom-row .card:nth-child(2) { animation-delay: .35s; }

/* ===== STAT CARDS ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124,92,255,0.12);
}
.stat-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stat-label { font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal); }
.stat-icon.orange { background: var(--orange-soft); color: var(--orange); }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon svg { stroke: currentColor; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 500;
}
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--green); }

.sparkline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 40px !important;
  opacity: .4;
  pointer-events: none;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
}
.card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.card:hover { border-color: var(--border-hover); box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-badge {
  background: var(--purple-soft);
  color: var(--purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.card-link {
  font-size: .8rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

/* ===== CHARTS ===== */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
}
.chart-card.wide { min-height: 280px; }
.chart-card canvas { max-height: 240px; }
.chart-card:hover { border-color: var(--border-hover); box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.chart-header h3 { font-size: 1rem; font-weight: 600; }
.chart-tabs { display: flex; gap: 4px; }
.chart-tab {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .75rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition);
}
.chart-tab:hover { color: var(--text); }
.chart-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ===== BOTTOM ROW ===== */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== SCHEDULE ===== */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.schedule-item:hover { background: var(--bg-card-hover); }
.schedule-item.active-now {
  background: var(--purple-soft);
  border: 1px solid rgba(124,58,237,.2);
  position: relative;
}
.schedule-item.active-now::before {
  content: 'LIVE';
  position: absolute;
  top: 6px; right: 10px;
  font-size: .55rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .06em;
  animation: pulse-badge 2s infinite;
}
.schedule-time { font-size: .8rem; font-weight: 600; color: var(--text-dim); width: 42px; flex-shrink: 0; }
.schedule-bar {
  width: 4px; height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}
.schedule-bar.pilates { background: var(--purple); }
.schedule-bar.yoga { background: var(--teal); }
.schedule-bar.hiit { background: var(--orange); }
.schedule-bar.strength { background: var(--blue); }
.schedule-bar.cardio { background: var(--red); }
.schedule-info { display: flex; flex-direction: column; gap: 2px; }
.schedule-name { font-size: .85rem; font-weight: 600; }
.schedule-meta { font-size: .75rem; color: var(--text-dim); }
.badge-full {
  background: var(--red-soft);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ===== ACTIVITY FEED ===== */
.activity-list { display: flex; flex-direction: column; gap: 4px; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.activity-item:hover { background: var(--bg-card-hover); }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.green { background: var(--green); }
.activity-dot.purple { background: var(--purple); }
.activity-dot.teal { background: var(--teal); }
.activity-dot.orange { background: var(--orange); }
.activity-content { display: flex; flex-direction: column; gap: 2px; }
.activity-content span { font-size: .82rem; line-height: 1.4; }
.activity-time { font-size: .7rem; color: var(--text-muted); }

/* ===== MEMBERS TABLE ===== */
.member-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-btns { display: flex; gap: 4px; }
.filter-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: .75rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.table-wrap { overflow-x: auto; }
.members-table {
  width: 100%;
  border-collapse: collapse;
}
.members-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.members-table td {
  padding: 12px 14px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.members-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}
.members-table tbody tr:hover { background: var(--bg-card-hover); }

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.member-name-col { display: flex; flex-direction: column; }
.member-name-col span:first-child { font-weight: 600; }
.member-name-col span:last-child { font-size: .72rem; color: var(--text-dim); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.badge-gold { background: var(--orange-soft); color: var(--orange); }
.badge-silver { background: var(--blue-soft); color: var(--blue); }
.badge-dropin { background: var(--bg-input); color: var(--text-dim); }
.badge-active { background: var(--green-soft); color: var(--green); }
.badge-paused { background: var(--orange-soft); color: var(--orange); }
.badge-expired { background: var(--red-soft); color: var(--red); }
.badge-paid { background: var(--green-soft); color: var(--green); }
.badge-pending { background: var(--orange-soft); color: var(--orange); }
.badge-failed { background: var(--red-soft); color: var(--red); }

.streak-cell { display: flex; align-items: center; gap: 4px; font-weight: 600; }

/* ===== CLASSES / CALENDAR ===== */
.classes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.day-tabs { display: flex; gap: 4px; }
.day-tab {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all var(--transition);
}
.day-tab:hover { color: var(--text); border-color: var(--border-hover); }
.day-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.class-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-dim); }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.legend-dot.pilates { background: var(--purple); }
.legend-dot.yoga { background: var(--teal); }
.legend-dot.hiit { background: var(--orange); }
.legend-dot.strength { background: var(--blue); }
.legend-dot.cardio { background: var(--red); }

.calendar-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-time {
  padding: 14px 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.cal-slot {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.class-block {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  font-weight: 500;
  transition: transform var(--transition);
}
.class-block:hover { transform: scale(1.01); }
.class-block.pilates { background: var(--purple-soft); border-left: 3px solid var(--purple); color: var(--text); }
.class-block.yoga { background: var(--teal-soft); border-left: 3px solid var(--teal); color: var(--text); }
.class-block.hiit { background: var(--orange-soft); border-left: 3px solid var(--orange); color: var(--text); }
.class-block.strength { background: var(--blue-soft); border-left: 3px solid var(--blue); color: var(--text); }
.class-block.cardio { background: var(--red-soft); border-left: 3px solid var(--red); color: var(--text); }
.class-block-info { display: flex; flex-direction: column; gap: 1px; }
.class-block-name { font-weight: 600; }
.class-block-meta { font-size: .72rem; color: var(--text-dim); }
.class-block-spots { font-size: .75rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

/* ===== REVENUE ===== */
.payment-status-bar {
  display: flex;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 1px;
}
.ps-paid { background: var(--green); }
.ps-pending { background: var(--orange); }
.ps-failed { background: var(--red); }

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.settings-section.full-width { grid-column: 1 / -1; }

.setting-row { margin-bottom: 16px; }
.setting-row label { display: block; font-size: .8rem; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.setting-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
  resize: vertical;
}
.setting-input:focus { border-color: var(--purple); }

.logo-upload { display: flex; align-items: center; gap: 14px; }
.logo-placeholder {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.setting-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setting-toggle-label { font-size: .85rem; font-weight: 500; display: block; }
.setting-toggle-desc { font-size: .72rem; color: var(--text-dim); display: block; margin-top: 2px; }

.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: all var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--purple); border-color: var(--purple); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.integration-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.integration-card:hover { border-color: var(--border-hover); }
.integration-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
}
.integration-info { flex: 1; display: flex; flex-direction: column; }
.integration-name { font-size: .85rem; font-weight: 600; }
.integration-desc { font-size: .7rem; color: var(--text-dim); }
.btn-connect {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-connect:hover { border-color: var(--purple); color: var(--purple); }
.btn-connect.connected { background: var(--green-soft); color: var(--green); border-color: transparent; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 560px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-dim); font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
}
.modal-name { font-size: 1.1rem; font-weight: 700; }
.modal-sub { font-size: .8rem; color: var(--text-dim); }
.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.modal-stat {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.modal-stat-val { font-size: 1.2rem; font-weight: 700; }
.modal-stat-label { font-size: .7rem; color: var(--text-dim); }
.modal-heatmap { margin-bottom: 16px; }
.modal-heatmap h4 { font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-input);
}
.heatmap-cell.l1 { background: var(--purple-soft); }
.heatmap-cell.l2 { background: rgba(124,58,237,.35); }
.heatmap-cell.l3 { background: rgba(124,58,237,.55); }
.heatmap-cell.l4 { background: var(--purple); }

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  background: linear-gradient(90deg, var(--purple-soft), var(--teal-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}
.announcement-close {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .85rem;
}

/* ===== WEATHER & CLOCK ===== */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: .78rem;
}
.weather-icon { font-size: 1rem; }
.weather-temp { font-weight: 600; }
.weather-loc { color: var(--text-dim); }
.live-clock {
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 52px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.qa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: all var(--transition);
}
.qa-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.qa-btn.purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.qa-btn.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.qa-btn.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.qa-btn.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* ===== LIVE STATS ROW ===== */
.live-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.live-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  flex: 1;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}
.live-dot.green { background: var(--green); }
.live-dot.teal { background: var(--teal); }
.live-dot.orange { background: var(--orange); }
.live-dot.purple { background: var(--purple); }
.live-stat-val { font-size: 1.1rem; font-weight: 800; }
.live-stat-label { font-size: .72rem; color: var(--text-dim); }

/* ===== STAT COMPARISON ===== */
.stat-comparison {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== MIDDLE ROW ===== */
.middle-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Goal Ring */
.goal-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 8px auto;
}
.goal-ring { width: 100%; height: 100%; }
.goal-ring-progress {
  transition: stroke-dashoffset 1.5s ease;
}
.goal-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.goal-ring-val { font-size: 1.5rem; font-weight: 800; }
.goal-ring-label { font-size: .7rem; color: var(--text-dim); }
.goal-footer { text-align: center; font-size: .78rem; color: var(--text-dim); margin-top: 8px; }

/* NPS Gauge */
.nps-gauge-wrap {
  position: relative;
  width: 180px;
  height: 100px;
  margin: 0 auto;
}
.nps-gauge { width: 100%; height: 100%; }
.nps-score {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 800;
}
.nps-label {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  color: var(--text-dim);
}
.nps-breakdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: .7rem;
  color: var(--text-dim);
}
.nps-breakdown .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }

/* Occupancy Heatmap */
.occupancy-heatmap {
  display: grid;
  grid-template-columns: 40px repeat(14, 1fr);
  gap: 2px;
  font-size: .6rem;
}
.oh-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  color: var(--text-muted);
  font-weight: 600;
}
.oh-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-input);
  transition: transform .15s;
}
.oh-cell:hover { transform: scale(1.3); z-index: 1; }
.oh-cell.h1 { background: rgba(124,58,237,0.15); }
.oh-cell.h2 { background: rgba(124,58,237,0.3); }
.oh-cell.h3 { background: rgba(124,58,237,0.5); }
.oh-cell.h4 { background: rgba(124,58,237,0.7); }
.oh-cell.h5 { background: var(--purple); }
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .65rem;
  color: var(--text-muted);
}
.heatmap-legend-bar {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bg-input), var(--purple));
}

/* ===== ALERT CARDS ===== */
.alert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.alert-card.red { border-left: 3px solid var(--red); }
.alert-card.orange { border-left: 3px solid var(--orange); }
.alert-card.blue { border-left: 3px solid var(--blue); }
.alert-icon { font-size: 1.2rem; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-content strong { font-size: .82rem; display: block; }
.alert-content span { font-size: .7rem; color: var(--text-dim); }
.alert-action {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .68rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.alert-action:hover { border-color: var(--purple); color: var(--purple); }

/* ===== BOTTOM GRID (3 col) ===== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 16px;
  margin-bottom: 20px;
}

/* Schedule done state */
.schedule-item.done { opacity: .5; }
.done-badge {
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.schedule-status { margin-left: auto; }

/* Activity avatars */
.activity-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ===== SIDEBAR STACK ===== */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-card { padding: 14px; }
.mini-card .card-header { margin-bottom: 10px; }
.mini-card .card-header h3 { font-size: .85rem; }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-step { display: flex; align-items: center; gap: 8px; position: relative; }
.funnel-bar { height: 24px; border-radius: 4px; }
.funnel-label { position: absolute; left: 8px; font-size: .7rem; font-weight: 600; }
.funnel-val { font-size: .75rem; font-weight: 700; margin-left: auto; }

/* Birthday */
.birthday-list { display: flex; flex-direction: column; gap: 8px; }
.birthday-item { display: flex; align-items: center; gap: 8px; }
.birthday-avatar { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.birthday-item div { display: flex; flex-direction: column; flex: 1; }
.birthday-item strong { font-size: .78rem; }
.birthday-item span { font-size: .65rem; color: var(--text-dim); }
.btn-tiny { background: var(--bg-input); border: 1px solid var(--border); color: var(--text-dim); padding: 2px 8px; border-radius: 4px; font-size: .6rem; font-family: inherit; cursor: pointer; white-space: nowrap; }

/* Staff */
.staff-list { display: flex; flex-direction: column; gap: 8px; }
.staff-item { display: flex; align-items: center; gap: 8px; }
.staff-avatar { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.staff-item div { display: flex; flex-direction: column; }
.staff-item strong { font-size: .78rem; }
.staff-status { font-size: .65rem; }
.staff-status.teaching { color: var(--purple); }
.staff-status.active { color: var(--green); }
.staff-status.available { color: var(--text-dim); }

/* Social */
.social-stats { display: flex; flex-direction: column; gap: 6px; }
.social-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.social-row strong { margin-left: auto; }
.social-icon { font-size: .9rem; }
.stat-trend.small { font-size: .65rem; }

/* Quote */
.quote-card {
  background: linear-gradient(135deg, var(--purple-soft), var(--teal-soft)) !important;
  text-align: center;
}
.quote-text { font-size: .82rem; font-style: italic; line-height: 1.5; margin-bottom: 6px; }
.quote-author { font-size: .7rem; color: var(--text-dim); }

/* ===== INSIGHT CARDS ===== */
.mini-insights-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.insight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.insight-card.green-glow { border-left: 3px solid var(--green); }
.insight-card.purple-glow { border-left: 3px solid var(--purple); }
.insight-card.teal-glow { border-left: 3px solid var(--teal); }
.insight-icon { font-size: 1.5rem; }
.insight-content { display: flex; flex-direction: column; }
.insight-label { font-size: .72rem; color: var(--text-dim); }
.insight-value { font-size: 1.3rem; font-weight: 800; }
.insight-trend { position: absolute; bottom: 6px; right: 12px; font-size: .65rem; color: var(--text-muted); }

/* ===== NAV BADGES ===== */
.nav-badge {
  margin-left: auto;
  background: var(--bg-input);
  color: var(--text-dim);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: .65rem;
  font-weight: 600;
}
.nav-badge.new {
  background: var(--purple);
  color: #fff;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notif-dropdown {
  display: none;
  position: absolute;
  top: 56px;
  right: 80px;
  width: 340px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; animation: fadeIn .2s ease; }
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-dropdown-header h4 { font-size: .85rem; }
.notif-dropdown-header a { font-size: .72rem; color: var(--purple); text-decoration: none; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  transition: background var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: var(--bg-card); }
.notif-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
.notif-icon.green { background: var(--green-soft); }
.notif-icon.orange { background: var(--orange-soft); }
.notif-icon.purple { background: var(--purple-soft); }
.notif-icon.teal { background: var(--teal-soft); }
.notif-icon.red { background: var(--red-soft); }
.notif-item div { display: flex; flex-direction: column; }
.notif-time { font-size: .65rem; color: var(--text-muted); margin-top: 2px; }

/* ===== COMING SOON ===== */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}
.cs-icon { font-size: 3rem; margin-bottom: 16px; }
.coming-soon h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.coming-soon p { color: var(--text-dim); font-size: .9rem; margin-bottom: 16px; max-width: 400px; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight .3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== MEMBERS INSIGHTS ===== */
.members-insights {
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.streak-board { display: flex; flex-direction: column; gap: 4px; }
.streak-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: .78rem;
}
.streak-rank {
  width: 20px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
}
.streak-rank.gold { color: var(--orange); }
.streak-rank.silver { color: var(--text-dim); }
.streak-rank.bronze { color: #cd7f32; }
.streak-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.streak-name { flex: 1; font-weight: 500; }
.streak-days { font-weight: 700; color: var(--orange); font-size: .75rem; }

/* Member Insight Grid */
.member-insight-grid { display: flex; flex-direction: column; gap: 10px; }
.mi-item { display: flex; flex-direction: column; gap: 2px; }
.mi-val { font-size: 1rem; font-weight: 700; }
.mi-label { font-size: .7rem; color: var(--text-dim); }
.mi-bar { height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.mi-fill { height: 100%; border-radius: 2px; }

/* Risk badges */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .65rem;
  font-weight: 600;
}
.risk-low { background: var(--green-soft); color: var(--green); }
.risk-medium { background: var(--orange-soft); color: var(--orange); }
.risk-high { background: var(--red-soft); color: var(--red); }

/* Member tags */
.member-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.member-tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 600;
}
.tag-rehab { background: var(--red-soft); color: var(--red); }
.tag-beginner { background: var(--blue-soft); color: var(--blue); }
.tag-vip { background: var(--orange-soft); color: var(--orange); }
.tag-pregnant { background: var(--purple-soft); color: var(--purple); }
.tag-comp { background: var(--teal-soft); color: var(--teal); }

/* Pagination */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.pagination-info { font-size: .75rem; color: var(--text-dim); }
.pagination-btns { display: flex; gap: 4px; }
.pg-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.pg-btn:hover { border-color: var(--purple); color: var(--purple); }
.pg-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Contract expiry badge */
.contract-badge {
  font-size: .6rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  background: var(--orange-soft);
  color: var(--orange);
}

/* Medical alert */
.medical-flag {
  color: var(--red);
  font-size: .7rem;
  cursor: help;
}

/* ===== REVENUE GOAL BAR ===== */
.revenue-goal-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.rg-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .82rem; }
.rg-pct { font-weight: 800; color: var(--purple); }
.rg-track {
  height: 12px;
  background: var(--bg-input);
  border-radius: 6px;
  position: relative;
  overflow: visible;
}
.rg-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 6px;
  transition: width 1.5s ease;
}
.rg-marker {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ===== REVENUE INSIGHTS ===== */
.revenue-insights-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.rev-type-list { display: flex; flex-direction: column; gap: 6px; }
.rev-type-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.rev-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rev-type-item strong { margin-left: auto; }
.rev-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rev-metric { display: flex; flex-direction: column; gap: 1px; }
.rev-metric-label { font-size: .65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rev-metric-val { font-size: 1.1rem; font-weight: 800; }
.rev-metric-sub { font-size: .65rem; color: var(--text-dim); }

/* ===== MEMBER APP PAGE ===== */
.app-hero { display: flex; gap: 40px; align-items: center; margin-bottom: 20px; }
.app-hero-text { flex: 1; }
.app-hero-text h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.app-hero-text p { color: var(--text-dim); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.app-download-stats { display: flex; gap: 24px; }
.app-dl-stat { display: flex; flex-direction: column; }
.app-dl-stat strong { font-size: 1.3rem; font-weight: 800; }
.app-dl-stat span { font-size: .7rem; color: var(--text-dim); }

.phone-carousel { display: flex; gap: 16px; flex-shrink: 0; }
.phone-frame {
  width: 220px;
  background: var(--bg-sidebar);
  border: 2px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transition: all .3s ease;
}
.phone-frame.active { display: flex; animation: fadeIn .4s ease; }
.phone-notch {
  width: 80px; height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 8px auto 4px;
}
.phone-screen { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.phone-nav-bar {
  display: flex; justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.ps-header { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ps-label { font-size: .65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.ps-streak { background: var(--orange-soft); border-radius: 8px; padding: 8px; text-align: center; font-size: .8rem; font-weight: 700; }
.ps-next-class { }
.ps-class-card { display: flex; gap: 8px; padding: 8px; background: var(--bg-input); border-radius: 8px; }
.ps-class-card div { display: flex; flex-direction: column; }
.ps-class-card strong { font-size: .75rem; }
.ps-class-card span { font-size: .6rem; color: var(--text-dim); }
.ps-quick-book { }
.ps-book-row { display: flex; gap: 4px; flex-wrap: wrap; }
.ps-book-chip { padding: 4px 8px; border-radius: 6px; font-size: .6rem; font-weight: 600; }
.ps-book-chip.pilates { background: var(--purple-soft); color: var(--purple); }
.ps-book-chip.yoga { background: var(--teal-soft); color: var(--teal); }
.ps-book-chip.hiit { background: var(--orange-soft); color: var(--orange); }
.ps-stats-row { display: flex; justify-content: space-around; padding: 8px; background: var(--bg-input); border-radius: 8px; }
.ps-stats-row > div { text-align: center; display: flex; flex-direction: column; }
.ps-stats-row strong { font-size: .85rem; font-weight: 800; }
.ps-stats-row span { font-size: .55rem; color: var(--text-dim); }

/* Phone: Booking */
.ps-class-list { display: flex; flex-direction: column; gap: 6px; }
.ps-class-item { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg-input); border-radius: 8px; }
.ps-class-item div { display: flex; flex-direction: column; flex: 1; }
.ps-class-item strong { font-size: .72rem; }
.ps-class-item span { font-size: .58rem; color: var(--text-dim); }
.ps-class-item.booked { border: 1px solid var(--green); background: var(--green-soft); }
.ps-class-item.full { opacity: .6; }
.ps-booked-badge { color: var(--green); font-size: .65rem; font-weight: 700; }
.ps-book-btn { background: var(--purple); color: #fff; border: none; padding: 4px 10px; border-radius: 6px; font-size: .6rem; font-weight: 600; cursor: pointer; }
.ps-waitlist-btn { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; font-size: .6rem; cursor: pointer; }

/* Phone: Achievements */
.ps-badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: var(--bg-input); border-radius: 8px; font-size: 1.2rem; }
.ps-badge span { font-size: .5rem; color: var(--text-dim); text-align: center; }
.ps-badge.earned { background: var(--purple-soft); }
.ps-badge.locked { opacity: .3; filter: grayscale(1); }

/* Phone: Profile */
.ps-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.ps-avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .9rem; }
.ps-qr-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; background: var(--bg-input); border-radius: 10px; }
.ps-qr-box { width: 80px; height: 80px; background: #fff; border-radius: 6px; display: grid; place-items: center; padding: 8px; }
.ps-qr-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; width: 100%; height: 100%; }
.ps-qr-grid > div { background: #1a1a1a; border-radius: 1px; }
.ps-qr-grid > div:nth-child(even) { background: transparent; }
.ps-plan-info { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.ps-plan-row { display: flex; justify-content: space-between; font-size: .72rem; padding: 4px 0; }
.ps-plan-row span { color: var(--text-dim); }

/* Phone Selector */
.phone-selector { display: flex; justify-content: center; gap: 6px; }
.ps-sel { background: var(--bg-input); border: 1px solid var(--border); color: var(--text-dim); padding: 6px 14px; border-radius: 8px; font-size: .75rem; font-family: inherit; cursor: pointer; transition: all var(--transition); }
.ps-sel:hover { border-color: var(--border-hover); color: var(--text); }
.ps-sel.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Push Previews */
.push-previews { display: flex; flex-direction: column; gap: 8px; }
.push-prev { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-input); border-radius: var(--radius-sm); }
.push-prev-icon { font-size: 1.2rem; flex-shrink: 0; }
.push-prev div { display: flex; flex-direction: column; flex: 1; }
.push-prev strong { font-size: .8rem; }
.push-prev span { font-size: .72rem; color: var(--text-dim); }
.push-prev-time { font-size: .68rem; color: var(--text-muted); }

/* ===== ANALYTICS PAGE ===== */
.ai-insights-banner {
  display: flex; align-items: center; gap: 14px;
  background:
    linear-gradient(180deg, rgba(124,92,255,.08), transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(124,92,255,.22);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
.ai-insights-banner::after {
  content:""; position:absolute; top:-1px; left:10%; right:10%; height:1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,.6), rgba(59,130,246,.6), transparent);
}
.ai-pulse {
  position: absolute; left: -20px; top: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  animation: pulse-badge 3s infinite;
}
.ai-icon { font-size: 1.5rem; flex-shrink: 0; z-index: 1; }
.ai-insights-carousel { flex: 1; position: relative; min-height: 24px; z-index: 1; }
.ai-tip { display: none; font-size: .85rem; line-height: 1.4; animation: fadeIn .4s ease; }
.ai-tip.active { display: block; }
.ai-tip strong { color: var(--purple); }
.ai-nav { display: flex; gap: 4px; z-index: 1; }
.ai-nav-btn {
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-dim); padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-family: inherit; font-size: .8rem;
  transition: all var(--transition);
}
.ai-nav-btn:hover { border-color: var(--purple); color: var(--purple); }

/* Journey Funnel */
.journey-funnel { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.jf-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-input);
  transition: width .8s ease;
}
.jf-bar { width: 4px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.jf-info { flex: 1; display: flex; flex-direction: column; }
.jf-info strong { font-size: .82rem; }
.jf-info span { font-size: .7rem; color: var(--text-dim); }
.jf-pct { font-size: .85rem; font-weight: 800; color: var(--text-dim); }

/* Benchmarks */
.benchmark-list { display: flex; flex-direction: column; gap: 12px; }
.bm-item { display: flex; flex-direction: column; gap: 4px; }
.bm-item > span:first-child { font-size: .75rem; font-weight: 600; }
.bm-bar-wrap { display: flex; flex-direction: column; gap: 2px; }
.bm-bar {
  height: 16px; border-radius: 4px; font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; padding-left: 6px; color: #fff;
  transition: width .8s ease;
}
.bm-bar.you { background: var(--purple); }
.bm-bar.avg { background: var(--bg-input); color: var(--text-dim); }
.bm-diff { font-size: .7rem; font-weight: 700; }
.bm-diff.good { color: var(--green); }

/* Monthly Goals */
.monthly-goals { display: flex; flex-direction: column; gap: 12px; }
.mg-item { display: flex; flex-direction: column; gap: 4px; }
.mg-info { display: flex; justify-content: space-between; font-size: .75rem; }
.mg-info span { color: var(--text-dim); }
.mg-info strong { font-size: .78rem; }

/* Report Preview */
.report-preview {
  display: flex; justify-content: center; padding: 20px;
  background: var(--bg-input); border-radius: var(--radius-sm);
}
.rp-page {
  width: 320px; background: #fff; border-radius: 8px;
  padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  color: #1a1a1a;
}
.rp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #eee; }
.rp-logo { width: 32px; height: 32px; background: #7c3aed; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #fff; }
.rp-header div { display: flex; flex-direction: column; }
.rp-header strong { font-size: .85rem; }
.rp-header span { font-size: .65rem; color: #888; }
.rp-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 16px; }
.rp-stat { text-align: center; padding: 8px; background: #f5f5f5; border-radius: 6px; }
.rp-stat span { font-size: 1rem; font-weight: 800; display: block; }
.rp-stat small { font-size: .6rem; color: #888; }
.rp-chart-placeholder { height: 60px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); border-radius: 6px; margin-bottom: 12px; }
.rp-text { height: 8px; background: #eee; border-radius: 4px; margin-bottom: 6px; }
.rp-text.short { width: 60%; }

/* ===== COMMUNICATION PAGE ===== */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.comm-grid.three { grid-template-columns: 1fr 1fr 1fr; }

/* Email Flow */
.email-flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.flow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); margin-top: 4px; flex-shrink: 0; }
.flow-step.active .flow-dot { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.3); }
.flow-content { display: flex; flex-direction: column; gap: 1px; }
.flow-content strong { font-size: .82rem; }
.flow-content span { font-size: .7rem; color: var(--text-dim); }
.flow-stat { color: var(--text-muted) !important; font-size: .65rem !important; }
.flow-line { width: 2px; height: 12px; background: var(--border); margin-left: 4px; }

/* Email Preview */
.email-preview { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.email-preview-bar { display: flex; gap: 5px; padding: 8px 12px; background: var(--bg-input); }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; }
.email-preview-content { padding: 16px; }
.ep-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ep-logo { width: 32px; height: 32px; background: var(--purple); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #fff; }
.ep-subject { font-weight: 700; font-size: .9rem; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.ep-body { font-size: .78rem; line-height: 1.6; }
.ep-body p { margin-bottom: 8px; }
.ep-btn { display: inline-block; background: var(--purple); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: .78rem; font-weight: 600; margin: 8px 0; }

/* SMS Panel */
.sms-panel { display: flex; flex-direction: column; gap: 8px; }
.sms-to { font-size: .78rem; color: var(--text-dim); }
.sms-footer { display: flex; justify-content: space-between; align-items: center; }
.sms-count { font-size: .7rem; color: var(--text-muted); }

/* WhatsApp Templates */
.wa-templates { display: flex; flex-direction: column; gap: 8px; }
.wa-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px; background: var(--bg-input); border-radius: var(--radius-sm); }
.wa-item span:first-child { font-size: 1rem; }
.wa-item div { display: flex; flex-direction: column; }
.wa-item strong { font-size: .78rem; }
.wa-item div span { font-size: .68rem; color: var(--text-dim); }

/* Reviews */
.reviews-section { display: flex; flex-direction: column; gap: 12px; }
.reviews-score { text-align: center; padding: 12px 0; }
.reviews-big { font-size: 2.5rem; font-weight: 800; }
.reviews-stars { color: var(--orange); font-size: 1.2rem; }
.reviews-count { font-size: .75rem; color: var(--text-dim); }
.review-item { padding: 10px; background: var(--bg-input); border-radius: var(--radius-sm); }
.review-stars { color: var(--orange); font-size: .8rem; margin-bottom: 4px; }
.review-item p { font-size: .78rem; font-style: italic; margin-bottom: 4px; }
.review-author { font-size: .68rem; color: var(--text-dim); }

/* Referral */
.referral-section { display: flex; flex-direction: column; gap: 10px; }
.referral-stat { display: flex; align-items: baseline; gap: 6px; }
.referral-val { font-size: 1.3rem; font-weight: 800; }
.referral-stat span { font-size: .75rem; color: var(--text-dim); }
.referral-tiers { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ref-tier { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.ref-tier-badge { padding: 2px 8px; border-radius: 4px; font-size: .65rem; font-weight: 600; }

/* Loyalty */
.loyalty-section { display: flex; flex-direction: column; gap: 4px; }
.loyalty-rule { display: flex; justify-content: space-between; padding: 4px 0; font-size: .78rem; }

/* ===== TRAINERS PAGE ===== */
.trainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.trainer-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.trainer-photo { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: #fff; }
.trainer-card h3 { font-size: 1rem; font-weight: 700; }
.trainer-role { font-size: .75rem; color: var(--text-dim); }
.trainer-stats-row { display: flex; gap: 16px; margin: 8px 0; }
.trainer-stats-row > div { display: flex; flex-direction: column; align-items: center; }
.trainer-stats-row strong { font-size: 1.1rem; font-weight: 800; }
.trainer-stats-row span { font-size: .6rem; color: var(--text-dim); }
.trainer-certs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.cert-badge { padding: 2px 8px; border-radius: 4px; font-size: .6rem; font-weight: 600; background: var(--green-soft); color: var(--green); }
.cert-badge.warn { background: var(--orange-soft); color: var(--orange); }
.trainer-classes { display: flex; gap: 4px; }
.trainer-goal { width: 100%; text-align: left; margin-top: 4px; }
.trainer-goal span { font-size: .68rem; color: var(--text-dim); }

/* Trainer Schedule */
.trainer-schedule { display: flex; flex-direction: column; gap: 0; }
.ts-header, .ts-row { display: grid; grid-template-columns: 120px repeat(7, 1fr); gap: 4px; padding: 6px 0; font-size: .75rem; }
.ts-header { font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); text-align: center; }
.ts-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .78rem; }
.ts-cell { text-align: center; padding: 6px; border-radius: 4px; font-weight: 700; font-size: .75rem; }
.ts-cell.full { background: var(--purple-soft); color: var(--purple); }
.ts-cell.mid { background: var(--teal-soft); color: var(--teal); }
.ts-cell.low { background: var(--bg-input); color: var(--text-dim); }
.ts-cell.off { color: var(--text-muted); }

/* Sub Requests */
.sub-requests { display: flex; flex-direction: column; gap: 8px; }
.sub-req { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: var(--bg-input); border-radius: var(--radius-sm); }
.sub-req-info { display: flex; flex-direction: column; }
.sub-req-info strong { font-size: .82rem; }
.sub-req-info span { font-size: .68rem; color: var(--text-dim); }
.sub-reason { color: var(--orange) !important; }

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 4px; }
.cert-row { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 4px; font-size: .78rem; }
.cert-row.ok { background: var(--bg-input); }
.cert-row.warn { background: var(--orange-soft); }
.cert-date { font-size: .7rem; color: var(--text-dim); }
.cert-row.warn .cert-date { color: var(--orange); font-weight: 600; }

/* Team Chat */
.team-chat { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { display: flex; gap: 8px; }
.chat-bubble { display: flex; flex-direction: column; background: var(--bg-input); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); padding: 6px 10px; }
.chat-bubble strong { font-size: .72rem; }
.chat-bubble span { font-size: .75rem; }
.chat-time { font-size: .6rem !important; color: var(--text-muted) !important; }
.chat-input { margin-top: 4px; }

/* ===== ROOM TABS ===== */
.room-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.room-tab {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: .78rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.room-tab:hover { color: var(--text); border-color: var(--border-hover); }
.room-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ===== ENHANCED CLASS BLOCKS ===== */
.class-block-row { display: flex; align-items: center; gap: 6px; }
.class-trainer-avatar {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.class-rating { font-size: .65rem; color: var(--orange); font-weight: 600; }
.class-difficulty {
  font-size: .55rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.diff-beginner { background: var(--green-soft); color: var(--green); }
.diff-intermediate { background: var(--orange-soft); color: var(--orange); }
.diff-advanced { background: var(--red-soft); color: var(--red); }
.class-fill-bar {
  height: 3px;
  background: var(--bg-input);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.class-fill-bar-inner { height: 100%; border-radius: 2px; transition: width .5s ease; }
.class-waitlist-badge {
  font-size: .6rem;
  color: var(--orange);
  font-weight: 600;
}

/* ===== WORKSHOPS ===== */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.workshop-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.workshop-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.workshop-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  background: var(--purple-soft);
  border-radius: 8px;
  padding: 8px;
}
.ws-day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.ws-month { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; font-weight: 600; }
.workshop-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.workshop-info strong { font-size: .82rem; }
.workshop-info span { font-size: .7rem; color: var(--text-dim); }
.ws-spots { font-weight: 500; }

/* ===== SETTINGS EXTRA ===== */
.settings-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.billing-badge { display: flex; align-items: center; gap: 8px; }
.hours-grid { display: flex; flex-direction: column; gap: 6px; }
.hours-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.hours-row span:first-child { width: 70px; color: var(--text-dim); font-size: .78rem; }
.roles-table { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.role-row { display: grid; grid-template-columns: 80px repeat(4, 1fr); text-align: center; padding: 6px 0; font-size: .75rem; }
.role-row.header { font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.role-name { text-align: left; font-weight: 600; }
.embed-code {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
}
.embed-code code { flex: 1; font-size: .7rem; font-family: monospace; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ===== POWERED BADGE ===== */
.powered-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  margin-top: 32px;
  font-size: .75rem;
  color: var(--text-muted);
}
.powered-badge a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}
.powered-badge a:hover { text-decoration: underline; }
.powered-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}

/* ===== ROW HOVER HIGHLIGHT ===== */
.members-table tbody tr:hover td { color: var(--text); }
.activity-item { border-radius: var(--radius-sm); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .middle-row { grid-template-columns: 1fr 1fr; }
  .alert-row { grid-template-columns: 1fr; }
  .mini-insights-row { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { flex-wrap: wrap; }
  .live-stats-row { flex-wrap: wrap; }
  .weather-widget { display: none; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 0 16px 16px; }
  .menu-toggle { display: flex; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .search-box { display: none; }
  .avatar-name { display: none; }
  .integrations-grid { grid-template-columns: 1fr; }
  .member-filters { flex-wrap: wrap; }
  .classes-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .day-tabs { overflow-x: auto; }
}
