/* ============================================================
   GlamCRM — Luksusowy CRM dla salonów beauty
   Paleta: głęboka czerń, złoto, biel kremowa
   Font: Playfair Display + DM Sans
   ============================================================ */

:root {
  --bg-dark:    #0E0E0F;
  --bg-surface: #141416;
  --bg-card:    #1A1A1D;
  --bg-hover:   #222226;
  --border:     #2A2A2E;
  --border-l:   #333338;

  --gold:       #C9A96E;
  --gold-light: #E8D0A0;
  --gold-dark:  #9A7A48;
  --gold-glow:  rgba(201,169,110,.15);

  --text:       #F0EDE8;
  --text-muted: #7A7870;
  --text-dim:   #5A5855;

  --green:  #4CAF7C;
  --red:    #E05555;
  --blue:   #5588CC;
  --orange: #E09040;

  --sidebar-w: 230px;
  --topbar-h:  64px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================
   SIDEBAR
   ============================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar-logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.logo-gem {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px var(--gold));
}

.nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: var(--border-l); border-radius: 2px; }

.nav-group-label {
  padding: 16px 20px 6px;
  font-size: .67rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 400;
  border-radius: 0;
  transition: all .2s;
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-item.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-left-color: var(--gold);
}
.ni {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  opacity: .7;
}
.nav-item.active .ni { opacity: 1; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #0E0E0F;
  flex-shrink: 0;
}
.user-name { font-size: .83rem; font-weight: 500; color: var(--text); }
.user-role { font-size: .73rem; color: var(--text-muted); text-transform: capitalize; }

/* ============================
   MAIN WRAP
   ============================ */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================
   TOPBAR
   ============================ */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-l { display: flex; align-items: center; gap: 16px; }
.topbar-r { display: flex; align-items: center; gap: 16px; }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 400;
}

.topbar-date {
  color: var(--text-muted);
  font-size: .82rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================
   CONTENT
   ============================ */
.content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.page { display: none; }
.page.active { display: block; }

/* ============================
   SECTION HEADER
   ============================ */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.section-desc {
  color: var(--text-muted);
  font-size: .83rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================
   CARDS
   ============================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-title {
  font-weight: 600;
  font-size: .93rem;
  color: var(--text);
}

/* ============================
   STATS GRID
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-l); }
.stat-card.gold { border-color: var(--gold-dark); background: linear-gradient(135deg, var(--bg-card), rgba(201,169,110,.08)); }
.stat-icon {
  font-size: 1.5rem;
  opacity: .4;
  margin-bottom: 12px;
}
.stat-val {
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card.gold .stat-val { color: var(--gold); }
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================
   DASHBOARD GRID
   ============================ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Visit list in dashboard */
.visit-list { display: flex; flex-direction: column; gap: 10px; }
.visit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.visit-item:hover { border-color: var(--gold-dark); }
.visit-time {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 40px;
  font-family: 'DM Sans', sans-serif;
}
.visit-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.visit-info { flex: 1; }
.visit-client { font-weight: 500; font-size: .9rem; }
.visit-service { font-size: .78rem; color: var(--text-muted); }
.visit-worker { font-size: .77rem; color: var(--text-dim); }
.visit-status {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ============================
   STATUS BADGES
   ============================ */
.badge { display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.badge-zaplanowana  { background: rgba(85,136,204,.15); color: var(--blue); }
.badge-potwierdzona { background: rgba(76,175,124,.15); color: var(--green); }
.badge-w_trakcie    { background: rgba(224,144,64,.15);  color: var(--orange); }
.badge-zakonczona   { background: rgba(76,175,124,.15); color: var(--green); }
.badge-anulowana    { background: rgba(224,85,85,.15);   color: var(--red); }
.badge-no_show      { background: rgba(122,120,112,.15); color: var(--text-muted); }
.badge-nieoplacona  { background: rgba(224,85,85,.12);   color: var(--red); }
.badge-gotowka      { background: rgba(76,175,124,.12);  color: var(--green); }
.badge-karta        { background: rgba(85,136,204,.12);  color: var(--blue); }
.badge-blik         { background: rgba(201,169,110,.12); color: var(--gold); }
.badge-przelew      { background: rgba(85,136,204,.12);  color: var(--blue); }
.badge-voucher      { background: rgba(201,169,110,.15); color: var(--gold); }
.badge-vip          { background: rgba(201,169,110,.2);  color: var(--gold); font-size: .7rem; }

/* ============================
   TABLE
   ============================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: .72rem;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-hover); }
.table td .btn-icon {
  background: none;
  border: 1px solid var(--border-l);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s;
  margin-left: 4px;
}
.table td .btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ============================
   CALENDAR
   ============================ */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  min-width: 180px;
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-header-cell {
  text-align: center;
  font-size: .72rem;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 8px 4px;
  text-transform: uppercase;
}
.cal-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 90px;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
}
.cal-cell:hover { border-color: var(--gold-dark); }
.cal-cell.today { border-color: var(--gold); background: rgba(201,169,110,.06); }
.cal-cell.other-month { opacity: .35; }
.cal-day-num {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cal-cell.today .cal-day-num { color: var(--gold); font-weight: 600; }
.cal-event {
  font-size: .67rem;
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #0E0E0F;
  font-weight: 500;
}

/* ============================
   CLIENTS GRID
   ============================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.client-card:hover { border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.client-card .vip-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}
.client-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0E0E0F;
  margin-bottom: 14px;
}
.client-name {
  font-weight: 600;
  font-size: .97rem;
  margin-bottom: 4px;
}
.client-contact {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.client-stats {
  display: flex;
  gap: 16px;
  font-size: .75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.client-stat-val { font-weight: 600; color: var(--text-muted); }
.client-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================
   SERVICES
   ============================ */
.service-category {
  margin-bottom: 24px;
}
.service-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600;
}
.service-cat-icon { font-size: 1.2rem; }
.service-cat-name { font-size: 1rem; }
.service-cat-badge {
  font-size: .72rem;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: auto;
}
.service-cat-desc { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.service-rows {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px 120px 90px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .15s;
  gap: 12px;
}
.service-row:last-child { border-bottom: none; }
.service-row:hover { background: var(--bg-hover); }
.service-row-name { font-weight: 500; font-size: .9rem; }
.service-row-desc { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.service-row-for { font-size: .72rem; color: var(--text-dim); }
.service-row-time { color: var(--text-muted); font-size: .82rem; }
.service-row-price { font-weight: 600; color: var(--gold); font-size: .9rem; }
.service-header-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px 120px 90px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  text-transform: uppercase;
  gap: 12px;
}

/* ============================
   STAFF GRID
   ============================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all .2s;
}
.staff-card:hover { border-color: var(--border-l); transform: translateY(-2px); }
.staff-avatar-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0E0E0F;
  margin: 0 auto 16px;
  font-family: 'Playfair Display', serif;
}
.staff-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.staff-role-badge {
  font-size: .7rem;
  padding: 2px 10px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.staff-spec { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }
.staff-contact { font-size: .78rem; color: var(--text-dim); line-height: 1.8; }

/* ============================
   FINANCE & REPORTS
   ============================ */
.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.pay-row:last-child { border-bottom: none; }
.pay-bar-wrap { width: 100px; height: 6px; background: var(--border); border-radius: 3px; }
.pay-bar { height: 6px; border-radius: 3px; background: var(--gold); }

.expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.expense-row:last-child { border-bottom: none; }
.expense-cat {
  font-size: .7rem;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 2px 8px;
  border-radius: 10px;
}

.bar-chart { display: flex; gap: 6px; align-items: flex-end; height: 180px; padding: 10px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-fill { width: 100%; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .4s; }
.bar-label { font-size: .65rem; color: var(--text-dim); transform: rotate(-45deg); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ============================
   FORMS
   ============================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-input,
.form-select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--text-dim); }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%237a7870' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0E0E0F;
  border-color: var(--gold);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-l);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger {
  background: rgba(224,85,85,.12);
  border-color: rgba(224,85,85,.3);
  color: var(--red);
}
.btn-danger:hover { background: rgba(224,85,85,.2); }
.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================
   MODALS
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: modalIn .25s ease;
}
.modal-lg { max-width: 760px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .2s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: .87rem;
  z-index: 2000;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  max-width: 320px;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red); }
.toast.info    { border-color: var(--gold);  color: var(--gold); }

/* ============================
   MISC
   ============================ */
.loading { color: var(--text-muted); text-align: center; padding: 32px; font-style: italic; }
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; opacity: .3; margin-bottom: 16px; }

.top-bar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.top-bar-item:last-child { border-bottom: none; }
.top-bar-rank { color: var(--gold); font-weight: 600; min-width: 20px; }
.top-bar-name { flex: 1; margin: 0 10px; }
.top-bar-count { color: var(--text-muted); font-size: .78rem; }

.card-note {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border-left: 3px solid var(--gold-dark);
  margin-bottom: 10px;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  :root { --sidebar-w: 230px; }
  .main-wrap { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .sidebar-overlay { display: none; }
  .sidebar-overlay.show { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr 80px; }
  .service-row > :nth-child(n+3) { display: none; }
  .service-header-row { display: none; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 16px; }
  .clients-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .modal { max-width: 100%; border-radius: 16px 16px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
}

/* Scrollbar global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-l); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
