:root {
  --ink: #101012;
  --ink-2: #1b1b1e;
  --paper: #ffffff;
  --canvas: #f5f5f2;
  --canvas-warm: #f1ede2;
  --muted: #717177;
  --line: rgba(16, 16, 18, 0.1);
  --gold: #d8a928;
  --gold-light: #f3d873;
  --gold-pale: #fff7d7;
  --cyan: #20d8dd;
  --cyan-pale: #e6fcfd;
  --pink: #fa3f73;
  --pink-pale: #fff0f4;
  --green: #16a66a;
  --green-pale: #e9fff5;
  --orange: #e98528;
  --orange-pale: #fff4e8;
  --red: #d84949;
  --red-pale: #fff0f0;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 16px 45px rgba(16, 16, 18, 0.07);
  --shadow-lg: 0 30px 80px rgba(16, 16, 18, 0.13);
  --sidebar-width: 248px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(216, 169, 40, 0.55);
  outline-offset: 3px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.workspace-brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  text-decoration: none;
}

.workspace-brand-mark {
  display: inline-block;
  height: 18px;
  overflow: hidden;
  position: relative;
  width: 54px;
}

.workspace-brand-mark img {
  height: 70px;
  left: -8px;
  max-width: none;
  position: absolute;
  top: -22px;
  width: 70px;
}

.workspace-brand-name {
  font-size: 1.2rem;
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.workspace-brand-name strong {
  font-weight: 850;
}

/* Checkout Pix */

.checkout-page {
  background:
    radial-gradient(circle at 8% 15%, rgba(216, 169, 40, 0.12), transparent 25%),
    radial-gradient(circle at 95% 65%, rgba(32, 216, 221, 0.09), transparent 24%),
    var(--canvas);
}

.checkout-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.checkout-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.checkout-safe {
  align-items: center;
  color: #5f5f65;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 7px;
}

.checkout-safe i {
  color: var(--green);
}

.checkout-main {
  min-height: calc(100vh - 73px);
  padding: 38px 0 65px;
}

.demo-notice {
  align-items: center;
  background: var(--gold-pale);
  border: 1px solid rgba(216, 169, 40, 0.3);
  border-radius: 12px;
  color: #6f5511;
  display: flex;
  font-size: 0.75rem;
  gap: 9px;
  margin: 0 auto 24px;
  max-width: 1040px;
  padding: 10px 13px;
}

.demo-notice i {
  font-size: 0.9rem;
}

.checkout-title-wrap {
  margin: 0 auto 26px;
  max-width: 1040px;
}

.checkout-back {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
}

.checkout-title-wrap h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0 0 8px;
}

.checkout-title-wrap p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.checkout-progress {
  align-items: center;
  display: flex;
  margin: 24px auto 28px;
  max-width: 1040px;
}

.checkout-step {
  align-items: center;
  color: #96969b;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 730;
  gap: 7px;
}

.checkout-step span {
  align-items: center;
  background: #e5e5e2;
  border-radius: 50%;
  display: flex;
  font-size: 0.75rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.checkout-step.active {
  color: var(--ink);
}

.checkout-step.active span {
  background: var(--ink);
  color: var(--gold-light);
}

.checkout-step.done span {
  background: var(--green-pale);
  color: var(--green);
}

.checkout-progress-line {
  background: #dededb;
  flex: 1;
  height: 1px;
  margin: 0 13px;
  min-width: 24px;
}

.checkout-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  margin: 0 auto;
  max-width: 1040px;
}

.checkout-card,
.plan-summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.checkout-card {
  min-height: 550px;
  padding: 30px;
}

.checkout-card-head {
  align-items: center;
  display: flex;
  gap: 13px;
  margin-bottom: 25px;
}

.checkout-card-icon {
  align-items: center;
  background: var(--cyan-pale);
  border-radius: 13px;
  color: #078e94;
  display: flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.checkout-card-head h2,
.checkout-card-head p {
  margin: 0;
}

.checkout-card-head h2 {
  font-size: 1.15rem;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.checkout-card-head p {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.field-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: 1fr 1fr;
}

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

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 760;
  margin-bottom: 6px;
}

.form-field label span {
  color: #99999e;
  font-size: 0.75rem;
  font-weight: 550;
}

.form-control-clean {
  background: #f8f8f6;
  border: 1px solid rgba(16, 16, 18, 0.11);
  border-radius: 11px;
  color: var(--ink);
  font-size: 0.78rem;
  min-height: 47px;
  padding: 0 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-control-clean::placeholder {
  color: #aaaab0;
}

.form-control-clean:focus {
  background: white;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 169, 40, 0.12);
  outline: 0;
}

.was-validated .form-control-clean:invalid {
  border-color: var(--red);
}

.was-validated .form-control-clean:invalid ~ .invalid-feedback,
.was-validated .checkout-terms:has(input:invalid) + .invalid-feedback {
  display: block;
}

.form-hint {
  color: #8e8e93;
  display: block;
  font-size: 0.75rem;
  margin-top: 5px;
}

.checkout-terms {
  align-items: flex-start;
  color: #707076;
  display: flex;
  font-size: 0.75rem;
  gap: 8px;
  line-height: 1.55;
  margin: 20px 0;
}

.checkout-terms input {
  accent-color: var(--ink);
  margin-top: 3px;
}

.button-primary,
.button-secondary,
.button-soft {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 790;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #262629;
  box-shadow: 0 10px 25px rgba(16, 16, 18, 0.18);
  color: white;
  transform: translateY(-1px);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-primary.gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: var(--ink);
}

.button-secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-soft {
  background: #f1f1ee;
  border: 1px solid transparent;
  color: var(--ink);
}

.button-block {
  width: 100%;
}

.checkout-security-row {
  color: #88888d;
  display: flex;
  font-size: 0.75rem;
  gap: 14px;
  justify-content: center;
  margin-top: 13px;
}

.checkout-security-row i {
  color: var(--green);
  margin-right: 3px;
}

.plan-summary-card {
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.plan-summary-top {
  background:
    radial-gradient(circle at 85% 0, rgba(32, 216, 221, 0.13), transparent 32%),
    var(--ink);
  color: white;
  padding: 25px;
  position: relative;
}

.plan-summary-top::after {
  border: 1px dashed rgba(243, 216, 115, 0.3);
  border-radius: 50%;
  content: "";
  height: 120px;
  position: absolute;
  right: -55px;
  top: -55px;
  width: 120px;
}

.plan-summary-badge {
  background: rgba(243, 216, 115, 0.13);
  border: 1px solid rgba(243, 216, 115, 0.2);
  border-radius: 999px;
  color: var(--gold-light);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin-bottom: 13px;
  padding: 5px 8px;
  text-transform: uppercase;
}

.plan-summary-top h2 {
  font-size: 1.35rem;
  font-weight: 820;
  letter-spacing: -0.045em;
  margin-bottom: 4px;
}

.plan-summary-top p {
  color: #aaaab0;
  font-size: 0.75rem;
  margin: 0;
}

.plan-price {
  align-items: baseline;
  display: flex;
  margin-top: 18px;
}

.plan-price span {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 750;
  margin-right: 4px;
}

.plan-price strong {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.plan-price sup {
  font-size: 1.1rem;
  font-weight: 850;
  top: -1em;
}

.plan-price small {
  color: #8f8f95;
  font-size: 0.75rem;
  margin-left: 4px;
}

.plan-summary-body {
  padding: 22px 25px 25px;
}

.plan-features {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.plan-features li {
  color: #55555a;
  font-size: 0.75rem;
}

.plan-features i {
  color: var(--green);
  margin-right: 7px;
}

.summary-line {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  padding: 11px 0;
}

.summary-line span {
  color: var(--muted);
}

.summary-line.total {
  font-size: 0.8rem;
  font-weight: 820;
  padding-bottom: 0;
}

.summary-line.total span {
  color: var(--ink);
}

.renewal-note {
  align-items: flex-start;
  background: var(--canvas);
  border-radius: 10px;
  color: #747479;
  display: flex;
  font-size: 0.75rem;
  gap: 7px;
  line-height: 1.5;
  margin-top: 18px;
  padding: 10px;
}

.renewal-note i {
  color: #91700f;
}

.payment-result {
  text-align: center;
}

.payment-result .checkout-card-head {
  justify-content: center;
  text-align: left;
}

.pix-status {
  align-items: center;
  background: var(--orange-pale);
  border: 1px solid rgba(233, 133, 40, 0.18);
  border-radius: 999px;
  color: #9a5515;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 820;
  gap: 6px;
  margin-bottom: 13px;
  padding: 6px 9px;
  text-transform: uppercase;
}

.pix-status i {
  animation: status-pulse 1.4s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.35; }
}

.payment-result h2 {
  font-size: 1.4rem;
  font-weight: 840;
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}

.payment-result > p {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0 auto 18px;
  max-width: 430px;
}

.qr-visual {
  background:
    repeating-conic-gradient(from 90deg, #111 0 25%, transparent 0 50%) 0 0 / 14px 14px,
    white;
  border: 10px solid white;
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(16, 16, 18, 0.14);
  height: 178px;
  margin: 0 auto 14px;
  position: relative;
  width: 178px;
}

.qr-corner {
  background: white;
  border: 7px solid var(--ink);
  height: 42px;
  position: absolute;
  width: 42px;
}

.qr-corner::after {
  background: var(--ink);
  content: "";
  inset: 6px;
  position: absolute;
}

.qr-corner.one { left: 3px; top: 3px; }
.qr-corner.two { right: 3px; top: 3px; }
.qr-corner.three { bottom: 3px; left: 3px; }

.qr-demo-label {
  align-items: center;
  background: var(--gold-light);
  border: 4px solid white;
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  left: 50%;
  letter-spacing: 0.04em;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
}

.pix-expiration {
  color: #77777c;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.pix-expiration strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pix-code-wrap {
  align-items: center;
  background: #f4f4f1;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 8px;
  margin: 0 auto 10px;
  max-width: 470px;
  padding: 7px 7px 7px 11px;
  text-align: left;
}

.pix-code-wrap code {
  color: #707075;
  flex: 1;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pix-code-wrap button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 760;
  padding: 7px 10px;
  white-space: nowrap;
}

.demo-code-warning {
  color: var(--red);
  display: block;
  font-size: 0.75rem;
  margin-bottom: 18px;
}

.payment-result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.checkout-footer {
  color: #85858a;
  font-size: 0.75rem;
  padding: 22px 0 30px;
  text-align: center;
}

/* Shared application shell */

.app-page {
  background: #f5f5f2;
}

.workspace-sidebar {
  background: #111113;
  bottom: 0;
  color: white;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 22px 16px 16px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
  z-index: 1045;
}

.workspace-sidebar .workspace-brand {
  color: white;
  margin: 3px 8px 31px;
}

.workspace-sidebar .workspace-brand-mark img {
  filter: invert(1);
}

.workspace-context {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
  padding: 10px;
}

.context-avatar {
  align-items: center;
  background: var(--gold-light);
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  flex: 0 0 34px;
  font-size: 0.75rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.platform-sidebar .context-avatar {
  background: var(--cyan);
}

.workspace-context div {
  min-width: 0;
}

.workspace-context strong,
.workspace-context small {
  display: block;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-context strong {
  font-size: 0.75rem;
}

.workspace-context small {
  color: #8e8e94;
  font-size: 0.75rem;
}

.workspace-nav-label {
  color: #65656b;
  display: block;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  margin: 0 10px 7px;
  text-transform: uppercase;
}

.workspace-nav {
  display: grid;
  gap: 3px;
}

.workspace-nav + .workspace-nav-label {
  margin-top: 22px;
}

.workspace-nav-link {
  align-items: center;
  border-radius: 10px;
  color: #9c9ca2;
  display: flex;
  font-size: 0.75rem;
  font-weight: 650;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.workspace-nav-link > i {
  font-size: 0.86rem;
  text-align: center;
  width: 19px;
}

.workspace-nav-link .nav-count {
  align-items: center;
  background: var(--pink);
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 0.75rem;
  height: 18px;
  justify-content: center;
  margin-left: auto;
  min-width: 18px;
  padding: 0 5px;
}

.workspace-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.workspace-nav-link.active {
  background: rgba(243, 216, 115, 0.12);
  color: var(--gold-light);
}

.platform-sidebar .workspace-nav-link.active {
  background: rgba(32, 216, 221, 0.11);
  color: var(--cyan);
}

.workspace-sidebar-footer {
  margin-top: auto;
}

.sidebar-help {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: #99999f;
  display: flex;
  font-size: 0.75rem;
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px;
}

.sidebar-user {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.sidebar-user-avatar {
  align-items: center;
  background: #2b2b2e;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.sidebar-user div {
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  line-height: 1.35;
}

.sidebar-user strong { font-size: 0.75rem; }
.sidebar-user small { color: #77777d; font-size: 0.75rem; }

.workspace-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

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

.topbar-breadcrumb {
  color: #8b8b90;
  font-size: 0.75rem;
}

.topbar-breadcrumb strong {
  color: var(--ink);
  font-weight: 760;
}

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

.topbar-icon-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5f5f64;
  display: flex;
  height: 37px;
  justify-content: center;
  position: relative;
  width: 37px;
}

.topbar-icon-button .notification-dot {
  background: var(--pink);
  border: 2px solid white;
  border-radius: 50%;
  height: 8px;
  position: absolute;
  right: 6px;
  top: 5px;
  width: 8px;
}

.topbar-profile {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 8px;
  padding: 2px 4px 2px 6px;
}

.topbar-profile > span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 0.75rem;
  font-weight: 820;
  height: 33px;
  justify-content: center;
  width: 33px;
}

.topbar-profile div {
  text-align: left;
}

.topbar-profile strong,
.topbar-profile small {
  display: block;
  line-height: 1.3;
}

.topbar-profile strong { font-size: 0.75rem; }
.topbar-profile small { color: #88888d; font-size: 0.75rem; }

.mobile-app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: none;
  height: 62px;
  justify-content: space-between;
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 1030;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mobile-menu-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-overlay {
  background: rgba(5, 5, 6, 0.54);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.25s ease;
  z-index: 1040;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.workspace-content {
  margin: 0 auto;
  max-width: 1450px;
  padding: 30px;
}

.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-eyebrow {
  color: #92700e;
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.admin-page .page-eyebrow {
  color: #078f96;
}

.page-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 0;
}

.page-heading p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 6px 0 0;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-data-note {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #77777c;
  display: flex;
  font-size: 0.75rem;
  gap: 7px;
  margin-bottom: 18px;
  padding: 8px 11px;
}

.demo-data-note i {
  color: #9a7411;
}

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

.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 18px;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.metric-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.metric-icon {
  align-items: center;
  background: var(--gold-pale);
  border-radius: 11px;
  color: #93700d;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.metric-icon.cyan { background: var(--cyan-pale); color: #078f96; }
.metric-icon.green { background: var(--green-pale); color: var(--green); }
.metric-icon.pink { background: var(--pink-pale); color: var(--pink); }
.metric-icon.orange { background: var(--orange-pale); color: var(--orange); }

.metric-trend {
  background: var(--green-pale);
  border-radius: 999px;
  color: #0a8052;
  font-size: 0.75rem;
  font-weight: 780;
  padding: 4px 6px;
}

.metric-trend.neutral { background: #f1f1ee; color: #77777c; }
.metric-trend.warning { background: var(--orange-pale); color: #a45a15; }

.metric-label {
  color: #7b7b80;
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  margin: 14px 0 2px;
}

.metric-value {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.15;
  white-space: nowrap;
}

.metric-detail {
  color: #99999e;
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-grid.two-thirds {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}

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

.surface-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.surface-card.padded {
  padding: 19px;
}

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

.surface-card-head.inset {
  padding: 19px 19px 0;
}

.surface-card-head h2,
.surface-card-head p {
  margin: 0;
}

.surface-card-head h2 {
  font-size: 0.9rem;
  font-weight: 810;
  letter-spacing: -0.025em;
}

.surface-card-head p {
  color: #88888d;
  font-size: 0.75rem;
  margin-top: 2px;
}

.card-link {
  color: #75757a;
  font-size: 0.75rem;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
}

.card-link:hover {
  color: var(--ink);
}

.chart-summary {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-summary strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.chart-summary small {
  color: #86868b;
  display: block;
  font-size: 0.75rem;
}

.chart-legend {
  color: #7f7f84;
  font-size: 0.75rem;
}

.chart-legend i {
  color: var(--cyan);
  margin-right: 4px;
}

.revenue-chart {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, 1fr);
  height: 155px;
  padding: 0 4px;
}

.revenue-chart span {
  background: linear-gradient(to top, #0baeb5, var(--cyan));
  border-radius: 6px 6px 0 0;
  height: var(--height);
  min-height: 8px;
  opacity: 0.72;
  position: relative;
}

.revenue-chart span.current {
  background: linear-gradient(to top, #b9880a, var(--gold-light));
  opacity: 1;
}

.revenue-chart span:hover {
  opacity: 1;
}

.chart-labels {
  color: #96969b;
  display: grid;
  font-size: 0.75rem;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 6px;
  text-align: center;
}

.attention-list,
.activity-list,
.compact-list {
  display: grid;
  gap: 9px;
}

.attention-item {
  align-items: flex-start;
  background: #f8f8f6;
  border: 1px solid rgba(16, 16, 18, 0.06);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 11px;
}

.attention-item > span {
  align-items: center;
  background: var(--orange-pale);
  border-radius: 9px;
  color: var(--orange);
  display: flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.attention-item.positive > span { background: var(--green-pale); color: var(--green); }
.attention-item.info > span { background: var(--cyan-pale); color: #078f96; }
.attention-item div { flex: 1; min-width: 0; }
.attention-item strong,
.attention-item small { display: block; line-height: 1.4; }
.attention-item strong { font-size: 0.75rem; }
.attention-item small { color: #85858a; font-size: 0.75rem; margin-top: 2px; }
.attention-item a { color: #6b6b70; font-size: 0.75rem; font-weight: 730; margin-top: 5px; text-decoration: none; }

.subscriber-table {
  width: 100%;
}

.subscriber-row {
  align-items: center;
  border-top: 1px solid rgba(16, 16, 18, 0.07);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.5fr) 0.72fr 0.72fr 0.72fr 25px;
  padding: 12px 19px;
}

.subscriber-row.header {
  background: #fafaf8;
  border-top: 0;
  color: #8f8f94;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-bottom: 9px;
  padding-top: 9px;
  text-transform: uppercase;
}

.subscriber-name {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.subscriber-avatar {
  align-items: center;
  background: var(--gold-pale);
  border-radius: 10px;
  color: #8d690b;
  display: flex;
  flex: 0 0 34px;
  font-size: 0.75rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.subscriber-avatar.cyan { background: var(--cyan-pale); color: #078f96; }
.subscriber-avatar.pink { background: var(--pink-pale); color: var(--pink); }
.subscriber-name strong,
.subscriber-name small { display: block; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subscriber-name strong { font-size: 0.75rem; }
.subscriber-name small { color: #8c8c91; font-size: 0.75rem; }
.subscriber-cell { color: #65656a; font-size: 0.75rem; }
.subscriber-cell strong { color: var(--ink); display: block; font-size: 0.75rem; }

.status-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 7px;
  white-space: nowrap;
}

.status-chip.active { background: var(--green-pale); color: #0a8052; }
.status-chip.pending { background: var(--orange-pale); color: #a45a15; }
.status-chip.trial { background: var(--cyan-pale); color: #087d82; }
.status-chip.canceled { background: var(--red-pale); color: var(--red); }

.row-menu {
  background: none;
  border: 0;
  color: #88888d;
}

.activity-item {
  display: grid;
  gap: 9px;
  grid-template-columns: 29px 1fr auto;
  position: relative;
}

.activity-item > span {
  align-items: center;
  background: var(--canvas);
  border-radius: 9px;
  color: #77777c;
  display: flex;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.activity-item strong,
.activity-item small { display: block; line-height: 1.4; }
.activity-item strong { font-size: 0.75rem; }
.activity-item small { color: #8b8b90; font-size: 0.75rem; }
.activity-time { color: #99999e; font-size: 0.75rem; white-space: nowrap; }

.workspace-toast {
  bottom: 20px;
  position: fixed;
  right: 20px;
  z-index: 1100;
}

.workspace-toast .toast {
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 0.75rem;
}

/* Barbershop overview */

.today-strip {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: white;
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 18px 20px;
  position: relative;
}

.today-strip::after {
  background: radial-gradient(circle, rgba(243, 216, 115, 0.22), transparent 65%);
  content: "";
  height: 200px;
  position: absolute;
  right: -40px;
  top: -75px;
  width: 200px;
}

.today-main {
  align-items: center;
  display: flex;
  gap: 13px;
  min-width: 230px;
  position: relative;
  z-index: 2;
}

.today-date {
  align-items: center;
  background: var(--gold-light);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  flex: 0 0 48px;
  flex-direction: column;
  height: 48px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.today-date small { font-size: 0.75rem; font-weight: 850; }
.today-date strong { font-size: 1rem; }
.today-main h2 { font-size: 0.8rem; font-weight: 780; margin: 0; }
.today-main p { color: #919197; font-size: 0.75rem; margin: 2px 0 0; }

.today-summary {
  display: grid;
  flex: 1;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.today-summary div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 16px;
}

.today-summary strong,
.today-summary small { display: block; line-height: 1.35; }
.today-summary strong { font-size: 0.75rem; }
.today-summary small { color: #85858b; font-size: 0.75rem; }

.quick-actions-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.quick-action {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-action:hover {
  border-color: rgba(216, 169, 40, 0.4);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-2px);
}

.quick-action > span {
  align-items: center;
  background: var(--gold-pale);
  border-radius: 11px;
  color: #91700e;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.quick-action.cyan > span { background: var(--cyan-pale); color: #078f96; }
.quick-action.green > span { background: var(--green-pale); color: var(--green); }
.quick-action.pink > span { background: var(--pink-pale); color: var(--pink); }
.quick-action strong,
.quick-action small { display: block; line-height: 1.35; }
.quick-action strong { font-size: 0.75rem; }
.quick-action small { color: #89898e; font-size: 0.75rem; }

.schedule-list {
  display: grid;
}

.schedule-row {
  align-items: center;
  border-top: 1px solid rgba(16, 16, 18, 0.07);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 4px 34px minmax(130px, 1fr) 0.7fr 0.65fr 24px;
  padding: 11px 18px;
}

.schedule-row.current {
  background: linear-gradient(90deg, rgba(243, 216, 115, 0.15), transparent 70%);
}

.schedule-time {
  font-size: 0.75rem;
  font-weight: 800;
}

.schedule-marker {
  background: #d3d3d0;
  border-radius: 99px;
  height: 34px;
  width: 3px;
}

.schedule-row.current .schedule-marker { background: var(--gold); }
.schedule-customer-avatar { align-items: center; background: var(--canvas); border-radius: 9px; display: flex; font-size: 0.75rem; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.schedule-customer-avatar.gold { background: var(--gold-pale); color: #8d690b; }
.schedule-customer-avatar.cyan { background: var(--cyan-pale); color: #078f96; }
.schedule-customer-avatar.pink { background: var(--pink-pale); color: var(--pink); }
.schedule-client strong,
.schedule-client small { display: block; line-height: 1.35; }
.schedule-client strong { font-size: 0.75rem; }
.schedule-client small { color: #8c8c91; font-size: 0.75rem; }
.schedule-professional { color: #6e6e73; font-size: 0.75rem; }
.schedule-professional i { color: #aaaab0; margin-right: 4px; }

.message-summary-card {
  background:
    radial-gradient(circle at 95% 0, rgba(32, 216, 221, 0.12), transparent 35%),
    var(--ink);
  color: white;
}

.message-summary-card .surface-card-head h2 { color: white; }
.message-summary-card .surface-card-head p { color: #88888e; }
.message-preview { align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 11px; display: flex; gap: 9px; margin-top: 8px; padding: 10px; }
.message-preview > span { align-items: center; background: #2b2b2e; border-radius: 50%; display: flex; font-size: 0.75rem; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.message-preview div { flex: 1; min-width: 0; }
.message-preview strong,
.message-preview small { display: block; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-preview strong { font-size: 0.75rem; }
.message-preview small { color: #8f8f95; font-size: 0.75rem; }
.message-preview time { color: #717177; font-size: 0.75rem; }
.message-summary-action { align-items: center; background: var(--cyan); border-radius: 9px; color: var(--ink); display: flex; font-size: 0.75rem; font-weight: 800; justify-content: center; margin-top: 11px; min-height: 34px; text-decoration: none; }

.finance-mini {
  align-items: flex-end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.finance-mini strong,
.finance-mini small { display: block; }
.finance-mini strong { font-size: 1.4rem; letter-spacing: -0.05em; }
.finance-mini small { color: #87878c; font-size: 0.75rem; }
.mini-sparkline { align-items: flex-end; display: flex; gap: 3px; height: 45px; }
.mini-sparkline span { background: var(--gold); border-radius: 3px 3px 0 0; height: var(--height); opacity: 0.72; width: 7px; }

.stock-alert-row {
  align-items: center;
  border-top: 1px solid rgba(16, 16, 18, 0.07);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px 1fr auto;
  padding: 11px 18px;
}

.stock-product-icon { align-items: center; background: var(--orange-pale); border-radius: 9px; color: var(--orange); display: flex; height: 34px; justify-content: center; width: 34px; }
.stock-alert-row strong,
.stock-alert-row small { display: block; line-height: 1.35; }
.stock-alert-row strong { font-size: 0.75rem; }
.stock-alert-row small { color: #8c8c91; font-size: 0.75rem; }
.stock-quantity { background: var(--orange-pale); border-radius: 999px; color: #a55b16; font-size: 0.75rem; font-weight: 800; padding: 5px 7px; }

@media (max-width: 1199.98px) {
  :root { --sidebar-width: 224px; }
  .workspace-content { padding: 25px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .today-summary { grid-template-columns: 1fr 1fr; }
  .today-summary div:nth-child(3) { border-left: 0; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
  .schedule-row { grid-template-columns: 45px 4px 32px minmax(120px, 1fr) 0.7fr 0.6fr 20px; }
}

@media (max-width: 991.98px) {
  body.sidebar-open { overflow: hidden; }
  .workspace-sidebar { box-shadow: 20px 0 50px rgba(0, 0, 0, 0.24); transform: translateX(-105%); transition: transform 0.25s ease; width: min(82vw, 280px); }
  .workspace-sidebar.open { transform: translateX(0); }
  .workspace-main { margin-left: 0; }
  .workspace-topbar { display: none; }
  .mobile-app-header { display: flex; }
  .workspace-content { padding: 20px; }
  .dashboard-grid.two-thirds,
  .dashboard-grid.equal { grid-template-columns: 1fr; }
  .today-strip { align-items: flex-start; flex-direction: column; }
  .today-summary { width: 100%; }
  .today-summary div:first-child { border-left: 0; }
  .workspace-toast { bottom: 12px; left: 12px; right: 12px; }
  .workspace-toast .toast { width: 100%; }
}

@media (max-width: 767.98px) {
  .checkout-main { padding-top: 25px; }
  .checkout-safe span { display: none; }
  .checkout-title-wrap { text-align: center; }
  .checkout-back { display: none; }
  .checkout-progress { justify-content: center; }
  .checkout-step { flex-direction: column; font-size: 0.75rem; gap: 4px; text-align: center; }
  .checkout-progress-line { margin: 0 7px 18px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .plan-summary-card { grid-row: 1; position: static; }
  .plan-summary-top { padding: 20px; }
  .plan-summary-body { padding: 17px 20px 20px; }
  .plan-features { display: none; }
  .renewal-note { margin-top: 12px; }
  .checkout-card { min-height: 0; padding: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-actions { width: 100%; }
  .page-actions .button-primary,
  .page-actions .button-secondary { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 14px; }
  .subscriber-row { grid-template-columns: minmax(150px, 1fr) auto auto; padding: 11px 14px; }
  .subscriber-row.header { display: none; }
  .subscriber-row .subscriber-cell:nth-child(3),
  .subscriber-row .subscriber-cell:nth-child(4) { display: none; }
  .subscriber-row > .row-menu { display: none; }
  .schedule-row { grid-template-columns: 42px 3px 32px 1fr auto; padding: 10px 14px; }
  .schedule-professional,
  .schedule-row > .status-chip { display: none; }
  .today-summary { gap: 12px 6px; }
  .today-summary div { padding-left: 10px; }
  .quick-actions-grid { gap: 8px; }
  .quick-action { min-height: 62px; }
}

@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 1.5rem; }
  .workspace-brand-mark { height: 16px; width: 48px; }
  .workspace-brand-mark img { height: 63px; left: -7px; top: -20px; width: 63px; }
  .workspace-brand-name { font-size: 1.08rem; }
  .checkout-main { padding-bottom: 35px; }
  .demo-notice { align-items: flex-start; font-size: 0.75rem; }
  .checkout-title-wrap h1 { font-size: 2.15rem; }
  .checkout-card { border-radius: 20px; padding: 19px 16px; }
  .checkout-card-head { align-items: flex-start; }
  .checkout-security-row { flex-direction: column; gap: 3px; text-align: center; }
  .payment-result-actions { flex-direction: column; }
  .payment-result-actions a,
  .payment-result-actions button { width: 100%; }
  .pix-code-wrap { align-items: stretch; flex-direction: column; padding: 9px; }
  .pix-code-wrap button { width: 100%; }
  .workspace-content { padding: 16px 13px; }
  .page-heading { margin-bottom: 17px; }
  .page-heading h1 { font-size: 1.9rem; }
  .metric-grid { gap: 9px; }
  .metric-card { border-radius: 14px; padding: 12px; }
  .metric-icon { height: 32px; width: 32px; }
  .metric-label { margin-top: 10px; }
  .metric-value { font-size: 1.25rem; }
  .metric-detail { line-height: 1.35; }
  .metric-trend { font-size: 0.75rem; }
  .surface-card.padded { padding: 15px; }
  .revenue-chart { gap: 4px; height: 125px; }
  .chart-labels span:nth-child(even) { visibility: hidden; }
  .subscriber-row { grid-template-columns: 1fr auto; }
  .subscriber-row .subscriber-cell:nth-child(2) { display: none; }
  .activity-item { grid-template-columns: 28px 1fr; }
  .activity-time { display: none; }
  .today-strip { border-radius: 15px; padding: 15px; }
  .today-summary strong { font-size: 0.75rem; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
  .quick-action { align-items: flex-start; flex-direction: column; gap: 7px; min-height: 108px; }
  .quick-action > span { flex-basis: 34px; height: 34px; width: 34px; }
  .schedule-row { grid-template-columns: 39px 3px 30px 1fr; gap: 7px; }
  .schedule-row > .row-menu { display: none; }
  .schedule-customer-avatar { height: 30px; width: 30px; }
  .stock-alert-row { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
