/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --purple:      #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light:#ede9fe;
  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-400:   #94a3b8;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ════════════════════════════════════════
   LOGIN — Smile Yoga Studio
════════════════════════════════════════ */
#login-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #07000f;
  z-index: 100;
}
.ln-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 15% 25%, rgba(85,0,170,.5)   0%, transparent 55%),
    radial-gradient(ellipse 70% 65% at 85% 75%, rgba(160,45,15,.38)  0%, transparent 55%),
    radial-gradient(ellipse 55% 55% at 55% 45%, rgba(0,35,85,.22)    0%, transparent 60%),
    linear-gradient(155deg, #05000c 0%, #0e0022 55%, #05000c 100%);
}
.ln-para { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; will-change: transform; }
#p-far { opacity: .10; filter: blur(1.5px); }
#p-mid { opacity: .16; }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pt { position: absolute; border-radius: 50%; bottom: -8px; background: radial-gradient(circle, rgba(255,200,95,.95), rgba(255,130,40,.25) 70%); animation: rise var(--d) var(--del) linear infinite; }
.pt.petal { border-radius: 80% 0 80% 0; background: rgba(175,115,220,.42); }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: .3; }
  100% { transform: translateY(-108vh) translateX(var(--dx)) rotate(var(--r)); opacity: 0; }
}
.cw  { animation: lncw  90s linear infinite; transform-box: fill-box; transform-origin: center; }
.ccw { animation: lnccw 65s linear infinite; transform-box: fill-box; transform-origin: center; }
.cw2 { animation: lncw  52s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lncw  { to { transform: rotate(360deg);  } }
@keyframes lnccw { to { transform: rotate(-360deg); } }
.ln-cw { position: relative; z-index: 10; will-change: transform; }
.ln-card {
  width: 420px;
  background: rgba(9,1,24,.76);
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  border: 1px solid rgba(255,255,255,.1);
  border-top-color: rgba(255,255,255,.22);
  border-left-color: rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 44px 40px 36px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 80px rgba(95,25,210,.28), 0 40px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
}
.ln-card::before { content:''; position:absolute; top:0; left:15%; right:15%; height:1px; background:linear-gradient(90deg,transparent,rgba(175,130,255,.55),transparent); pointer-events:none; }
.ln-card::after  { content:''; position:absolute; inset:0; border-radius:27px; background:linear-gradient(135deg,rgba(255,255,255,.05) 0%,transparent 50%); pointer-events:none; }
.ln-logo { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:26px; }
.ln-logo-icon { width:44px; height:44px; border-radius:13px; background:linear-gradient(135deg,rgba(105,45,205,.88),rgba(195,95,45,.88)); border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 20px rgba(105,45,205,.45),inset 0 1px 0 rgba(255,255,255,.2); }
.ln-logo-icon svg { width:22px; height:22px; }
.ln-logo-name { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:rgba(255,255,255,.95); }
.ln-logo-name em { font-style:italic; color:#e8a060; font-size:18px; }
.ln-title { font-family:'Playfair Display',serif; font-size:28px; font-weight:700; color:rgba(255,255,255,.95); text-align:center; }
.ln-title em { font-style:italic; color:#e8a060; }
.ln-sub { text-align:center; font-size:13px; font-weight:300; color:rgba(255,255,255,.33); margin-top:5px; margin-bottom:30px; letter-spacing:.3px; }
.ln-err { display:none; background:rgba(200,30,30,.13); border:1px solid rgba(255,80,80,.22); border-left:2px solid rgba(255,80,80,.6); color:#ff9090; padding:10px 14px; border-radius:8px; font-size:13px; margin-bottom:18px; }
.ln-err.show { display:block; }
.ln-field { margin-bottom:18px; }
.ln-lbl { display:block; font-size:11px; font-weight:500; color:rgba(190,160,255,.52); text-transform:uppercase; letter-spacing:1.6px; margin-bottom:7px; }
.ln-fw { position:relative; }
.ln-ico { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:rgba(255,255,255,.22); display:flex; align-items:center; pointer-events:none; }
.ln-ico svg { width:16px; height:16px; }
.ln-inp { width:100%; padding:13px 44px 13px 40px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; font-size:14.5px; color:rgba(255,255,255,.9); outline:none; transition:border-color .2s,box-shadow .2s,background .2s; }
.ln-inp:focus { background:rgba(255,255,255,.09); border-color:rgba(232,160,96,.55); box-shadow:0 0 0 3px rgba(232,160,96,.1),0 0 22px rgba(232,160,96,.07); }
.ln-inp::placeholder { color:rgba(255,255,255,.18); }
.ln-inp:-webkit-autofill { -webkit-box-shadow:0 0 0 100px rgba(9,1,24,.95) inset; -webkit-text-fill-color:rgba(255,255,255,.9); }
.ln-eye { position:absolute; right:11px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; color:rgba(255,255,255,.22); padding:4px; border-radius:6px; display:flex; align-items:center; transition:color .15s; }
.ln-eye:hover { color:rgba(255,255,255,.6); }
.ln-eye svg { width:15px; height:15px; }
.ln-btn { margin-top:8px; width:100%; padding:13px; background:linear-gradient(135deg,rgba(95,38,195,.92) 0%,rgba(195,95,45,.92) 100%); color:#fff; font-size:15px; font-weight:600; letter-spacing:.4px; border:1px solid rgba(255,255,255,.17); border-radius:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 4px 24px rgba(95,38,195,.4),0 2px 12px rgba(195,95,45,.22); transition:opacity .2s,transform .15s,box-shadow .2s; }
.ln-btn:hover { opacity:.9; transform:translateY(-1px); box-shadow:0 8px 32px rgba(95,38,195,.5),0 4px 18px rgba(195,95,45,.3); }
.ln-btn:active { transform:translateY(0); }
.ln-btn svg { width:15px; height:15px; }
.ln-foot { text-align:center; margin-top:22px; font-size:12px; color:rgba(255,255,255,.22); }
.ln-foot strong { color:rgba(180,148,255,.52); font-weight:600; }
.ln-om { display:block; text-align:center; margin-top:14px; font-size:22px; font-family:serif; color:rgba(255,255,255,.09); }
@media (max-width: 480px) {
  .ln-card { width:calc(100vw - 32px); padding:34px 22px 28px; }
  #p-far { display:none; }
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 14px; outline: none; color: #111827; background: #fafafa; transition: border-color .15s, box-shadow .15s, background .15s; }
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.12); background: white; }
.form-input::placeholder { color: #c4c9d4; }
.btn-primary { display: block; width: 100%; background: #2563eb; color: white; font-weight: 500; padding: 10px 16px; border-radius: 8px; font-size: 14px; transition: background .15s; border: none; cursor: pointer; }
.btn-primary:hover    { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.login-footer strong { color: rgba(255,255,255,0.65); font-weight: 600; }

/* ════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════ */
#app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 240px;
  background: var(--slate-900);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 30;
  transform: translateX(-100%);
  transition: transform .2s;
}
#sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) { #sidebar { transform: translateX(0); } }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--slate-700);
}
.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--purple);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.sidebar-logo-text { font-weight: 600; font-size: 15px; }
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--slate-400);
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-link:hover  { background: var(--slate-800); color: white; }
.nav-link.active { background: var(--purple);    color: white; }
.nav-icon { font-size: 17px; width: 20px; text-align: center; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--slate-700);
}
.sidebar-username {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--slate-400);
  cursor: pointer; transition: color .15s;
  background: none; border: none;
}
.logout-btn:hover { color: white; }

/* ── Sidebar overlay (mobile) ── */
#sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 20;
  display: none;
}
#sidebar-overlay.show { display: block; }
@media (min-width: 1024px) { #sidebar-overlay { display: none !important; } }

/* ── Main ── */
#app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 0;
}
@media (min-width: 1024px) { #app-main { margin-left: 240px; } }

/* ── Topbar ── */
#topbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  transition: background .15s;
}
.menu-btn:hover { background: #f3f4f6; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.gym-name { font-weight: 600; color: #1f2937; display: none; }
@media (min-width: 640px) { .gym-name { display: block; } }
.topbar-date { font-size: 13px; color: #6b7280; }

/* ── Page Content ── */
#page-content { flex: 1; padding: 24px; }
@media (max-width: 640px) { #page-content { padding: 16px; } }

/* ════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════ */

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.page-title { font-size: 24px; font-weight: 700; color: #1f2937; }
.page-sub   { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Buttons */
.btn-purple {
  background: var(--purple);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-purple:hover { background: var(--purple-dark); }

.btn-outline {
  font-size: 12px; padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: white;
  cursor: pointer;
  transition: background .15s;
}
.btn-outline:hover { background: #f9fafb; }

.btn-danger {
  font-size: 12px; padding: 6px 12px;
  border-radius: 8px;
  background: #fef2f2; color: #dc2626;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-danger:hover { background: #fee2e2; }

.btn-success {
  font-size: 12px; padding: 6px 12px;
  border-radius: 8px;
  background: #f0fdf4; color: #16a34a;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-success:hover { background: #dcfce7; }

/* Card */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-weight: 600; color: #374151; font-size: 14px; }
.card-body  { padding: 20px; }

/* Table */
.table-wrap {
  background: white;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: #f9fafb; border-bottom: 1px solid #f3f4f6; }
th { text-align: left; padding: 12px 16px; font-weight: 500; color: #4b5563; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f9fafb; }
td { padding: 12px 16px; color: #374151; }
td.fw { font-weight: 500; color: #1f2937; }
td.muted { color: #6b7280; }
td.act { text-align: right; white-space: nowrap; }
.row-gap { display: flex; gap: 8px; justify-content: flex-end; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-gray   { background: #f3f4f6; color: #374151; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-pink   { background: #fce7f3; color: #be185d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-teal   { background: #ccfbf1; color: #0f766e; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.search-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  width: 280px;
  max-width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.tab-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.tab-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: white;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn:hover  { background: #f9fafb; }
.tab-btn.active { background: var(--purple); color: white; border-color: var(--purple); }

/* Row count */
.row-count { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

/* Empty state */
.empty-state { padding: 48px; text-align: center; color: #9ca3af; }
.empty-icon  { font-size: 40px; margin-bottom: 8px; }

/* Skeleton */
.skel {
  background: #f3f4f6;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Toast */
.toast {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.toast-success { background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; }
.toast-error   { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.toast-warning { background:#fffbeb; border:1px solid #fde68a; color:#b45309; }

/* Alert banner */
.alert-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
#modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
#modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
}
#modal.modal-sm { max-width: 440px; }
#modal.modal-md { max-width: 560px; }
#modal.modal-lg { max-width: 680px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.modal-title { font-size: 17px; font-weight: 600; color: #1f2937; }
.modal-close { font-size: 24px; color: #9ca3af; line-height: 1; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: #4b5563; }
.modal-body { overflow-y: auto; padding: 20px 24px; flex: 1; }

/* Form inside modal */
.f-row  { margin-bottom: 16px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 480px) { .f-grid { grid-template-columns: 1fr; } }
.f-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: #374151; margin-bottom: 6px;
}
.f-input, .f-select, .f-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.f-textarea { resize: vertical; }
.f-err { color: #ef4444; font-size: 12px; margin-top: 4px; }
.f-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px;
}
.modal-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding-top: 8px;
}
.btn-cancel {
  padding: 8px 16px; font-size: 13px;
  color: #4b5563; border: 1px solid #d1d5db;
  border-radius: 8px; background: white; cursor: pointer;
  transition: background .15s;
}
.btn-cancel:hover { background: #f9fafb; }
.btn-save {
  padding: 8px 16px; font-size: 13px;
  background: var(--purple); color: white;
  border-radius: 8px; font-weight: 500;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-save:hover    { background: var(--purple-dark); }
.btn-save:disabled { opacity: .6; cursor: not-allowed; }

/* Dropdown inside modal */
.mem-dropdown {
  border: 1px solid #e5e7eb; border-radius: 8px;
  max-height: 160px; overflow-y: auto; margin-top: 4px;
}
.mem-dropdown-item {
  padding: 8px 12px; font-size: 13px;
  cursor: pointer; color: #374151;
  transition: background .1s;
}
.mem-dropdown-item:hover { background: #f5f3ff; }

/* ════════════════════════════════════════
   STAT CARDS
════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 24px;
}
@media (min-width: 768px)  { .stat-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1280px) { .stat-grid { grid-template-columns: repeat(6,1fr); } }
.stat-card {
  border-radius: 12px; border: 1px solid; padding: 20px;
}
.stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat-blue   { background:#eff6ff; border-color:#dbeafe; }
.stat-blue   .stat-label { color:#1d4ed8; } .stat-blue   .stat-value { color:#1e3a8a; }
.stat-amber  { background:#fffbeb; border-color:#fde68a; }
.stat-amber  .stat-label { color:#b45309; } .stat-amber  .stat-value { color:#78350f; }
.stat-teal   { background:#f0fdfa; border-color:#99f6e4; }
.stat-teal   .stat-label { color:#0d9488; } .stat-teal   .stat-value { color:#134e4a; }
.stat-green  { background:#f0fdf4; border-color:#bbf7d0; }
.stat-green  .stat-label { color:#16a34a; } .stat-green  .stat-value { color:#14532d; }
.stat-red    { background:#fef2f2; border-color:#fecaca; }
.stat-red    .stat-label { color:#dc2626; } .stat-red    .stat-value { color:#7f1d1d; }
.stat-gray   { background:#f9fafb; border-color:#e5e7eb; }
.stat-gray   .stat-label { color:#4b5563; } .stat-gray   .stat-value { color:#1f2937; }

/* ════════════════════════════════════════
   BAR CHART
════════════════════════════════════════ */
.chart-wrap  { overflow-x: auto; }
.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 200px; padding-bottom: 28px; position: relative;
  min-width: 300px;
}
.bar-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 28px; height: 100%; justify-content: flex-end;
}
.bar-body {
  width: 100%; position: relative;
  background: var(--purple); border-radius: 4px 4px 0 0;
  min-height: 2px; cursor: pointer;
  transition: background .15s;
}
.bar-body:hover { background: var(--purple-dark); }
.bar-tip {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  background: #1f2937; color: white;
  font-size: 11px; padding: 3px 6px;
  border-radius: 4px; white-space: nowrap;
  display: none; margin-bottom: 4px; z-index: 1;
}
.bar-body:hover .bar-tip { display: block; }
.bar-label { font-size: 11px; color: #6b7280; margin-top: 6px; text-align: center; }

/* ════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════ */
.dash-chart-card {
  background: white; border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 24px; margin-bottom: 24px;
}
.dash-chart-title { font-weight: 600; color: #374151; margin-bottom: 16px; }
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) { .dash-bottom { grid-template-columns: repeat(3,1fr); } }
.info-list .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
}
.info-list .info-row:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.info-row .r-name  { font-weight: 500; color: #1f2937; }
.info-row .r-val   { color: #6b7280; font-size: 12px; }
.info-row .r-amber { color: #b45309; font-weight: 500; font-size: 12px; }
.info-row .r-red   { color: #dc2626; font-size: 12px; }

/* ════════════════════════════════════════
   PAYMENTS SUMMARY
════════════════════════════════════════ */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 20px;
}
@media (min-width: 640px) { .summary-grid { grid-template-columns: repeat(3,1fr); } }
.summary-card {
  background: white; border: 1px solid #f3f4f6;
  border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.summary-label { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.summary-val   { font-size: 26px; font-weight: 700; }
.summary-val.green  { color: #15803d; }
.summary-val.blue   { color: #1d4ed8; }
.summary-val.purple { color: var(--purple); }

/* ════════════════════════════════════════
   ATTENDANCE
════════════════════════════════════════ */
.att-grid {
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 1024px) {
  .att-grid { flex-direction: row; }
  .att-main { flex: 1; }
  .att-side { width: 320px; }
}
.checkin-row {
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) { .checkin-row { flex-direction: row; } }
.search-wrap { position: relative; flex: 1; }
.search-drop {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  max-height: 200px; overflow-y: auto;
  z-index: 10; margin-top: 4px;
}
.drop-item {
  padding: 8px 12px; font-size: 13px; cursor: pointer;
  color: #374151; transition: background .1s;
}
.drop-item:hover { background: #f5f3ff; }

/* ════════════════════════════════════════
   CLASSES & BATCHES
════════════════════════════════════════ */
.batches-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px)  { .batches-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .batches-grid { grid-template-columns: repeat(3,1fr); } }

.batch-card {
  border-radius: 12px; border: 1px solid;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.cls-0 { background:#f5f3ff; border-color:#e9d5ff; color:#5b21b6; }
.cls-1 { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.cls-2 { background:#f0fdfa; border-color:#99f6e4; color:#0d9488; }
.cls-3 { background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }
.cls-4 { background:#fffbeb; border-color:#fde68a; color:#b45309; }
.cls-5 { background:#fdf2f8; border-color:#f9a8d4; color:#be185d; }

.batch-head    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.batch-name    { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.batch-time    { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.batch-trainer { font-size: 12px; opacity: .75; margin-bottom: 2px; }
.batch-cap     { font-size: 12px; opacity: .65; }
.batch-acts    { display: flex; gap: 6px; flex-shrink: 0; }
.cls-btn       { font-size: 11px; text-decoration: underline; opacity: .7; cursor: pointer; }
.cls-btn:hover { opacity: 1; }
.cls-btn.del   { color: #b91c1c; }

.batch-schedules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 24px; }
.sched-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500;
  background: rgba(0,0,0,.08); border-radius: 99px;
  padding: 3px 8px;
}
.chip-del {
  font-size: 13px; line-height: 1; opacity: .6; cursor: pointer;
  border-radius: 50%; padding: 0 2px;
}
.chip-del:hover { opacity: 1; }
.sched-empty   { font-size: 12px; opacity: .5; }
.day-checks   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.day-check    { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; cursor: pointer; }
.day-check input { cursor: pointer; accent-color: var(--primary, #7c3aed); }
.time-pick    { display: flex; align-items: center; gap: 4px; }
.time-pick .f-select { width: auto; }
.tp-colon     { font-weight: 600; font-size: 15px; }

/* ════════════════════════════════════════
   PLANS CARDS
════════════════════════════════════════ */
.plans-grid {
  display: grid; grid-template-columns: repeat(1,1fr); gap: 16px;
}
@media (min-width: 640px)  { .plans-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(4,1fr); } }
.plan-card {
  background: white; border-radius: 12px;
  border: 1px solid #f3f4f6; padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
}
.plan-tag {
  display: inline-block;
  background: #f5f3ff; color: var(--purple);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 9999px; margin-bottom: 12px;
}
.plan-name  { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.plan-price { font-size: 30px; font-weight: 700; color: #15803d; }
.plan-rate  { font-size: 12px; color: #9ca3af; margin-bottom: 16px; }
.plan-acts  { display: flex; gap: 8px; margin-top: auto; }
.plan-acts button { flex: 1; }

/* Equipment alert row */
tr.eq-alert { background: #fffbeb; }
tr.eq-alert td.next-svc { color: #b45309; font-weight: 500; }
