.gw-root,
.gw-modal,
.gw-menu {
  --gw-ink: light-dark(#0f172a, #f8fafc);
  --gw-muted: light-dark(#475569, #cbd5e1);
  --gw-accent: #007aff;
  --gw-line: light-dark(#0f172a20, #e2e8f026);
  --gw-background: light-dark(#edf4fb, #172235);
  --gw-shade: light-dark(#dbeafe18, #0f172a7a);
  --gw-surface: light-dark(#fff, #1e293b);
  --gw-panel: light-dark(#fff, #243246);
  --gw-brand: #007aff;
  --gw-brand-ink: #fff;
  --gw-avatar: light-dark(#dbeafe, #315b86);
  --gw-rail-active: light-dark(#ffffffaa, #dbeafe2c);
  --gw-positive: light-dark(#059669, #6ee7b7);
  --gw-positive-surface: light-dark(#ecfdf5, #143f32);
  --gw-account-surface: light-dark(#f1f5f980, #33415566);
  --gw-account-action: light-dark(#ffffffaa, #ffffff18);
  --gw-segment: light-dark(#e2e8f050, #26364a);
  --gw-segment-active: light-dark(#ffffff, #344b68);
  --gw-transaction-surface: light-dark(#f1f5f980, #33415566);
  --gw-income-surface: light-dark(#ecfdf5, #143f32);
  --gw-pending: light-dark(#805b20, #e1c383);
  --gw-danger: light-dark(#dc2626, #f87171);
  --gw-goal-surface: light-dark(#e5efff, #243b5a);
  --gw-dock: light-dark(#f1f5f9cc, #13243a);
  --gw-dock-active: light-dark(#ffffff, #e0efff);
  --gw-button: #007aff;
  --gw-button-ink: #fff;
  --gw-search: light-dark(#ffffffaa, #ffffff14);
  --gw-savings-orb: light-dark(#dbeafe, #1d4168);
  --gw-popover: light-dark(#f4f8ffef, #15263cf0);
  --gw-notification: light-dark(#f4f8ffef, #15263cf0);
  --gw-fallback: light-dark(#eff6ff, #1e293b);
  --gw-mobile-dock: light-dark(#ffffffcc, #152b46);
  --gw-shadow: #102a4648;
  --gw-panel-shadow: #102a4644;
  --gw-soft-shadow: #102a4612;
  --gw-segment-shadow: #102a4610;
  --gw-dock-shadow: #102a4612;
  --gw-popover-shadow: #102a4633;
  --gw-sample-shadow: #103d6680;
  --gw-toast-shadow: #0002;
  --gw-toast: #007aff;
  --gw-dock-ink: #0b3d75;
  --gw-selection: #007aff70;
  --gw-scrollbar: #94a3b8;
  --gw-hover: #ffffff28;
  --gw-dock-hover: #ffffff30;
  --gw-control-hover: #ffffff36;
  --gw-strong-edge: #fff9;
  --gw-soft-edge: #fff8;
  --gw-toast-ink: #fff;
  --gw-highlight: #fff;
}
.gw-root {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: visible;
  padding: 38px 28px 32px;
  background: var(--gw-background);
  color: var(--gw-ink);
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  color-scheme: light dark;
}

/* Fundo compartilhado com a autenticação: neve, luz e textura em canvas. */
.gw-root .ta-dashboard-bg,
.gw-root .ta-dashboard-snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
.gw-root .ta-dashboard-bg { z-index: 0; }
.gw-root .ta-dashboard-snow { z-index: 1; }
.gw-root .gw-workspace { z-index: 2; }
.gw-root .gw-room,
.gw-root .gw-room-shade { display: none; }
.gw-root { background: transparent; }
.gw-root[data-theme="light"] { color-scheme: light; color: #1a1b1d; }
html:has(.gw-root),
body:has(.gw-root),
#app:has(.gw-root) {
  background: #edf4fb !important;
}
.gw-modal,
.gw-menu {
  color-scheme: light dark;
  font: 14px/1.5 "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  color: var(--gw-ink);
}
.gw-root[data-theme="light"],
.gw-modal[data-theme="light"],
.gw-menu[data-theme="light"] {
  color-scheme: light;
}
.gw-root[data-theme="dark"],
.gw-modal[data-theme="dark"],
.gw-menu[data-theme="dark"] {
  color-scheme: dark;
}
.gw-root * {
  box-sizing: border-box;
}
.gw-root ::selection {
  background: var(--gw-selection);
}
.gw-root button,
.gw-root input,
.gw-root select,
.gw-root a {
  font: inherit;
  color: inherit;
}
.gw-root button {
  cursor: pointer;
}
.gw-root button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.gw-root button,
.gw-root a,
.gw-root input,
.gw-root select {
  outline-offset: 4px;
}
.gw-root :focus-visible {
  outline: 2px solid var(--gw-accent);
}
.gw-root button {
  border: 0;
  background: none;
}
.gw-root h1,
.gw-root h2,
.gw-root h3,
.gw-root p {
  margin: 0;
}
.gw-root svg.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.gw-room {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  object-position: center 56%;
  z-index: -3;
}
.gw-room-shade {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--gw-shade);
  z-index: -2;
}
.gw-workspace {
  position: relative;
  width: min(1280px, 100%);
  margin: auto;
}
.gw-glass {
  background: color-mix(
    in srgb,
    var(--gw-surface) calc(var(--gw-opacity) * 100%),
    transparent
  );
  backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
  -webkit-backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
  box-shadow:
    inset 0 1px 0
      color-mix(
        in srgb,
        var(--gw-highlight) calc(var(--gw-edge) * 100%),
        transparent
      ),
    inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--gw-highlight) calc(var(--gw-edge) * 34%),
        transparent
      ),
    0 20px 52px -25px var(--gw-shadow);
  position: relative;
}
.gw-glass:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gw-tint);
  opacity: 0.12;
  pointer-events: none;
  border-radius: inherit;
}
.gw-topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 20px;
  margin-bottom: 18px;
  padding: 0 20px;
}
.gw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.gw-brand-logo {
  width: 112px;
  height: auto;
  display: block;
  object-fit: contain;
}
.gw-brand strong {
  font-size: 14px;
  letter-spacing: -0.025em;
}
.gw-brand-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--gw-brand);
  color: var(--gw-brand-ink);
  border-radius: 9px;
}
.gw-brand-divider {
  height: 16px;
  width: 1px;
  background: var(--gw-line);
  margin: 0 4px;
}
.gw-personal {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gw-ink);
}
.gw-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gw-adjust {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 8px 10px;
}
.gw-adjust:hover {
  background: var(--gw-hover);
}
.gw-icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  padding: 0;
  background: transparent;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.gw-icon-button:hover {
  background: color-mix(in srgb, var(--gw-highlight) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gw-highlight) 14%, transparent);
}
.gw-icon-button:active {
  background: color-mix(in srgb, var(--gw-highlight) 18%, transparent);
  transform: none;
}
.gw-bell {
  position: relative;
}
.gw-bell i {
  position: absolute;
  right: 8px;
  top: 6px;
  background: var(--gw-accent);
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.gw-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gw-avatar);
  display: grid;
  place-items: center;
  overflow: hidden;
  font:
    600 12px Georgia,
    serif;
}
.gw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gw-stage {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ---------- Sidebar (existing navigation, glass rail) ---------- */
.gw-sidebar {
  border-radius: 23px;
  width: 232px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  position: sticky;
  top: 20px;
  height: calc(100svh - 40px);
  max-height: calc(100svh - 40px);
  overflow: hidden;
  padding-bottom: 22px;
  align-self: flex-start;
  isolation: isolate;
  scrollbar-width: thin;
  scrollbar-color: var(--gw-scrollbar) transparent;
}
.gw-sidebar > nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gw-scrollbar) transparent;
}
.gw-side-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gw-side-group + .gw-side-group {
  margin-top: 14px;
}
.gw-side-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gw-muted);
  padding: 4px 12px 6px;
}
.gw-side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  text-align: left;
  text-decoration: none;
  transition: background 0.22s;
}
.gw-side-item:hover {
  background: var(--gw-hover);
}
.gw-side-item[aria-current="page"] {
  background: var(--gw-rail-active);
  box-shadow: 0 3px 8px var(--gw-soft-shadow);
}
.gw-side-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--gw-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gw-side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  min-width: 0;
}
.gw-side-profile:hover {
  background: var(--gw-hover);
}
.gw-side-profile > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gw-side-profile strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gw-side-profile small {
  font-size: 10px;
  color: var(--gw-muted);
}

.gw-main {
  border-radius: 27px;
  padding: 30px;
  flex: 1;
  min-width: 0;
}
.gw-main.has-dock {
  padding-bottom: 98px;
}
.gw-view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.gw-greeting {
  font-size: 13px;
  color: var(--gw-muted);
  margin-bottom: 5px !important;
}
.gw-view-heading h1 {
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.gw-heading-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.gw-date {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gw-muted);
  white-space: nowrap;
}
.gw-panel {
  background: color-mix(
    in srgb,
    var(--gw-panel) calc((0.16 + var(--gw-opacity) * 0.5) * 100%),
    transparent
  );
  border-radius: 17px;
  box-shadow:
    inset 0 1px 0
      color-mix(
        in srgb,
        var(--gw-highlight) calc(var(--gw-edge) * 75%),
        transparent
      ),
    0 8px 22px -20px var(--gw-panel-shadow);
  padding: 21px;
  min-width: 0;
  position: relative;
}
.gw-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--gw-muted);
  font-size: 12px;
}
.gw-panel-title h2 {
  font-size: 14px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--gw-ink);
}
.gw-panel-title > svg {
  opacity: 0.65;
}
.gw-overview-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.5fr;
  gap: 16px;
}
.gw-balance {
  display: flex;
  flex-direction: column;
}
.gw-balance-value {
  font-size: clamp(29px, 3.15vw, 43px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
  white-space: nowrap;
}
.gw-balance-meta {
  font-size: 11px;
  color: var(--gw-muted);
  margin-top: 10px !important;
}
.gw-positive {
  color: var(--gw-positive);
}
.gw-negative {
  color: var(--gw-danger);
}
.gw-account {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gw-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gw-account-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gw-account-surface);
  flex: none;
}
.gw-mini > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gw-mini strong {
  font-weight: 500;
  font-size: 12px;
}
.gw-mini span {
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-mini > b {
  margin-left: auto;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.gw-segment {
  display: flex;
  gap: 3px;
  background: var(--gw-segment);
  border-radius: 8px;
  padding: 3px;
  font-size: 10px;
}
.gw-segment button {
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.gw-segment button[aria-pressed="true"] {
  background: var(--gw-segment-active);
  box-shadow: 0 2px 4px var(--gw-segment-shadow);
  color: var(--gw-ink);
}
.gw-chart-summary {
  display: flex;
  gap: 34px;
  margin-bottom: 18px;
}
.gw-chart-legend {
  display: flex;
  gap: 20px;
  margin: -4px 0 14px;
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.gw-chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gw-accent);
}
.gw-chart-legend span + span i {
  background: var(--gw-muted);
}
.gw-chart-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gw-chart-summary span {
  font-size: 10px;
  color: var(--gw-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.gw-chart-summary i {
  width: 5px;
  height: 5px;
  background: var(--gw-accent);
  border-radius: 50%;
}
.gw-chart-summary > div + div i {
  background: var(--gw-muted);
}
.gw-chart-summary strong {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.gw-chart-wrap {
  position: relative;
  padding-left: 62px;
  padding-top: 2px;
}
.gw-chart-wrap svg {
  display: block;
  width: 100%;
  height: 126px;
  overflow: visible;
}
.gw-chart-labels {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 8px;
  color: var(--gw-muted);
}
.gw-chart-months {
  position: relative;
  height: 24px;
  font-size: 9px;
  color: var(--gw-muted);
  padding-top: 10px;
}
.gw-chart-months > span {
  position: absolute;
  white-space: nowrap;
}
.gw-lower-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.gw-text-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
}
.gw-text-button:hover {
  color: var(--gw-accent);
}
.gw-transaction {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--gw-line);
  min-width: 0;
}
.gw-transaction:first-child {
  border-top: 0;
  padding-top: 0;
}
.gw-transaction:last-child {
  padding-bottom: 0;
}
.gw-transaction-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gw-transaction-surface);
  flex: none;
}
.gw-transaction-icon.is-income {
  background: var(--gw-transaction-surface);
  color: var(--gw-positive);
}
.gw-transaction-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.gw-transaction-name strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gw-transaction-name span {
  font-size: 10px;
  color: var(--gw-muted);
  margin-top: 2px;
}
.gw-transaction > strong {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.gw-transaction-status {
  font-size: 9px;
  color: var(--gw-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.gw-transaction-status.is-pending {
  color: var(--gw-pending);
}
.gw-transaction-status.is-canceled {
  color: var(--gw-danger);
}
.gw-pay {
  font-size: 9px;
  color: var(--gw-muted);
  border: 1px solid var(--gw-line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.gw-row-more {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  padding: 0;
  background: transparent;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.gw-row-more:hover {
  background: color-mix(in srgb, var(--gw-highlight) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gw-highlight) 14%, transparent);
}
.gw-small-label {
  font-size: 10px;
}
.gw-goal + .gw-goal {
  margin-top: 22px;
}
.gw-goal-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.gw-goal-top strong {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}
.gw-goal-top > span:last-child {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-goal-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gw-goal-surface);
  display: grid;
  place-items: center;
  flex: none;
}
.gw-goal-track {
  height: 5px;
  background: var(--gw-line);
  margin: 11px 0 6px;
  border-radius: 5px;
  overflow: hidden;
}
.gw-goal-track i {
  height: 100%;
  display: block;
  background: var(--gw-accent);
  border-radius: 5px;
}
.gw-goal-track.is-warning i {
  background: var(--gw-pending);
}
.gw-goal-track.is-critical i {
  background: var(--gw-danger);
}
.gw-goal p {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-goal p strong {
  font-weight: 500;
  color: var(--gw-ink);
}
.gw-desktop-dock {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
}
.gw-dock {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 30px;
  padding: 5px;
  white-space: nowrap;
  background: var(--gw-dock);
  backdrop-filter: blur(20px);
}
.gw-dock button,
.gw-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  padding: 10px 17px;
  font-size: 11px;
  text-decoration: none;
  transition:
    background 0.22s,
    color 0.22s;
}
.gw-dock button svg,
.gw-dock a svg {
  width: 15px;
  height: 15px;
}
.gw-dock button[aria-current] {
  background: var(--gw-dock-active);
  color: var(--gw-dock-ink);
  box-shadow: 0 3px 7px var(--gw-dock-shadow);
}
.gw-dock button:not([aria-current]):hover,
.gw-dock a:hover {
  background: var(--gw-dock-hover);
}
.gw-mobile-nav {
  display: none;
}
.gw-button {
  padding: 9px 13px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gw-button) !important;
  color: var(--gw-button-ink) !important;
  font-size: 11px !important;
  white-space: nowrap;
  text-decoration: none;
}
.gw-button:hover {
  filter: brightness(1.13);
}
.gw-button svg {
  width: 14px;
  height: 14px;
}
.gw-button--ghost {
  background: var(--gw-segment-active) !important;
  color: var(--gw-ink) !important;
  box-shadow: 0 2px 4px var(--gw-segment-shadow);
}
.gw-button--danger {
  background: var(--gw-danger) !important;
  color: #fff !important;
}
.gw-button--outline {
  background: transparent !important;
  color: var(--gw-ink) !important;
  border: 1px solid var(--gw-line) !important;
}
.gw-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gw-search);
  border: 1px solid var(--gw-line);
  border-radius: 8px;
  padding: 7px 10px;
}
.gw-search input {
  width: 165px;
  background: none;
  border: 0;
  caret-color: var(--gw-accent);
  font-size: 11px;
}
.gw-search input::placeholder {
  color: var(--gw-muted);
}
.gw-search button {
  padding: 0;
  display: flex;
}
.gw-count {
  margin-left: 6px;
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-empty {
  text-align: center;
  padding: 70px 15px;
  color: var(--gw-muted);
  font-size: 12px;
}
.gw-empty svg {
  margin-bottom: 12px;
}
.gw-empty h3 {
  font-size: 15px;
  color: var(--gw-ink);
  margin-bottom: 6px;
}
.gw-empty button.gw-link {
  margin-top: 15px;
  text-decoration: underline;
}
.gw-empty .gw-button {
  margin-top: 15px;
}
.gw-chart-empty {
  padding: 35px 15px;
  min-height: 160px;
}
.gw-savings-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gw-muted);
  font-size: 12px;
  padding: 24px 4px;
}
.gw-report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gw-report-stats.is-4 {
  grid-template-columns: repeat(4, 1fr);
}
.gw-report-stats strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  display: block;
}
.gw-report-stats .gw-kpi-of {
  font-size: 14px;
  color: var(--gw-muted);
  font-weight: 400;
  display: inline;
}
.gw-report-stats section > span,
.gw-report-stats section > small {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-report-stats .gw-panel-title {
  margin-bottom: 15px;
}
.gw-kpi-bar {
  height: 5px;
  background: var(--gw-line);
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}
.gw-kpi-bar span {
  display: block;
  height: 100%;
  background: var(--gw-accent);
  border-radius: 5px;
}
.gw-reports-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.gw-reports-grid .gw-chart-wrap svg {
  height: 185px;
}
.gw-chart-footnote {
  font-size: 9px;
  color: var(--gw-muted);
  margin-top: 15px !important;
}
.gw-category-list > div + div {
  margin-top: 19px;
}
.gw-category-list > div > div {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}
.gw-category-list strong {
  margin-left: auto;
  font-weight: 500;
}
.gw-category-list svg {
  width: 14px;
  height: 14px;
}
.gw-category-track {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: var(--gw-line);
  margin-top: 9px;
}
.gw-category-track i {
  display: block;
  height: 100%;
  background: var(--gw-accent);
  border-radius: 3px;
}
.gw-savings-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 10px 35px;
}
.gw-savings-orb {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gw-savings-orb);
  box-shadow: inset 0 1px 0 var(--gw-strong-edge);
}

/* ---------- Dashboard content (existing data, glass language) ---------- */
.gw-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--gw-account-surface);
}
.gw-notice svg {
  margin-top: 2px;
}
.gw-notice--warn {
  color: var(--gw-pending);
}
.gw-notice--danger {
  color: var(--gw-danger);
}
.gw-notice + .gw-notice,
.gw-plan .gw-notice {
  margin: 14px 0 0;
}
.gw-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.gw-dash-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.gw-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}
.gw-kpi {
  min-width: 0;
  padding: 21px;
}
.gw-kpi + .gw-kpi {
  border-left: 1px solid var(--gw-line);
}
.gw-kpi > strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.gw-kpi > span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-sos-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gw-sos-text {
  min-width: 0;
  flex: 1;
}
.gw-sos-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gw-referral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
  align-items: center;
  gap: 22px;
}
.gw-referral-main {
  min-width: 0;
}
.gw-ticket {
  min-width: 0;
}
.gw-ticket code {
  color: var(--gw-accent);
}
.gw-ticket-copy {
  color: var(--gw-accent);
}
.gw-dash-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 24px;
}
.gw-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gw-plan-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gw-plan-identity > div:last-child {
  display: flex;
  flex-direction: column;
}
.gw-plan-identity span {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-plan-identity h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.gw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gw-segment);
  color: var(--gw-muted);
  white-space: nowrap;
}
.gw-pill svg {
  width: 12px;
  height: 12px;
}
.gw-pill--warn {
  background: color-mix(in srgb, var(--gw-pending) 18%, transparent);
  color: var(--gw-pending);
}
.gw-pill--positive {
  background: var(--gw-positive-surface);
  color: var(--gw-positive);
}
.gw-pill--danger {
  background: color-mix(in srgb, var(--gw-danger) 16%, transparent);
  color: var(--gw-danger);
}
.gw-pill--muted {
  background: var(--gw-segment);
  color: var(--gw-muted);
}
.gw-ag-stat--today .gw-panel-title > svg {
  color: var(--gw-accent);
}
.gw-ag-stat--pending .gw-panel-title > svg {
  color: var(--gw-pending);
}
.gw-ag-stat--completed .gw-panel-title > svg {
  color: var(--gw-positive);
}
.gw-ag-stat--canceled .gw-panel-title > svg {
  color: var(--gw-danger);
}
.gw-agenda-filters .gw-select {
  width: 150px;
  min-width: 150px;
  height: 34px;
  padding: 0 32px 0 10px;
  background: color-mix(in srgb, var(--gw-panel) 72%, transparent);
  color: var(--gw-ink);
  border: 1px solid color-mix(in srgb, var(--gw-highlight) 32%, transparent);
  border-radius: 8px;
  font-size: 11px;
}
.gw-agenda-filters {
  flex-wrap: nowrap;
}
.gw-agenda-filters .gw-search,
.gw-agenda-filters .gw-segment {
  height: 34px;
  background: color-mix(in srgb, var(--gw-panel) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--gw-highlight) 32%, transparent);
  border-radius: 8px;
}
.gw-agenda-filters .gw-search {
  flex: 1 1 300px;
  max-width: 360px;
  padding: 0 10px;
}
.gw-agenda-filters .gw-search input {
  width: 100%;
  font-size: 11px;
}
.gw-agenda-filters .gw-segment {
  flex: 0 0 auto;
  height: 34px;
  align-items: center;
  overflow: hidden;
  gap: 3px;
  padding: 3px;
}
.gw-agenda-filters .gw-segment button {
  height: 26px !important;
  min-height: 26px !important;
  align-self: center;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
}
.gw-agenda-filters .gw-segment button[aria-pressed="true"] {
  background: var(--gw-panel);
  height: 26px !important;
  min-height: 26px !important;
}
.gw-agenda-filters .gw-select-wrap {
  height: 34px;
}
.gw-agenda-filters .gw-select-wrap svg {
  right: 9px;
}
@media (max-width: 700px) {
  .gw-agenda-filters {
    flex-wrap: wrap;
  }
  .gw-agenda-filters .gw-search {
    max-width: none;
    flex-basis: 100%;
  }
  .gw-agenda-filters .gw-segment {
    width: 100%;
    overflow-x: auto;
  }
  .gw-agenda-filters .gw-segment button {
    flex: 1 0 auto;
    padding-inline: 12px;
    font-size: 12px;
  }
  .gw-agenda-filters .gw-select-wrap,
  .gw-agenda-filters .gw-select {
    width: 100%;
    min-width: 0;
  }
}
.gw-finance-period {
  background: color-mix(in srgb, var(--gw-panel) 72%, transparent);
  border: 1px solid var(--gw-line);
  box-shadow: inset 0 1px 0 var(--gw-soft-edge);
}
.gw-finance-period button[aria-pressed="true"] {
  background: var(--gw-panel);
  box-shadow: 0 2px 4px var(--gw-segment-shadow);
}
.gw-gauge {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 22px auto 18px;
}
.gw-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gw-gauge circle {
  fill: none;
  stroke-width: 9;
}
.gw-gauge .track {
  stroke: var(--gw-line);
}
.gw-gauge .progress {
  stroke: var(--gw-accent);
  stroke-linecap: round;
  stroke-dasharray: 439.82;
  transition: stroke-dashoffset 0.6s ease;
}
.gw-gauge.is-warning .progress {
  stroke: var(--gw-pending);
}
.gw-gauge.is-critical .progress {
  stroke: var(--gw-danger);
}
.gw-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gw-gauge-text strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.gw-gauge-text span {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-usage-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-usage-detail {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-plan-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-plan-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gw-plan-meta svg {
  width: 14px;
  height: 14px;
}
.gw-card-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gw-feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.gw-feature-head > div:last-child {
  display: flex;
  flex-direction: column;
}
.gw-feature-head h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gw-feature-head p {
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-sos-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-referral-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.gw-referral-metrics > div {
  background: var(--gw-goal-surface);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.gw-referral-metrics strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.gw-referral-metrics span {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gw-account-surface);
  border: 1px dashed var(--gw-line);
  border-radius: 12px;
  padding: 10px 12px;
}
.gw-coupon > div {
  display: flex;
  flex-direction: column;
}
.gw-coupon span {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-coupon code {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gw-ink);
}
.gw-referral-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  color: var(--gw-muted);
}

/* ── Painel: layout de referência (SOS em linha, números de indicações e cupom-ticket) ── */
.gw-sos-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gw-danger) 15%, transparent);
  color: var(--gw-danger);
}
.gw-sos-text h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gw-sos-text p {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--gw-muted);
}
.gw-kpi .gw-kpi-of {
  font-size: 14px;
  font-weight: 400;
  color: var(--gw-muted);
  letter-spacing: 0;
}
.gw-referral .gw-referral-metrics {
  display: flex;
  gap: 30px;
  margin-bottom: 0;
}
.gw-referral .gw-referral-metrics > div {
  background: none;
  padding: 0;
}
.gw-referral .gw-referral-metrics strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.gw-referral-empty {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}
.gw-ticket {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--gw-accent) 9%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--gw-accent) 45%, transparent);
}
.gw-ticket small {
  font-size: 11px;
  font-weight: 600;
  color: var(--gw-accent);
}
.gw-ticket-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gw-ticket-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gw-ink);
  background: none;
  padding: 0;
}
.gw-ticket-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--gw-panel);
  color: var(--gw-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gw-ticket-copy:hover {
  background: color-mix(in srgb, var(--gw-accent) 12%, var(--gw-panel));
}
.gw-ticket-copy.is-done {
  background: var(--gw-accent);
  color: light-dark(#fff, #10243c);
}

.gw-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.gw-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--gw-search);
  border: 1px solid var(--gw-line);
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  font-size: 11px;
  max-width: 100%;
  cursor: pointer;
}
.gw-select option {
  background: var(--gw-fallback);
  color: var(--gw-ink);
}
.gw-select-wrap svg {
  position: absolute;
  right: 9px;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: 0.7;
}
.gw-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.gw-filters .gw-spacer {
  flex: 1;
}
.gw-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  color: var(--gw-muted);
  margin-bottom: 14px;
}
.gw-summary-line strong {
  font-weight: 500;
  color: var(--gw-ink);
  margin-left: 4px;
}
.gw-resume > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--gw-line);
}
.gw-resume > div:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.gw-resume strong {
  font-weight: 500;
}
.gw-resume .is-total {
  font-size: 14px;
}
.gw-resume .is-total strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.gw-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--gw-muted);
  margin-top: 8px;
}
.gw-hint svg {
  width: 13px;
  height: 13px;
}
.gw-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gw-line);
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gw-page-btn {
  border: 1px solid var(--gw-line) !important;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 10px;
}
.gw-page-btn:hover:not(:disabled) {
  background: var(--gw-control-hover);
}

/* Agenda */
.gw-ag-head,
.gw-ag-row {
  display: grid;
  grid-template-columns: 74px 1.4fr 1.3fr 1fr 120px 36px;
  gap: 14px;
  align-items: center;
}
.gw-ag-head {
  font-size: 10px;
  color: var(--gw-muted);
  padding: 0 4px 10px;
}
.gw-ag-row {
  padding: 12px 4px;
  border-top: 1px solid var(--gw-line);
  cursor: pointer;
  border-radius: 10px;
  min-width: 0;
}
.gw-ag-row:hover {
  background: var(--gw-hover);
}
.gw-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gw-transaction-surface);
  border-radius: 11px;
  padding: 6px 4px;
  line-height: 1.2;
}
.gw-date-chip b {
  font-size: 17px;
  font-weight: 500;
}
.gw-date-chip span {
  font-size: 9px;
  color: var(--gw-muted);
}
.gw-client {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gw-client > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gw-client strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gw-client span {
  font-size: 10px;
  color: var(--gw-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gw-ag-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--gw-muted);
  min-width: 0;
}
.gw-ag-cell span,
.gw-ag-cell a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}
.gw-ag-cell svg {
  width: 14px;
  height: 14px;
}

/* Hours */
.gw-hours-row {
  display: grid;
  grid-template-columns: 130px 110px 120px 30px 120px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--gw-line);
  font-size: 12px;
}
.gw-hours-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.gw-hours-row.is-closed {
  opacity: 0.6;
}
.gw-hours-row strong {
  font-weight: 500;
}
.gw-hours-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  cursor: pointer;
}
.gw-hours-toggle input {
  accent-color: var(--gw-accent);
}
.gw-hours-row input[type="time"] {
  background: var(--gw-search);
  border: 1px solid var(--gw-line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
}
.gw-hours-row input[type="time"]:disabled {
  opacity: 0.5;
}
.gw-hours-sep {
  text-align: center;
  font-size: 11px;
  color: var(--gw-muted);
}

/* Profile / Sobre você */
.gw-profile-card { max-width: 920px; }
.gw-profile-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--gw-line); border-radius: 11px; background: color-mix(in srgb, var(--gw-panel) 42%, transparent); }
.gw-profile-tabs button { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 8px; color: var(--gw-muted); font-size: 11px; }
.gw-profile-tabs button:hover { background: var(--gw-hover); color: var(--gw-ink); }
.gw-profile-tabs button.is-active { background: var(--gw-panel); color: var(--gw-ink); box-shadow: 0 2px 6px var(--gw-soft-shadow); }
.gw-profile-card .gw-panel-title { align-items: flex-start; }
.gw-profile-card .gw-panel-title > div { display: flex; flex-direction: column; gap: 4px; }
.gw-profile-subtitle { font-size: 11px; color: var(--gw-muted); }
.gw-profile-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--gw-account-surface); color: var(--gw-accent); }
.gw-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gw-profile-field { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 11px; color: var(--gw-muted); }
.gw-profile-field--full { grid-column: 1 / -1; }
.gw-profile-field input, .gw-profile-field select, .gw-profile-field textarea, .gw-profile-select, .gw-profile-readonly { width: 100%; border: 1px solid color-mix(in srgb, var(--gw-highlight) 28%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--gw-panel) 65%, transparent); color: var(--gw-ink); padding: 10px 11px; font-size: 12px; outline: none; }
.gw-profile-field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.gw-profile-field input:focus, .gw-profile-field select:focus, .gw-profile-field textarea:focus, .gw-profile-select:focus { border-color: var(--gw-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gw-accent) 16%, transparent); }
.gw-profile-field small { font-size: 10px; color: var(--gw-muted); }
.gw-profile-input-prefix { display: flex; align-items: stretch; border: 1px solid color-mix(in srgb, var(--gw-ink) 18%, transparent); border-radius: 9px; overflow: hidden; background: color-mix(in srgb, var(--gw-panel) 58%, transparent); }
.gw-profile-input-prefix > span { display: flex; align-items: center; padding: 0 10px; color: var(--gw-muted); border-right: 1px solid var(--gw-line); white-space: nowrap; font-size: 11px; }
.gw-profile-input-prefix input { border: 0; border-radius: 0; background: transparent; }
.gw-profile-readonly { color: var(--gw-ink); min-height: 38px; }
.gw-profile-select { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; min-height: 38px; border: 1px solid color-mix(in srgb, var(--gw-highlight) 32%, transparent) !important; background: color-mix(in srgb, var(--gw-panel) 68%, transparent) !important; }
.gw-profile-select:hover { border-color: color-mix(in srgb, var(--gw-accent) 55%, transparent) !important; }
.gw-profile-options { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--gw-line); border-radius: 11px; background: var(--gw-popover); box-shadow: 0 18px 45px var(--gw-popover-shadow); backdrop-filter: blur(var(--gw-blur)); }
.gw-profile-options label { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 7px; color: var(--gw-ink); cursor: pointer; }
.gw-profile-options label:hover { background: var(--gw-hover); }
.gw-profile-options input { width: auto; accent-color: var(--gw-accent); }
.gw-profile-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--gw-line); border-radius: 9px; background: color-mix(in srgb, var(--gw-panel) 38%, transparent); cursor: pointer; }
.gw-profile-check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--gw-accent); }
.gw-profile-check span { display: flex; flex-direction: column; gap: 3px; color: var(--gw-ink); }
.gw-profile-check strong { font-size: 12px; font-weight: 500; }
.gw-profile-counter { text-align: right; margin-top: -3px; }
.gw-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--gw-line); font-size: 10px; color: var(--gw-muted); }
.gw-profile-actions--top { border-top: 0; padding-top: 0; margin-top: -4px; margin-bottom: 18px; }
.gw-profile-visibility-list, .gw-profile-preferences { display: grid; gap: 10px; }
.gw-profile-visibility-list .gw-profile-check { min-height: 60px; align-items: center; }
.gw-profile-preference { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--gw-line); border-radius: 11px; color: var(--gw-ink); text-decoration: none; text-align: left; background: color-mix(in srgb, var(--gw-panel) 38%, transparent); }
.gw-profile-preference:hover { background: var(--gw-hover); }
.gw-profile-preference > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.gw-profile-preference strong { font-size: 12px; font-weight: 500; }
.gw-profile-preference small { font-size: 10px; color: var(--gw-muted); }
.gw-profile-preference--danger { color: var(--gw-danger); }
.gw-profile-location-list { display: grid; gap: 8px; margin-bottom: 16px; }
.gw-profile-location { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--gw-line); border-radius: 10px; background: color-mix(in srgb, var(--gw-panel) 38%, transparent); }
.gw-profile-location > div { display: flex; flex-direction: column; gap: 3px; }
.gw-profile-location strong { font-size: 12px; font-weight: 500; }
.gw-profile-location small { font-size: 10px; color: var(--gw-muted); }
.gw-profile-location-options { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; font-size: 11px; color: var(--gw-muted); }
.gw-profile-location-options input { accent-color: var(--gw-accent); margin-right: 5px; }

/* Ads */
.gw-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  justify-content: start;
  gap: 16px;
}
.gw-ad-item {
  position: relative;
  min-width: 0;
}
.gw-ad-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gw-segment-active) !important;
  box-shadow: 0 2px 6px var(--gw-segment-shadow);
}
.gw-ads-grid .cat-card {
  background: color-mix(in srgb, var(--gw-panel) 42%, transparent) !important;
  border: 1px solid var(--gw-line);
  border-radius: 17px;
  box-shadow: inset 0 1px 0 var(--gw-soft-edge), 0 8px 22px -20px var(--gw-panel-shadow);
  backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
  -webkit-backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
}
.gw-ads-grid .cat-card:hover {
  border-color: color-mix(in srgb, var(--gw-accent) 28%, var(--gw-line));
  box-shadow: inset 0 1px 0 var(--gw-soft-edge), 0 14px 28px -22px var(--gw-shadow);
}
.gw-ads-grid .cat-card-image,
.gw-ads-grid .cat-card-placeholder {
  background: color-mix(in srgb, var(--gw-panel) 28%, transparent) !important;
}
.gw-ads-grid .cat-card-image {
  aspect-ratio: 16 / 8;
}
.gw-ads-grid .cat-card-placeholder {
  color: var(--gw-muted);
}
.gw-ads-grid .cat-card-link,
.gw-ads-grid .cat-card-body,
.gw-ads-grid .cat-card-footer {
  background: transparent !important;
}
.gw-ads-grid .cat-card-title,
.gw-ads-grid .cat-card-rating-value {
  color: var(--gw-ink);
}
.gw-ads-grid .cat-card-description,
.gw-ads-grid .cat-card-professional-name,
.gw-ads-grid .cat-card-rating-count {
  color: var(--gw-muted);
}
.gw-ads-grid .cat-card-avatar {
  background: var(--gw-transaction-surface);
  border-color: var(--gw-line);
}
.gw-ads-grid .cat-card-location {
  background: color-mix(in srgb, var(--gw-panel) 36%, transparent);
  border-color: var(--gw-line);
  color: var(--gw-muted);
}
.gw-ads-grid .cat-card-footer {
  border-top-color: var(--gw-line);
}

/* Settings (Ajustar visual) */
.gw-material {
  position: absolute;
  z-index: 20;
  max-height: calc(100svh - 128px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gw-scrollbar) transparent;
  right: 10px;
  top: 75px;
  width: 300px;
  border-radius: 22px;
  padding: 22px;
  background: var(--gw-popover);
  box-shadow:
    inset 0 1px 0 var(--gw-soft-edge),
    0 24px 80px var(--gw-popover-shadow);
}
.gw-material-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gw-material-title > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.gw-material h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.gw-material-icon {
  display: grid;
  place-items: center;
}
.gw-material > p {
  font-size: 11px;
  color: var(--gw-muted);
  margin: 7px 0 18px;
}
.gw-material-sample {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 13px;
  margin-bottom: 17px;
  background: color-mix(
    in srgb,
    var(--gw-tint) calc(var(--gw-opacity) * 100%),
    transparent
  );
  backdrop-filter: blur(var(--gw-blur));
  box-shadow:
    inset 0 1px 0
      color-mix(
        in srgb,
        var(--gw-highlight) calc(var(--gw-edge) * 100%),
        transparent
      ),
    0 12px 20px -18px var(--gw-sample-shadow);
  font-size: 12px;
}
.gw-presets {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.gw-presets button {
  flex: 1;
  border: 1px solid var(--gw-line);
  border-radius: 7px;
  padding: 6px 0;
  font-size: 11px;
}
.gw-presets button:hover {
  background: var(--gw-control-hover);
}
.gw-range {
  display: block;
  margin: 17px 0;
}
.gw-range > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.gw-range output {
  font-size: 10px;
  color: var(--gw-muted);
}
.gw-range input {
  width: 100%;
  accent-color: var(--gw-accent);
  height: 16px;
  margin: 8px 0 0;
  cursor: pointer;
}
.gw-tint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-top: 20px;
}
.gw-tint input {
  height: 28px;
  width: 42px;
  padding: 2px;
  background: none;
  border: 1px solid var(--gw-line);
  border-radius: 6px;
  cursor: pointer;
}
.gw-reset {
  width: 100%;
  border: 1px solid var(--gw-line) !important;
  border-radius: 8px;
  padding: 8px;
  margin-top: 22px;
  font-size: 11px !important;
}
.gw-reset:hover {
  background: var(--gw-control-hover);
}
.gw-notifications {
  position: absolute;
  right: 25px;
  top: 75px;
  z-index: 21;
  width: 280px;
  border-radius: 16px;
  padding: 22px;
  background: var(--gw-notification);
  border: 1px solid var(--gw-line);
  box-shadow: inset 0 1px 0 var(--gw-soft-edge), 0 24px 70px var(--gw-popover-shadow);
  backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
  -webkit-backdrop-filter: blur(var(--gw-blur)) saturate(var(--gw-saturation));
}
.gw-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gw-notifications-title { display: flex; align-items: center; gap: 10px; }
.gw-notifications-title > div { display: flex; flex-direction: column; gap: 2px; }
.gw-notifications-title > div > span { font-size: 10px; color: var(--gw-muted); }
.gw-notifications-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--gw-accent) 16%, transparent); color: var(--gw-accent); }
.gw-notifications h2 {
  font-size: 15px;
  font-weight: 500;
}
.gw-notification-list { display: grid; gap: 8px; margin-top: 17px; }
.gw-notification-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--gw-line); border-radius: 10px; background: color-mix(in srgb, var(--gw-panel) 35%, transparent); }
.gw-notification-item-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--gw-accent); background: color-mix(in srgb, var(--gw-accent) 14%, transparent); }
.gw-notification-item.is-warning .gw-notification-item-icon { color: var(--gw-pending); background: color-mix(in srgb, var(--gw-pending) 14%, transparent); }
.gw-notification-item.is-danger .gw-notification-item-icon { color: var(--gw-danger); background: color-mix(in srgb, var(--gw-danger) 14%, transparent); }
.gw-notification-item.is-success .gw-notification-item-icon { color: var(--gw-positive); background: color-mix(in srgb, var(--gw-positive) 14%, transparent); }
.gw-notification-item strong { display: block; font-size: 11px; font-weight: 600; }
.gw-notification-item p { margin: 3px 0 0; font-size: 10px; line-height: 1.4; color: var(--gw-muted); }
.gw-notification-item.is-empty { display: block; text-align: center; padding: 18px 10px; }
.gw-notification-item.is-empty .gw-notification-item-icon { margin: 0 auto 8px; color: var(--gw-positive); }
.gw-notification-item.is-empty p { margin-top: 4px; }
}
.gw-sun {
  display: none;
}
[data-theme="dark"] .gw-sun {
  display: block;
}
[data-theme="dark"] .gw-moon {
  display: none;
}

.gw-reveal {
  animation: gw-rise 0.48s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}
.gw-view > .gw-reveal:nth-child(2) {
  animation-delay: 0.045s;
}
.gw-view > .gw-reveal:nth-child(3) {
  animation-delay: 0.09s;
}
.gw-view > .gw-reveal:nth-child(4) {
  animation-delay: 0.135s;
}
@keyframes gw-rise {
  from {
    transform: translateY(12px);
    opacity: 0.45;
    filter: blur(3px);
  }
  to {
    transform: none;
    opacity: 1;
    filter: none;
  }
}
.gw-view > * + * {
  margin-top: 16px;
}

@supports not (backdrop-filter: blur(1px)) {
  .gw-glass,
  .gw-panel {
    background: var(--gw-fallback);
  }
}
@media (min-width: 1550px) {
  .gw-root {
    padding-top: 65px;
  }
  .gw-main {
    padding-top: 36px;
  }
  .gw-chart-wrap svg {
    height: 150px;
  }
  .gw-panel {
    padding: 25px;
  }
  .gw-transaction {
    padding: 14px 0;
  }
}
@media (max-width: 1050px) {
  .gw-root {
    padding: 24px 18px;
  }
  .gw-main {
    padding: 25px 23px;
  }
  .gw-main.has-dock {
    padding-bottom: 25px;
  }
  .gw-sidebar {
    display: none;
  }
  .gw-balance-value {
    font-size: 32px;
  }
  .gw-transaction-status,
  .gw-pay {
    display: none;
  }
  .gw-personal,
  .gw-brand-divider {
    display: none;
  }
  .gw-panel {
    padding: 18px;
  }
  .gw-chart-summary {
    gap: 20px;
  }
  .gw-chart-summary strong {
    font-size: 19px;
  }
  .gw-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .gw-mobile-nav .gw-dock {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gw-desktop-dock {
    display: none;
  }
  .gw-dash-grid {
    grid-template-columns: 1fr;
  }
  .gw-dash-col {
    position: static;
    order: -1;
  }
  .gw-kpi-strip {
    grid-template-columns: 1fr;
  }
  .gw-kpi + .gw-kpi {
    border-left: 0;
    border-top: 1px solid var(--gw-line);
  }
  .gw-sos-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .gw-sos-actions {
    width: 100%;
  }
  .gw-referral {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .gw-root {
    padding: 12px 10px 24px;
  }
  .gw-topbar {
    height: 56px;
    padding: 0 12px;
    border-radius: 17px;
    margin-bottom: 12px;
  }
  .gw-toolbar {
    gap: 3px;
  }
  .gw-brand {
    gap: 7px;
  }
  .gw-brand strong {
    font-size: 12px;
  }
  .gw-brand-icon {
    width: 25px;
    height: 25px;
  }
  .gw-bell,
  .gw-avatar {
    display: none !important;
  }
  .gw-adjust {
    padding: 8px;
    font-size: 11px !important;
    gap: 5px;
  }
  .gw-main {
    border-radius: 20px;
    padding: 23px 15px;
  }
  .gw-view-heading {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .gw-heading-action {
    justify-content: flex-start;
  }
  .gw-view-heading h1 {
    font-size: 25px;
    line-height: 1.12;
  }
  .gw-greeting {
    font-size: 11px;
  }
  .gw-mobile-nav .gw-dock {
    padding: 4px;
    border-radius: 12px;
    justify-content: space-between;
    background: var(--gw-mobile-dock);
    box-shadow: none;
  }
  .gw-dock button,
  .gw-dock a {
    font-size: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    gap: 5px;
  }
  .gw-dock button svg,
  .gw-dock a svg {
    width: 13px;
    height: 13px;
  }
  .gw-overview-grid,
  .gw-lower-grid,
  .gw-reports-grid,
  .gw-dash-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gw-ticket-code {
    flex-wrap: wrap;
  }
  .gw-balance-value {
    font-size: 39px;
  }
  .gw-account {
    padding-top: 23px;
  }
  .gw-panel {
    border-radius: 15px;
    padding: 18px;
  }
  .gw-chart-wrap svg {
    height: 130px;
  }
  .gw-chart-summary strong {
    font-size: 22px;
  }
  .gw-chart-summary {
    gap: 35px;
  }
  .gw-panel-title {
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .gw-material {
    right: 4px;
    top: 65px;
    width: min(310px, calc(100% - 8px));
    padding: 20px;
    max-height: calc(100svh - 90px);
  }
  .gw-notifications {
    right: 4px;
    max-width: calc(100% - 8px);
  }
  .gw-transaction-name strong,
  .gw-transaction > strong {
    font-size: 11px;
  }
  .gw-search {
    padding: 7px;
    width: 100%;
  }
  .gw-search input {
    width: 100%;
    min-width: 0;
  }
  .gw-report-stats,
  .gw-report-stats.is-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gw-report-stats .gw-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .gw-report-stats .gw-panel-title {
    margin: 0;
  }
  .gw-report-stats .gw-panel-title svg {
    display: none;
  }
  .gw-report-stats strong {
    font-size: 26px;
  }
  .gw-report-stats section > span,
  .gw-report-stats section > small,
  .gw-report-stats .gw-kpi-bar {
    grid-column: 1/-1;
    margin-top: 8px;
  }
  .gw-ag-head {
    display: none;
  }
  .gw-ag-row {
    grid-template-columns: 58px 1fr auto;
    grid-template-areas:
      "date client menu"
      "date addr addr"
      "date contact status";
    row-gap: 6px;
  }
  .gw-ag-row > :nth-child(1) {
    grid-area: date;
  }
  .gw-ag-row > :nth-child(2) {
    grid-area: client;
  }
  .gw-ag-row > :nth-child(3) {
    grid-area: addr;
  }
  .gw-ag-row > :nth-child(4) {
    grid-area: contact;
  }
  .gw-ag-row > :nth-child(5) {
    grid-area: status;
    justify-self: end;
  }
  .gw-ag-row > :nth-child(6) {
    grid-area: menu;
  }
  .gw-hours-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .gw-hours-row .gw-hours-sep {
    display: none;
  }
  .gw-hours-row strong {
    grid-column: 1 / -1;
  }
  .gw-savings-intro {
    gap: 12px;
    padding: 10px 2px 26px;
    flex-wrap: wrap;
  }
  .gw-chart-months {
    font-size: 8px;
  }
}
@media (max-height: 550px) {
  .gw-material {
    top: 70px;
    max-height: calc(100svh - 110px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gw-root * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MODAIS & MENUS GLASS — camada gw-modal / gw-menu
   Aplicada sobre a marcação Bootstrap existente dos modais do painel
   (Novo/Editar Anúncio, Perfil e Horários, Cupom, Agendamentos,
   Concluir Pagamento, Lançamento Financeiro, Solicitar Área) e sobre
   os menus flutuantes de ação (⋯). Uso dos tokens --gw-* (claro/escuro).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Backdrop (o próprio .modal faz o papel de fundo) ─────────────── */
.gw-modal {
  background: light-dark(rgb(15 23 42 / 0.42), rgb(5 12 24 / 0.66));
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

/* ── Painel ───────────────────────────────────────────────────────── */
.gw-modal .modal-content {
  background: color-mix(in srgb, var(--gw-surface) 42%, transparent);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--gw-highlight) 28%, transparent) !important;
  color: var(--gw-ink);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  box-shadow:
    inset 0 0 0 1px var(--gw-soft-edge),
    0 34px 90px -34px var(--gw-popover-shadow);
}

/* ── Cabeçalhos ───────────────────────────────────────────────────── */
.gw-modal .modal-header,
.gw-modal .edit-modal-header,
.gw-modal .appt-modal-header {
  background: transparent;
  border-bottom: 1px solid var(--gw-line);
  padding: 1.15rem 1.35rem 0.95rem;
  gap: 0.85rem;
}
.gw-modal .modal-header.border-bottom-0 {
  border-bottom: 1px solid var(--gw-line) !important;
  padding-bottom: 0.95rem !important;
}
.gw-modal .modal-title,
.gw-modal .edit-modal-title,
.gw-modal .appt-modal-title {
  color: var(--gw-ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.gw-modal .edit-modal-subtitle,
.gw-modal .appt-modal-subtitle {
  color: var(--gw-muted);
  font-size: 0.74rem;
}

/* ── Ícone do cabeçalho (quadrado accent) ─────────────────────────── */
.gw-modal .edit-modal-icon,
.gw-modal .appt-modal-icon {
  background: var(--gw-income-surface);
  color: var(--gw-accent);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--gw-soft-edge);
}

/* ── Botões de fechar ─────────────────────────────────────────────── */
.gw-modal .edit-modal-close,
.gw-modal .appt-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gw-segment);
  border: 1px solid var(--gw-line);
  color: var(--gw-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gw-modal .edit-modal-close:hover,
.gw-modal .appt-modal-close:hover {
  background: var(--gw-hover);
  color: var(--gw-ink);
}
.gw-modal .btn-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--gw-line);
  background-color: var(--gw-segment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 1;
}
.gw-modal[data-theme="dark"] .btn-close {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f4f4ed'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.gw-modal .btn-close:hover {
  background-color: var(--gw-hover);
}

/* ── Corpo ────────────────────────────────────────────────────────── */
.gw-modal .modal-body,
.gw-modal .edit-modal-body,
.gw-modal .appt-modal-body {
  color: var(--gw-ink);
  padding: 1.2rem 1.35rem 1.3rem;
}

/* Anúncios usam duas colunas quando os campos são independentes, como no
   painel principal. Em telas pequenas voltam para uma coluna. */
.gw-modal .edit-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0;
}
.gw-modal .edit-modal-form > .edit-field {
  grid-column: 1 / -1;
  margin-bottom: 0.62rem;
  min-width: 0;
}
.gw-modal .edit-modal-form > .edit-field.edit-field-half {
  grid-column: span 1;
}
.gw-modal .edit-modal-form > .edit-row,
.gw-modal .edit-modal-form > .edit-photos-section,
.gw-modal .edit-modal-form > .edit-modal-footer {
  grid-column: 1 / -1;
}
.gw-modal .edit-modal-form .edit-field-half {
  min-width: 0;
}
.gw-modal .modal-body p,
.gw-modal .text-on-surface-variant {
  color: var(--gw-muted);
}

/* ── Formulários ──────────────────────────────────────────────────── */
.gw-modal .form-label,
.gw-modal .edit-label,
.gw-modal .appt-label {
  color: var(--gw-muted);
  font-weight: 600;
  font-size: 0.74rem;
}
.gw-modal .form-label[style*="--color-primary"],
.gw-modal .form-label[style*="color: var(--color-primary)"] {
  color: var(--gw-accent) !important;
}
.gw-modal .form-control,
.gw-modal .form-select,
.gw-modal .appt-input,
.gw-modal .edit-input,
.gw-modal input[type="time"],
.gw-modal input[type="date"],
.gw-modal textarea {
  width: 100%;
  min-height: 44px;
  background-color: color-mix(in srgb, var(--gw-panel) 58%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--gw-highlight) 24%, transparent) !important;
  border-radius: 12px;
  color: var(--gw-ink) !important;
  box-shadow: inset 0 1px 0 var(--gw-soft-edge);
}
.gw-modal .edit-input {
  min-height: 40px;
  padding: 0.56rem 0.8rem;
}
.gw-modal textarea.edit-input {
  min-height: 88px;
}
.gw-modal .edit-input:disabled,
.gw-modal .form-control:disabled,
.gw-modal .form-select:disabled,
.gw-modal .appt-input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.gw-modal .form-control:focus,
.gw-modal .form-select:focus,
.gw-modal .appt-input:focus,
.gw-modal .edit-input:focus {
  background-color: color-mix(in srgb, var(--gw-surface) 72%, transparent) !important;
  border-color: var(--gw-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gw-accent) 24%, transparent);
}
.gw-modal .edit-input::placeholder,
.gw-modal .form-control::placeholder,
.gw-modal .appt-input::placeholder {
  color: var(--gw-muted) !important;
  opacity: 0.78;
}
.gw-modal .edit-select,
.gw-modal select.form-select,
.gw-modal select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--gw-muted) 50%),
    linear-gradient(135deg, var(--gw-muted) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 2.7rem !important;
}
.gw-modal .edit-select option,
.gw-modal select.form-select option,
.gw-modal select.form-control option {
  background: var(--gw-panel);
  color: var(--gw-ink);
}
.gw-modal .edit-search-wrapper {
  position: relative;
}
.gw-modal .edit-search-input {
  padding-left: 2.35rem;
}
.gw-modal .edit-search-wrapper > .edit-search-icon {
  color: var(--gw-muted);
}
.gw-modal .edit-field-hint {
  color: var(--gw-muted) !important;
}
.gw-modal .edit-info-banner,
.gw-modal .edit-warning-banner,
.gw-modal .edit-alert-warning {
  background: color-mix(in srgb, var(--gw-accent) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--gw-accent) 18%, transparent);
  color: var(--gw-muted) !important;
}
.gw-modal .edit-photo-empty,
.gw-modal .edit-photo-add,
.gw-modal .edit-photo-card {
  background: color-mix(in srgb, var(--gw-panel) 36%, transparent) !important;
  border-color: color-mix(in srgb, var(--gw-highlight) 22%, transparent) !important;
  color: var(--gw-muted);
}
.gw-modal .edit-photo-empty-icon {
  background: color-mix(in srgb, var(--gw-accent) 16%, transparent) !important;
}
.gw-modal .edit-photo-empty-title {
  color: var(--gw-ink) !important;
}
.gw-modal .edit-photo-empty-hint {
  color: var(--gw-muted) !important;
}
.gw-modal .form-control.bg-light {
  background-color: var(--gw-segment) !important;
}
.gw-modal .form-control::placeholder {
  color: var(--gw-muted);
  opacity: 0.7;
}
.gw-modal .form-check-input {
  border-color: var(--gw-line);
  background-color: var(--gw-surface);
}
.gw-modal .form-check-input:checked {
  background-color: var(--gw-accent);
  border-color: var(--gw-accent);
}
.gw-modal .validation-message {
  color: var(--gw-danger);
  font-size: 0.74rem;
}

/* ── Rodapés ──────────────────────────────────────────────────────── */
.gw-modal .modal-footer,
.gw-modal .edit-modal-footer,
.gw-modal .appt-modal-footer {
  background: transparent;
  border-top: 1px solid var(--gw-line);
  padding: 0.95rem 1.35rem;
  gap: 0.55rem;
}

/* Todo botão de fechar mantém a mesma área circular, inclusive nos
   modais antigos que ainda usam ui-icon-button. */
.gw-modal .edit-modal-close,
.gw-modal .appt-modal-close,
.gw-modal .btn-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 34px;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  border-radius: 50% !important;
  transform: none !important;
}
.gw-modal .edit-modal-close:hover,
.gw-modal .appt-modal-close:hover,
.gw-modal .btn-close:hover {
  transform: none !important;
}

/* O modal de anúncio é longo: o painel continua glass e apenas o corpo rola. */
.gw-modal .modal-dialog-scrollable .modal-content,
.gw-modal .edit-modal-body {
  max-height: calc(100dvh - 32px);
}
.gw-modal .modal-dialog-scrollable .modal-body,
.gw-modal .edit-modal-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gw-scrollbar) 58%, transparent) transparent;
}

/* ── Botões ───────────────────────────────────────────────────────── */
.gw-modal .edit-btn-cancel,
.gw-modal .appt-btn-cancel,
.gw-modal .btn-light,
.gw-modal .btn-outline-secondary {
  background: var(--gw-segment);
  border: 1px solid var(--gw-line);
  color: var(--gw-ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.gw-modal .edit-btn-cancel:hover:not(:disabled),
.gw-modal .appt-btn-cancel:hover:not(:disabled),
.gw-modal .btn-light:hover {
  background: var(--gw-hover);
  color: var(--gw-ink);
}
.gw-modal .edit-btn-save,
.gw-modal .appt-btn-save,
.gw-modal .btn-success {
  background: var(--gw-button);
  border: 1px solid transparent;
  color: var(--gw-button-ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.gw-modal .edit-btn-save:hover:not(:disabled),
.gw-modal .appt-btn-save:hover:not(:disabled),
.gw-modal .btn-success:hover {
  background: color-mix(in srgb, var(--gw-button) 86%, #000);
  color: var(--gw-button-ink);
  transform: none;
  box-shadow: 0 10px 22px -14px var(--gw-shadow);
}
.gw-modal .edit-btn-save:hover:not(:disabled) *,
.gw-modal .edit-btn-save:focus:not(:disabled) *,
.gw-modal .edit-btn-save:focus-visible:not(:disabled) *,
.gw-modal .appt-btn-save:hover:not(:disabled) *,
.gw-modal .appt-btn-save:focus:not(:disabled) * {
  color: var(--gw-button-ink) !important;
}
.gw-modal .edit-btn-save:disabled,
.gw-modal .appt-btn-save:disabled,
.gw-modal .btn-success:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* ── Botões auxiliares dentro do corpo ────────────────────────────── */
.gw-modal .edit-link-btn,
.gw-modal .edit-request-area-btn {
  background: transparent;
  border: none;
  color: var(--gw-accent);
  font-weight: 600;
  padding: 0;
}
.gw-modal .edit-link-btn:hover,
.gw-modal .edit-request-area-btn:hover {
  color: var(--gw-accent);
  text-decoration: underline;
}
.gw-modal code {
  background: var(--gw-segment);
  color: var(--gw-accent);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
}

/* ── Scrollbar do corpo ───────────────────────────────────────────── */
.gw-modal .edit-modal-body::-webkit-scrollbar,
.gw-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}
.gw-modal .edit-modal-body::-webkit-scrollbar-thumb,
.gw-modal .modal-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--gw-scrollbar) 55%, transparent);
  border-radius: 999px;
}
@media (max-width: 700px) {
  .gw-modal .edit-modal-form {
    grid-template-columns: 1fr;
  }
  .gw-modal .edit-modal-form > .edit-field.edit-field-half,
  .gw-modal .edit-modal-form > .edit-row,
  .gw-modal .edit-modal-form > .edit-photos-section,
  .gw-modal .edit-modal-form > .edit-modal-footer {
    grid-column: 1 / -1;
  }
}

/* ── Menus flutuantes de ação (⋯) ─────────────────────────────────── */
.action-menu-popover.gw-menu {
  background: var(--gw-popover);
  border: 1px solid var(--gw-soft-edge);
  border-radius: 16px;
  padding: 0.4rem;
  min-width: 196px;
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  box-shadow: 0 26px 70px -30px var(--gw-popover-shadow);
}
.gw-menu .profile-menu-item {
  background: transparent;
  color: var(--gw-ink);
  border-radius: 11px;
  padding: 0.6rem 0.7rem;
  min-height: 0;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 500;
}
.gw-menu .profile-menu-item i:first-child {
  color: var(--gw-muted);
  opacity: 0.9;
}
.gw-menu .profile-menu-item:hover {
  background: var(--gw-hover);
  color: var(--gw-ink);
}
.gw-menu .profile-menu-item.text-danger i:first-child,
.gw-menu .profile-menu-item.text-danger span {
  color: var(--gw-danger);
}
