:root {
  --vx-surface: #f3f5fa;
  --vx-navy: #18213a;
  --vx-white: #fff;
  --vx-accent: #5842cf;
}

.vx-gate {
  flex: 1 0 auto; /* cresce com cartões mais altos que a tela */
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
  background: var(--vx-navy);
}
.vx-gate-card {
  width: min(100%, 425px);
  padding: clamp(24px, 5vw, 38px);
  border-top: 4px solid #957bff;
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 64px #070c2673;
}
.vx-brand {
  display: inline-block;
  font:
    italic 800 22px/1.1 Montserrat,
    Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.vx-brand span {
  display: inline-block;
  margin-left: 0.18em;
  color: var(--blue);
}
.vx-gate h1 {
  margin: 25px 0 6px;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.vx-muted,
.vx-identity small,
.vx-source small {
  color: var(--mute);
}
.vx-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.vx-form .vx-btn {
  justify-self: start;
}
.vx-gate .vx-form .vx-btn {
  justify-self: stretch;
}
.vx-auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.vx-auth-actions .vx-muted {
  color: var(--mute);
}
.vx-google {
  min-height: 40px;
  gap: 10px;
  padding-inline: 12px;
  border-color: #747775;
  background: #fff;
  color: #1f1f1f;
  font:
    500 14px/20px 'Google Sans',
    Arial,
    sans-serif;
}
.vx-google:hover {
  background: #f8faff;
}
.vx-google img {
  object-fit: contain;
}
.vx-auth-switch {
  justify-self: center;
  border-color: transparent;
  color: var(--blue);
}
.vx-billing-offer,
.vx-billing-details {
  display: grid;
  gap: 10px;
  margin-block: 16px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
.vx-billing-offer p {
  margin: 0;
}
.vx-billing-offer strong {
  font-size: 1.35em;
}
.vx-billing-orders .vx-identity small {
  overflow-wrap: anywhere;
}
.vx-password-help {
  margin-top: -6px;
}
.vx-field {
  display: grid;
  gap: 5px;
  font-weight: 650;
}
.vx-field input,
.vx-field select,
.vx-search input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.vx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.vx-btn:hover {
  background: var(--hover);
}
.vx-btn.primary {
  border-color: var(--vx-accent);
  background: var(--vx-accent);
  color: var(--vx-white);
}
.vx-btn.primary:hover {
  background: #4935b8;
}
.vx-btn:disabled {
  cursor: default;
  opacity: 0.55;
}
.vx-btn:focus-visible,
.vx-gate input:focus-visible,
.vx-dialog :is(input, select):focus-visible,
.vx-admin :is(input, .vx-table-wrap):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.vx-message {
  color: var(--up);
  overflow-wrap: anywhere;
}
.vx-message:empty {
  display: none;
}
.vx-message[data-error='1'] {
  color: var(--down);
}
.vx-dialog {
  width: min(480px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 14px 52px #0c123743;
}
.vx-dialog::backdrop {
  background: #111b3b99;
}
.vx-dialog-header,
.vx-admin-header,
.vx-toolbar,
.vx-pager,
.vx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.vx-dialog-header,
.vx-toolbar {
  justify-content: space-between;
}
.vx-account-section,
.vx-account-content > .vx-form + .vx-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.vx-account-section p {
  margin: 5px 0 8px;
}
.vx-preferences {
  width: min(400px, calc(100% - 28px));
  padding: 16px;
  border-radius: var(--r);
}
.vx-preference-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.vx-preference-header h2 {
  flex: 1;
  font-size: 19px;
}
.vx-preference-back {
  min-width: 36px;
  padding: 4px;
  font-size: 20px;
}
.vx-preference-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 12px 0 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--sel);
}
.vx-preference-avatar,
.vx-preference-icon {
  display: grid;
  place-items: center;
  color: var(--blue);
}
.vx-preference-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 19px;
  font-weight: 800;
}
.vx-preference-identity strong,
.vx-preference-identity small {
  display: block;
  overflow-wrap: anywhere;
}
.vx-preference-identity small {
  color: var(--mute);
}
.vx-preference-list {
  display: grid;
  margin-top: 5px;
}
.vx-preference-row,
.vx-preference-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}
.vx-preference-list > :last-child {
  border-bottom-color: transparent;
}
.vx-preferences :is(.vx-preference-row, .vx-preference-choice):hover {
  background: var(--hover);
}
.vx-preferences :is(.vx-preference-row, .vx-preference-choice):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.vx-preference-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--sel);
}
.vx-preference-icon svg {
  width: 17px;
  height: 17px;
}
.vx-preference-row small {
  margin-inline-start: auto;
  color: var(--mute);
  font-weight: 500;
}
.vx-preference-chevron {
  color: var(--mute);
  font-size: 19px;
}
.vx-preference-row > :nth-child(2) {
  flex: 1;
}
.vx-preference-choice {
  justify-content: space-between;
}
.vx-preference-choice[aria-pressed='true'] {
  color: var(--blue);
}
.vx-preference-choice[aria-pressed='false'] span {
  visibility: hidden;
}
.vx-preference-body > .vx-account-content {
  padding-top: 12px;
}
.vx-preference-footer {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.vx-preference-logout {
  border-color: transparent;
  color: var(--down);
}
.vx-sync {
  position: fixed;
  z-index: 10000;
  inset: auto auto 12px 12px;
  max-width: min(520px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--down);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 6px 20px #0e183326;
  color: var(--ink);
}
.vx-sync button {
  margin: 8px 8px 0 0;
}
.vx-admin {
  width: 100%;
  min-height: 100dvh;
  padding: 0 clamp(16px, 5vw, 68px) 44px;
  background: var(--vx-surface);
}
.vx-admin > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}
.vx-admin-header {
  min-height: 69px;
  border-bottom: 1px solid var(--line);
}
.vx-admin-name {
  flex: 1;
  text-align: right;
  color: var(--mute);
}
.vx-admin h1 {
  margin-block: 30px 20px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.vx-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0 24px;
  padding: 16px 0;
  border-radius: 8px;
  background: var(--vx-navy);
  color: var(--vx-white);
}
.vx-metrics div {
  padding: 2px clamp(11px, 2vw, 24px);
}
.vx-metrics div + div {
  border-inline-start: 1px solid #3e4867;
}
.vx-metrics dt {
  color: #c5cdeb;
}
.vx-metrics dd {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}
.vx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.vx-tabs .vx-btn {
  background: transparent;
  border-color: transparent;
}
.vx-tabs .vx-btn[aria-current] {
  background: var(--sel);
  border-color: #d9d2fd;
  color: #4430af;
}
.vx-admin > .vx-message:not(:empty) {
  padding: 5px 0 10px;
}
.vx-panel {
  padding: clamp(12px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.vx-panel:empty[aria-busy='true'] {
  min-height: 84px;
}
.vx-search {
  display: flex;
  gap: 8px;
}
.vx-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.vx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.vx-table :is(th, td) {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.vx-table th {
  color: var(--mute);
  background: var(--vx-surface);
  white-space: nowrap;
}
.vx-identity,
.vx-source span {
  display: grid;
}
.vx-identity {
  min-width: 135px;
  overflow-wrap: anywhere;
}
.vx-state {
  white-space: nowrap;
  color: var(--mute);
}
.vx-state.active {
  color: #087352;
}
.vx-state::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vx-pager {
  justify-content: flex-end;
  padding-top: 12px;
  color: var(--mute);
}
.vx-empty {
  padding: 24px 0;
  color: var(--mute);
}
.vx-source-group {
  min-width: 0;
  padding: 12px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.vx-source-group legend {
  padding: 0 6px;
  font-weight: 700;
}
.vx-source {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
}
.vx-source input {
  accent-color: var(--vx-accent);
}
@media (max-width: 620px) {
  .vx-metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .vx-metrics div:nth-child(3) {
    border-inline-start: 0;
  }
  .vx-admin-name {
    display: none;
  }
  .vx-admin-header {
    justify-content: space-between;
    padding-block: 9px;
  }
  .vx-users,
  .vx-users tbody {
    display: block;
  }
  .vx-users thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .vx-users tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    align-items: end;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .vx-users td {
    display: block;
    padding: 0;
    border: 0;
  }
  .vx-users td:first-child {
    grid-column: 1 / -1;
  }
  .vx-users td:not(:first-child, :last-child)::before {
    display: block;
    color: var(--mute);
    font-size: 12px;
    content: attr(data-label);
  }
  .vx-users td:last-child {
    justify-self: end;
  }
}
.vx-gate-card.vx-account-page {
  width: min(100%, 680px);
}
.vx-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vx-account-page h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.vx-account-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.vx-account-facts div {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr;
  gap: 12px;
}
.vx-account-facts dt {
  color: var(--mute);
}
.vx-account-facts dd {
  margin: 0;
  font-weight: 700;
}
.vx-account-actions {
  margin-top: 14px;
}
.vx-account-cancel {
  margin-top: 14px;
}
.vx-account-cancel p {
  margin: 0 0 10px;
}
.vx-account-cancel + .vx-account-section {
  margin-top: 18px;
}
.vx-account-actions:empty {
  display: none;
}
.vx-account-history td a {
  color: var(--blue);
  font-weight: 700;
}
.vx-btn.vx-danger {
  border-color: var(--down);
  color: var(--down);
}
.vx-renewal {
  position: fixed;
  z-index: 9999;
  inset: auto auto 16px 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(520px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--vx-accent);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 6px 20px #0e183326;
  color: var(--ink);
}
.vx-renewal p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.vx-renewal .vx-btn {
  flex: none;
}
@media (max-width: 620px) {
  .vx-renewal {
    bottom: 72px;
  }
  .vx-account-history :is(th, td) {
    padding: 8px 6px;
  }
  .vx-account-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.vx-account-body > .vx-message,
.vx-account-facts + .vx-message {
  margin: 12px 0 0;
}
.vx-gate-card > p + .vx-actions {
  margin-top: 16px;
}
.vx-terms {
  margin: 4px 0 0;
  font-size: 13px;
  text-align: center;
}
.vx-terms a {
  color: var(--blue);
}
.vx-account-exit {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 24px;
}
