:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(10, 18, 33, 0.74);
  --panel: rgba(11, 20, 38, 0.82);
  --panel-strong: rgba(16, 26, 46, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #a5b0c2;
  --muted-2: #7d8799;
  --amber: #f1b85b;
  --amber-2: #e2a43d;
  --mint: #4dd4b4;
  --blue: #5ea3ff;
  --danger: #ff6b6b;
  --success: #4dd4b4;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden],
.auth-screen[hidden],
.app-shell[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.14), transparent 28%),
    radial-gradient(circle at 14% 15%, rgba(94, 163, 255, 0.14), transparent 18%),
    radial-gradient(circle at 86% 15%, rgba(241, 184, 91, 0.12), transparent 18%),
    radial-gradient(circle at 70% 84%, rgba(77, 212, 180, 0.12), transparent 26%),
    linear-gradient(180deg, #020305 0%, #050915 38%, #070b16 100%);
  color: var(--text);
}

.offline-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 9px 16px;
  text-align: center;
  color: #241b0b;
  background: #f1b85b;
  font-size: 0.82rem;
  font-weight: 700;
}

.push-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 11px 14px;
  color: var(--text-muted);
  background: rgba(94, 163, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.push-preferences strong { color: var(--text); margin-right: 4px; }
.push-preferences label { display: inline-flex; align-items: center; gap: 7px; }

.health-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.health-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.health-card span { display: block; color: var(--muted); font-size: 0.78rem; }
.health-card strong { display: block; margin-top: 7px; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }
.health-card.healthy strong, .health-backup.healthy { color: var(--success); }
.health-card.warning strong, .health-backup.warning { color: var(--amber); }
.health-backup { font-size: 0.82rem; font-weight: 700; text-align: right; }
.global-search-wrap { position: relative; min-width: min(32vw, 260px); }
.global-search { min-height: 40px; padding-block: 9px; }
.global-search-results { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(360px, 86vw); padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-strong); box-shadow: var(--shadow); }
.global-result { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; width: 100%; padding: 10px; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.global-result:hover { background: rgba(94, 163, 255, 0.12); }
.global-result span { grid-column: 1 / -1; color: var(--amber); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; }
.global-result small { color: var(--muted); }
.global-search-empty { padding: 14px 10px; color: var(--muted); font-size: 0.86rem; }
.client-history { margin-top: 18px; padding: 18px; border: 1px solid rgba(94, 163, 255, 0.2); border-radius: 20px; background: linear-gradient(135deg, rgba(94, 163, 255, 0.08), rgba(255, 255, 255, 0.025)); }
.client-history-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.client-history-summary span, .client-history-summary strong { padding: 8px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 0.82rem; }
.client-history-summary strong { color: var(--amber); }
.client-history-list { display: grid; gap: 8px; }
.client-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.client-history-row small { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 560px) { .global-search-wrap { width: 100%; min-width: 0; order: -1; } .global-search-results { left: 0; right: auto; width: 100%; } .client-history-row { grid-template-columns: 1fr auto; } .client-history-row > strong { grid-column: 1; } }
@media (max-width: 860px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .health-actions { justify-content: flex-start; } }
@media (max-width: 560px) { .health-grid { grid-template-columns: 1fr; } .health-backup { text-align: left; } }

button,
.btn,
.tiny-btn,
select,
input[type="checkbox"],
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(94, 163, 255, 0.45);
  outline-offset: 2px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.96), rgba(8, 14, 28, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-copy {
  padding: 12px 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.brand-logo-square {
  width: clamp(180px, 24vw, 280px);
  max-width: 100%;
}

.brand-logo-horizontal {
  width: min(100%, 760px);
  max-width: 100%;
}

.brand-logo-session {
  width: min(100%, 340px);
}

.brand-logo-small {
  width: 72px;
  flex: 0 0 auto;
}

.auth-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-copy .brand-logo-horizontal {
  width: min(100%, 420px);
}

.auth-hints {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.auth-hints div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-hints strong {
  display: block;
  margin-bottom: 6px;
}

.auth-hints span {
  color: var(--muted);
}

.auth-form {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  align-content: center;
  gap: 14px;
}

.auth-button {
  width: 100%;
  justify-content: center;
}

.auth-error {
  min-height: 1.2em;
  margin: 0;
  color: #ffb6b6;
  font-size: 0.94rem;
}

.session-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.88), rgba(8, 14, 28, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.session-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.session-bar h2 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.sidebar-collapsed .dashboard-layout {
  grid-template-columns: 68px minmax(0, 1fr);
}

.dashboard-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 20px;
  padding: 10px 6px 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(5, 8, 15, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.sidebar-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(94, 163, 255, 0.8), rgba(241, 184, 91, 0.72), transparent);
  opacity: 0.95;
  pointer-events: none;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 1px 2px 10px 4px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 800;
}

.sidebar-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.sidebar-nav {
  display: grid;
  gap: 1px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.sidebar-quick-links {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px 8px 12px;
  margin: 8px 0 10px;
  border: 1px solid rgba(94, 163, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar-section-label-prominent {
  display: block;
  margin: 0 0 2px;
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  padding-bottom: 2px;
}

.sidebar-quick-item {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border-color: rgba(94, 163, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(94, 163, 255, 0.03));
}

.sidebar-quick-item .sidebar-icon {
  color: var(--amber);
}

.sidebar-quick-item:hover,
.sidebar-quick-item.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.sidebar-item:hover {
  color: var(--text);
  transform: translateX(1px);
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-item.active {
  color: var(--text);
  border-color: rgba(94, 163, 255, 0.22);
  background: linear-gradient(90deg, rgba(94, 163, 255, 0.15), rgba(94, 163, 255, 0.04));
  box-shadow:
    inset 2px 0 0 rgba(94, 163, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sidebar-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1;
}

.sidebar-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-item.active .sidebar-icon {
  color: #eaf3ff;
}

.sidebar-item span:last-child {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: end;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.sidebar-collapsed .sidebar {
  padding-inline: 3px;
}

body.sidebar-collapsed .sidebar-item span:last-child {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

body.sidebar-collapsed .sidebar-toggle {
  justify-self: center;
  margin-left: 0;
}

body.sidebar-collapsed .sidebar-nav {
  gap: 3px;
}

body.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding-inline: 3px;
}

body.sidebar-collapsed .sidebar-item .sidebar-icon {
  margin: 0;
}

.public-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  position: relative;
  z-index: 1;
}

.public-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 22px;
  margin-bottom: 20px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(8, 14, 28, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.public-header-copy {
  display: grid;
  justify-items: start;
  gap: 9px;
  max-width: 940px;
}

.public-header-copy .brand-logo-horizontal {
  width: min(100%, 900px);
}

.public-header h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.public-header-actions,
.public-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-self: end;
  justify-self: end;
  padding-bottom: 8px;
}

.screen {
  display: grid;
  gap: 20px;
}

.screen-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.screen-hero h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

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

.bar-slab-list,
.finance-list {
  display: grid;
  gap: 12px;
}

.bar-slab {
  padding: 14px 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.bar-slab-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.bar-slab-head strong {
  display: block;
}

.bar-slab-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 163, 255, 0.85), rgba(241, 184, 91, 0.9));
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.finance-row-main strong,
.finance-row-side strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.finance-row-main span,
.finance-row-main small,
.finance-row-side span {
  color: var(--muted);
}

.finance-row-main small {
  display: block;
  margin-top: 4px;
}

.finance-row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.finance-summary-grid,
.messages-stats {
  margin-bottom: 20px;
}

.finance-period-control {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-profile-grid {
  align-items: stretch;
}

.access-current-card {
  background:
    linear-gradient(135deg, rgba(94, 163, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.03);
}

.access-current-user {
  display: grid;
  gap: 5px;
  margin: 18px 0 14px;
}

.access-current-user strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.access-current-user span,
.access-role span {
  color: var(--muted);
  line-height: 1.55;
}

.access-role-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.access-role {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.access-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.finance-period-control .input {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

.quick-grid {
  display: grid;
  gap: 12px;
}

.quick-card {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.quick-card strong {
  font-size: 1rem;
}

.quick-card span {
  color: var(--muted);
  line-height: 1.5;
}

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

.report-secondary-grid {
  margin-top: 20px;
}

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

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.status-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.status-row span,
.status-row small {
  color: var(--muted);
}

.status-row small {
  display: block;
  margin-top: 4px;
}

.message-highlight-list {
  display: grid;
  gap: 12px;
}

.message-compact {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.message-compact strong {
  font-size: 0.98rem;
}

.message-compact span,
.message-compact small {
  color: var(--muted);
}

.channel-chip {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.channel-chip strong {
  font-family: "Space Grotesk", sans-serif;
}

.channel-chip span,
.channel-chip small {
  color: var(--muted);
}

.channel-chip small {
  font-size: 1rem;
  color: var(--amber);
  font-weight: 800;
}

.brand-stage {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 22px 13px;
  margin-bottom: 12px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 31, 0.98), rgba(6, 10, 18, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.brand-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(94, 163, 255, 0.12) 18%, transparent 36%),
    linear-gradient(270deg, transparent 0%, rgba(241, 184, 91, 0.1) 18%, transparent 36%);
  opacity: 0.6;
  pointer-events: none;
}

.brand-stage > * {
  position: relative;
  z-index: 1;
}

.system-stage {
  margin-bottom: 12px;
}

.brand-logo-stage {
  width: min(100%, 720px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.46));
}

.system-stage h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.system-stage .hero-text {
  max-width: 46ch;
  margin-top: 0;
  color: var(--muted);
}

.feature-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.feature-tile {
  --tile-accent: var(--blue);
  --tile-glow: rgba(94, 163, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 20px 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, var(--tile-glow), transparent 58%),
    linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(7, 11, 20, 0.96));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--tile-accent), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.tile-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  line-height: 1;
  color: var(--tile-accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.tile-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tile-accent);
}

.feature-tile h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-tile p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.feature-blue {
  --tile-accent: #5ea3ff;
  --tile-glow: rgba(94, 163, 255, 0.22);
}

.feature-green {
  --tile-accent: #4dd4b4;
  --tile-glow: rgba(77, 212, 180, 0.2);
}

.feature-orange {
  --tile-accent: #f1b85b;
  --tile-glow: rgba(241, 184, 91, 0.22);
}

.feature-cyan {
  --tile-accent: #93d7ff;
  --tile-glow: rgba(147, 215, 255, 0.18);
}

.public-wall {
  margin-bottom: 22px;
}

.system-wall {
  margin-bottom: 18px;
}

.public-wall .feature-tile {
  min-height: 206px;
}

.public-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.public-panel {
  min-height: 100%;
}

.public-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.public-step {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.public-step strong {
  display: block;
  margin-bottom: 4px;
}

.public-step span {
  color: var(--muted);
}

.public-form {
  margin-top: 4px;
}

.public-success {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(77, 212, 180, 0.18);
  background: rgba(77, 212, 180, 0.08);
}

.public-success h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
}

.public-success p {
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
  pointer-events: none;
  opacity: 0.28;
}

button,
input,
select,
textarea {
  font: inherit;
}

select {
  color: var(--text);
  color-scheme: dark;
}

select option,
select optgroup {
  color: var(--text);
  background: #101a2e;
}

select option:checked,
select option:hover {
  color: #07111f;
  background: var(--blue);
}

button {
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(120deg, rgba(241, 184, 91, 0.08), rgba(94, 163, 255, 0.04));
}

.app-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
  position: relative;
  z-index: 1;
}

body.windowed-view .app-shell {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.windowed-view .brand-stage,
body.windowed-view .session-bar {
  grid-column: 1 / -1;
}

body.windowed-view #dashboardView,
body.windowed-view .dashboard-layout {
  display: contents;
}

body.windowed-view .sidebar {
  grid-column: 1;
  position: sticky;
  top: 20px;
}

body.windowed-view .app-view {
  grid-column: 2;
}

body.windowed-app-view .dashboard-main {
  display: none;
}

body.windowed-dashboard-panel .dashboard-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body.windowed-dashboard-panel .dashboard-main > * {
  display: none;
}

body.windowed-dashboard-panel .dashboard-main .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body.windowed-dashboard-panel .dashboard-main .content-grid > * {
  display: none;
}

body.windowed-dashboard-panel[data-screen="clientes"] .dashboard-main .content-grid,
body.windowed-dashboard-panel[data-screen="agendamentos"] .dashboard-main .content-grid {
  display: grid;
}

body.windowed-dashboard-panel[data-screen="clientes"] #clientsPanel,
body.windowed-dashboard-panel[data-screen="agendamentos"] #bookingPanel,
body.windowed-dashboard-panel[data-screen="profissionais"] #barberPanel,
body.windowed-dashboard-panel[data-screen="notificacoes"] #notificationsPanel {
  display: block;
}

body.dashboard-home #notificationsPanel,
body.dashboard-home #barberPanel,
body.dashboard-home .dashboard-main > .content-grid {
  display: none;
}

body.windowed-view .brand-stage {
  margin-bottom: 8px;
}

body.windowed-view .session-bar {
  margin-bottom: 14px;
}

.hero,
.stats-grid,
.content-grid,
.wide-panel {
  margin-bottom: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(94, 163, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.94), rgba(8, 14, 28, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-command h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-command .hero-text {
  margin-top: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-copy,
.hero-panel,
.stat-card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.94), rgba(8, 14, 28, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: 34px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(241, 184, 91, 0.22), transparent 70%);
  filter: blur(4px);
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--amber);
  font-weight: 800;
}

.hero-copy h1,
.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions,
.actions-row,
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.btn,
.text-btn,
.input {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1d1407;
  box-shadow: 0 14px 32px rgba(241, 184, 91, 0.24);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.1);
}

.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-metric {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-metric strong,
.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.hero-metric span,
.stat-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.dashboard-status-grid {
  margin-top: -8px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
}

.stat-card-blue::before {
  background: var(--blue);
}

.stat-card-green::before {
  background: var(--success);
}

.stat-card-orange::before {
  background: var(--amber);
}

.stat-card-cyan::before {
  background: var(--mint);
}

.stat-card span {
  color: var(--muted-2);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  margin: 8px 0 8px;
}

.stat-card b {
  color: var(--text);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-timeline,
.dashboard-side-panel {
  min-width: 0;
}

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

.dashboard-list.compact {
  margin-bottom: 12px;
}

.dashboard-appointment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-appointment.compact {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 11px 12px;
}

.dashboard-appointment strong,
.dashboard-appointment span {
  display: block;
}

.dashboard-appointment strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-appointment span:not(.badge) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-time {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(94, 163, 255, 0.22);
  background: rgba(94, 163, 255, 0.09);
  color: #d7e8ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
}

.dashboard-note {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(77, 212, 180, 0.18);
  background: linear-gradient(135deg, rgba(77, 212, 180, 0.12), rgba(94, 163, 255, 0.06));
}

.dashboard-note span {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.dashboard-note strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.dashboard-note p {
  margin: 0;
  color: var(--muted);
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

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

.security-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.master-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
  z-index: 1;
}

.master-login {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
  margin-top: min(12vh, 96px);
}

.master-login h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.master-app {
  display: grid;
  gap: 18px;
}

.master-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.field-help {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted, #a9b8c8);
  font-size: 0.78rem;
  line-height: 1.45;
}

.master-ops {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(94, 163, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 40%, rgba(241, 184, 91, 0.14), transparent 28%),
    rgba(9, 18, 34, 0.82);
}

.master-ops h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.master-ops p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.publish-track {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(94, 163, 255, 0.15);
  border-radius: 999px;
  background: rgba(3, 8, 16, 0.44);
}

.publish-track span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #dce9ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
}

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

.tenant-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(140deg, rgba(94, 163, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tenant-card.active {
  border-color: rgba(77, 212, 180, 0.16);
}

.tenant-card.trial {
  border-color: rgba(241, 184, 91, 0.18);
}

.tenant-card.suspended {
  border-color: rgba(255, 107, 107, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 107, 107, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.028);
}

.tenant-logo-box {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(94, 163, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(94, 163, 255, 0.12), transparent 62%),
    rgba(3, 8, 16, 0.44);
}

.tenant-logo-preview {
  width: 100%;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
}

.tenant-card-body {
  min-width: 0;
}

.tenant-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tenant-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.tenant-status-badge.trial {
  border-color: rgba(241, 184, 91, 0.28);
  color: #ffe0a3;
  background: rgba(241, 184, 91, 0.1);
}

.tenant-status-badge.active {
  border-color: rgba(77, 212, 180, 0.26);
  color: #aef4e4;
  background: rgba(77, 212, 180, 0.1);
}

.tenant-status-badge.suspended {
  border-color: rgba(255, 107, 107, 0.3);
  color: #ffd1d1;
  background: rgba(255, 107, 107, 0.1);
}

.tenant-card-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 13px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tiny-btn.highlight {
  border-color: rgba(241, 184, 91, 0.36);
  background: linear-gradient(135deg, rgba(241, 184, 91, 0.2), rgba(94, 163, 255, 0.1));
  color: #ffe0a3;
}

.tenant-card strong,
.tenant-card span,
.tenant-card small {
  display: block;
}

.tenant-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.tenant-card span,
.tenant-card small {
  margin-top: 4px;
  color: var(--muted);
}

.tenant-card small {
  word-break: break-all;
}

.tenant-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.tenant-host-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(94, 163, 255, 0.18);
  background: rgba(94, 163, 255, 0.08);
  color: #d9ebff;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tenant-host-chip.muted {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.tenant-database {
  overflow-wrap: anywhere;
}

.backup-link {
  display: inline-block;
  margin-top: 5px;
  color: #a7d2ff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.backup-link:hover {
  color: #d8ebff;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(94, 163, 255, 0.1), rgba(77, 212, 180, 0.04)),
    rgba(7, 16, 32, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.backup-row + .backup-row {
  margin-top: 10px;
}

.backup-row strong {
  display: block;
  color: #f4f8ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.backup-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tenant-card-actions.compact {
  grid-column: auto;
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  justify-content: flex-end;
}

.color-input {
  min-height: 50px;
  padding: 6px;
}

.file-input {
  padding: 11px;
}

.master-next {
  margin-top: 2px;
}

.panel-lead {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.publish-copy {
  display: grid;
  justify-items: end;
  gap: 7px;
}

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

.publish-stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(140deg, rgba(94, 163, 255, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.publish-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publish-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.9rem;
}

.publish-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(94, 163, 255, 0.14);
  background: rgba(3, 8, 16, 0.42);
}

.publish-step-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #08111e;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--blue));
  box-shadow: 0 12px 24px rgba(94, 163, 255, 0.18);
}

.publish-step strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.publish-step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dns-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dns-row {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.dns-row span {
  color: #f6fbff;
  font-weight: 800;
}

.dns-row small {
  color: var(--muted);
}

.publish-command-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  color: #f6fbff;
}

.publish-command-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.master-command {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(94, 163, 255, 0.16);
  background: rgba(3, 8, 16, 0.6);
  color: #d7e8ff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
}

.master-command-block {
  margin: 12px 0 0;
  max-height: 420px;
  white-space: pre;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.notification-panel {
  margin-bottom: 20px;
}

.barber-panel {
  margin-bottom: 20px;
}

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

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

.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  border-color: rgba(241, 184, 91, 0.25);
  background: rgba(241, 184, 91, 0.08);
}

.notification-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.notification-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.notification-copy small {
  color: var(--muted-2);
}

.notification-actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.barber-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.barber-form {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  align-self: start;
}

.barber-success {
  margin: 0;
  min-height: 1.2em;
  color: #aef4e4;
  font-size: 0.94rem;
}

.barber-list-wrap {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

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

.checkbox-grid,
.schedule-grid {
  display: grid;
  gap: 10px;
}

.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.checkbox-chip,
.schedule-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: #dfe7f5;
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-editor > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.schedule-row {
  display: grid;
  grid-template-columns: 92px 1fr 1fr auto;
}

.schedule-row input[type="time"] {
  min-height: 38px;
  padding: 7px 9px;
}

.block-form {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(94, 163, 255, 0.12);
  background: rgba(7, 16, 32, 0.55);
}

.barber-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.barber-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.barber-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.barber-card small {
  display: block;
  color: var(--muted-2);
  margin-top: 2px;
}

.panel,
.wide-panel {
  border-radius: 28px;
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 1.55rem;
}

.search-wrap {
  min-width: min(100%, 320px);
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(77, 212, 180, 0.2);
  color: #aef4e4;
  background: rgba(77, 212, 180, 0.08);
  font-size: 0.9rem;
  white-space: nowrap;
}

.form-success a {
  color: #a7d2ff;
  font-weight: 900;
}

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

.service-card {
  display: grid;
  gap: 18px;
}

.service-card .panel-header {
  margin-bottom: 0;
}

.service-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card-meta strong {
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.service-card-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.checkbox-row span {
  margin: 0;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--amber);
}

.full {
  grid-column: 1 / -1;
}

.input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.input:focus {
  outline: none;
  border-color: rgba(241, 184, 91, 0.45);
  box-shadow: 0 0 0 3px rgba(241, 184, 91, 0.13);
}

select.input {
  color: var(--text);
  background-color: #101a2e;
}

label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.textarea {
  resize: vertical;
  min-height: 92px;
}

.table-card {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.85fr;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 14px 16px;
  color: var(--muted-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.025);
}

.table-body {
  display: grid;
}

.table-row {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-row strong,
.appointment-title {
  display: block;
  font-weight: 700;
}

.table-row small,
.meta,
.appointment-subtitle,
.appointment-time {
  color: var(--muted);
}

.row-actions,
.chip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-btn,
.text-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.tiny-btn.destructive {
  color: #ffd1d1;
  border-color: rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.08);
}

.tiny-btn.whatsapp,
.btn.whatsapp {
  color: #dfffea;
  border-color: rgba(37, 211, 102, 0.22);
  background: rgba(37, 211, 102, 0.12);
}

.notification-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-width: min(92vw, 360px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 211, 102, 0.26);
  background: rgba(8, 18, 14, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.notification-toast strong {
  display: block;
  margin-bottom: 4px;
}

.notification-toast p {
  margin: 0;
  color: var(--muted);
}

.booking-form {
  padding-bottom: 4px;
}

.availability {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.agenda-mini {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.agenda-head h3,
.wide-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(77, 212, 180, 0.08);
  border: 1px solid rgba(77, 212, 180, 0.15);
  color: #c7fff2;
  font-size: 0.9rem;
}

.wide-panel {
  margin-bottom: 0;
}

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

.appointment-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.appointment-card[data-status="cancelado"] {
  opacity: 0.68;
}

.appointment-card[data-status="concluido"] {
  background: rgba(77, 212, 180, 0.06);
}

.appointment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge.agendado {
  background: rgba(94, 163, 255, 0.12);
  color: #cbe0ff;
}

.badge.confirmado {
  background: rgba(241, 184, 91, 0.14);
  color: #ffe1ac;
}

.badge.concluido {
  background: rgba(77, 212, 180, 0.14);
  color: #c7fff2;
}

.badge.cancelado {
  background: rgba(255, 107, 107, 0.14);
  color: #ffd1d1;
}

.appointment-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.appointment-side {
  justify-self: end;
  text-align: right;
}

.appointment-time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: var(--text);
}

.empty-state {
  padding: 28px 18px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .barber-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .brand-logo-square {
    width: min(72vw, 240px);
  }

  .brand-logo-horizontal {
    width: min(100%, 360px);
  }

  .brand-logo-session {
    width: min(100%, 180px);
  }

  .sidebar-brand {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .sidebar-logo {
    width: 46px;
    height: 46px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  body.role-barber .sidebar {
    background: linear-gradient(180deg, rgba(10, 24, 39, 0.98), rgba(5, 12, 22, 0.96));
  }

  body.role-barber .sidebar-quick-links {
    display: none;
  }

  .sidebar-item {
    min-height: 46px;
    padding: 10px;
  }

  .sidebar-item span:last-child {
    font-size: 0.86rem;
  }

  .screen-hero,
  .finance-row,
  .dashboard-command {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-command {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

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

  .dashboard-insights {
    grid-template-columns: 1fr;
  }

  .master-login,
  .master-grid {
    grid-template-columns: 1fr;
  }

  .master-ops,
  .publish-summary {
    grid-template-columns: 1fr;
  }

  .publish-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .publish-track span {
    text-align: center;
  }

  .tenant-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .tenant-logo-box {
    width: 100%;
    min-height: 96px;
  }

  .tenant-logo-preview {
    max-width: 220px;
  }

  .tenant-card-head {
    width: 100%;
  }

  .tenant-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .master-shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 12px;
  }

  .publish-copy,
  .publish-command-head {
    justify-items: start;
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-actions,
  .finance-row-side {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .report-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-bar {
    align-items: flex-start;
    gap: 12px 16px;
    padding: 12px 14px;
  }

  .session-brand {
    width: 100%;
  }

  .public-header,
  .public-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .public-header {
    gap: 14px;
    padding: 16px 14px 14px;
    margin-bottom: 14px;
  }

  .public-header-copy {
    gap: 10px;
  }

  .public-header-copy .brand-logo-horizontal {
    width: min(100%, 280px);
  }

  .public-header-actions {
    justify-self: start;
    width: 100%;
  }

  .public-header-actions .btn {
    flex: 1 1 160px;
  }

  .brand-stage {
    padding: 14px 14px 13px;
    border-radius: 20px;
    gap: 7px;
  }

  .brand-logo-stage {
    width: min(100%, 320px);
  }

  .system-stage h1 {
    max-width: 18ch;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .feature-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .feature-tile {
    min-height: 186px;
    padding: 18px;
    border-radius: 22px;
  }

  .tile-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .app-shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .wide-panel {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .session-brand {
    gap: 8px;
  }

  .session-bar {
    padding: 10px 12px;
  }

  .brand-logo-session {
    width: min(100%, 150px);
  }

  .form-grid,
  .table-head,
  .table-row,
  .appointment-card {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    gap: 10px;
  }

  .appointment-card {
    text-align: left;
  }

  .appointment-side {
    justify-self: start;
    text-align: left;
  }

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

  .dashboard-appointment,
  .dashboard-appointment.compact {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dashboard-appointment .badge {
    grid-column: 2;
    justify-self: start;
  }

  .panel-header,
  .agenda-head {
    align-items: stretch;
    flex-direction: column;
  }

  .public-header-actions,
  .auth-actions,
  .public-actions {
    width: 100%;
  }

  .search-wrap,
  .filters-row {
    width: 100%;
  }

  .filters-row .input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.94rem;
  }

  .app-shell {
    width: 100%;
    padding: 8px;
  }

  .session-bar,
  .dashboard-command,
  .screen-hero,
  .panel {
    border-radius: 18px;
  }

  .dashboard-main {
    gap: 12px;
  }

  .sidebar {
    top: 8px;
    padding: 8px 6px;
    border-radius: 18px;
  }

  .sidebar-toolbar {
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .sidebar-item {
    min-height: 48px;
    padding: 11px 9px;
    border-radius: 12px;
  }

  .sidebar-item span:last-child {
    font-size: 0.82rem;
  }

  .session-actions,
  .dashboard-actions,
  .screen-actions,
  .actions-row {
    width: 100%;
  }

  .session-actions .btn,
  .dashboard-actions .btn,
  .screen-actions .btn,
  .actions-row .btn {
    min-height: 46px;
    flex: 1 1 140px;
  }

  .input,
  select.input,
  input.input,
  textarea.input {
    min-height: 46px;
    font-size: 16px;
  }

  .textarea {
    min-height: 108px;
  }

  .appointment-card {
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .appointment-actions,
  .notification-actions-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .appointment-actions .tiny-btn,
  .notification-actions-inline .tiny-btn {
    min-height: 42px;
  }

  .panel-header h2 {
    font-size: 1.12rem;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .app-shell,
  .public-shell {
    width: min(100% - 16px, 100%);
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .session-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .session-brand {
    gap: 7px;
  }

  .brand-logo-session {
    width: 112px;
  }

  .session-bar h2 {
    font-size: 0.98rem;
  }

  .session-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 6px;
  }

  .session-actions .global-search-wrap {
    flex: 1 1 100%;
    min-width: 100%;
    order: -1;
  }

  .session-actions .global-search {
    width: 100%;
  }

  .session-actions .status-pill {
    display: none;
  }

  .session-actions .btn {
    min-height: 40px;
    padding-inline: 12px;
  }

  .brand-stage {
    padding: 12px 12px 11px;
    margin-bottom: 10px;
  }

  .brand-logo-stage {
    width: min(100%, 285px);
  }

  .sidebar {
    position: relative;
    top: auto;
    border-radius: 18px;
    padding: 8px 6px;
  }

  .sidebar-nav {
    gap: 3px;
  }

  .sidebar-item {
    min-height: 44px;
    padding: 9px 10px;
  }

  .sidebar-item span:last-child {
    font-size: 0.82rem;
  }

  .panel,
  .wide-panel,
  .hero-copy,
  .hero-panel {
    border-radius: 18px;
  }

  .panel {
    padding: 16px;
  }

  .public-header {
    gap: 12px;
    padding: 14px 13px 13px;
    border-radius: 20px;
  }

  .public-header-copy .brand-logo-horizontal {
    width: min(100%, 330px);
  }

  .public-header h1 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .public-header-actions,
  .public-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-header-actions .btn,
  .public-actions .btn,
  .auth-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .feature-wall {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .report-channels {
    grid-template-columns: 1fr;
  }

  .screen-hero {
    gap: 12px;
  }
}

@media print {
  body { background: #fff; color: #111; }
  .backdrop, .sidebar, .session-bar, .brand-stage, .screen-hero .screen-actions,
  .finance-controls-grid, .public-header, .btn, .status-pill { display: none !important; }
  .app-shell, .dashboard-main, .screen, .panel { width: 100%; margin: 0; padding: 0; display: block !important; background: #fff; color: #111; border: 0; box-shadow: none; }
  #financeView { display: block !important; }
  .stat-card, .bar-slab, .finance-row, .status-row { color: #111; background: #fff; border-color: #ccc; break-inside: avoid; }
  .stat-card p, .bar-slab span, .finance-row span, .finance-row small, .status-row small { color: #444; }
}

/* Final visual pass: stronger hierarchy and quieter surfaces across modules. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.panel,
.hero-copy,
.hero-panel,
.stat-card,
.dashboard-command {
  position: relative;
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel::before,
.hero-copy::before,
.hero-panel::before,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}

.panel-header h2,
.screen-hero h2,
.dashboard-command h1 {
  text-wrap: balance;
}

.panel-lead,
.hero-text {
  max-width: 62ch;
}

.dashboard-date {
  margin: 14px 0 0;
  color: #c4d0e1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-date::before {
  content: "Hoje  /  ";
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.status-pill-live {
  position: relative;
  padding-left: 25px;
}

.status-pill-live::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(77, 212, 180, 0.12);
  transform: translateY(-50%);
}

body.role-barber .dashboard-shortcuts [data-dashboard-nav="financeiro"],
body.role-barber .dashboard-shortcuts [data-dashboard-nav="relatorios"] {
  display: none;
}

.btn {
  min-height: 44px;
  letter-spacing: -0.01em;
}

.btn.primary:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 16px 34px rgba(241, 184, 91, 0.3);
}

.btn.secondary:hover,
.btn.ghost:hover {
  border-color: rgba(94, 163, 255, 0.36);
  background: rgba(94, 163, 255, 0.09);
}

.input::placeholder {
  color: #8794a8;
}

.status-pill {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.appointment-card,
.bar-slab,
.table-card,
.quick-card,
.dashboard-note {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.appointment-card:hover,
.bar-slab:hover,
.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 163, 255, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.section-kicker,
.eyebrow,
.panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

@media (max-width: 560px) {
  .panel,
  .hero-copy,
  .hero-panel,
  .stat-card,
  .dashboard-command {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .panel,
  .wide-panel {
    padding: 18px;
  }

  .screen {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* Weekly agenda */
.week-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.week-controls strong { min-width: 150px; color: var(--text); text-align: center; font-size: 0.88rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(126px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.week-day { min-height: 210px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.week-day.is-today { border-color: rgba(241, 184, 91, 0.52); box-shadow: inset 0 2px 0 var(--amber); }
.week-day-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; background: rgba(255, 255, 255, 0.045); color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; }
.week-day-head span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--text); background: rgba(94, 163, 255, 0.16); font-size: 0.8rem; }
.week-day.is-today .week-day-head span { color: #1d1407; background: var(--amber); }
.week-day-body { display: grid; align-content: start; gap: 7px; padding: 9px; min-height: 160px; }
.week-appointment { display: grid; gap: 2px; padding: 9px; border: 1px solid rgba(94, 163, 255, 0.22); border-left: 3px solid var(--blue); border-radius: 11px; color: var(--text); background: rgba(94, 163, 255, 0.09); text-align: left; cursor: grab; }
.week-appointment:active { cursor: grabbing; }
.week-appointment.confirmado { border-left-color: var(--amber); background: rgba(241, 184, 91, 0.09); }
.week-appointment.concluido { border-left-color: var(--success); background: rgba(77, 212, 180, 0.09); }
.week-appointment.cancelado { opacity: 0.58; border-left-color: var(--danger); }
.week-appointment strong { font-family: "Space Grotesk", sans-serif; font-size: 0.98rem; }
.week-appointment span, .week-appointment small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-appointment span { font-weight: 700; font-size: 0.78rem; }
.week-appointment small { color: var(--muted); font-size: 0.7rem; }
.week-empty { margin: auto; color: var(--muted-2); font-size: 0.75rem; }
@media (max-width: 560px) { .week-controls { justify-content: flex-start; } .week-controls strong { min-width: 100%; text-align: left; order: -1; } }

/* Technical event center */
.system-events-panel { border-color: rgba(94, 163, 255, 0.22); }
.system-event-row { align-items: flex-start; gap: 16px; }
.system-event-row > div { min-width: 0; }
.system-event-row strong { display: block; overflow-wrap: anywhere; }
.system-event-row small { overflow-wrap: anywhere; }
.system-event-details { color: var(--muted-2); font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; }
.system-event-warning { border-left: 3px solid var(--amber); }
.system-event-error { border-left: 3px solid var(--danger); }
.system-event-info { border-left: 3px solid var(--blue); }

/* Mobile app shell: keep the first useful action close to the thumb. */
@media (max-width: 640px) {
  html, body { min-width: 0; overflow-x: hidden; overscroll-behavior-x: none; }
  body { -webkit-tap-highlight-color: transparent; }
  .app-shell { width: 100%; padding: max(6px, env(safe-area-inset-top)) 8px max(24px, env(safe-area-inset-bottom)); }
  .system-stage { display: none; }
  .session-bar { position: sticky; top: env(safe-area-inset-top); z-index: 20; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
  .session-brand { min-width: 0; }
  .session-brand > div { min-width: 0; }
  .session-brand h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar { position: sticky; top: calc(env(safe-area-inset-top) + 66px); z-index: 15; padding: 6px; }
  .sidebar-toolbar { display: none; }
  .sidebar-nav { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 1px 4px; scrollbar-width: none; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-quick-links { display: contents; }
  .sidebar-section-label { display: none; }
  .sidebar-item { flex: 0 0 auto; min-width: 116px; min-height: 44px; padding: 10px 12px; justify-content: flex-start; white-space: nowrap; }
  .sidebar-item span:last-child { font-size: 0.78rem; }
  .sidebar-icon { width: 20px; height: 20px; }
  .dashboard-main { gap: 10px; }
  .dashboard-command { padding: 16px; }
  .dashboard-command h1 { font-size: clamp(1.35rem, 7vw, 1.8rem); }
  .panel { padding: 14px; }
  .panel-header { gap: 10px; }
  .panel-header .notification-actions { width: 100%; }
  .panel-header .notification-actions .btn { flex: 1 1 auto; }
  .table-row, .appointment-card, .status-row { min-width: 0; }
  .table-row > *, .appointment-card > *, .status-row > * { min-width: 0; }
  .btn, .tiny-btn, button, select, input, textarea { touch-action: manipulation; }
}
