/* thynkBarber Admin */

:root {
  --tb-blue: #176BFF;
  --tb-blue-dark: #071D49;
  --tb-blue-soft: #EAF2FF;
  --tb-blue-light: #4FA3FF;
  --tb-dark: #07111F;
  --tb-text: #637083;
  --tb-border: rgba(7, 17, 31, 0.08);
  --tb-shadow: 0 24px 80px rgba(7, 29, 73, 0.13);
  --tb-radius: 28px;
  --tb-success: #10A66A;
  --tb-warning: #FFB020;
  --tb-danger: #F04438;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F7FAFF;
  color: var(--tb-dark);
}

a {
  text-decoration: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(23, 107, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(79, 163, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}

.login-card {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 34px;
  box-shadow: var(--tb-shadow);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(23,107,255,.08);
  right: -110px;
  top: -120px;
}

.login-card > * {
  position: relative;
  z-index: 2;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tb-blue-dark), var(--tb-blue));
  color: #fff;
  box-shadow: 0 16px 34px rgba(23,107,255,.28);
  font-size: 22px;
}

.brand-name {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--tb-dark);
}

.brand-name span {
  color: var(--tb-blue);
}

.login-title {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.6px;
  font-weight: 900;
  margin-bottom: 10px;
}

.login-subtitle {
  color: var(--tb-text);
  line-height: 1.65;
  font-weight: 600;
  margin-bottom: 26px;
}

.form-label {
  font-weight: 850;
  color: var(--tb-dark);
  margin-bottom: 8px;
}

.form-control {
  border: 1px solid var(--tb-border);
  border-radius: 17px;
  min-height: 54px;
  padding: 13px 16px;
  font-weight: 650;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--tb-blue);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  border-radius: 13px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
}

.btn-admin {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--tb-blue);
  background: var(--tb-blue);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(23,107,255,.28);
  transition: .28s ease;
}

.btn-admin:hover {
  color: #fff;
  transform: translateY(-2px);
  background: #0057e7;
  box-shadow: 0 24px 60px rgba(23,107,255,.34);
}

.btn-admin:disabled {
  opacity: .72;
  transform: none;
  cursor: not-allowed;
}

.btn-outline-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--tb-dark);
  font-weight: 900;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid var(--tb-border);
  transition: .3s ease;
}

.btn-outline-main:hover {
  background: var(--tb-dark);
  color: #fff;
  transform: translateY(-2px);
}

.login-alert {
  display: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.login-alert.show {
  display: block;
}

.login-alert.error {
  background: #FFF0F0;
  color: var(--tb-danger);
  border: 1px solid rgba(240,68,56,.12);
}

.login-alert.success {
  background: #E9FFF5;
  color: var(--tb-success);
  border: 1px solid rgba(16,166,106,.14);
}

.login-footer {
  text-align: center;
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 700;
  margin-top: 22px;
}

/* Layout */

.dashboard-body {
  min-height: 100vh;
  background: #F6F9FF;
}

.admin-layout {
  display: grid;
  grid-template-columns: 308px 1fr;
  min-height: 100vh;
}

.dashboard-main {
  min-width: 0;
}

.sidebar {
  width: 308px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  border-right: 1px solid rgba(7,17,31,.08);
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.sidebar-inner {
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-brand-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 0;
}

.sidebar-brand-modern .brand-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.35), transparent 34%),
    linear-gradient(135deg, var(--tb-blue-dark), var(--tb-blue));
  box-shadow: 0 18px 40px rgba(23,107,255,.24);
}

.brand-name {
  line-height: 1;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--tb-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  min-height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7,17,31,.1), transparent);
  margin: 16px 0;
}

.sidebar-section {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.sidebar-subtitle {
  padding: 0 10px;
  color: #9AA5B5;
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.admin-profile-modern {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 10px;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(7,17,31,.075);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 14px 36px rgba(7,17,31,.045);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tb-blue), var(--tb-blue-light));
  color: #fff;
  font-weight: 900;
}

.profile-info {
  min-width: 0;
}

.profile-info strong {
  max-width: 142px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.1;
}

.profile-info span {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 700;
}

.profile-status {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--tb-success);
  box-shadow: 0 0 0 4px rgba(16,166,106,.12);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23,107,255,.22) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(23,107,255,.20);
  border-radius: 999px;
}

.sidebar-link,
.sidebar-dropdown-toggle {
  width: 100%;
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: transparent;
  color: #657186;
  padding: 0 13px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.15px;
  transition: .24s ease;
}

.sidebar-link {
  justify-content: flex-start;
  gap: 12px;
}

.sidebar-dropdown-toggle {
  justify-content: space-between;
}

.sidebar-link span,
.sidebar-dropdown-toggle span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.sidebar-dropdown-toggle > span {
  flex: 1;
}

.sidebar-link i,
.sidebar-dropdown-toggle span i {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-dropdown-toggle:hover,
.sidebar-dropdown-toggle:not(.collapsed) {
  color: var(--tb-blue);
  background: #FFFFFF;
  border-color: rgba(23,107,255,.12);
  box-shadow: 0 12px 30px rgba(23,107,255,.08);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(23,107,255,.12), rgba(79,163,255,.08)), #fff;
}

.dropdown-chevron {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px;
  font-size: 12px !important;
  background: rgba(23,107,255,.08);
  transition: .24s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-dropdown-toggle.collapsed .dropdown-chevron {
  transform: rotate(0deg);
}

.sidebar-dropdown-toggle:not(.collapsed) .dropdown-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  margin: 3px 0 8px 0;
  padding: 5px 0 5px 44px;
  position: relative;
}

.sidebar-submenu::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 12px;
  width: 1px;
  background: rgba(23,107,255,.14);
}

.sidebar-sublink {
  min-height: 34px;
  width: calc(100% - 4px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #778397;
  font-size: 13px;
  font-weight: 850;
  border-radius: 12px;
  padding: 0 12px;
  position: relative;
  transition: .22s ease;
  text-align: left;
}

.sidebar-sublink::before {
  content: "";
  position: absolute;
  left: -24px;
  width: 9px;
  height: 9px;
  border: 2px solid #D8E6FF;
  background: #fff;
  border-radius: 50%;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
  color: var(--tb-blue);
  background: rgba(23,107,255,.065);
}

.sidebar-plan-box {
  margin: 9px 8px 2px 0;
  padding: 12px;
  background: linear-gradient(135deg, rgba(23,107,255,.08), rgba(79,163,255,.04)), #fff;
  border: 1px solid rgba(23,107,255,.12);
  border-radius: 16px;
}

.sidebar-plan-box small {
  color: #8793A6;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.sidebar-plan-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-plan-list span {
  color: var(--tb-blue);
  background: var(--tb-blue-soft);
  border: 1px solid rgba(23,107,255,.12);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
}

.sidebar-control-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  background:
    radial-gradient(circle at 90% 10%, rgba(79,163,255,.18), transparent 30%),
    linear-gradient(135deg, #071D49, #092C72);
  border-radius: 22px;
  padding: 14px;
  color: #fff;
  box-shadow: 0 18px 46px rgba(7,29,73,.18);
}

.control-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
}

.sidebar-control-card strong {
  display: block;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.2px;
  margin-bottom: 4px;
}

.sidebar-control-card p {
  color: rgba(255,255,255,.72);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 650;
  margin: 0;
}

.logout-btn {
  min-height: 46px;
  border: 1px solid rgba(240,68,56,.14);
  background: #FFF0F0;
  color: var(--tb-danger);
  border-radius: 16px;
  font-weight: 900;
  transition: .25s ease;
}

.logout-btn:hover {
  background: var(--tb-danger);
  color: #fff;
}

.logout-btn-modern {
  margin-top: 14px;
  min-height: 50px;
  width: 100%;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  box-shadow: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,17,31,.44);
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.topbar {
  height: 82px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 2px;
}

.topbar-subtitle {
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid var(--tb-border);
  background: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  min-width: 280px;
  height: 48px;
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--tb-text);
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-weight: 650;
  color: var(--tb-dark);
}

.icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  background: #fff;
  color: var(--tb-dark);
  display: grid;
  place-items: center;
  font-size: 19px;
  transition: .25s ease;
}

.icon-btn:hover {
  color: var(--tb-blue);
  background: var(--tb-blue-soft);
}

.content {
  padding: 30px;
}

.welcome-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(79,163,255,.22), transparent 30%),
    linear-gradient(135deg, var(--tb-blue-dark), #092C72);
  color: #fff;
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--tb-shadow);
  overflow: hidden;
  position: relative;
}

.welcome-card h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 900;
  margin-bottom: 14px;
}

.welcome-card p {
  color: rgba(255,255,255,.76);
  max-width: 680px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 18px;
}

.stat-card,
.panel-card {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 26px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 16px 44px rgba(7,17,31,.045);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 24px;
  margin-bottom: 18px;
}

.stat-label {
  color: var(--tb-text);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--tb-success);
  background: #E9FFF5;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.panel-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--tb-border);
  border-radius: 20px;
  background: #FBFCFF;
}

.activity-dot {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  flex-shrink: 0;
}

.activity-item strong {
  display: block;
  font-weight: 900;
  margin-bottom: 3px;
}

.activity-item p {
  margin: 0;
  color: var(--tb-text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.activity-item small {
  display: block;
  color: var(--tb-blue);
  font-weight: 800;
  margin-top: 6px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 260px;
  padding-top: 20px;
}

.bar-item {
  flex: 1;
  display: grid;
  gap: 10px;
  align-items: end;
  text-align: center;
}

.bar {
  width: 100%;
  min-height: 24px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--tb-blue-light), var(--tb-blue));
  box-shadow: 0 12px 28px rgba(23,107,255,.18);
}

.bar-label {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-loader {
  position: fixed;
  inset: 0;
  background: #F7FAFF;
  z-index: 3000;
  display: grid;
  place-items: center;
}

.loader-box {
  text-align: center;
}

.loader-icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--tb-blue-dark), var(--tb-blue));
  font-size: 26px;
  animation: pulseLoader 1.4s ease-in-out infinite;
}

@keyframes pulseLoader {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(23,107,255,.2);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 22px 48px rgba(23,107,255,.34);
  }
}

.loader-box strong {
  display: block;
  font-weight: 900;
}

.loader-box span {
  color: var(--tb-text);
  font-weight: 700;
  font-size: 14px;
}

/* Barbearias */

.barbershop-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(23,107,255,.08), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(79,163,255,.09), transparent 32%);
}

.glass-panel {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  box-shadow: 0 20px 56px rgba(7,17,31,.065);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.barbershop-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr .76fr .76fr .76fr;
  gap: 8px;
}

.quick-actions-card {
  grid-row: span 2;
  padding: 22px;
}

.panel-head,
.performance-header,
.list-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-head h2,
.performance-header h2,
.list-toolbar h2 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.9px;
  margin: 0 0 4px;
}

.panel-head p,
.performance-header p,
.list-toolbar p {
  color: var(--tb-text);
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.mini-menu-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  background: #fff;
  color: var(--tb-blue);
}

.quick-actions-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-item {
  min-height: 74px;
  border: 1px solid var(--tb-border);
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: .25s ease;
}

.quick-action-item:hover {
  transform: translateY(-3px);
  border-color: rgba(23,107,255,.18);
  box-shadow: 0 18px 42px rgba(23,107,255,.08);
}

.quick-action-item strong {
  color: var(--tb-dark);
  font-size: 13px;
  font-weight: 900;
}

.quick-action-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.bg-blue-soft {
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
}

.bg-green-soft {
  background: #E9FFF5;
  color: #10A66A;
}

.bg-purple-soft {
  background: #F0ECFF;
  color: #6941C6;
}

.bg-red-soft {
  background: #FFF0F0;
  color: #F04438;
}

.metric-mini-card {
  padding: 22px;
  min-height: 126px;
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tb-dark);
  font-size: 14px;
  font-weight: 900;
}

.metric-card-top i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #F6F9FF;
  color: var(--tb-blue);
  border-radius: 12px;
}

.metric-number {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1;
}

.metric-trend {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
}

.metric-trend.positive {
  color: #10A66A;
}

.mini-progress {
  margin-top: 20px;
  height: 8px;
  background: #EDF3FF;
  border-radius: 999px;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tb-blue), var(--tb-blue-light));
  border-radius: 999px;
}

.automation-card {
  grid-column: span 1;
  padding: 22px;
}

.automation-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.automation-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}

.auto-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 20px;
}

.auto-icon.orange {
  background: #FFF3DE;
  color: #F79009;
}

.automation-row strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.automation-row p {
  margin: 2px 0 0;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 650;
}

.auto-pill {
  min-width: 52px;
  text-align: center;
  border-radius: 12px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 900;
}

.auto-pill.blue {
  background: #DDEBFF;
  color: var(--tb-blue);
}

.auto-pill.orange {
  background: #FFE7BD;
  color: #B54708;
}

.automation-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: #0B0624;
  color: #fff;
  font-weight: 900;
  transition: .25s ease;
}

.automation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11,6,36,.2);
}

.performance-card {
  grid-column: span 3;
  padding: 22px;
}

.period-btn,
.expand-btn {
  height: 42px;
  border: 1px solid var(--tb-border);
  background: #fff;
  color: var(--tb-text);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.expand-btn {
  width: 42px;
  padding: 0;
  color: var(--tb-blue);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 6px;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 850;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-flex;
  margin-right: 7px;
}

.dot.blue { background: #176BFF; }
.dot.orange { background: #F79009; }
.dot.purple { background: #6941C6; }

.performance-chart {
  height: 258px;
  margin-top: 10px;
}

.performance-chart svg {
  width: 100%;
  height: 100%;
}

.grid-lines line {
  stroke: rgba(7,17,31,.07);
  stroke-dasharray: 4 6;
}

.chart-area {
  fill: url(#areaBlue);
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blue-line {
  stroke: #176BFF;
}

.orange-line {
  stroke: #F79009;
  opacity: .78;
}

.purple-line {
  stroke: #6941C6;
  opacity: .62;
}

.chart-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.barbershop-list-card {
  padding: 24px;
}

.list-toolbar {
  align-items: center;
  margin-bottom: 22px;
}

.list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-search {
  min-width: 390px;
  height: 52px;
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--tb-text);
}

.page-search input {
  border: none;
  outline: none;
  width: 100%;
  font-weight: 700;
}

.admin-table {
  margin: 0;
}

.admin-table thead th {
  color: var(--tb-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--tb-border);
  padding: 16px 18px;
}

.admin-table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
  border-color: var(--tb-border);
  font-weight: 650;
}

.barbershop-table tbody td {
  white-space: nowrap;
}

.barbershop-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.barbershop-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tb-blue), var(--tb-blue-light));
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.barbershop-cell strong {
  display: block;
  font-weight: 900;
}

.barbershop-cell span {
  display: block;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 650;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 12px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-active {
  color: var(--tb-success);
  background: #E9FFF5;
}

.status-pending {
  color: #9A6700;
  background: #FFF8E5;
}

.status-blocked {
  color: #F04438;
  background: #FFF0F0;
}

.status-archived {
  color: #667085;
  background: #F2F4F7;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--tb-border);
  background: #fff;
  border-radius: 13px;
  color: var(--tb-text);
  transition: .22s ease;
}

.table-actions button:hover {
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
}

.list-footer {
  border-top: 1px solid var(--tb-border);
  padding-top: 18px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 800;
}

.admin-pagination {
  gap: 8px;
  margin: 0;
}

.admin-pagination .page-link {
  min-width: 40px;
  height: 40px;
  border-radius: 14px !important;
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.admin-pagination .page-item.active .page-link {
  background: var(--tb-blue);
  border-color: var(--tb-blue);
  color: #fff;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--tb-text);
}

.empty-state i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 28px;
}

.empty-state strong {
  display: block;
  color: var(--tb-dark);
  font-size: 18px;
  font-weight: 900;
}

.empty-state span {
  display: block;
  font-weight: 650;
}

/* Modal e form steps */

.admin-modal .modal-content {
  border: none;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--tb-shadow);
}

.admin-modal-header {
  align-items: flex-start;
  padding: 28px 30px;
  border-bottom: 1px solid var(--tb-border);
  background:
    radial-gradient(circle at 90% 0%, rgba(23,107,255,.12), transparent 30%),
    #fff;
}

.admin-modal-header h3 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1.4px;
  margin: 0 0 6px;
}

.admin-modal-header p {
  color: var(--tb-text);
  font-weight: 650;
  margin: 0;
}

.admin-modal .modal-body {
  padding: 30px;
  background: #FBFCFF;
}

.admin-modal-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--tb-border);
  background: #fff;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tb-text);
  font-weight: 900;
}

.stepper-item span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #EEF2F8;
  color: var(--tb-text);
  font-size: 13px;
}

.stepper-item.active span,
.stepper-item.completed span {
  background: var(--tb-blue);
  color: #fff;
}

.stepper-item.active strong,
.stepper-item.completed strong {
  color: var(--tb-blue);
}

.stepper-line {
  height: 2px;
  background: #E5EAF3;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-section-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.8px;
  margin-bottom: 20px;
}

.form-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--tb-blue);
  background: var(--tb-blue-soft);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
}

.form-subtitle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tb-blue);
}

.form-helper {
  color: var(--tb-text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 650;
  margin-bottom: 24px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.week-day-card {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 20px;
  padding: 14px;
}

.week-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.week-day-head strong {
  font-weight: 950;
  color: var(--tb-dark);
}

.week-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.week-time-grid label {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #E4E9F2;
  border-radius: 999px;
  transition: .25s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .25s ease;
  box-shadow: 0 4px 10px rgba(7,17,31,.12);
}

.switch input:checked + span {
  background: var(--tb-blue);
}

.switch input:checked + span::before {
  transform: translateX(18px);
}

.admin-toast {
  border: none;
  border-radius: 18px;
  box-shadow: var(--tb-shadow);
}

.admin-toast .toast-body {
  color: var(--tb-dark);
  font-weight: 800;
  padding: 16px 18px;
}

@media (max-width: 1399px) {
  .barbershop-overview-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .quick-actions-card {
    grid-column: span 1;
    grid-row: span 2;
  }

  .performance-card {
    grid-column: span 2;
  }
}

@media (max-width: 1199px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 308px;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-110%);
    transition: .28s ease;
    box-shadow: var(--tb-shadow);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .sidebar-inner {
    height: 100vh;
  }
}

@media (max-width: 991px) {
  .barbershop-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions-card,
  .automation-card,
  .performance-card {
    grid-column: span 2;
  }

  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .page-search {
    min-width: 100%;
    flex: 1;
  }

  .list-toolbar-actions .btn-admin {
    width: 100%;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stepper-line {
    display: none;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sidebar {
    width: min(308px, 90vw);
  }

  .topbar {
    height: auto;
    padding: 18px;
    gap: 14px;
  }

  .topbar-actions {
    display: none;
  }

  .content {
    padding: 20px;
  }

  .login-card {
    padding: 26px;
    border-radius: 28px;
  }

  .admin-table {
    min-width: 880px;
  }
}

@media (max-width: 575px) {
  .barbershop-overview-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-card,
  .automation-card,
  .performance-card {
    grid-column: span 1;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .performance-header {
    flex-direction: column;
  }

  .performance-chart {
    height: 200px;
  }

  .admin-modal .modal-body,
  .admin-modal-header,
  .admin-modal-footer {
    padding: 22px;
  }
}


/* =========================================================
   AJUSTES FINAIS — CRUD COMPLETO, INPUTS MODERNOS E STEP 04
   ========================================================= */

.content.barbershop-page {
  padding: 34px;
}

.glass-panel {
  border-color: rgba(230, 238, 255, .95);
}

.barbershop-overview-grid {
  gap: 14px;
}

.quick-actions-card,
.metric-mini-card,
.automation-card,
.performance-card,
.barbershop-list-card {
  border-radius: 32px;
}

.list-toolbar {
  padding-bottom: 4px;
}

.form-control,
.form-select,
textarea.form-control,
select.form-control {
  background:
    linear-gradient(180deg, #FFFFFF, #FBFCFF);
  border: 1px solid rgba(7, 17, 31, 0.085);
  border-radius: 18px;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--tb-dark);
  font-weight: 750;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

textarea.form-control {
  min-height: auto;
}

.form-control:hover,
.form-select:hover,
select.form-control:hover {
  border-color: rgba(23, 107, 255, .20);
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
  border-color: rgba(23, 107, 255, .45);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(23, 107, 255, .08) !important;
}

.form-label {
  color: #3B4658;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

input[type="date"].form-control,
input[type="time"].form-control {
  color-scheme: light;
  position: relative;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .75;
  background-color: var(--tb-blue-soft);
  border-radius: 10px;
  padding: 6px;
  margin-left: 8px;
}

.modern-input {
  position: relative;
}

.modern-input > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tb-blue);
  z-index: 2;
  font-size: 18px;
}

.modern-input .form-control {
  padding-left: 48px;
}

.stepper-4 {
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
}

.form-section-title {
  margin-bottom: 24px;
}

.form-subtitle {
  margin-top: 18px;
}

.admin-modal .modal-body {
  padding: 34px;
}

.admin-modal-header {
  padding: 30px 34px;
}

.admin-modal-footer {
  padding: 20px 34px;
}

.access-preview-card,
.force-reset-box {
  background:
    linear-gradient(135deg, rgba(23, 107, 255, .08), rgba(79, 163, 255, .04)),
    #fff;
  border: 1px solid rgba(23, 107, 255, .12);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 22px;
}

.access-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.access-preview-icon {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: var(--tb-blue);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 16px 34px rgba(23, 107, 255, .22);
}

.access-preview-card strong,
.force-reset-box strong {
  display: block;
  color: var(--tb-dark);
  font-weight: 950;
  letter-spacing: -.2px;
  margin-bottom: 4px;
}

.access-preview-card span,
.force-reset-box span {
  color: var(--tb-text);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.force-reset-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.table-actions {
  min-width: 250px;
}

.table-actions button[data-action="delete"]:hover {
  background: #FFF0F0;
  color: var(--tb-danger);
}

.table-actions button[data-action="block"]:hover {
  background: #FFF8E5;
  color: #B54708;
}

.table-actions button[data-action="activate"]:hover {
  background: #E9FFF5;
  color: var(--tb-success);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(7,17,31,.04);
}

.detail-card-wide {
  grid-column: span 2;
}

.detail-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--tb-blue);
  background: var(--tb-blue-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.detail-card strong {
  display: block;
  color: var(--tb-dark);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}

.detail-card p {
  color: var(--tb-text);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  margin: 0;
}

.week-grid {
  gap: 14px;
}

.week-day-card {
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(7, 17, 31, .035);
}

.week-time-grid .form-control {
  min-height: 48px;
  border-radius: 15px;
  padding: 10px 12px;
}

.page-search,
.search-box {
  background: #fff;
  border-color: rgba(7, 17, 31, .08);
  box-shadow: 0 12px 30px rgba(7, 17, 31, .035);
}

.page-search:focus-within,
.search-box:focus-within {
  border-color: rgba(23,107,255,.4);
  box-shadow: 0 0 0 5px rgba(23,107,255,.08);
}

@media (max-width: 991px) {
  .stepper-4 {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-card-wide {
    grid-column: span 1;
  }

  .force-reset-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .content.barbershop-page {
    padding: 20px;
  }

  .admin-modal .modal-body,
  .admin-modal-header,
  .admin-modal-footer {
    padding: 22px;
  }
}



/* =========================================================
   CARDS SUPERIORES LIMPOS — SEM QUICK ACTIONS E SEM PERFORMANCE
   ========================================================= */

.overview-clean {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.metric-card-xl,
.status-card,
.plans-card,
.revenue-card {
  padding: 24px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.metric-card-xl::before,
.status-card::before,
.plans-card::before,
.revenue-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(23,107,255,.07);
  pointer-events: none;
}

.metric-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.metric-kicker {
  display: block;
  color: #99A5B8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.metric-card-header h2 {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.7px;
  margin: 0;
}

.metric-main-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--tb-blue);
  background: var(--tb-blue-soft);
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(23,107,255,.1);
}

.metric-main-icon.success {
  color: #10A66A;
  background: #E9FFF5;
}

.metric-main-icon.warning {
  color: #F79009;
  background: #FFF3DE;
}

.metric-main-icon.danger {
  color: #F04438;
  background: #FFF0F0;
}

.metric-big-number {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
}

.metric-bottom {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-bottom small,
.metric-progress-wrap small {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 850;
}

.metric-trend.warning {
  color: #B54708;
  background: #FFF3DE;
  border-radius: 999px;
  padding: 6px 10px;
}

.metric-trend.danger {
  color: #F04438;
  background: #FFF0F0;
  border-radius: 999px;
  padding: 6px 10px;
}

.metric-progress-wrap {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.metric-progress {
  height: 11px;
  background: #EDF3FF;
  border-radius: 999px;
  overflow: hidden;
}

.metric-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #176BFF, #4FA3FF);
  border-radius: 999px;
  transition: width .45s ease;
}

.status-card,
.plans-card,
.revenue-card {
  grid-column: span 2;
}

.card-soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-body {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
}

.donut-chart {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    conic-gradient(
      #10A66A 0 calc(var(--active) * 1%),
      #F79009 calc(var(--active) * 1%) calc(var(--pending) * 1%),
      #F04438 calc(var(--pending) * 1%) calc(var(--blocked) * 1%),
      #98A2B3 calc(var(--blocked) * 1%) calc(var(--archived) * 1%),
      #EDF3FF calc(var(--archived) * 1%) 100%
    );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(7,17,31,.04);
}

.donut-chart > div {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: 0 12px 28px rgba(7,17,31,.07);
}

.donut-chart strong {
  display: block;
  color: var(--tb-dark);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1;
}

.donut-chart span {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 850;
}

.status-legend {
  display: grid;
  gap: 12px;
}

.status-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 850;
  padding: 10px 12px;
  border: 1px solid rgba(7,17,31,.06);
  border-radius: 15px;
  background: #fff;
}

.status-legend strong {
  color: var(--tb-dark);
  font-weight: 950;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-flex;
  margin-right: 8px;
}

.legend-dot.active { background: #10A66A; }
.legend-dot.pending { background: #F79009; }
.legend-dot.blocked { background: #F04438; }
.legend-dot.archived { background: #98A2B3; }

.plans-bars {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.plan-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.plan-row strong {
  display: block;
  color: var(--tb-dark);
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 4px;
}

.plan-row span {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 800;
}

.plan-bar {
  height: 16px;
  background: #EDF3FF;
  border-radius: 999px;
  overflow: hidden;
}

.plan-bar span {
  display: block;
  height: 100%;
  min-width: 8px;
  background: linear-gradient(90deg, #176BFF, #4FA3FF);
  border-radius: 999px;
  transition: width .45s ease;
}

.revenue-value {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  color: var(--tb-dark);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
}

.revenue-footer {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(7,17,31,.06);
  border-radius: 18px;
  padding: 14px;
}

.revenue-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 850;
}

.revenue-footer span i {
  color: var(--tb-blue);
}

.revenue-footer strong {
  color: var(--tb-blue);
  font-size: 15px;
  font-weight: 950;
}

/* Neutraliza estilos antigos do bloco removido */
.quick-actions-card,
.performance-card,
.automation-card,
.metric-mini-card {
  display: none !important;
}

@media (max-width: 1399px) {
  .overview-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card,
  .plans-card,
  .revenue-card {
    grid-column: span 1;
  }
}

@media (max-width: 991px) {
  .overview-clean {
    grid-template-columns: 1fr;
  }

  .status-body,
  .plan-row {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .metric-bottom,
  .revenue-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Estatísticas avançadas das barbearias */
.stats-floating-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1040;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tb-blue), var(--tb-blue-dark));
  color: #fff;
  font-size: 27px;
  box-shadow: 0 22px 52px rgba(23, 107, 255, .34);
  transition: transform .24s ease, box-shadow .24s ease;
}

.stats-floating-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 28px 68px rgba(23, 107, 255, .42);
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-kpi-card {
  padding: 22px;
  border: 1px solid rgba(23, 107, 255, .10);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 107, 255, .10), transparent 38%),
    #fff;
  box-shadow: 0 16px 36px rgba(7,17,31,.045);
}

.stats-kpi-card span {
  display: block;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.stats-kpi-card strong {
  display: block;
  color: var(--tb-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -1.4px;
  line-height: 1;
}

.stats-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 18px;
}

.stats-map-panel,
.stats-location-list {
  border: 1px solid rgba(7,17,31,.07);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7,17,31,.045);
}

.stats-map-panel {
  padding: 22px;
}

.stats-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.stats-map-head h4 {
  margin: 0 0 6px;
  color: var(--tb-dark);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.7px;
}

.stats-map-head p {
  margin: 0;
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 700;
}

.stats-map-head > span {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 12px;
  font-weight: 950;
}

.location-map {
  min-height: 390px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(23,107,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(23,107,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 35% 30%, rgba(23,107,255,.18), transparent 34%),
    radial-gradient(circle at 72% 66%, rgba(16,166,106,.13), transparent 30%),
    #F7FAFF;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.location-map::before {
  content: "BR";
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  color: rgba(7, 29, 73, .045);
  font-size: clamp(120px, 18vw, 230px);
  font-weight: 950;
  letter-spacing: -14px;
}

.map-bubble {
  width: var(--size);
  height: var(--size);
  position: relative;
  z-index: 2;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(23, 107, 255, .92);
  color: #fff;
  box-shadow: 0 18px 42px rgba(23,107,255,.28);
  border: 6px solid rgba(255,255,255,.72);
}

.map-bubble strong {
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.map-bubble span {
  font-size: 12px;
  font-weight: 950;
}

.map-bubble-1 { background: rgba(16, 166, 106, .92); }
.map-bubble-2 { background: rgba(247, 144, 9, .92); }
.map-bubble-3 { background: rgba(79, 163, 255, .95); }
.map-bubble-4 { background: rgba(7, 29, 73, .90); }
.map-bubble-5 { background: rgba(152, 162, 179, .95); }

.map-empty {
  position: relative;
  z-index: 2;
  color: var(--tb-text);
  font-weight: 900;
}

.stats-location-list {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.stats-location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(7,17,31,.06);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #FBFCFF);
}

.stats-location-item strong,
.stats-location-item b {
  color: var(--tb-dark);
  font-weight: 950;
}

.stats-location-item span {
  display: block;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.table-actions button[data-action="restore"]:hover {
  background: #E9FFF5;
  color: var(--tb-success);
}

@media (max-width: 991px) {
  .stats-kpi-grid,
  .stats-map-layout {
    grid-template-columns: 1fr;
  }

  .stats-floating-button {
    right: 18px;
    bottom: 18px;
  }
}

/* Mapa real em tela cheia + botão olho com efeito água */
.stats-modal .modal-content {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(23,107,255,.13), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(16,166,106,.10), transparent 28%),
    #F7FAFF;
}

.stats-modal .modal-body {
  padding: 26px 34px 34px;
}

.stats-floating-button {
  overflow: hidden;
  border: 2px solid var(--tb-blue);
  background: rgba(255,255,255,.92);
  color: var(--tb-blue);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stats-floating-button i {
  position: relative;
  z-index: 3;
  transition: color .35s ease, transform .35s ease;
}

.eye-water {
  position: absolute;
  left: 50%;
  bottom: -130%;
  z-index: 1;
  width: 170%;
  height: 170%;
  border-radius: 43% 57% 47% 53%;
  background: linear-gradient(135deg, var(--tb-blue), var(--tb-blue-dark));
  transform: translateX(-50%) rotate(0deg);
  transition: bottom .55s cubic-bezier(.2,.8,.2,1), transform .75s ease;
}

.stats-floating-button:hover .eye-water {
  bottom: -34%;
  transform: translateX(-50%) rotate(180deg);
  animation: waterWave 1.4s ease-in-out infinite;
}

.stats-floating-button:hover i {
  color: #fff;
  transform: scale(1.12);
}

.stats-floating-button:active .eye-water {
  bottom: -8%;
  transform: translateX(-50%) scale(1.35);
}

@keyframes waterWave {
  0%, 100% { border-radius: 43% 57% 47% 53%; }
  50% { border-radius: 58% 42% 55% 45%; }
}

.stats-intelligence-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.smart-chart-card {
  border: 1px solid rgba(7,17,31,.07);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 46px rgba(7,17,31,.055);
  padding: 22px;
}

.smart-donut {
  width: 230px;
  height: 230px;
  margin: 18px auto 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(
      #10A66A 0 calc(var(--active) * 1%),
      #F79009 calc(var(--active) * 1%) calc(var(--pending) * 1%),
      #F04438 calc(var(--pending) * 1%) calc(var(--blocked) * 1%),
      #98A2B3 calc(var(--blocked) * 1%) calc(var(--archived) * 1%),
      #E8EEF8 calc(var(--archived) * 1%) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(7,17,31,.04), 0 18px 42px rgba(7,17,31,.08);
}

.smart-donut > div {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
  box-shadow: 0 14px 32px rgba(7,17,31,.08);
}

.smart-donut strong {
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -1.5px;
  line-height: 1;
}

.smart-donut span {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 900;
}

.revenue-state-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.revenue-state-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(7,17,31,.06);
}

.revenue-state-row strong,
.revenue-state-row b {
  font-weight: 950;
  color: var(--tb-dark);
}

.revenue-state-row span {
  display: block;
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 800;
}

.revenue-state-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #EAF2FF;
}

.revenue-state-track span {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tb-blue), #4FA3FF);
}

.leaflet-focus-map {
  min-height: 58vh;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(7,17,31,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.leaflet-focus-marker {
  background: transparent;
  border: 0;
}

.leaflet-focus-marker button {
  width: var(--marker-size);
  height: var(--marker-size);
  border: 4px solid rgba(255,255,255,.82);
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #4FA3FF, var(--tb-blue) 55%, var(--tb-blue-dark));
  box-shadow: 0 0 0 0 rgba(23,107,255,.42), 0 18px 42px rgba(23,107,255,.36);
  animation: focusPulse 2.2s ease-out infinite;
}

.leaflet-focus-marker strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.leaflet-focus-marker span {
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(23,107,255,.42), 0 18px 42px rgba(23,107,255,.36); }
  70% { box-shadow: 0 0 0 18px rgba(23,107,255,0), 0 18px 42px rgba(23,107,255,.36); }
  100% { box-shadow: 0 0 0 0 rgba(23,107,255,0), 0 18px 42px rgba(23,107,255,.36); }
}

.state-focus-summary {
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--tb-blue-dark), var(--tb-blue));
  box-shadow: 0 18px 42px rgba(23,107,255,.24);
}

.state-focus-summary span {
  display: block;
  opacity: .76;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px;
}

.state-focus-summary strong {
  display: block;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
}

.state-focus-summary p {
  margin: 9px 0 0;
  font-weight: 850;
  opacity: .88;
}

.city-focus-item {
  border-left: 5px solid var(--tb-blue);
}

@media (max-width: 1199px) {
  .stats-intelligence-grid,
  .stats-map-layout {
    grid-template-columns: 1fr;
  }

  .leaflet-focus-map {
    min-height: 460px;
  }
}

@media (max-width: 767px) {
  .stats-modal .modal-body {
    padding: 20px;
  }

  .revenue-state-row {
    grid-template-columns: 1fr;
  }
}

/* Paginação de receita por estado e barbearias do foco */
.revenue-state-page-list {
  display: grid;
  gap: 12px;
}

button.revenue-state-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

button.revenue-state-row:hover {
  transform: translateY(-2px);
  border-color: rgba(23,107,255,.26);
  box-shadow: 0 14px 34px rgba(23,107,255,.10);
}

.revenue-state-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(7,17,31,.07);
}

.revenue-state-pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23,107,255,.18);
  border-radius: 15px;
  background: #fff;
  color: var(--tb-blue);
  display: grid;
  place-items: center;
}

.revenue-state-pagination button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.revenue-state-pagination span {
  color: var(--tb-text);
  font-size: 12px;
  font-weight: 950;
}

details.city-focus-item {
  display: block;
  padding: 0;
  overflow: hidden;
}

.city-focus-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
}

.city-focus-item summary::-webkit-details-marker {
  display: none;
}

.state-barbershop-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.state-barbershop-card {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  background: #F7FAFF;
  border: 1px solid rgba(23,107,255,.10);
  transition: transform .2s ease, background .2s ease;
}

.state-barbershop-card:hover {
  transform: translateX(3px);
  background: #fff;
}

.state-barbershop-card strong {
  color: var(--tb-dark);
  font-size: 13px;
  font-weight: 950;
}

.state-barbershop-card span,
.state-barbershop-card small {
  color: var(--tb-text);
  font-size: 11px;
  font-weight: 800;
}

/* Planos / Gerenciar */
.plans-management-page {
  display: grid;
  gap: 18px;
}

.plans-hero {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(23,107,255,.12), transparent 32%),
    rgba(255,255,255,.9);
}

.plans-hero h1 {
  margin: 0 0 10px;
  max-width: 780px;
  color: var(--tb-dark);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -2px;
}

.plans-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--tb-text);
  font-weight: 700;
  line-height: 1.7;
}

.plans-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-management-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-management-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.plan-management-head span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.plan-management-head h2 {
  margin: 0;
  color: var(--tb-dark);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -1px;
}

.plan-management-head > strong {
  color: var(--tb-blue);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.plan-management-head small {
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 850;
}

.plan-management-card p {
  color: var(--tb-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

.plan-feature-list {
  display: grid;
  gap: 10px;
}

.plan-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tb-dark);
  font-size: 13px;
  font-weight: 850;
  padding: 10px 12px;
  border-radius: 16px;
  background: #F7FAFF;
  border: 1px solid rgba(23,107,255,.08);
}

.plan-feature-list i {
  color: var(--tb-success);
}

.plan-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1199px) {
  .plans-grid,
  .plans-metrics-grid {
    grid-template-columns: 1fr;
  }

  .plans-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

.plan-management-card.plan-archived {
  opacity: .76;
  filter: grayscale(.16);
}

.plan-management-card.plan-archived .plan-management-head span {
  background: #F2F4F7;
  color: #667085;
}

.plan-form-divider {
  height: 1px;
  width: 100%;
  background: rgba(7,17,31,.08);
  margin: 4px 0;
}

.plan-help-icon {
  color: var(--tb-blue);
  cursor: help;
  margin-left: 5px;
}

.plan-access-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.plan-access-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(23,107,255,.12);
  border-radius: 18px;
  background: #fff;
  color: var(--tb-dark);
  font-size: 13px;
  font-weight: 850;
}

.plan-access-grid input {
  accent-color: var(--tb-blue);
}

.promo-dates-list {
  display: grid;
  gap: 10px;
}

.promo-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 991px) {
  .plan-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .plan-access-grid,
  .promo-date-row {
    grid-template-columns: 1fr;
  }
}

/* Login e dashboard da barbearia */
.barbershop-login-page {
  min-height: 100vh;
  background: #F7FAFF;
}

.barbershop-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.barbershop-login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,29,73,.18), rgba(7,29,73,.84)),
    url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.barbershop-login-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -1px;
}

.barbershop-login-brand span {
  color: #76B7FF;
}

.barbershop-login-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.barbershop-login-copy span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 16px;
}

.barbershop-login-copy h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -3px;
  font-weight: 950;
  margin-bottom: 18px;
}

.barbershop-login-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.barbershop-login-card-wrap {
  display: grid;
  place-items: center;
  padding: 34px;
}

.barbershop-login-card {
  width: min(100%, 480px);
}

@media (max-width: 991px) {
  .barbershop-login-shell {
    grid-template-columns: 1fr;
  }

  .barbershop-login-visual {
    min-height: 420px;
  }
}

.stepper-5 {
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
}

.unit-builder-card {
  background: #fff;
  border: 1px solid rgba(23,107,255,.10);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(7,17,31,.035);
}

.unit-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.unit-builder-head strong {
  color: var(--tb-dark);
  font-weight: 950;
}

.unit-login-list {
  display: grid;
  gap: 12px;
}

.unit-login-option {
  width: 100%;
  border: 1px solid rgba(23,107,255,.12);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.unit-login-option:hover {
  transform: translateY(-2px);
  border-color: rgba(23,107,255,.34);
  box-shadow: 0 16px 34px rgba(23,107,255,.10);
}

.unit-login-option strong {
  display: block;
  color: var(--tb-dark);
  font-weight: 950;
  margin-bottom: 4px;
}

.unit-login-option span {
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 991px) {
  .stepper-5 {
    grid-template-columns: 1fr;
  }
}

.partner-modal .modal-content {
  border-radius: 28px;
  overflow: hidden;
}

.partner-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.partner-step-pill {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  padding: 14px 16px;
  text-align: left;
  transition: all 0.25s ease;
}

.partner-step-pill span {
  color: #0f172a;
  font-size: 0.92rem;
}

.partner-step-pill.active {
  background: linear-gradient(135deg, #111827, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

.partner-step-pill.active span {
  color: #fff;
}

.partner-form .partner-step {
  display: none;
}

.partner-form .partner-step.active {
  display: block;
}

.partner-form .form-section-title {
  align-items: center;
  color: #0f172a;
  display: flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.partner-form .form-control,
.partner-form .form-select {
  border-radius: 14px;
  min-height: 46px;
}

.partner-units-picker {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.partner-unit-option {
  align-items: center;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.partner-unit-option input {
  accent-color: #2563eb;
}

.access-preview-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.access-preview-card span {
  color: #475569;
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.empty-state-mini {
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 14px;
  color: #64748b;
  padding: 14px;
}

@media (max-width: 768px) {
  .partner-stepper {
    grid-template-columns: 1fr;
  }
}

.partners-manager-panel {
  margin-top: 24px;
  padding: 24px;
}

.partners-manager-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.partners-manager-head h2 {
  color: #0f172a;
  font-weight: 900;
  margin: 10px 0 6px;
}

.partners-manager-head p {
  color: #64748b;
  margin: 0;
}

.partners-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.partner-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.partner-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.partner-card-head strong,
.partner-card-head span {
  display: block;
}

.partner-card-head strong {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 900;
}

.partner-card-head span:not(.partner-status) {
  color: #64748b;
  font-size: 0.86rem;
}

.partner-status {
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 10px;
}

.partner-card-info {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.9rem;
  gap: 8px;
}

.partner-card-info i {
  color: #2563eb;
}

.partner-card-billing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-card-billing span {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

@media (max-width: 768px) {
  .partners-manager-head {
    display: grid;
  }
}

.socios-page .plans-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.socios-kpi-grid,
.socios-analytics-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.socios-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.socios-analytics-grid {
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1.25fr);
}

.socios-kpi,
.socios-chart {
  padding: 22px;
}

.socios-kpi span {
  color: #64748b;
  font-weight: 800;
}

.socios-kpi strong {
  color: #0f172a;
  display: block;
  font-size: 2.4rem;
  font-weight: 950;
  margin-top: 8px;
}

.socios-chart h3 {
  color: #0f172a;
  font-weight: 900;
  margin-bottom: 18px;
}

.status-donut {
  aspect-ratio: 1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.72), 0 20px 50px rgba(15, 23, 42, 0.12);
  margin: 0 auto 18px;
  max-width: 220px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.status-legend span {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  color: #475569;
  font-weight: 850;
  padding: 8px 10px;
}

.revenue-bars {
  display: grid;
  gap: 12px;
}

.revenue-bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 140px 1fr 48px;
}

.revenue-bar-row span,
.revenue-bar-row strong {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 900;
}

.revenue-bar-row div {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.revenue-bar-row i {
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .socios-page .plans-hero,
  .socios-analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.socios-list-panel {
  margin-top: 24px;
  overflow: hidden;
  padding: 0;
}

.socios-list-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px 30px 18px;
}

.socios-list-toolbar h2 {
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}

.socios-list-toolbar p {
  color: #64748b;
  font-weight: 750;
  margin: 0;
}

.socios-toolbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.socios-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 10px;
  min-width: 390px;
  padding: 0 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.socios-search:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.socios-search i {
  color: #64748b;
  font-size: 1.1rem;
}

.socios-search input {
  background: transparent;
  border: 0;
  color: #111827;
  font-weight: 800;
  min-height: 48px;
  outline: 0;
  width: 100%;
}

.btn-create-partner {
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.28);
  font-weight: 950;
  padding: 13px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-create-partner:hover {
  box-shadow: 0 26px 58px rgba(37, 99, 235, 0.36);
  transform: translateY(-2px) scale(1.01);
}

.socios-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 30px 20px;
}

.socios-filter-pills button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 10px 14px;
  transition: all 0.22s ease;
}

.socios-filter-pills button.active,
.socios-filter-pills button:hover {
  background: #0f172a;
  color: #fff;
  transform: translateY(-2px);
}

.socios-table-wrap {
  overflow-x: auto;
}

.socios-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.socios-table th {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 16px 18px;
  text-transform: uppercase;
}

.socios-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px;
  vertical-align: middle;
}

.socios-row {
  animation: sociosRowIn 0.35s ease both;
  transition: background 0.2s ease, transform 0.2s ease;
}

.socios-row:hover {
  background: rgba(37, 99, 235, 0.035);
  transform: translateX(4px);
}

.socios-person {
  align-items: center;
  display: flex;
  gap: 12px;
}

.socios-avatar {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  color: #fff;
  display: flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.socios-person strong,
.socios-contact strong,
.socios-money strong {
  color: #020617;
  display: block;
  font-weight: 950;
}

.socios-person span,
.socios-contact span,
.socios-money span {
  color: #64748b;
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
}

.socios-unit-pill {
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 900;
  gap: 7px;
  max-width: 280px;
  padding: 9px 12px;
}

.socios-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 950;
  padding: 8px 13px;
}

.socios-status.success { background: #dcfce7; color: #15803d; }
.socios-status.warning { background: #fef3c7; color: #a16207; }
.socios-status.danger { background: #fee2e2; color: #b91c1c; }

.socios-actions {
  display: flex;
  gap: 8px;
}

.socios-actions button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 13px;
  color: #64748b;
  display: flex;
  height: 38px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 38px;
}

.socios-actions button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-3px) rotate(-4deg);
}

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

@media (max-width: 992px) {
  .socios-list-toolbar,
  .socios-toolbar-actions {
    align-items: stretch;
    display: grid;
  }

  .socios-search {
    min-width: 0;
  }
}

.matrix-control-panel {
  margin-top: 24px;
  padding: 24px;
}

.units-management-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.unit-manager-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.unit-manager-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.unit-manager-card.disabled {
  opacity: 0.55;
}

.unit-manager-card strong,
.unit-manager-card span {
  display: block;
}

.unit-manager-card strong {
  color: #0f172a;
  font-weight: 950;
}

.unit-manager-card span {
  color: #64748b;
  font-weight: 750;
}

.commission-grid,
.barber-units-access {
  display: grid;
  gap: 12px;
}

.commission-option,
.barber-unit-access-card {
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.commission-option {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr 110px;
}

.commission-option input[type="number"] {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 10px;
}

.barber-unit-access-card > label {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.week-day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.week-day-picker label {
  cursor: pointer;
}

.week-day-picker input {
  display: none;
}

.week-day-picker span {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-weight: 900;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.week-day-picker input:checked + span {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

.creation-modal .modal-dialog {
  max-width: 1130px;
}

.creation-modal .modal-content {
  border-radius: 28px;
  overflow: hidden;
}

.creation-modal-header {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 42%), #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  padding: 28px 28px 30px;
}

.creation-modal-header h1 {
  color: #020617;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  margin: 12px 0 6px;
}

.creation-modal-header p {
  color: #64748b;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.creation-modal .modal-body {
  background: #f8fafc;
  padding: 34px 28px;
}

.creation-modal .modal-footer {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  padding: 22px 28px;
}

.creation-modal .partner-stepper {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.creation-modal .partner-step-pill {
  align-items: center;
  border-radius: 18px;
  flex-direction: row;
  min-width: auto;
}

.creation-modal .partner-step-pill:not(:last-child)::after {
  background: rgba(100, 116, 139, 0.18);
  content: "";
  display: block;
  height: 2px;
  margin-left: 14px;
  width: 72px;
}

.creation-modal .form-control,
.creation-modal .form-select {
  border-radius: 18px;
  font-weight: 800;
  min-height: 56px;
}

.creation-modal .form-label {
  color: #1e293b;
  font-weight: 900;
}

@media (max-width: 768px) {
  .creation-modal .partner-stepper {
    align-items: stretch;
    display: grid;
  }

  .creation-modal .partner-step-pill::after {
    display: none !important;
  }
}

/* Admin-aligned contractor management polish */
.barbeiros-page,
.unidades-page,
.socios-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 42%, #ffffff 100%);
}

.barbeiros-page .plans-hero,
.unidades-page .plans-hero,
.socios-page .plans-hero {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.barbeiros-page .plans-hero::after,
.unidades-page .plans-hero::after,
.socios-page .plans-hero::after {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 58%);
  content: "";
  height: 220px;
  position: absolute;
  right: -80px;
  top: -90px;
  width: 300px;
}

.barbeiros-page .plans-hero > *,
.unidades-page .plans-hero > *,
.socios-page .plans-hero > * {
  position: relative;
  z-index: 1;
}

.barbeiros-page .plans-hero h1,
.unidades-page .plans-hero h1,
.socios-page .plans-hero h1 {
  color: #020617;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.barbeiros-page .plans-hero p,
.unidades-page .plans-hero p,
.socios-page .plans-hero p {
  color: #64748b;
  font-size: 1.02rem;
  font-weight: 800;
  max-width: 760px;
}

.barbeiros-page .section-tag,
.unidades-page .section-tag,
.socios-page .section-tag,
.creation-modal .section-tag {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #2563eb;
  font-weight: 950;
  padding: 8px 13px;
}

.barbeiros-page .socios-kpi,
.unidades-page .socios-kpi,
.socios-page .socios-kpi,
.socios-list-panel,
.matrix-control-panel,
.socios-chart {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.075);
}

.barbeiros-page .socios-kpi,
.unidades-page .socios-kpi,
.socios-page .socios-kpi {
  border-radius: 26px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.barbeiros-page .socios-kpi::before,
.unidades-page .socios-kpi::before,
.socios-page .socios-kpi::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.12));
  border-radius: 999px;
  content: "";
  height: 44px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
}

.barbeiros-page .socios-kpi:hover,
.unidades-page .socios-kpi:hover,
.socios-page .socios-kpi:hover {
  box-shadow: 0 26px 75px rgba(37, 99, 235, 0.13);
  transform: translateY(-4px);
}

.socios-list-panel,
.matrix-control-panel {
  border-radius: 30px;
}

.socios-table th {
  background: rgba(248, 250, 252, 0.9);
}

.socios-table tbody tr:last-child td {
  border-bottom: 0;
}

.creation-modal .modal-dialog {
  width: min(1132px, calc(100vw - 32px));
}

.creation-modal .modal-content {
  background: #fff;
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.28);
}

.creation-modal-header {
  min-height: 164px;
}

.creation-modal .btn-close {
  background-color: rgba(248, 250, 252, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

.creation-modal .partner-stepper {
  background: transparent;
  border-bottom: 0;
}

.creation-modal .partner-step-pill {
  background: #eef2f7;
  border: 0;
  color: #64748b;
  font-size: 0.95rem;
  padding: 13px 16px;
}

.creation-modal .partner-step-pill.active {
  background: #2563eb;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.creation-modal .partner-step-pill.active span {
  color: #fff;
}

.creation-modal .form-section-title {
  color: #020617;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.creation-modal .form-control,
.creation-modal .form-select {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.creation-modal .form-control:focus,
.creation-modal .form-select:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.creation-modal .modal-footer .btn {
  border-radius: 999px;
  font-weight: 950;
  min-width: 122px;
  padding: 12px 22px;
}

.creation-modal .modal-footer .btn-primary,
.creation-modal .modal-footer .btn-success {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.3);
}

.servicos-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 42%, #ffffff 100%);
}

.servicos-page .plans-hero {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.servicos-page .plans-hero::after {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 58%);
  content: "";
  height: 220px;
  position: absolute;
  right: -80px;
  top: -90px;
  width: 300px;
}

.servicos-page .plans-hero > * {
  position: relative;
  z-index: 1;
}

.servicos-page .section-tag {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #2563eb;
  font-weight: 950;
  padding: 8px 13px;
}

.services-insights-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.service-insight-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.075);
  padding: 24px;
}

.service-insight-card span,
.service-insight-card small {
  color: #64748b;
  display: block;
  font-weight: 850;
}

.service-insight-card strong {
  color: #020617;
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
  margin: 8px 0;
}

.services-table .socios-person span {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .services-insights-grid {
    grid-template-columns: 1fr;
  }

  .servicos-page .plans-hero {
    display: grid;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .services-table {
    min-width: 980px;
  }
}

.client-signup-body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%), linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  color: #0f172a;
}

.client-signup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 48px;
}

.client-signup-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 20px 0 14px;
}

.client-signup-hero p,
.signup-card-header p {
  color: #64748b;
  font-weight: 700;
}

.client-signup-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.client-signup-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12);
}

.client-signup-card {
  padding: 34px;
  border-radius: 34px;
  animation: modalSlideUp 0.45s ease both;
}

.signup-card-header h2 {
  margin: 12px 0 4px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.signup-success {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.signup-success span {
  color: #15803d;
  font-weight: 700;
}

@media (max-width: 900px) {
  .client-signup-shell {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.asaas-status-grid,
.subscription-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.asaas-status-card,
.asaas-form-card,
.subscription-chart-card,
.integration-warning {
  padding: 24px;
  border-radius: 28px;
}

.asaas-status-card span,
.subscription-chart-card h2 {
  color: #64748b;
  font-weight: 900;
}

.asaas-status-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
  font-weight: 950;
  color: #ef4444;
}

.asaas-status-card.asaas-active strong {
  color: #16a34a;
}

.integration-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.92));
}

.integration-warning > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #b45309;
  background: #fef3c7;
  font-size: 1.35rem;
}

.integration-warning strong,
.integration-warning span {
  display: block;
}

.integration-warning span {
  color: #64748b;
  font-weight: 700;
}

.asaas-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.asaas-guide-steps article,
.subscription-service-card {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
}

.asaas-guide-steps strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
}

.subscription-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subscription-service-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.subscription-service-card span {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.subscription-service-card input[type="number"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.asaas-help-list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: #475569;
  font-weight: 800;
}

.subscription-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  font-weight: 900;
}

.subscription-bar-row div {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.subscription-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@media (max-width: 900px) {
  .asaas-status-grid,
  .subscription-analytics-grid,
  .asaas-guide-steps,
  .subscription-service-grid {
    grid-template-columns: 1fr;
  }

  .integration-warning {
    align-items: flex-start;
    flex-direction: column;
  }
}

.asaas-wizard-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
}

.asaas-wizard-side,
.asaas-wizard-card {
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  padding: 24px;
}

.asaas-wizard-progress {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22);
}

.asaas-wizard-progress span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.asaas-wizard-progress small {
  font-weight: 800;
}

.asaas-wizard-side h3,
.asaas-wizard-card h2 {
  margin: 18px 0 8px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.asaas-wizard-side p,
.asaas-wizard-card p,
.asaas-wizard-preview span {
  color: #64748b;
  font-weight: 700;
}

.asaas-mini-checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.asaas-mini-checklist button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
  text-align: left;
}

.asaas-mini-checklist button.active {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
  color: #2563eb;
}

.asaas-mini-checklist button.done i {
  color: #16a34a;
}

.asaas-wizard-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.7rem;
}

.asaas-wizard-input {
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.asaas-wizard-preview {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.asaas-wizard-preview strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
}

@media (max-width: 900px) {
  .asaas-wizard-shell {
    grid-template-columns: 1fr;
  }
}

.asaas-wizard-link-wrap {
  margin: 16px 0;
}

.asaas-wizard-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.subscription-payment-shell {
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
}

.subscription-payment-card {
  max-width: 760px;
  width: 100%;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.payment-summary-grid > div,
.payment-total-box {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
}

.payment-summary-grid span,
.payment-total-box span,
.payment-total-box small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.payment-summary-grid strong,
.payment-total-box strong {
  color: #0f172a;
  font-weight: 950;
}

.payment-total-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.payment-total-line {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-grid label {
  cursor: pointer;
}

.payment-method-grid input {
  display: none;
}

.payment-method-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  color: #64748b;
  background: #fff;
  font-weight: 900;
}

.payment-method-grid input:checked + span {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.payment-blocked-method {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 900;
}

.payment-fee-note {
  margin: 0;
}

@media (max-width: 900px) {
  .subscription-payment-shell,
  .payment-summary-grid,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-modern-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(37, 99, 235, 0.16);
}

.checkout-modern-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 45%), linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.04));
  pointer-events: none;
}

.checkout-modern-card > * {
  position: relative;
  z-index: 1;
}

.checkout-status-ribbon,
.asaas-checkout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #1d4ed8;
  font-weight: 900;
}

.checkout-status-ribbon {
  justify-content: flex-start;
  margin: 18px 0 6px;
}

.checkout-summary-grid > div {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-summary-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
}

.asaas-checkout-box {
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border-color: rgba(34, 197, 94, 0.28);
  color: #065f46;
}

.asaas-checkout-box span,
.asaas-checkout-box small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.asaas-checkout-box strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

@media (max-width: 720px) {
  .checkout-status-ribbon,
  .asaas-checkout-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .asaas-checkout-box .btn {
    width: 100%;
  }
}

.checkout-hero-premium {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.24), transparent 34%),
    linear-gradient(145deg, #0f172a 0%, #1d4ed8 58%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
}

.checkout-hero-premium .section-tag {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.checkout-hero-premium h1,
.checkout-hero-premium p {
  color: #fff;
}

.checkout-benefits span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.checkout-hero-card {
  position: relative;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 58px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.checkout-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #dbeafe);
  color: #1d4ed8;
  font-size: 1.45rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.checkout-hero-card strong,
.checkout-hero-card span {
  display: block;
}

.checkout-hero-card strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.checkout-hero-card span {
  margin-top: 4px;
  color: #dbeafe;
  font-weight: 800;
}

.checkout-mini-steps {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.checkout-mini-steps em {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.checkout-mini-steps em:first-child {
  background: #86efac;
}

.checkout-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.checkout-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  font-weight: 950;
  white-space: nowrap;
}

.checkout-total-premium {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #0f172a, #1e40af);
  box-shadow: 0 26px 56px rgba(37, 99, 235, 0.22);
}

.checkout-total-premium::after {
  content: "";
  position: absolute;
  inset: -45% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.28);
}

.checkout-total-premium > *,
.checkout-total-premium small {
  position: relative;
  z-index: 1;
}

.checkout-total-premium span,
.checkout-total-premium small {
  color: #bfdbfe;
}

.checkout-total-premium strong {
  color: #fff;
}

.checkout-total-premium .payment-total-line {
  border-color: rgba(255, 255, 255, 0.2);
}

.checkout-total-premium .payment-total-line strong {
  font-size: 1.45rem;
}

.checkout-payment-form {
  margin-top: 18px;
}

.checkout-asaas-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #2563eb);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.22);
}

.checkout-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.checkout-method-header small,
.checkout-method-header span {
  color: #64748b;
  font-weight: 800;
}

.checkout-method-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
}

.checkout-method-grid span {
  flex-direction: column;
  min-height: 94px;
  text-align: center;
}

.checkout-method-grid span i {
  font-size: 1.25rem;
}

.checkout-method-grid span small {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 850;
}

.checkout-method-grid input:checked + span {
  border-color: #14b8a6;
  color: #0f766e;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.14);
}

.checkout-local-button {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.22);
}

@media (max-width: 720px) {
  .checkout-card-header,
  .checkout-method-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-secure-badge,
  .checkout-method-header span {
    width: 100%;
    justify-content: center;
  }
}

.checkout-pix-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 26px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.pix-qr-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 24px;
  background: #fff;
  border: 1px dashed #99f6e4;
}

.pix-qr-frame img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.pix-copy-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pix-copy-box span {
  color: #0f766e;
  font-weight: 950;
}

.pix-copy-box textarea {
  min-height: 118px;
  resize: none;
  padding: 14px;
  border: 1px solid #ccfbf1;
  border-radius: 18px;
  color: #0f172a;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .checkout-pix-panel {
    grid-template-columns: 1fr;
  }
}

.checkout-focused-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 34%),
    #f8fafc;
}

.checkout-focused-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.checkout-center-card {
  width: min(100%, 720px);
  padding: 30px;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.16);
}

.checkout-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
}

.checkout-logo-mark i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.checkout-logo-mark span {
  color: #2563eb;
}

.checkout-divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, #dbeafe, transparent);
}

.checkout-section-title span,
.checkout-section-title small {
  display: block;
  text-align: center;
}

.checkout-section-title span {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
}

.checkout-section-title small {
  color: #64748b;
  font-weight: 800;
}

.checkout-cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
}

.checkout-cart-row strong,
.checkout-cart-row small {
  display: block;
}

.checkout-cart-row strong {
  color: #0f172a;
  font-weight: 950;
}

.checkout-cart-row small,
.checkout-cart-row span {
  color: #64748b;
  font-weight: 850;
}

.checkout-cart-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  color: #ef4444;
  background: #fef2f2;
}

.checkout-method-tabs {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .checkout-center-card {
    padding: 20px;
    border-radius: 26px;
  }
}

.appointments-page .content { padding-bottom: 48px; }
.appointments-hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; padding: 24px; border-radius: 28px; }
.appointments-hero h1 { margin: 8px 0; color: #0f172a; font-weight: 950; }
.appointments-hero p { margin: 0; color: #64748b; font-weight: 750; }
.appointments-week-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.appointments-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.appointments-kpis .glass-panel { padding: 18px; border-radius: 22px; }
.appointments-kpis span { display: block; color: #64748b; font-weight: 850; }
.appointments-kpis strong { display: block; color: #0f172a; font-size: 1.5rem; font-weight: 950; }
.appointments-board { padding: 12px; border-radius: 28px; overflow: auto; }
.appointments-grid { display: grid; grid-template-columns: 88px repeat(7, minmax(190px, 1fr)); min-width: 1420px; }
.appointments-time-col, .appointments-day-col { display: grid; grid-template-rows: 64px repeat(48, 36px); }
.appointments-grid-corner, .appointments-day-head, .appointments-hour { display: flex; align-items: center; justify-content: center; color: #64748b; font-weight: 900; background: #f8fafc; border: 1px solid #e2e8f0; }
.appointments-day-head { justify-content: space-between; padding: 0 12px; color: #0f172a; text-transform: capitalize; }
.appointments-day-head button { width: 32px; height: 32px; border: 0; border-radius: 12px; color: #2563eb; background: #dbeafe; }
.appointments-hour { font-size: .82rem; }
.appointments-slot { position: relative; padding: 4px; border: 1px solid #e2e8f0; background: rgba(255,255,255,.72); }
.appointments-slot:hover { background: #eff6ff; }
.appointment-event { display: block; width: 100%; margin-bottom: 4px; padding: 7px; border: 0; border-left: 4px solid #2563eb; border-radius: 14px; text-align: left; background: linear-gradient(135deg, #dbeafe, #fff); box-shadow: 0 10px 24px rgba(37,99,235,.12); }
.appointment-event strong, .appointment-event span, .appointment-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment-event strong { color: #0f172a; font-weight: 950; }
.appointment-event span { color: #1d4ed8; font-size: .78rem; font-weight: 850; }
.appointment-event small { color: #64748b; font-size: .72rem; font-weight: 800; }
.appointment-event.pendente { border-left-color: #f59e0b; background: linear-gradient(135deg, #fef3c7, #fff); }
.appointment-event.concluído { border-left-color: #10b981; background: linear-gradient(135deg, #d1fae5, #fff); }
.appointment-event.cancelado { border-left-color: #ef4444; background: linear-gradient(135deg, #fee2e2, #fff); }
@media (max-width: 992px) { .appointments-hero { align-items: flex-start; flex-direction: column; } .appointments-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 576px) { .appointments-kpis { grid-template-columns: 1fr; } }

.checkout-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.checkout-step-pill { border: 1px solid #dbeafe; border-radius: 18px; padding: 12px; background: #fff; color: #64748b; text-align: left; font-weight: 900; transition: .2s ease; }
.checkout-step-pill small, .checkout-step-pill span { display: block; }
.checkout-step-pill small { color: #2563eb; font-size: .68rem; letter-spacing: .06em; }
.checkout-step-pill span { color: #0f172a; font-size: .9rem; }
.checkout-step-pill.active { border-color: #2563eb; background: linear-gradient(135deg, #eff6ff, #ecfeff); box-shadow: 0 12px 28px rgba(37, 99, 235, .12); transform: translateY(-1px); }
.checkout-step { display: none; animation: checkoutStepIn .22s ease; }
.checkout-step.active { display: block; }
.checkout-step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.checkout-step-actions .btn { min-width: 132px; }
@keyframes checkoutStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 576px) { .checkout-stepper { grid-template-columns: 1fr; } .checkout-step-actions { flex-direction: column-reverse; } .checkout-step-actions .btn { width: 100%; } }
.appointments-slot.selecting { background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(20, 184, 166, .18)); outline: 2px solid rgba(37, 99, 235, .45); outline-offset: -2px; }
.appointments-slot { cursor: crosshair; }
.appointment-event { cursor: pointer; }
.client-insight-mini { display: grid; gap: 6px; margin-bottom: 14px; padding: 14px; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(135deg, #eff6ff, #ffffff); color: #0f172a; font-weight: 850; }
.client-insight-mini span { color: #64748b; font-size: .88rem; }
.client-profile-analytics { display: grid; gap: 18px; }
.profile-analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-analytics-grid div, .client-history-list article { padding: 14px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; }
.profile-analytics-grid span, .client-history-list span { display: block; color: #64748b; font-weight: 800; }
.profile-analytics-grid strong, .client-history-list strong { display: block; color: #0f172a; font-weight: 950; }
.client-history-list { display: grid; gap: 10px; }
.client-history-list h3 { margin: 0; color: #0f172a; font-weight: 950; }
@media (max-width: 768px) { .profile-analytics-grid { grid-template-columns: 1fr; } }
.checkout-center-card { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.checkout-center-card > .checkout-section-title, .checkout-center-card > .checkout-cart-row, .checkout-center-card > .checkout-total-premium { grid-column: 2; }
.checkout-center-card > #paymentForm { grid-column: 1; grid-row: 2 / span 6; }
.barber-mobile-body { min-height: 100vh; margin: 0; background: #f8fafc; font-family: Inter, system-ui, sans-serif; }
.barber-login-card, .barber-app { max-width: 430px; min-height: 100vh; margin: 0 auto; padding: 28px 18px 96px; background: #fff; }
.barber-login-card h1, .barber-app h1 { color: #0f172a; font-weight: 950; }
.barber-bottom-nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 430px); padding: 10px; background: #fff; box-shadow: 0 -12px 30px rgba(15,23,42,.12); }
.barber-bottom-nav button { border: 0; border-radius: 16px; padding: 10px; background: transparent; color: #64748b; font-weight: 900; }
.barber-bottom-nav button.active { color: #fff; background: linear-gradient(135deg,#2563eb,#14b8a6); }
.barber-mobile-card { display: grid; gap: 4px; margin: 12px 0; padding: 16px; border-radius: 20px; background: #eff6ff; color: #0f172a; }
.finance-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.finance-kpis span { color: #64748b; font-weight: 850; } .finance-kpis strong { display:block; font-size:1.45rem; font-weight:950; }
.finance-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; } .finance-chart { height:260px; display:flex; align-items:end; gap:24px; padding:18px; background:#f8fafc; border-radius:24px; }
.finance-chart div { width:90px; border-radius:16px 16px 0 0; background:linear-gradient(180deg,#14b8a6,#2563eb); } .finance-chart .out { background:linear-gradient(180deg,#f97316,#ef4444); }
.finance-row { display:flex; justify-content:space-between; gap:12px; padding:12px; border-bottom:1px solid #e2e8f0; } .finance-row span { display:block; color:#64748b; font-weight:800; } .finance-row.in b{color:#059669}.finance-row.out b{color:#dc2626}
@media(max-width:900px){.checkout-center-card{display:block}.finance-kpis,.finance-grid{grid-template-columns:1fr}}
.barber-pro-body { background: radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 30%), #eef2ff; }
.barber-pro-app { background: linear-gradient(180deg, #f8fafc, #ffffff); }
.barber-pro-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 22px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #0f172a, #2563eb 58%, #14b8a6); box-shadow: 0 26px 60px rgba(37,99,235,.24); animation: barberFloatIn .35s ease; }
.barber-pro-hero span, .barber-pro-hero p { margin: 0; color: rgba(255,255,255,.78); font-weight: 850; } .barber-pro-hero h1 { margin: 4px 0; color: #fff; font-size: 1.65rem; font-weight: 950; }
.barber-pro-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 22px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); font-size: 1.6rem; } .barber-pro-avatar.large { width: 84px; height: 84px; margin: 0 auto 10px; color: #fff; background: linear-gradient(135deg,#2563eb,#14b8a6); }
.barber-view-animated { animation: barberFadeUp .24s ease; } .barber-section-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; color:#0f172a; font-weight:950; } .barber-section-title span { display:flex; gap:8px; align-items:center; }
.barber-date-picker { width:100%; margin-bottom:14px; padding:14px; border:1px solid #dbeafe; border-radius:18px; color:#0f172a; font-weight:900; background:#fff; }
.barber-next-card { display:grid; gap:8px; margin-bottom:14px; } .barber-next-card > span { color:#2563eb; font-weight:950; }
.barber-agenda-card { display:grid; gap:7px; margin:10px 0; padding:16px; border:1px solid #e2e8f0; border-radius:24px; background:#fff; box-shadow:0 14px 36px rgba(15,23,42,.08); animation: barberFadeUp .24s ease; } .barber-agenda-card.next { border-color:#14b8a6; background:linear-gradient(135deg,#ecfeff,#fff); }
.barber-agenda-card strong { color:#0f172a; font-size:1.05rem; font-weight:950; } .barber-agenda-card span, .barber-agenda-card small { display:flex; gap:7px; color:#64748b; font-weight:850; }
.barber-time-pill { justify-self:start; display:flex; gap:7px; align-items:center; padding:7px 10px; border-radius:999px; color:#1d4ed8; background:#dbeafe; font-weight:950; }
.barber-metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; } .barber-metric-grid article { padding:14px; border-radius:22px; background:#fff; text-align:center; box-shadow:0 12px 30px rgba(15,23,42,.08); } .barber-metric-grid i { color:#2563eb; } .barber-metric-grid strong { display:block; color:#0f172a; font-size:1.35rem; font-weight:950; } .barber-metric-grid span { color:#64748b; font-size:.8rem; font-weight:850; }
.barber-profile-card { padding:22px; border-radius:30px; background:#fff; text-align:center; box-shadow:0 18px 40px rgba(15,23,42,.1); } .barber-profile-card h2 { margin:0; color:#0f172a; font-weight:950; } .barber-profile-card button { border:0; border-radius:16px; padding:12px 18px; color:#fff; background:#ef4444; font-weight:900; }
.barber-empty { padding:24px; border:1px dashed #bfdbfe; border-radius:24px; color:#64748b; text-align:center; font-weight:900; background:#eff6ff; }
@keyframes barberFadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } } @keyframes barberFloatIn { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.finance-grid-smart { grid-template-columns: 1.2fr .8fr; align-items: start; }
.finance-charts-panel h2 { margin-bottom: 14px; }
.finance-smart-charts { display: grid; gap: 16px; }
.finance-chart-card { padding: 16px; border: 1px solid #e2e8f0; border-radius: 24px; background: linear-gradient(180deg, #fff, #f8fafc); }
.finance-chart-card h3 { margin: 0 0 12px; color: #0f172a; font-weight: 950; }
.finance-svg { width: 100%; height: 220px; overflow: visible; background: repeating-linear-gradient(0deg, transparent, transparent 42px, rgba(148,163,184,.16) 43px); border-radius: 18px; }
.finance-svg path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 12px rgba(15,23,42,.12)); }
.finance-svg .line-in { stroke: #14b8a6; } .finance-svg .line-out { stroke: #ef4444; } .finance-svg .dot-in { fill: #14b8a6; } .finance-svg .dot-out { fill: #ef4444; }
.finance-donut { display: grid; place-items: center; width: 210px; height: 210px; margin: 8px auto 14px; border-radius: 50%; background: conic-gradient(#14b8a6 0 var(--in), #ef4444 var(--in) 360deg); box-shadow: inset 0 0 0 28px #fff, 0 18px 40px rgba(15,23,42,.12); }
.finance-donut div { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: #fff; text-align: center; } .finance-donut strong { color: #0f172a; font-size: 1.8rem; font-weight: 950; } .finance-donut span { color: #64748b; font-weight: 850; }
.finance-legend { display: grid; gap: 8px; } .finance-legend span { display: flex; align-items: center; gap: 8px; color: #475569; font-weight: 850; } .finance-legend i { width: 12px; height: 12px; border-radius: 50%; } .finance-legend .in { background: #14b8a6; } .finance-legend .out { background: #ef4444; }
.finance-kpis .bi { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #2563eb, #14b8a6); }
@media(max-width:900px){.finance-grid-smart{grid-template-columns:1fr}.finance-donut{width:180px;height:180px}}

.barber-mobile-body .barber-pro-app { padding-bottom: 128px; }
.barber-mobile-body .barber-tabbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 20px), 410px);
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  padding: 12px 16px 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  isolation: isolate;
}
.barber-mobile-body .barber-tabbar button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border-radius: 16px;
  color: #94a3b8;
  background: transparent;
  font-size: .7rem;
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
}
.barber-mobile-body .barber-tabbar button i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 10px;
  color: #fff;
  background: #cbd5e1;
  font-size: .9rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.barber-mobile-body .barber-tabbar button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
  letter-spacing: -.02em;
}
.barber-mobile-body .barber-tabbar button.active { color: #25635d; background: transparent; transform: translateY(-1px); }
.barber-mobile-body .barber-tabbar button.active i { background: linear-gradient(135deg, #9fd4cb, #2f766f); box-shadow: 0 10px 20px rgba(47, 118, 111, .24); transform: translateY(-2px); }
.barber-mobile-body .barber-ios-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 126px;
  height: 5px;
  border-radius: 999px;
  background: #111827;
  transform: translateX(-50%);
}
@media (max-width: 380px) {
  .barber-mobile-body .barber-tabbar { width: calc(100% - 12px); padding-inline: 10px; }
  .barber-mobile-body .barber-tabbar button span { font-size: .64rem; }
}
/* Leitura mais confortável em todo o painel da barbearia. */
html { font-size: 17px; }
@media (min-width: 1440px) { html { font-size: 17.5px; } }

/* Base fluida para telas pequenas, tablets e monitores ultrawide. */
html {
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

:where(img, video, canvas) {
  max-width: 100%;
  height: auto;
}

:where(.admin-layout, .dashboard-main, .content, .dashboard-content, .main-content, .mgmt-main, .mgmt-page) {
  min-width: 0;
  max-width: 100%;
}

:where(.table-responsive, .table-wrap, .mgmt-table-wrap, .appointments-board, .finance-table-wrap) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

:where(button, .btn, a) {
  touch-action: manipulation;
}

.modal-dialog {
  max-width: min(var(--bs-modal-width, 720px), calc(100vw - 28px));
}

@media (max-width: 720px) {
  :where(.modal-header, .modal-body, .modal-footer) {
    padding-right: 18px;
    padding-left: 18px;
  }

  :where(.toolbar, .page-actions, .hero-actions, .filter-actions) {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  :where(input, select, textarea, .form-control, .form-select) {
    font-size: 16px !important;
  }

  .modal-dialog {
    max-width: calc(100vw - 14px);
    margin: 7px auto;
  }
}
