html.company-route [data-route-surface="public"],
html.company-route [data-route-surface="admin-login"],
html.company-route [data-route-surface="admin-panel"],
html.company-route [data-route-surface="global-login"],
html.company-route [data-route-surface="global-panel"],
html.company-route [data-route-surface="store-invite"],
html.public-route [data-route-surface="company-home"],
html.admin-route [data-route-surface="company-home"],
html.global-route [data-route-surface="company-home"],
html.invite-route [data-route-surface="company-home"] {
  display: none !important;
}

html.company-route [data-route-surface="company-home"] {
  display: block !important;
}

html.global-route [data-route-surface="public"],
html.global-route [data-route-surface="admin-login"],
html.global-route [data-route-surface="admin-panel"],
html.global-route [data-route-surface="store-invite"] {
  display: none !important;
}

html.global-route [data-route-surface="global-login"]:not(.is-hidden) {
  display: grid !important;
}

html.global-route [data-route-surface="global-login"].is-hidden {
  display: none !important;
}

html.global-route [data-route-surface="global-panel"].is-authenticated {
  display: grid !important;
}

html.global-route [data-route-surface="global-panel"]:not(.is-authenticated) {
  display: none !important;
}

html.admin-route [data-route-surface="global-login"],
html.admin-route [data-route-surface="global-panel"],
html.admin-route [data-route-surface="store-invite"],
html.public-route [data-route-surface="global-login"],
html.public-route [data-route-surface="global-panel"],
html.public-route [data-route-surface="store-invite"] {
  display: none !important;
}

html.invite-route [data-route-surface="public"],
html.invite-route [data-route-surface="admin-login"],
html.invite-route [data-route-surface="admin-panel"],
html.invite-route [data-route-surface="global-login"],
html.invite-route [data-route-surface="global-panel"] {
  display: none !important;
}

html.invite-route [data-route-surface="store-invite"]:not(.is-hidden) {
  display: grid !important;
}
html.admin-route [data-route-surface="public"] {
  display: none !important;
}

html.admin-route [data-route-surface="admin-login"]:not(.is-hidden) {
  display: grid !important;
}

html.admin-route [data-route-surface="admin-login"].is-hidden {
  display: none !important;
}

html.admin-route [data-route-surface="admin-panel"].is-authenticated {
  display: grid !important;
}

html.admin-route [data-route-surface="admin-panel"]:not(.is-authenticated) {
  display: none !important;
}

html.public-route [data-route-surface="admin-login"],
html.public-route [data-route-surface="admin-panel"] {
  display: none !important;
}

html.public-route [data-route-surface="public"] {
  display: block !important;
}
:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e0e8;
  --brand: #0f8b8d;
  --brand-dark: #0a686a;
  --sidebar: #111827;
  --accent: #f2b84b;
  --success: #159463;
  --warning: #bd7600;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }

.is-hidden { display: none !important; }

.auth-screen {
  display: grid;
  min-height: 100vh;
  width: 100%;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f3f6f8 0%, #e5f2ef 52%, #fff7e5 100%);
}

.auth-card {
  display: grid;
  align-self: center;
  width: min(460px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 20px;
  background: var(--sidebar);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.auth-brand { color: var(--ink); }

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small,
.card-title,
.card-meta,
.admin-list strong,
.admin-list span { display: block; }
.brand small,
.account-card span,
.account-card small { color: #bac4d3; }

.nav-menu { display: grid; gap: 8px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 8px;
  color: #cbd5e1;
  padding: 12px 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active { background: rgba(255,255,255,0.1); color: #fff; }

.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: currentColor;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
  background: rgba(255,255,255,0.16);
}

.account-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
}

.account-card strong,
.account-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content { padding: 30px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 { margin: 0; }
p { line-height: 1.55; }

h1 { max-width: 820px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

.role-tabs,
.auth-actions,
.hero-actions,
.topbar-actions,
.section-header,
.panel-header,
.modal-header,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.role-tabs button {
  border: 0;
  background: #fff;
  color: var(--muted);
  padding: 12px;
  font-weight: 800;
}

.role-tabs button.active { background: #e6f5f5; color: var(--brand-dark); }

.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-button { border: 0; background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(15,139,141,0.22); }
.primary-button:hover { background: var(--brand-dark); }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: var(--brand); color: var(--brand-dark); }
.danger-button { border: 1px solid #f3b3ac; background: #fff; color: var(--danger); }
.primary-button,
.secondary-button,
.danger-button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.danger-button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}
.primary-button.is-loading,
.secondary-button.is-loading,
.danger-button.is-loading,
.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}
input:focus, select:focus { border-color: var(--brand); outline: 3px solid rgba(15,139,141,0.16); }

.auth-message { margin: 0; color: var(--muted); font-size: 0.92rem; }
.auth-message.error { color: var(--danger); }
.auth-helper {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 8px 0 0;
}
.auth-message.success { color: var(--success); }

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.app-toast strong {
  font-size: 0.82rem;
}
.app-toast span {
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
}
.app-toast.success {
  background: linear-gradient(135deg, #159463, #0f766e);
}
.app-toast.error {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.app-toast.confirm {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #172033, #253049);
}
.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.toast-button {
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}
.toast-cancel-button {
  background: rgba(255, 255, 255, 0.08);
}
.toast-cancel-button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.toast-danger-button {
  border-color: rgba(248, 113, 113, 0.58);
  background: #dc2626;
}
.toast-danger-button:hover {
  background: #b91c1c;
}

.store-hero {
  position: relative;
  min-height: 390px;
  border-radius: 8px;
  overflow: hidden;
  background: #172033;
  color: #fff;
}

.store-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17,24,39,0.88), rgba(17,24,39,0.42)), url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1600&q=80');
  background-position: center;
  background-size: cover;
}

.store-hero-content {
  position: relative;
  display: grid;
  align-content: center;
  max-width: 720px;
  min-height: 390px;
  padding: 34px;
}

.store-hero .eyebrow { color: #c6f2ee; }
.store-hero #storeHeroTitle { color: #fff; }
.store-hero p { max-width: 620px; margin: 14px 0 0; color: #eef6f8; }
.hero-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 24px; }

.section-block { margin-top: 24px; }
.section-header { margin-bottom: 14px; align-items: flex-end; }
.section-action {
  width: auto;
  min-width: 132px;
}

.carousel-actions {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.carousel-actions span {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 999px;
  background: rgba(7, 27, 75, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
}

.carousel-actions button {
  position: absolute;
  top: calc(50% - 2px);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 27, 75, 0.66);
  color: #fff;
  box-shadow: 0 14px 34px rgba(7, 27, 75, 0.24);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.carousel-actions button[data-carousel-direction="-1"] {
  left: 16px;
}

.carousel-actions button[data-carousel-direction="1"] {
  right: 16px;
}

.carousel-actions button:hover {
  background: rgba(67, 88, 255, 0.86);
  transform: translateY(-50%) scale(1.04);
}

.carousel-actions button:disabled {
  cursor: default;
  opacity: 0.34;
}

.carousel-actions button:disabled:hover {
  background: rgba(7, 27, 75, 0.66);
  transform: translateY(-50%);
}

.status-pill {
  border-radius: 999px;
  background: #e6f5f5;
  color: var(--brand-dark);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.unit-grid,
.how-steps,
.featured-service-grid,
.service-grid,
.team-photo-grid,
.gallery-grid,
.cashier-grid,
.metrics-grid,
.admin-grid,
.client-panel-grid {
  display: grid;
  gap: 16px;
}

.unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-steps,
.featured-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cashier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0; }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-panel-grid {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  align-items: start;
}

.client-portal {
  max-width: 860px;
  margin: 36px auto 0;
}

.client-portal .section-header,
.client-portal .panel-header {
  justify-content: center;
  text-align: center;
}

.client-portal .section-header {
  align-items: center;
  margin-right: auto;
  margin-left: auto;
}

.client-portal .wide-panel {
  grid-column: auto;
}

.client-portal .panel {
  width: 100%;
}

.client-portal .panel.is-hidden {
  display: none !important;
}

.admin-unit-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8ffff;
}

.admin-unit-context div {
  display: grid;
  gap: 4px;
}

.admin-unit-context strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-unit-context small,
.unit-service-fieldset small {
  color: var(--muted);
}

.admin-unit-context label {
  width: min(320px, 100%);
}

.cashier-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.walkin-service-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.walkin-service-form button {
  align-self: end;
}

.report-filters {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.report-filters label {
  width: min(260px, 100%);
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.unit-service-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.unit-service-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

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

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  font-size: 0.88rem;
}

.checkbox-pill input {
  width: 16px;
  min-height: 16px;
}

.notification-optin {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.notification-optin .checkbox-pill {
  max-width: 420px;
}

.client-welcome {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #e6f5f5, #fff);
  box-shadow: var(--shadow);
}
.client-welcome span,
.client-welcome small {
  color: var(--muted);
}
.client-welcome strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
}

#clientSchedulePanel,
#clientAppointmentsPanel {
  grid-column: 1 / -1;
  max-width: 760px;
  justify-self: center;
}

.client-auth-card .admin-config-form {
  min-height: 0;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 4px 0;
  text-align: center;
}

.link-button:hover {
  text-decoration: underline;
}

.panel,
.metric-card,
.unit-card,
.how-step-card,
.featured-service-card,
.service-card,
.team-photo-card,
.gallery-card,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.metric-card,
.unit-card,
.how-step-card,
.featured-service-card,
.service-card { padding: 20px; }

.unit-card,
.how-step-card,
.featured-service-card,
.service-card { display: grid; gap: 14px; align-content: start; }

.how-step-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e6f5f5;
  color: var(--brand-dark);
  font-weight: 900;
}

.how-step-card small,
.featured-service-card small {
  color: var(--muted);
  line-height: 1.45;
}

.featured-service-card {
  border-color: rgba(15, 139, 141, 0.18);
  background: linear-gradient(180deg, #fff, #f8ffff);
}

.featured-service-card > span {
  width: fit-content;
  border-radius: 999px;
  background: #e6f5f5;
  color: var(--brand-dark);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 900;
}
.unit-card {
  overflow: hidden;
  padding: 0;
  min-height: 0;
}
.unit-card.has-bg-image {
  align-content: start;
}
.unit-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.unit-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.schedule-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}
.schedule-steps span,
.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-steps span {
  min-height: 42px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}
.schedule-steps strong,
.step-title span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
}
.schedule-step-block {
  display: grid;
  gap: 10px;
}
.step-title {
  margin-top: 8px;
  color: var(--ink);
}
.client-unit-picker,
.client-service-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.client-unit-card {
  min-height: 104px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(17, 24, 39, 0.82));
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.client-unit-card span,
.client-unit-card small {
  color: rgba(255,255,255,0.82);
}
.client-unit-card.selected {
  border-color: #fff;
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 14px 30px rgba(15, 139, 141, 0.3);
  transform: translateY(-1px);
}
.client-service-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.client-service-card span,
.client-service-card small {
  color: var(--muted);
}
.client-service-card strong {
  font-size: 1rem;
}
.client-service-card em {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}
.client-service-card.selected {
  border-color: var(--brand);
  background: #e6f5f5;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}
.client-service-card.selected::after {
  content: "Selecionado";
  width: fit-content;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}
.selected-services-summary {
  margin: -4px 0 14px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 8px;
  background: #f8ffff;
  color: var(--brand-dark);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}
.card-meta,
.metric-card span,
.metric-card small,
.admin-list span,
.selected-summary { color: var(--muted); }
.metric-card strong { display: block; margin: 10px 0 4px; font-size: 1.65rem; }
.unit-card .distance { color: var(--success); font-weight: 800; }

.service-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-price strong { font-size: 1.25rem; color: var(--brand-dark); }

.team-photo-card,
.gallery-card { overflow: hidden; }
.team-photo-card img,
.gallery-card img { width: 100%; height: 210px; object-fit: cover; }
.team-photo-card div,
.gallery-card div { display: grid; gap: 4px; padding: 14px; }

.profile-carousel {
  display: grid;
}

.profile-carousel-shell {
  position: relative;
  min-height: 360px;
}

.profile-carousel .team-photo-card,
.profile-carousel .gallery-card {
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  height: 360px;
  min-height: 260px;
  overflow: hidden;
}

.profile-carousel .team-photo-card img,
.profile-carousel .gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.profile-carousel .team-photo-card div,
.profile-carousel .gallery-card div {
  align-content: center;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: 28px;
}

.profile-carousel .team-photo-card strong,
.profile-carousel .gallery-card strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.appointment-list { display: grid; gap: 12px; }
.appointment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.appointment-card.cancelado { border-left-color: var(--danger); opacity: 0.72; }
.appointment-card span { display: block; color: var(--muted); }
.appointment-card .status-pill { color: var(--brand-dark); }
.appointment-card small { color: var(--muted); }

.topbar { align-items: flex-start; margin-bottom: 8px; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.user-chip {
  display: grid;
  gap: 2px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}
.user-chip span,
.user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip span { font-weight: 800; }
.user-chip small { color: var(--muted); font-size: 0.74rem; }

.wide-panel {
  grid-column: 1 / -1;
}

.global-account-list article {
  align-items: flex-start;
}

code {
  border-radius: 6px;
  background: #eef4f4;
  color: var(--brand-dark);
  padding: 2px 5px;
}
.admin-config-form {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.copy-invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

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

.admin-list-actions .secondary-button,
.admin-list-actions .danger-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.danger-button {
  min-height: 38px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.danger-button:hover {
  background: #fee2e2;
}

.staff-remove-button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1;
}

.staff-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.is-page-hidden { display: none !important; }

.public-store.client-panel-mode .store-hero,
.public-store.client-panel-mode #unidades,
.public-store.client-panel-mode #equipe,
.public-store.client-panel-mode #galeria,
.public-store.client-panel-mode #comoFunciona,
.public-store.client-panel-mode #servicos {
  display: none !important;
}

.public-store:not(.client-panel-mode) #cliente {
  display: none !important;
}

.public-store.client-panel-mode #cliente {
  display: block !important;
}

.admin-list { display: grid; gap: 12px; }
.admin-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}


.branding-preview { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; margin-bottom: 14px; }
.preview-removable {
  position: relative;
  min-width: 0;
}
.logo-preview,
.banner-preview {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
}
.logo-preview { width: 96px; height: 96px; }
.banner-preview { min-height: 96px; background-size: cover; background-position: center; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.remove-image-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 999px;
  background: #fff5f5;
  color: var(--danger);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.remove-image-button:hover { background: #fee2e2; }

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

.schedule-modal { width: min(620px, calc(100% - 32px)); border: 0; background: transparent; padding: 0; }
.schedule-modal::backdrop { background: rgba(16,24,40,0.5); }
.modal-card { display: grid; gap: 16px; padding: 22px; }
.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
.selected-summary { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; }

@media (max-width: 1180px) {
  .unit-grid,
  .how-steps,
  .featured-service-grid,
  .service-grid,
  .team-photo-grid,
  .gallery-grid,
  .cashier-grid,
  .metrics-grid,
  .admin-grid,
  .client-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .client-panel-grid {
    grid-template-columns: minmax(0, 520px);
  }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; }
  .nav-menu, .account-card { display: none; }
  .main-content { padding: 18px 16px; }
}

@media (max-width: 720px) {
  .role-tabs,
  .auth-actions,
  .hero-actions,
  .topbar-actions,
  .section-header,
  .panel-header,
  .modal-header,
  .topbar { align-items: stretch; flex-direction: column; }
  .admin-unit-context { align-items: stretch; flex-direction: column; }
  .unit-grid,
  .how-steps,
  .featured-service-grid,
  .service-grid,
  .team-photo-grid,
  .gallery-grid,
  .cashier-grid,
  .metrics-grid,
  .admin-grid,
  .client-panel-grid,
  .client-unit-picker,
  .client-service-picker,
  .unit-service-options,
  .compact-form,
  .schedule-steps,
  .form-grid,
  .branding-preview { grid-template-columns: 1fr; }
  .store-hero-content { padding: 24px; }
  .primary-button,
  .secondary-button,
  .danger-button,
  .user-chip { width: 100%; }
  .appointment-card,
  .admin-list article,
  .profile-carousel .team-photo-card,
  .profile-carousel .gallery-card { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .profile-carousel-shell { min-height: 420px; }
  .profile-carousel .team-photo-card,
  .profile-carousel .gallery-card { height: 420px; }
  .profile-carousel .team-photo-card img,
  .profile-carousel .gallery-card img { height: 260px; min-height: 260px; }
  .profile-carousel .team-photo-card div,
  .profile-carousel .gallery-card div { min-height: 160px; padding: 22px; }
  .copy-invite-box { grid-template-columns: 1fr; }
  .walkin-service-form { grid-template-columns: 1fr; }
}

.public-store {
  min-height: 100vh;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 28px;
  backdrop-filter: blur(12px);
}

.public-brand {
  color: var(--ink);
}

.public-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-menu a,
.public-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  border-radius: 8px;
  color: var(--ink);
  padding: 9px 11px;
  text-decoration: none;
  font-weight: 800;
}

.public-menu a:hover,
.public-menu button:hover,
.public-menu button.active {
  background: #e6f5f5;
  color: var(--brand-dark);
}

.public-menu .admin-link {
  color: var(--muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 0 4px;
}

.social-links-mobile {
  display: none;
}

.social-links-desktop {
  margin-right: 12px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  padding: 0;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.social-links a[aria-label="Facebook"] svg,
.social-links a[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}

.social-links a:hover {
  border-color: var(--brand);
  background: #e6f5f5;
  color: var(--brand);
  transform: translateY(-1px);
}

.social-config {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.social-config legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.social-toggle {
  width: fit-content;
}

.public-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.footer-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 30px;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(223, 230, 247, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(26, 45, 109, 0.08);
  backdrop-filter: blur(10px);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #64708d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-credit img {
  width: 112px;
  height: 34px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
}

.footer-credit:hover {
  color: #4358ff;
}

.footer-rights {
  display: block;
  margin-top: 12px;
  color: #64708d;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.back-store-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
}

.success-modal {
  width: min(460px, calc(100% - 32px));
  border: 0;
  background: transparent;
  padding: 0;
}

.success-modal::backdrop {
  background: rgba(16,24,40,0.5);
}

.mobile-menu-toggle {
  display: none;
}

/* Public store visual refresh aligned with the admin panel palette. */
html.public-route {
  --bg: #f4f7ff;
  --panel: #ffffff;
  --ink: #071b4b;
  --muted: #64708d;
  --line: #dfe6f7;
  --brand: #4358ff;
  --brand-dark: #071b4b;
  --shadow: 0 24px 70px rgba(26, 45, 109, 0.13);
}

html.public-route body {
  background:
    radial-gradient(circle at 85% 2%, rgba(91, 112, 255, 0.28), transparent 30%),
    radial-gradient(circle at 12% 8%, rgba(238, 242, 255, 0.92), transparent 26%),
    linear-gradient(145deg, #f8faff 0%, #eef3ff 58%, #e8edff 100%);
}

html.public-route .public-nav {
  border-bottom: 1px solid rgba(223, 230, 247, 0.94);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(35, 52, 124, 0.08);
}

html.public-route .brand-mark,
html.public-route .primary-button {
  background: linear-gradient(135deg, #405cff, #6d3cff);
  box-shadow: 0 14px 30px rgba(67, 88, 255, 0.24);
}

html.public-route .public-brand strong,
html.public-route h1,
html.public-route h2,
html.public-route h3,
html.public-route .card-title {
  color: #071b4b;
}

html.public-route .eyebrow {
  color: #4358ff;
  font-weight: 900;
  letter-spacing: 0.12em;
}

html.public-route .public-menu a,
html.public-route .public-menu button {
  color: #071b4b;
}

html.public-route .public-menu a:hover,
html.public-route .public-menu button:hover,
html.public-route .public-menu button.active {
  background: #eef2ff;
  color: #4358ff;
}

html.public-route .public-menu .panel-link {
  border: 1px solid #dfe6f7;
  background: #f7f9ff;
  color: #071b4b;
}

html.public-route .public-menu .panel-link:hover {
  border-color: #4358ff;
  color: #4358ff;
}

html.public-route .social-links a {
  border-color: #dfe6f7;
  background: #f7f9ff;
  color: #071b4b;
}

html.public-route .social-links a:hover {
  border-color: #4358ff;
  background: #eef2ff;
  color: #4358ff;
}

html.public-route .store-hero {
  box-shadow: var(--shadow);
}

html.public-route .store-hero-bg {
  background-image:
    linear-gradient(90deg, rgba(17,24,39,0.88), rgba(17,24,39,0.42)),
    url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1600&q=80');
}

html.public-route .store-hero #storeHeroTitle {
  color: #fff;
}

html.public-route .unit-card,
html.public-route .how-step-card,
html.public-route .featured-service-card,
html.public-route .service-card,
html.public-route .team-photo-card,
html.public-route .gallery-card,
html.public-route .panel,
html.public-route .client-welcome,
html.public-route .appointment-card {
  border-color: rgba(223, 230, 247, 0.94);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

html.public-route .featured-service-card,
html.public-route .client-welcome {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

html.public-route .how-step-card span,
html.public-route .featured-service-card > span,
html.public-route .status-pill {
  background: #eef2ff;
  color: #4358ff;
}

html.public-route .service-price strong,
html.public-route .link-button,
html.public-route .back-store-link {
  color: #071b4b;
}

@media (max-width: 720px) {
.public-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
  }

  .public-brand {
    min-width: 0;
  }

  .public-brand > span:last-child {
    min-width: 0;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 1201;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.16);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    grid-area: 1 / 1;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.28s ease, opacity 0.2s ease, background 0.28s ease;
  }

  .mobile-menu-toggle span:nth-child(1) { transform: translateY(-7px); }
  .mobile-menu-toggle span:nth-child(2) { transform: translateY(0); }
  .mobile-menu-toggle span:nth-child(3) { transform: translateY(7px); }

  .mobile-menu-toggle.is-open {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 16px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
  }

  .mobile-menu-toggle.is-open span {
    background: #fff;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg); }

  .public-menu,
  .sidebar .admin-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 92px) 24px calc(env(safe-area-inset-bottom, 0px) + 32px);
    background: #05232f;
    background-image: linear-gradient(160deg, #007a7a, #05232f);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  .sidebar .admin-menu {
    background: #111827;
    background-image: linear-gradient(160deg, #111827, #007a7a);
  }

  .public-menu.is-open,
  .sidebar .admin-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .public-menu a,
  .public-menu button,
  .sidebar .admin-menu .nav-link {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 16px 18px;
    text-align: center;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease, background 0.22s ease;
  }

  .sidebar .admin-menu .nav-link {
    justify-content: flex-start;
    text-align: left;
  }

  .public-menu.is-open a,
  .public-menu.is-open button,
  .sidebar .admin-menu.is-open .nav-link {
    transform: translateY(0);
    opacity: 1;
  }

  .public-menu a:hover,
  .public-menu button:hover,
  .sidebar .admin-menu .nav-link:hover,
  .sidebar .admin-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .sidebar {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
  }

  .admin-mobile-toggle {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  html.public-route .public-menu {
    background: #0a1e4f;
    background-image: linear-gradient(160deg, #0a1e4f, #2a35a7);
  }

  html.public-route .public-menu a,
  html.public-route .public-menu button {
    color: #ffffff;
  }

  html.public-route .public-menu .panel-link {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .social-links-desktop {
    display: none !important;
  }

  .social-links-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-self: end;
    gap: 5px;
    margin-left: 8px;
    overflow: visible;
  }

  .social-links-mobile a {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  }

  .social-links-mobile svg {
    width: 16px;
    height: 16px;
  }

  .social-links-mobile + .mobile-menu-toggle {
    margin-left: 8px;
    justify-self: end;
  }

  .public-footer {
    justify-content: flex-end;
    min-height: 86px;
    padding: 24px 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-align: center;
  }

  .footer-credit {
    justify-content: flex-end;
    gap: 7px;
    font-size: 0.66rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .footer-credit img {
    width: 104px;
    height: 32px;
  }

  .footer-wrap {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-rights {
    margin: 12px 0 22px;
    font-size: 0.73rem;
  }
}
.gallery-card img.image-error,
.team-photo-card img.image-error {
  background: linear-gradient(135deg, #e6f5f5, #fff7e5);
  min-height: 160px;
}

.gallery-card img.image-error::after,
.team-photo-card img.image-error::after {
  content: "Imagem indisponivel";
}

/* Admin visual refresh inspired by the ListFacil hero artwork. */
html.admin-route {
  --bg: #f4f7ff;
  --panel: #ffffff;
  --ink: #071b4b;
  --muted: #64708d;
  --line: #dfe6f7;
  --brand: #4358ff;
  --brand-dark: #071b4b;
  --sidebar: #061943;
  --shadow: 0 24px 70px rgba(26, 45, 109, 0.13);
}

html.admin-route body {
  background:
    radial-gradient(circle at 85% 2%, rgba(91, 112, 255, 0.28), transparent 30%),
    radial-gradient(circle at 12% 8%, rgba(238, 242, 255, 0.92), transparent 26%),
    linear-gradient(145deg, #f8faff 0%, #eef3ff 58%, #e8edff 100%);
}

html.admin-route .auth-screen {
  background:
    radial-gradient(circle at 84% 4%, rgba(91, 112, 255, 0.32), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(67, 88, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #f8faff 0%, #eef3ff 62%, #e8edff 100%);
}

html.admin-route .auth-card {
  border-color: rgba(223, 230, 247, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 30px 90px rgba(26, 45, 109, 0.18);
  backdrop-filter: blur(14px);
}

html.admin-route .auth-card .brand-mark {
  background: linear-gradient(135deg, #405cff, #6d3cff);
  box-shadow: 0 14px 30px rgba(67, 88, 255, 0.24);
}

html.admin-route .auth-card .brand strong {
  color: #071b4b;
}

html.admin-route .auth-card .brand small {
  color: #8b97b5;
}

html.admin-route .auth-card .link-button,
html.admin-route .auth-card .back-store-link {
  color: #071b4b;
}

html.admin-route .app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 0;
  background:
    radial-gradient(circle at 94% 86%, rgba(67, 88, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(238, 243, 255, 0.8));
}

html.admin-route .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(10, 30, 79, 0.98), rgba(2, 16, 48, 0.99)),
    var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 70px rgba(7, 27, 75, 0.16);
}

html.admin-route .sidebar .brand {
  min-height: 64px;
  padding: 10px 10px 18px;
}

html.admin-route .sidebar .brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #415dff, #6b3cff);
  box-shadow: 0 14px 32px rgba(67, 88, 255, 0.34);
}

html.admin-route .sidebar .brand strong {
  color: #ffffff;
  font-size: 1.04rem;
}

html.admin-route .sidebar .brand small,
html.admin-route .account-card span,
html.admin-route .account-card small {
  color: #9eabd0;
}

html.admin-route .nav-menu {
  gap: 10px;
}

html.admin-route .nav-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d6dcf0;
  font-weight: 800;
  padding: 12px 14px;
}

html.admin-route .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html.admin-route .nav-link.active {
  background: linear-gradient(135deg, #405cff, #6d3cff);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(67, 88, 255, 0.33);
}

html.admin-route .account-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.admin-route .main-content {
  padding: 28px;
}

html.admin-route .topbar,
html.admin-route .admin-unit-context,
html.admin-route .panel,
html.admin-route .metric-card,
html.admin-route .admin-list article {
  border: 1px solid rgba(223, 230, 247, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

html.admin-route .topbar {
  position: relative;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 18px;
}

html.admin-route .topbar::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 220px;
  border-radius: 999px;
  background: rgba(67, 88, 255, 0.12);
  pointer-events: none;
}

html.admin-route .topbar h1 {
  color: #071b4b;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

html.admin-route .eyebrow {
  color: #4358ff;
  font-weight: 900;
  letter-spacing: 0.12em;
}

html.admin-route .admin-unit-context {
  padding: 18px 20px;
  margin-bottom: 20px;
}

html.admin-route .metrics-grid {
  gap: 16px;
  margin-bottom: 20px;
}

html.admin-route .metric-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

html.admin-route .metric-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(67, 88, 255, 0.12), rgba(109, 60, 255, 0.18));
}

html.admin-route .metric-card strong {
  color: #071b4b;
  font-size: 2.1rem;
}

html.admin-route .metric-card span,
html.admin-route .metric-card small {
  color: #64708d;
}

html.admin-route .panel {
  padding: 24px;
}

html.admin-route .panel-header {
  border-bottom: 1px solid #edf1fb;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

html.admin-route input,
html.admin-route select,
html.admin-route textarea {
  border-color: #dfe6f7;
  border-radius: 8px;
  background: #f9fbff;
}

html.admin-route input:focus,
html.admin-route select:focus,
html.admin-route textarea:focus {
  border-color: #4358ff;
  box-shadow: 0 0 0 4px rgba(67, 88, 255, 0.12);
  outline: none;
}

html.admin-route .primary-button {
  border: 0;
  background: linear-gradient(135deg, #405cff, #6d3cff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(67, 88, 255, 0.24);
}

html.admin-route .primary-button:hover {
  background: linear-gradient(135deg, #334bdf, #5b30dd);
}

html.admin-route .secondary-button {
  border-color: #dfe6f7;
  background: #f7f9ff;
  color: #071b4b;
  font-weight: 800;
}

html.admin-route .secondary-button:hover {
  border-color: #4358ff;
  color: #4358ff;
}

html.admin-route .user-chip {
  border: 1px solid #dfe6f7;
  background: #f7f9ff;
  color: #071b4b;
}

html.admin-route .admin-list article {
  box-shadow: 0 14px 36px rgba(26, 45, 109, 0.09);
}

@media (max-width: 900px) {
  html.admin-route .app-shell {
    display: block;
    min-height: 100vh;
  }

  html.admin-route .sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    width: 100%;
    min-height: 72px;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 18px 48px rgba(7, 27, 75, 0.18);
  }

  html.admin-route .sidebar .brand {
    min-height: 0;
    min-width: 0;
    padding: 0;
  }

  html.admin-route .sidebar .brand small {
    display: none;
  }

  html.admin-route .account-card {
    display: none;
  }

  html.admin-route .admin-mobile-toggle {
    display: grid;
    margin-left: auto;
  }

  html.admin-route .sidebar .admin-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 92px) 24px calc(env(safe-area-inset-bottom, 0px) + 32px);
    background: #061a45;
    background-image: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  html.admin-route .sidebar .admin-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  html.admin-route .sidebar .admin-menu .nav-link {
    width: 100%;
    border: 1px solid #5c6c93;
    background: #27385d;
    box-shadow: none;
    color: #fff;
    padding: 16px 18px;
    text-align: center;
  }

  html.admin-route .main-content {
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
  }

  html.admin-route .topbar,
  html.admin-route .admin-unit-context,
  html.admin-route .panel,
  html.admin-route .metric-card {
    box-shadow: 0 16px 42px rgba(26, 45, 109, 0.1);
  }
}

@media (max-width: 560px) {
  html.admin-route .main-content {
    padding: 14px 12px;
  }

  html.admin-route .topbar,
  html.admin-route .admin-unit-context,
  html.admin-route .panel {
    padding: 18px;
  }

  html.admin-route .topbar h1 {
    font-size: 2rem;
  }

  html.admin-route .sidebar .brand strong {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
