:root {
  --spb-ink: #0f172a;
  --spb-ink-2: #1e293b;
  --spb-ink-deep: #0b1220;
  --spb-accent: #0d9488;
  --spb-accent-2: #14b8a6;
  --spb-accent-soft: #ccfbf1;
  --spb-purple: #0f172a;
  --spb-purple-2: #1e293b;
  --spb-purple-dark: #020617;
  --spb-pink: #e11d48;
  --spb-cyan: #0891b2;
  --spb-green: #059669;
  --spb-orange: #d97706;
  --spb-blue: #2563eb;
  --spb-bg: #f1f5f9;
  --spb-surface: #ffffff;
  --spb-sidebar: #ffffff;
  --spb-text: #1e293b;
  --spb-muted: #64748b;
  --spb-border: #e2e8f0;
  --spb-sidebar-w: 240px;
  --spb-radius: 14px;
  --spb-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --spb-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
  --spb-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --spb-grad-hero: linear-gradient(135deg, #0b1220 0%, #1e293b 55%, #0f766e 100%);
  --spb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--spb-text);
  background: var(--spb-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* Bootstrap primary → thème dashboard (slate + teal) */
.text-bg-primary { background-color: #0f172a !important; color: #fff !important; }
.bg-primary { background-color: #0f172a !important; }
.text-primary { color: #0d9488 !important; }
.btn-primary {
  --bs-btn-bg: #0f172a;
  --bs-btn-border-color: #0f172a;
  --bs-btn-hover-bg: #1e293b;
  --bs-btn-hover-border-color: #1e293b;
  --bs-btn-active-bg: #020617;
  --bs-btn-active-border-color: #020617;
  --bs-btn-disabled-bg: #0f172a;
  --bs-btn-disabled-border-color: #0f172a;
}
.btn-outline-primary {
  --bs-btn-color: #0f172a;
  --bs-btn-border-color: #0f172a;
  --bs-btn-hover-bg: #0f172a;
  --bs-btn-hover-border-color: #0f172a;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #0f172a;
  --bs-btn-active-border-color: #0f172a;
  --bs-btn-active-color: #fff;
}
.form-check-input:checked {
  background-color: #0d9488;
  border-color: #0d9488;
}
.form-check-input:focus {
  border-color: #99f6e4;
  box-shadow: 0 0 0 .25rem rgba(13, 148, 136, .2);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #0f172a;
}
.page-link {
  color: #0f172a;
}
.page-item.active .page-link {
  background-color: #0f172a;
  border-color: #0f172a;
}
.page-link:hover { color: #0d9488; }
.page-link:focus {
  box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .2);
}
.dropdown-item.active,
.dropdown-item:active {
  background-color: #0f172a;
}
.list-group-item.active {
  background-color: #0f172a;
  border-color: #0f172a;
}
.progress-bar { background-color: #0d9488; }
.badge.bg-primary,
.badge.text-bg-primary { background-color: #0f172a !important; }

/* ——— Top header ——— */
.app-header {
  background: #0f172a;
  color: #fff;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .35);
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
  min-width: 0;
}

.app-header-brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(13,148,136,.25);
  border: 1px solid rgba(94,234,212,.35);
  color: #5eead4;
  display: grid; place-items: center;
  font-size: .9rem;
  backdrop-filter: blur(4px);
}

.app-header-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.app-header-brand .brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .92rem;
}

.app-header-right .logout-btn {
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .35rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}

.app-header-right .logout-btn:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}

/* ——— Shell ——— */
.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: var(--spb-sidebar-w);
  flex-shrink: 0;
  background: var(--spb-sidebar);
  border-right: 1px solid var(--spb-border);
  padding: 1.1rem .85rem 1.5rem;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.nav-section {
  color: var(--spb-muted);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .85rem .7rem .3rem;
  font-weight: 700;
}

.sidebar .nav-link {
  color: #475569;
  border-radius: 10px;
  padding: .62rem .85rem;
  margin: .12rem 0;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 550;
  font-size: .9rem;
  transition: all .22s var(--spb-ease);
}

.sidebar .nav-link i {
  font-size: 1.05rem;
  width: 1.2rem;
  text-align: center;
  color: #94a3b8;
}

.sidebar .nav-link:hover {
  background: #f1f5f9;
  color: var(--spb-ink);
}

.sidebar .nav-link:hover i { color: var(--spb-accent); }

.sidebar .nav-link.active {
  background: var(--spb-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

.sidebar .nav-link.active i { color: #5eead4; }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 1.5rem 2.5rem;
  animation: fadeUp .4s var(--spb-ease) both;
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.page-title { margin: 0; font-size: 1.45rem; color: var(--spb-text); }
.page-subtitle { color: var(--spb-muted); margin: .25rem 0 0; font-size: .88rem; }

/* ——— Welcome banner ——— */
.welcome-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--spb-radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
  animation: fadeUp .45s var(--spb-ease) both;
}

.welcome-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.welcome-banner h2 {
  margin: 0 0 .35rem;
  font-size: 1.45rem;
  position: relative; z-index: 1;
}

.welcome-banner p {
  margin: 0;
  opacity: .9;
  font-size: .92rem;
  position: relative; z-index: 1;
}

/* ——— Dashboard hero ——— */
.dash-hero {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.25rem;
  align-items: center;
  background:
    radial-gradient(600px 220px at 10% -20%, rgba(13,148,136,.22), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .28);
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s var(--spb-ease) both;
}

.dash-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(13,148,136,.15);
  animation: floatOrb 8s ease-in-out infinite;
}

.dash-hero-text, .dash-occ { position: relative; z-index: 1; }

.dash-hero-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.dash-hero-role {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.dash-hero h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-family: "Space Grotesk", sans-serif;
}

.dash-hero p {
  margin: 0 0 1rem;
  opacity: .82;
  font-size: .95rem;
  max-width: 42ch;
}

.dash-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.dash-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s, transform .2s var(--spb-ease);
}

.dash-quick-btn:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  transform: translateY(-2px);
}

.dash-occ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.dash-occ-ring {
  --occ: 0deg;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: conic-gradient(#14b8a6 var(--occ), rgba(255,255,255,.12) 0);
  display: grid;
  place-items: center;
  animation: ringIn .9s var(--spb-ease) both;
}

.dash-occ-inner {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: #0b1220;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
}

.dash-occ-inner strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  display: block;
}

.dash-occ-inner span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .6;
}

.dash-occ-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  opacity: .8;
}

.dash-occ-meta span { font-weight: 800; color: #5eead4; }

.metric-tile {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #fff;
  border: 1px solid var(--spb-border);
  border-radius: var(--spb-radius);
  padding: .95rem 1rem;
  box-shadow: var(--spb-shadow);
  transition: transform .22s var(--spb-ease), box-shadow .22s;
  animation: fadeUp .5s var(--spb-ease) both;
  height: 100%;
}

.metric-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--spb-shadow-lg);
}

.metric-tile-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-tile.tint-blue .metric-tile-icon { background: #eff6ff; color: #2563eb; }
.metric-tile.tint-green .metric-tile-icon { background: #ecfdf5; color: #059669; }
.metric-tile.tint-cyan .metric-tile-icon { background: #ecfeff; color: #0891b2; }
.metric-tile.tint-orange .metric-tile-icon { background: #fffbeb; color: #d97706; }
.metric-tile.tint-rose .metric-tile-icon { background: #fff1f2; color: #e11d48; }
.metric-tile.tint-violet .metric-tile-icon { background: #f0fdfa; color: var(--spb-accent); }

.panel-chart { animation: fadeUp .55s var(--spb-ease) both; }

.session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--spb-border);
}

.session-row:last-child { border-bottom: 0; }

.anim-stagger-slow > * { animation: fadeUp .55s var(--spb-ease) both; }
.anim-stagger-slow > *:nth-child(1) { animation-delay: .05s; }
.anim-stagger-slow > *:nth-child(2) { animation-delay: .12s; }
.anim-stagger-slow > *:nth-child(3) { animation-delay: .19s; }
.anim-stagger-slow > *:nth-child(4) { animation-delay: .26s; }

@keyframes ringIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-occ { flex-direction: row; justify-content: flex-start; }
}

/* ——— KPI gradient cards ——— */
.kpi-card {
  border-radius: var(--spb-radius);
  padding: 1.2rem 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--spb-shadow);
  min-height: 110px;
  transition: transform .25s var(--spb-ease), box-shadow .25s;
  animation: fadeUp .5s var(--spb-ease) both;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--spb-shadow-lg);
}

.kpi-card .kpi-label {
  font-size: .85rem;
  font-weight: 600;
  opacity: .92;
  margin-bottom: .35rem;
}

.kpi-card .kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

.kpi-card .kpi-icon {
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  font-size: 2.4rem;
  opacity: .28;
}

.kpi-purple { background: linear-gradient(135deg, #1e293b, #0f172a); }
.kpi-pink { background: linear-gradient(135deg, #f472b6, #ec4899); }
.kpi-cyan { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.kpi-green { background: linear-gradient(135deg, #0d9488, #059669); }
.kpi-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.kpi-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.kpi-slate { background: linear-gradient(135deg, #1e293b, #0f172a); }
.kpi-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.kpi-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* ——— Soft metric cards (left border) ——— */
.soft-card {
  background: #fff;
  border-radius: var(--spb-radius);
  padding: .95rem 1.1rem;
  box-shadow: var(--spb-shadow);
  border-left: 4px solid var(--spb-purple);
  transition: transform .22s var(--spb-ease);
  animation: fadeUp .5s var(--spb-ease) both;
}

.soft-card:hover { transform: translateY(-2px); }
.soft-card.border-purple { border-left-color: var(--spb-purple); }
.soft-card.border-pink { border-left-color: var(--spb-pink); }
.soft-card.border-cyan { border-left-color: var(--spb-cyan); }
.soft-card.border-green { border-left-color: var(--spb-green); }
.soft-card.border-orange { border-left-color: var(--spb-orange); }
.soft-card.border-blue { border-left-color: var(--spb-blue); }

.soft-card .soft-label {
  font-size: .78rem;
  color: var(--spb-muted);
  font-weight: 600;
  margin-bottom: .2rem;
}

.soft-card .soft-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--spb-text);
}

/* ——— Panels / cards ——— */
.panel, .parking-card, .stat-card {
  background: var(--spb-surface);
  border: 1px solid var(--spb-border);
  border-radius: var(--spb-radius);
  box-shadow: var(--spb-shadow);
}

.panel {
  padding: 1.15rem 1.25rem;
  transition: box-shadow .25s;
}

.panel:hover { box-shadow: var(--spb-shadow-lg); }

.panel-title {
  font-size: 1rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 700;
  color: var(--spb-text);
}

.panel-title .title-left {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.panel-title .title-left i { color: var(--spb-accent); }

.parking-card {
  padding: 1.15rem;
  height: 100%;
  transition: transform .25s var(--spb-ease), box-shadow .25s;
}

.parking-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--spb-shadow-lg);
}
.parking-card-active {
  outline: 2px solid #e11d22;
  outline-offset: 1px;
}
.parking-switcher {
  min-width: 200px;
  max-width: 280px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}
.parking-switcher option { color: #0f172a; }

.stat-card {
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

/* ——— Buttons ——— */
.btn-spb {
  background: var(--spb-grad);
  border: 0;
  color: #fff;
  border-radius: 9px;
  padding: .55rem 1.1rem;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: transform .2s, filter .2s, box-shadow .2s;
}

.btn-spb:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.32);
}

.btn-ghost {
  background: #f1f5f9;
  color: var(--spb-ink);
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  padding: .5rem .95rem;
  transition: background .2s, transform .2s;
}

.btn-ghost:hover {
  background: #e2e8f0;
  color: var(--spb-ink-deep);
  transform: translateY(-1px);
}

.btn-view {
  background: #3b82f6;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .78rem;
  font-weight: 600;
}

.btn-view:hover { background: #2563eb; color: #fff; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  flex: 1;
  align-items: center;
  background: #fff;
  border: 1px solid var(--spb-border);
  border-radius: 14px;
  padding: .75rem;
  box-shadow: var(--spb-shadow);
}

.toolbar-filters .form-control,
.toolbar-filters .form-select {
  max-width: 220px;
}

.form-control, .form-select {
  border-radius: 9px;
  border-color: var(--spb-border);
  padding: .55rem .8rem;
  font-size: .9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--spb-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

.form-label {
  font-size: .78rem;
  font-weight: 650;
  color: var(--spb-muted);
  margin-bottom: .3rem;
}

/* ——— Tables ——— */
.table-wrap {
  overflow: hidden;
  border-radius: var(--spb-radius);
  border: 1px solid var(--spb-border);
  background: #fff;
  box-shadow: var(--spb-shadow);
}

.table-modern { margin: 0; }
.table-modern thead th {
  background: #eef2ff;
  border-bottom: 1px solid var(--spb-border);
  color: #475569;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  padding: .8rem 1rem;
  white-space: nowrap;
}

.table-modern tbody tr:hover { background: #f8fafc; }
.table-modern td, .table-modern th {
  vertical-align: middle;
  padding: .8rem 1rem;
  border-color: var(--spb-border);
  font-size: .9rem;
}

.badge-status, .badge {
  border-radius: 999px;
  font-weight: 600;
  font-size: .72rem;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #f1f5f9;
  border-radius: 8px;
  padding: .3rem .55rem;
  font-size: .76rem;
  color: var(--spb-muted);
}

.metric-chip strong { color: var(--spb-text); }
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

.btn-action {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--spb-border);
  background: #fff;
  color: var(--spb-muted);
  transition: all .2s var(--spb-ease);
}

.btn-action:hover { transform: translateY(-1px); color: var(--spb-text); }
.btn-action.view:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.btn-action.edit:hover { background: #f0fdfa; border-color: #99f6e4; color: var(--spb-accent); }
.btn-action.delete {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}
.btn-action.delete:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.btn-action.qr:hover { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-box i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.search-box .form-control {
  padding-left: 2.35rem;
  border-radius: 12px;
  border-color: var(--spb-border);
  background: #fff;
}

.search-box .form-control:focus {
  border-color: var(--spb-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Keep sticky chrome under Bootstrap modals (1055/1050).
   Never raise .modal-backdrop above ordinary .modal — that hid form dialogs. */
.app-header { z-index: 1020; }
#confirmModal { z-index: 1065; }

.confirm-modal-content { border: 0; border-radius: 18px; box-shadow: var(--spb-shadow-lg); }
.confirm-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}
.confirm-icon {
  width: 52px; height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #f0fdfa;
  color: var(--spb-accent);
  font-size: 1.5rem;
}

.badge-soft {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--spb-border);
  font-weight: 600;
}

.table-modern tbody tr {
  transition: background .15s;
}

.table-modern tbody tr[style*="display: none"] { display: none !important; }

.list-meta {
  font-size: .78rem;
  color: var(--spb-muted);
}

.table-modern tbody tr {
  transition: background .15s;
}

.table-modern tbody tr[style*="display: none"] { display: none !important; }

/* ——— Modals ——— */
.modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--spb-shadow-lg);
  overflow: visible;
}
.modal-dialog-scrollable .modal-content {
  overflow: hidden;
  max-height: min(92vh, 880px);
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-header {
  border-bottom: 1px solid var(--spb-border);
  padding: 1.05rem 1.25rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body { padding: 1.25rem; }
.modal-footer {
  border-top: 1px solid var(--spb-border);
  padding: .9rem 1.25rem;
  background: #f8fafc;
}

.modal.fade .modal-dialog {
  transform: translateY(18px) scale(.98);
  transition: transform .3s var(--spb-ease);
}
.modal.show .modal-dialog { transform: none; }

/* ——— Cameras / Map ——— */
.camera-grid { display: grid; gap: .75rem; }
.camera-grid.layout-1 { grid-template-columns: 1fr; }
.camera-grid.layout-4 { grid-template-columns: repeat(2, 1fr); }
.camera-grid.layout-9 { grid-template-columns: repeat(3, 1fr); }
.camera-grid.layout-16 { grid-template-columns: repeat(4, 1fr); }

.camera-tile {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s;
}

.camera-tile:hover { transform: scale(1.015); }

.camera-feed {
  width: 100%; height: 100%;
  background:
    linear-gradient(120deg, rgba(13,148,136,.28), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 8px),
    #0f172a;
  display: grid; place-items: center;
}

.camera-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .5rem .7rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  display: flex; justify-content: space-between;
  font-size: .76rem;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: .35rem;
}
.status-dot.online { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.status-dot.offline { background: #ef4444; }

.map-canvas {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(13,148,136,.06) 1px, transparent 1px),
    linear-gradient(rgba(13,148,136,.06) 1px, transparent 1px),
    #fff;
  background-size: 40px 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--spb-border);
}

.spot-marker {
  position: absolute;
  width: 42px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .65rem; font-weight: 700; color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .2s;
}

.spot-marker:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 2; }
.spot-marker.libre { background: var(--spb-green); }
.spot-marker.occupe { background: #ef4444; }
.spot-marker.reserve { background: var(--spb-orange); }
.spot-marker.maintenance { background: #64748b; }
.spot-marker.hors_service { background: #334155; }

/* ——— Auth ——— */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #0b1220;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.auth-hero {
  background:
    linear-gradient(160deg, rgba(11,18,32,.92) 10%, rgba(15,23,42,.78) 55%, rgba(13,148,136,.35) 100%),
    url('https://images.unsplash.com/photo-1506521781263-d8422e82f27a?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.auth-orb-1 {
  width: 280px; height: 280px;
  background: rgba(13,148,136,.35);
  top: -80px; right: -60px;
  animation: floatOrb 9s ease-in-out infinite;
}

.auth-orb-2 {
  width: 180px; height: 180px;
  background: rgba(37,99,235,.25);
  bottom: 12%; left: -40px;
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.auth-orb-3 {
  width: 120px; height: 120px;
  background: rgba(255,255,255,.12);
  bottom: -30px; right: 20%;
  animation: floatOrb 7s ease-in-out infinite;
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 5rem);
  animation: fadeUp .7s var(--spb-ease) both;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  width: fit-content;
}

.auth-logo strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.1;
}

.auth-logo small {
  display: block;
  font-size: .72rem;
  opacity: .7;
}

.auth-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.auth-mark-img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 24px rgba(225, 29, 34, .35);
}

.auth-hero-copy {
  max-width: 480px;
  margin: 3rem 0;
  animation: fadeUp .8s .1s var(--spb-ease) both;
}

.auth-hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.auth-hero-copy p {
  opacity: .88;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  font-size: .95rem;
  opacity: .92;
}

.auth-features i {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.auth-hero-foot {
  margin: 0;
  font-size: .9rem;
  opacity: .8;
}

.auth-hero-foot a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(500px 280px at 90% 0%, rgba(13,148,136,.08), transparent 60%),
    #f1f5f9;
  animation: fadeIn .6s var(--spb-ease) both;
}

.auth-box {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
  border: 1px solid rgba(226,232,240,.9);
  animation: fadeUp .55s .08s var(--spb-ease) both;
}

.auth-box-wide { width: min(520px, 100%); }

.auth-box-head { margin-bottom: 1.4rem; }
.auth-box-head h2 { margin: 0 0 .25rem; font-size: 1.55rem; }
.auth-box-head p { margin: 0; color: var(--spb-muted); font-size: .9rem; }

.auth-alert {
  border-radius: 12px;
  animation: shake .4s ease;
}

.auth-field { margin-bottom: 1rem; }

.auth-field .form-label {
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: .35rem;
}

.auth-input {
  position: relative;
}

.auth-input > i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input .form-control,
.auth-input .form-select {
  padding-left: 2.55rem;
  border-radius: 12px;
  border-color: #e2e8f0;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input .form-control:focus,
.auth-input .form-select:focus {
  background: #fff;
  border-color: #0d9488;
  box-shadow: 0 0 0 .25rem rgba(13,148,136,.15);
}

.btn-auth {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 0;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: .85rem 1.2rem;
  transition: transform .2s var(--spb-ease), box-shadow .2s, filter .2s;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
}

.btn-auth:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .32);
}

.auth-link-muted {
  font-size: .85rem;
  color: var(--spb-muted);
  font-weight: 600;
}

.auth-demo {
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.auth-demo-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: .55rem;
}

.auth-demo-grid {
  display: grid;
  gap: .35rem;
  font-size: .8rem;
  color: #64748b;
}

.auth-demo-grid span {
  display: inline-block;
  min-width: 3.2rem;
  font-weight: 700;
  color: #475569;
}

.auth-demo-grid code {
  font-size: .78rem;
  color: #0f172a;
  background: #e2e8f0;
  padding: .1rem .35rem;
  border-radius: 5px;
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: .9rem;
  color: var(--spb-muted);
}

.auth-switch a {
  color: #0f172a;
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.alert-live {
  border-left: 4px solid #ef4444;
  background: #fff1f2;
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: .6rem;
}

.toast-spb {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 2000;
  min-width: 280px;
  animation: fadeDown .35s var(--spb-ease) both;
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1rem;
  color: var(--spb-muted);
}

.empty-state i { font-size: 2rem; opacity: .4; display: block; margin-bottom: .6rem; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}

.live-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  animation: blink 1.5s infinite;
}

.anim-stagger > * { animation: fadeUp .45s var(--spb-ease) both; }
.anim-stagger > *:nth-child(1) { animation-delay: .03s; }
.anim-stagger > *:nth-child(2) { animation-delay: .06s; }
.anim-stagger > *:nth-child(3) { animation-delay: .09s; }
.anim-stagger > *:nth-child(4) { animation-delay: .12s; }
.anim-stagger > *:nth-child(5) { animation-delay: .15s; }
.anim-stagger > *:nth-child(6) { animation-delay: .18s; }
.anim-stagger > *:nth-child(7) { animation-delay: .21s; }
.anim-stagger > *:nth-child(8) { animation-delay: .24s; }

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ——— Body / page surface ——— */
.body-ops {
  background: var(--spb-bg);
}

.page-body { max-width: 1280px; margin: 0 auto; }

.content-surface {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-content {
  background: transparent;
}

.page-toolbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: .95rem 1.15rem;
  box-shadow: var(--spb-shadow);
}

.panel, .table-wrap, .parking-card, .stat-card {
  border-radius: 16px;
}

.table-wrap {
  background: var(--spb-surface);
  border: 1px solid var(--spb-border);
  box-shadow: var(--spb-shadow);
  overflow: hidden;
}

.header-chip {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .78rem;
}

.header-user {
  align-items: center;
  gap: .55rem;
}

.header-user small {
  display: block;
  opacity: .8;
  font-size: .7rem;
  line-height: 1.1;
}

.avatar-sm {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.22);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .85rem;
}

.sidebar-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 1030;
}

.sidebar-user {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .5rem .7rem 1rem;
  border-bottom: 1px solid var(--spb-border);
  margin-bottom: .5rem;
}

.sidebar-user .avatar-sm {
  background: #0f172a;
  color: #5eead4;
}

/* ——— Permissions UI ——— */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.permission-group {
  background: #f8fafc;
  border: 1px solid var(--spb-border);
  border-radius: 12px;
  padding: .85rem;
}

.permission-group-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--spb-muted);
  font-weight: 700;
  margin-bottom: .55rem;
}

.perm-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  margin-bottom: .35rem;
  cursor: pointer;
}

.role-panel { overflow: hidden; }

/* ——— Vitrine ——— */
.body-vitrine { background: #0f172a; color: #fff; }

.vitrine-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.vitrine-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.vitrine-logo .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--spb-grad);
  display: grid; place-items: center;
  font-size: .85rem;
}

.vitrine-links {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.vitrine-links a { color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 600; }
.vitrine-links a:hover { color: #fff; }

.vitrine-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(13,148,136,.35), transparent 60%),
    radial-gradient(500px 300px at 10% 80%, rgba(15,23,42,.35), transparent 55%);
}

.vitrine-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: #5eead4;
  margin-bottom: .75rem;
}

.vitrine-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0 0 .75rem;
  line-height: 1.05;
}

.vitrine-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.vitrine-live {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}

.vitrine-hero-visual {
  position: relative;
  min-height: 320px;
}

.vitrine-orb {
  width: min(360px, 80%);
  aspect-ratio: 1;
  border-radius: 40% 60% 55% 45%;
  background: var(--spb-grad-hero);
  margin: 0 auto;
  filter: blur(0);
  box-shadow: 0 30px 80px rgba(15,23,42,.45);
  animation: floatOrb 8s ease-in-out infinite;
}

.vitrine-card-float {
  position: absolute;
  left: 8%;
  bottom: 12%;
  display: flex;
  gap: .75rem;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: .9rem 1rem;
  animation: fadeUp .6s var(--spb-ease) both;
}

.vitrine-card-float i { font-size: 1.6rem; color: #5eead4; }
.vitrine-card-float small { display: block; opacity: .75; }

.vitrine-section { padding: 3.5rem 1.25rem; background: #fff; color: var(--spb-text); }
.vitrine-alt { background: #f8fafc; }
.container-narrow { max-width: 1100px; margin: 0 auto; }

.vitrine-feature {
  background: #fff;
  border: 1px solid var(--spb-border);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  box-shadow: var(--spb-shadow);
}

.vitrine-feature i {
  font-size: 1.5rem;
  color: var(--spb-accent);
  margin-bottom: .65rem;
  display: block;
}

.vitrine-feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.vitrine-feature p { margin: 0; color: var(--spb-muted); font-size: .9rem; }

.vitrine-price {
  background: #fff;
  border: 1px solid var(--spb-border);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  box-shadow: var(--spb-shadow);
}

.vitrine-price.featured {
  border-color: transparent;
  background: var(--spb-grad-hero);
  color: #fff;
  transform: translateY(-4px);
}

.vitrine-price .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .8; }
.vitrine-price .price { font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; margin: .35rem 0; }
.vitrine-price p { margin: 0; font-size: .9rem; opacity: .85; }

.vitrine-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0fdfa, #fff);
  border-color: #99f6e4;
}

.vitrine-footer {
  background: #0f172a;
  color: rgba(255,255,255,.85);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ——— Client mobile ——— */
.body-client {
  background:
    radial-gradient(800px 300px at 50% -20%, rgba(13,148,136,.16), transparent 60%),
    #f1f5f9;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.client-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  background: #0f172a;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .35);
}

.client-brand-wrap {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.client-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.client-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: .88rem;
  line-height: 1.15;
  max-width: 200px;
}

.client-hello { font-size: .82rem; color: rgba(255,255,255,.65); }

.client-logout {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.client-logout:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.client-main {
  padding: 1rem 1rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.client-page-head h1 {
  font-size: 1.35rem;
  margin: 0 0 .2rem;
}

.client-page-head p {
  margin: 0;
  color: var(--spb-muted);
  font-size: .88rem;
}

.client-hero {
  background: var(--spb-grad-hero);
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
}

.client-stat {
  background: #fff;
  border-radius: 14px;
  padding: .85rem .5rem;
  text-align: center;
  border: 1px solid var(--spb-border);
  box-shadow: var(--spb-shadow);
}

.client-stat .n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.client-stat .l {
  font-size: .72rem;
  color: var(--spb-muted);
  font-weight: 600;
}

.client-card {
  background: #fff;
  border: 1px solid var(--spb-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--spb-shadow);
}

.client-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--spb-border);
}

.client-list-item:last-child { border-bottom: 0; }

.client-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--spb-border);
  padding: .45rem .35rem calc(.45rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15,23,42,.06);
}

.client-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  font-size: .68rem;
  font-weight: 600;
  color: #94a3b8;
  padding: .35rem .15rem;
  border-radius: 10px;
}

.client-tabbar a i { font-size: 1.2rem; }
.client-tabbar a.active {
  color: var(--spb-ink);
  background: #f0fdfa;
}

.client-tabbar a.active i { color: var(--spb-accent); }

@media (max-width: 992px) {
  .sidebar-toggle { display: inline-flex; }
  .app-shell { flex-direction: row; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    height: 100vh;
    z-index: 1040;
    transform: translateX(-105%);
    transition: transform .28s var(--spb-ease);
    box-shadow: var(--spb-shadow-lg);
  }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .brand-text { font-size: .95rem; }
  .main-content { padding: 1rem; }
  .camera-grid.layout-9,
  .camera-grid.layout-16 { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { min-height: auto; padding: 1.75rem 1.5rem; }
  .auth-hero-inner { min-height: auto; gap: 1.5rem; }
  .auth-hero-copy { margin: 1.25rem 0; }
  .auth-hero-copy h1 { font-size: 1.55rem; }
  .auth-features { display: none; }
  .auth-card { padding: 1.25rem; }
  .toolbar-filters .form-control,
  .toolbar-filters .form-select { max-width: 100%; }
  .vitrine-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1.5rem; }
  .vitrine-hero-visual { min-height: 240px; }
  .vitrine-links a:not(.btn) { display: none; }
}

@media (max-width: 576px) {
  .page-toolbar { padding: .8rem; }
  .page-title { font-size: 1.2rem; }
}
