/* ===================================================
   ACCESO GYM — Human Interface System (Apple Inspired)
   Bespoke Design Language for Boutique Fitness Console
   =================================================== */

:root {
  /* Surface & Base Canvas */
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #fafafc;

  /* Typography Colors */
  --label-primary: #1d1d1f;
  --label-secondary: #6e6e73;
  --label-tertiary: #86868b;
  --label-quaternary: #aeaeb2;

  /* Brand Signature (Obsidian Pine) */
  --brand: #112a23;
  --brand-hover: #183c32;
  --brand-light: #204d40;
  --brand-surface: rgba(17, 42, 35, 0.06);

  /* Apple System Semantic Tones */
  --tint-green: #1b7a42;
  --tint-green-bg: rgba(52, 199, 89, 0.14);
  --tint-green-border: rgba(52, 199, 89, 0.25);

  --tint-amber: #b25e00;
  --tint-amber-bg: rgba(255, 149, 0, 0.14);
  --tint-amber-border: rgba(255, 149, 0, 0.25);

  --tint-red: #d70015;
  --tint-red-bg: rgba(255, 59, 48, 0.12);
  --tint-red-border: rgba(255, 59, 48, 0.25);

  /* Hairlines & Elevation */
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.14);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sheet: 0 20px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--label-primary);
  line-height: 1.45;
  font-size: 14px;
  min-height: 100vh;
}

/* ===================================================
   LOGIN VIEW (Apple Minimal & Sculptural)
   =================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 10%, #ffffff 0%, #edf1ec 45%, #d9e2d7 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 60px rgba(17, 42, 35, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  z-index: 10;
}

.login-emblem {
  width: 72px;
  height: 72px;
  background: var(--brand);
  border-radius: var(--radius-pill);
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 42, 35, 0.22);
}

.login-emblem-glyph {
  font-size: 26px;
  line-height: 1;
}

.login-emblem-text {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.login-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label-primary);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--label-secondary);
  margin-bottom: 28px;
}

.apple-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--label-primary);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 12px;
}

.apple-input:focus {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 42, 35, 0.12);
}

.apple-btn-primary {
  width: 100%;
  padding: 12.5px 16px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 8px;
}

.apple-btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-0.5px);
}

.apple-btn-primary:active {
  transform: scale(0.99);
}

.login-error {
  color: var(--tint-red);
  font-size: 12.5px;
  margin-top: 14px;
  display: none;
}

/* ===================================================
   APPLICATION LAYOUT
   =================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar macOS Inspired */
.sidebar {
  width: 200px;
  min-width: 200px;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 24px 14px 20px;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}

.sidebar-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-brand-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--label-primary);
  line-height: 1.2;
}

.sidebar-brand-tag {
  font-size: 11px;
  color: var(--label-tertiary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--label-secondary);
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--label-primary);
}

.sidebar-item.active {
  background: #ffffff;
  color: var(--label-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0.5px 1px rgba(0, 0, 0, 0.04);
}

.sidebar-item svg {
  width: 17px;
  height: 17px;
  color: inherit;
  flex-shrink: 0;
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.sidebar-user {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--label-primary);
  margin-bottom: 4px;
  padding: 0 8px;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--label-tertiary);
  margin-bottom: 8px;
  padding: 0 8px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--label-secondary);
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
}

.sidebar-logout:hover {
  color: var(--tint-red);
  background: rgba(255, 59, 48, 0.08);
}

/* ===================================================
   MAIN CONTENT AREA
   =================================================== */
.main-stage {
  flex: 1;
  margin-left: 200px;
  padding: 36px 48px;
  max-width: 1300px;
}

/* Header & Controls */
.stage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stage-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--label-primary);
}

.stage-sub {
  font-size: 13.5px;
  color: var(--label-secondary);
  margin-top: 3px;
}

/* Apple Buttons */
.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-0.5px);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--label-primary);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-secondary:hover {
  background: var(--surface-subtle);
}

/* Segmented Control (Apple Native Look) */
.segmented-control {
  display: inline-flex;
  background: rgba(118, 118, 128, 0.12);
  padding: 2.5px;
  border-radius: 9px;
  gap: 2px;
}

.segmented-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--label-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-btn:hover:not(.active) {
  color: var(--label-primary);
}

.segmented-btn.active {
  background: #ffffff;
  color: var(--label-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0.5px 1px rgba(0, 0, 0, 0.06);
}

/* Month Navigator */
.month-selector {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  box-shadow: var(--shadow-subtle);
}

.month-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--label-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.month-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--label-primary);
}

.month-label {
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 14px;
  color: var(--label-primary);
}

/* ===================================================
   METRIC STAT CARDS
   =================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.15s ease;
}

.stat-tile-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label-tertiary);
  margin-bottom: 6px;
}

.stat-tile-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--label-primary);
}

.stat-tile.is-success .stat-tile-value {
  color: var(--tint-green);
}

.stat-tile.is-warning .stat-tile-value {
  color: var(--tint-amber);
}

.stat-tile.is-danger .stat-tile-value {
  color: var(--tint-red);
}

.stat-tile-hint {
  font-size: 11.5px;
  color: var(--label-tertiary);
  margin-top: 4px;
}

/* ===================================================
   SEARCH & FILTERS
   =================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-subtle);
}

.search-box svg {
  width: 15px;
  height: 15px;
  color: var(--label-tertiary);
  flex-shrink: 0;
}

.search-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--label-primary);
}

.select-filter {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--label-secondary);
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

/* ===================================================
   DATA TABLES (Apple Minimal & Clean)
   =================================================== */
.table-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-clean thead th {
  padding: 12px 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--label-tertiary);
  border-bottom: 1px solid var(--hairline);
  background: #fafafc;
}

.table-clean tbody tr {
  border-bottom: 1px solid var(--hairline);
  transition: background 0.12s ease;
}

.table-clean tbody tr:last-child {
  border-bottom: none;
}

.table-clean tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.table-clean td {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--label-primary);
  vertical-align: middle;
}

.td-lead {
  font-weight: 500;
}

.td-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-inline {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: var(--label-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-inline:hover {
  background: var(--surface-subtle);
  color: var(--label-primary);
  border-color: var(--hairline-strong);
}

/* Badges estilo Apple */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-status.is-paid {
  background: var(--tint-green-bg);
  color: var(--tint-green);
  border: 1px solid var(--tint-green-border);
}

.badge-status.is-pending {
  background: var(--tint-amber-bg);
  color: var(--tint-amber);
  border: 1px solid var(--tint-amber-border);
}

.badge-status.is-overdue {
  background: var(--tint-red-bg);
  color: var(--tint-red);
  border: 1px solid var(--tint-red-border);
}

.dot-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ===================================================
   PAGOS ROWS
   =================================================== */
.section-subheading {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label-secondary);
  margin: 22px 0 10px 4px;
}

.pago-tile {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 6px;
  transition: all 0.12s ease;
}

.pago-tile:hover {
  box-shadow: var(--shadow-subtle);
  border-color: var(--hairline-strong);
}

.pago-check {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  margin-right: 14px;
}

.pago-info-socio {
  flex: 1.5;
  font-weight: 500;
}

.pago-plan-name {
  font-size: 12px;
  color: var(--label-tertiary);
  font-weight: 400;
}

.pago-date-cell {
  flex: 1;
  font-size: 13px;
  color: var(--label-secondary);
}

.pago-status-cell {
  flex: 1.2;
  text-align: right;
}

/* ===================================================
   FINANZAS: PLANES CRUD GRID
   =================================================== */
.planes-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card-apple {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.16s ease;
}

.plan-card-apple:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-card);
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan-card-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--label-primary);
}

.plan-card-frequency {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-surface);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.plan-card-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--label-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.plan-card-metric {
  font-size: 12.5px;
  color: var(--label-tertiary);
  margin-bottom: 20px;
}

.plan-card-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.btn-plan-action {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--label-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-plan-action:hover {
  background: var(--surface-subtle);
  color: var(--label-primary);
}

.btn-plan-action.is-destructive:hover {
  background: var(--tint-red-bg);
  color: var(--tint-red);
  border-color: var(--tint-red-border);
}

/* ===================================================
   CHARTS & FINANCIAL SUMMARY
   =================================================== */
.charts-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.chart-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
}

.chart-panel-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--label-primary);
  margin-bottom: 18px;
}

.apple-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 170px;
  padding-top: 20px;
  gap: 12px;
}

.apple-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.apple-bar-val {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--label-secondary);
  font-variant-numeric: tabular-nums;
}

.apple-bar-rect {
  width: 100%;
  max-width: 44px;
  background: rgba(17, 42, 35, 0.45);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
}

.apple-bar-col.is-active .apple-bar-rect {
  background: var(--brand);
}

.apple-bar-label {
  font-size: 11px;
  color: var(--label-tertiary);
  font-weight: 500;
}

/* ===================================================
   APPLE SHEET / MODAL OVERLAYS
   =================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.apple-sheet {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 100%;
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-sheet);
  z-index: 210;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 32px 36px;
}

.apple-sheet.active {
  right: 0;
}

.apple-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.apple-sheet-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.sheet-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--label-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.sheet-close-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--label-primary);
}

/* Modal Center Dialog (for Plan creation & Confirmations) */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 20px;
}

.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.apple-dialog {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: var(--shadow-sheet);
  animation: dialogPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dialog-sub {
  font-size: 13.5px;
  color: var(--label-secondary);
  margin-bottom: 20px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Form inputs inside sheet */
.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--label-secondary);
  margin-bottom: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.days-pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-day {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--label-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-day.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* Toast Notification (iOS Style) */
.toast-anchor {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.apple-toast {
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: toastFloat 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastFloat {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Empty State */
.empty-box {
  text-align: center;
  padding: 50px 20px;
  color: var(--label-tertiary);
}

.empty-box p {
  font-size: 14px;
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sidebar {
    width: 64px;
    min-width: 64px;
    padding: 16px 8px;
  }
  .sidebar-brand-name, .sidebar-brand-tag, .sidebar-item span, .sidebar-user, .sidebar-user-role, .sidebar-logout span {
    display: none;
  }
  .main-stage {
    margin-left: 64px;
    padding: 20px 16px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
