.brand-logo {
  height: 48px;
  width: 48px;
  display: block;
  object-fit: contain;
}

.brand-logo-lg {
  height: 64px;
  width: 64px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand-mark {
  height: 36px;
  width: 36px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand-lockup-home .brand-mark {
  height: 42px;
  width: 42px;
}

.brand-lockup-home .brand-wordmark {
  font-size: 1.125rem;
}

.btn-primary {
  width: 100%;
  min-height: var(--thumb-min);
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.btn-primary.btn-green {
  background: var(--accent-green);
}

.btn-primary.btn-sm {
  width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  padding: 0.5rem;
}

.btn-pill {
  font-size: 0.875rem;
  background: var(--text-main);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: none;
  min-height: 44px;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.btn-pill.btn-pill-brand {
  background: var(--primary);
  box-shadow: var(--shadow-brand);
}

.btn-pill.btn-pill-brand:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  min-height: var(--thumb-min);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-progress {
  position: relative;
  overflow: hidden;
  background: white;
  color: #166534;
  border: 2px solid #bbf7d0;
  width: 100%;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  min-height: var(--thumb-min);
}

.btn-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #bbf7d0;
  z-index: 0;
  animation: progressFill 10s linear forwards;
}

.btn-progress span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.input-group {
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-body);
  min-height: var(--thumb-min);
}

.input-field:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 2px var(--primary-muted);
}

.input-field.input-error {
  border-color: var(--accent-red);
}

.checkout-form .input-field,
.checkout-form .btn-primary {
  max-width: var(--layout-read-form);
}

.checkout-form .btn-primary {
  width: 100%;
}

.checkout-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 1.5rem var(--layout-gutter) 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e293b;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: var(--bg-body);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.search-bar i,
.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
}

.search-bar input::placeholder {
  color: #94a3b8;
}

.search-bar:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 2px var(--primary-muted);
}

.category-scroll {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding: 0 var(--layout-gutter) 1rem;
  scrollbar-width: none;
}

.page-content > .category-scroll:first-child {
  margin-top: 1.5rem;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem;
  min-width: 72px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.category-chip--pill {
  flex-direction: row;
  min-width: auto;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.category-chip.active,
.category-chip--pill.active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.35);
}

.category-chip--pill:not(.active) {
  color: #475569;
  background: white;
}

.category-chip i {
  font-size: 1.25rem;
}

.pro-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background: white;
  align-items: center;
  min-height: 80px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pro-card:hover {
  background: #f8fafc;
}

.pro-card img,
.pro-card-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

.pro-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  border: 1px solid rgba(219, 234, 254, 0.8);
}

.pro-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.pro-card-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pro-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
}

.pro-card-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.pro-card-info {
  flex: 1;
  min-width: 0;
}

.pro-card-meta {
  text-align: right;
  font-size: 0.75rem;
}

.rating-badge {
  background: var(--bg-body);
  color: #334155;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-strong);
}

.service-card {
  padding: 1rem 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  min-height: 72px;
  box-shadow: var(--shadow-card);
}

.service-card-vitrine {
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.service-card-body {
  flex: 1;
  min-width: 0;
}

.service-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.service-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: none;
  margin-top: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.service-price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
}

.selected-service-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-radius: var(--radius-card-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.selected-service-card__glow {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--primary-muted);
  opacity: 0.55;
  pointer-events: none;
}

.selected-service-card__label {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.selected-service-card__name {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.selected-service-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.selected-service-card__price {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-main);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.selected-service-card__dot {
  color: #94a3b8;
}

.selected-service-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.selected-service-card__duration i {
  font-size: 0.875rem;
}

.selected-service-card__context {
  position: relative;
  z-index: 1;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(219, 234, 254, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.selected-service-card__context strong {
  color: var(--text-main);
  font-weight: 600;
}

.page-inset--booking {
  padding-bottom: 0.5rem;
}

.calendar-container {
  padding: 0 var(--layout-gutter);
  overflow-y: auto;
  flex: 1;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.calendar-month {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
}

.calendar-month-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: capitalize;
  color: var(--text-main);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-body);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.calendar-weekdays > div {
  padding: 0.625rem 0;
  border-right: 1px solid var(--border-strong);
}

.calendar-weekdays > div:last-child {
  border-right: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.calendar-grid > div {
  background: white;
  min-height: 2.75rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  min-height: 2.75rem;
  color: var(--text-main);
}

.calendar-day.empty {
  cursor: default;
  background: #fcfdff;
}

.calendar-day:not(.empty):not(.disabled):hover {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary-muted);
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day.disabled {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
  text-decoration: line-through;
  font-weight: 500;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0 var(--layout-gutter);
}

.time-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.875rem 0;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  min-height: var(--thumb-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-card:hover,
.time-card.selected {
  border-color: var(--primary);
  color: var(--primary);
}

.summary-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-body);
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin: 1rem var(--layout-gutter);
  align-items: center;
  width: calc(100% - (var(--layout-gutter) * 2));
  max-width: 100%;
  box-sizing: border-box;
}

.summary-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.canvas-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

#timerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#qrCanvas {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.timer-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.status-success {
  background: var(--accent-green);
}

.dash-tabs {
  display: flex;
  padding: 1rem var(--layout-gutter);
  gap: 0.5rem;
  background: var(--bg-app);
  position: sticky;
  top: 60px;
  z-index: 5;
}

.dash-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  border-radius: 99px;
  min-height: var(--thumb-min);
}

.dash-tab.active {
  background: var(--primary);
  color: white;
}

.appt-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.appt-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.status-upcoming {
  background: #dbeafe;
  color: #1e40af;
}

.status-past {
  background: var(--bg-body);
  color: var(--text-muted);
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.appt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.btn-appt-action {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  border: 1px solid;
  background: white;
  font-family: inherit;
  min-height: var(--thumb-min);
}

.btn-appt-no-show {
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-appt-no-show:active {
  background: var(--bg-body);
}

.btn-appt-refund {
  color: var(--accent-red);
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-appt-refund:active {
  background: #fee2e2;
}

.btn-appt-cancel {
  color: var(--accent-red);
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-appt-cancel:active {
  background: #fee2e2;
}

.btn-appt-link {
  margin-top: 0;
  text-decoration: none;
}

.finance-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: var(--layout-gutter);
}

.finance-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.finance-card label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.finance-card .value {
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-desc {
  font-size: 0.875rem;
  font-weight: 600;
}

.tx-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.tx-amount {
  font-weight: 700;
  font-size: 0.875rem;
}

.tx-amount.credit {
  color: var(--accent-green);
}

.tx-amount.block {
  color: var(--accent-red);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transform: translateY(12px);
  transition: transform 0.2s;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  text-align: center;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.modal-actions .btn-outline,
.modal-actions .btn-primary {
  flex: 1;
  width: auto;
  min-height: 48px;
  font-size: 0.875rem;
}

.wizard-steps {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.wizard-dot {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 99px;
}

.wizard-dot.active {
  background: var(--primary);
}

.wizard-dot.done {
  background: var(--accent-green);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkout-terms {
  margin-bottom: 0.25rem;
}

.checkout-terms-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.checkout-form .checkbox-row {
  padding: 0.5rem 0;
}

.checkout-payment-fields {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-strong);
}

.checkout-payment-fields.is-locked {
  opacity: 0.55;
}

.checkout-payment-fields.is-locked label {
  color: var(--text-muted);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.contact-pills {
  display: flex;
  gap: 0.5rem;
  padding: var(--layout-gutter);
  flex-wrap: wrap;
}

.contact-pill {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: white;
}

.contact-pill i {
  color: var(--text-main);
}

/* Cabeçalho da área logada */
.account-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: var(--layout-gutter);
  background: white;
}

.account-header--bordered {
  border-bottom: 1px solid var(--border-color);
}

.account-header-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.account-header-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.account-header-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

a.account-header-meta {
  text-decoration: none;
}

a.account-header-meta:hover {
  text-decoration: underline;
}

/* Perfil cliente (v5) */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: var(--layout-gutter);
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.settings-list {
  padding: var(--layout-gutter);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 1rem 0 0.25rem 0.5rem;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  width: 100%;
  min-height: var(--thumb-min);
  text-align: left;
}

.settings-row:active {
  transform: scale(0.98);
  background: var(--bg-body);
}

.settings-row.danger {
  color: var(--accent-red);
  border-color: #fee2e2;
}

.settings-icon-bg {
  width: 32px;
  height: 32px;
  background: var(--bg-body);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.settings-icon-bg.danger {
  background: #fef2f2;
  color: var(--accent-red);
}

.settings-row-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

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

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
  background-color: var(--accent-green);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}

.notif-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.notif-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.notif-row:last-child {
  border-bottom: none;
}

.field-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.danger-icon {
  width: 60px;
  height: 60px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-card {
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .time-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .calendar-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
  }

  .calendar-month {
    margin-bottom: 0;
  }

  .finance-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .time-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Handoff Blazor — overlay push (CSS pronto; JS futuro) */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-overlay.is-hidden {
  display: none;
}

.push-card {
  width: min(92vw, 380px);
  flex: 0 0 auto;
  align-self: center;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transform: translateY(-120px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
}

.push-card.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.push-card-brand {
  width: 1.375rem;
  height: 1.375rem;
  background: var(--primary);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.push-card-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.push-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.push-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.push-card-app {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.push-card-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.push-card-body {
  padding-left: 1.875rem;
  padding-right: 0.25rem;
}

.push-card-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-left: 1.875rem;
  padding-right: 0.125rem;
}

.push-card-text {
  flex: 1;
  min-width: 0;
}

.push-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 0.125rem;
}

.push-card-message {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
  transition: opacity 0.2s ease;
}

.push-card-message.is-fading {
  opacity: 0;
}

.push-card-body--with-spinner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-left: 2rem;
  padding-right: 0.5rem;
}

.push-card-body--with-spinner .push-card-message {
  flex: 1;
  min-width: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.push-card-body--with-spinner .push-card-message.is-fading {
  opacity: 0;
}

.mac-spinner {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.mac-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #334155 0deg 24deg,
    rgba(51, 65, 85, 0.75) 24deg 48deg,
    rgba(51, 65, 85, 0.55) 48deg 72deg,
    rgba(51, 65, 85, 0.38) 72deg 96deg,
    rgba(51, 65, 85, 0.24) 96deg 120deg,
    rgba(51, 65, 85, 0.14) 120deg 144deg,
    rgba(51, 65, 85, 0.08) 144deg 168deg,
    rgba(51, 65, 85, 0.04) 168deg 192deg,
    rgba(51, 65, 85, 0.02) 192deg 216deg,
    rgba(51, 65, 85, 0.01) 216deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: mac-spin 0.72s steps(12) infinite;
}

@keyframes mac-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-spinner::before {
    animation: none;
    opacity: 0.65;
  }

  .push-card-message {
    transition: none;
  }

  .push-card-body--with-spinner .push-card-message {
    transition: none;
  }

  .push-card {
    transition: none;
  }

  .loading-overlay {
    transition: none;
  }
}
