/* Carregamento dos paineis — a vitrine publica preserva seu estilo. */
.dashboardShell .luxLoadingState {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 0;
  padding: 18px 20px;
  border: 1px solid #323338;
  border-radius: 12px;
  background: #222327;
  box-shadow: none;
}

.dashboardShell .luxLoadingState::before,
.dashboardShell .luxLoadingState::after,
.dashboardShell .luxLoadingMark::before,
.dashboardShell .luxLoadingMark::after {
  content: none;
}

.dashboardShell .luxLoadingState .luxLoadingTop {
  display: grid;
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.dashboardShell .luxLoadingState .luxLoadingTop > div { min-width: 0; }

.dashboardShell .luxLoadingState .luxLoadingMark {
  display: block;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid #42434c;
  border-top-color: #c17adf;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: none;
  animation: dashboardLoadingSpin .9s linear infinite;
}

.dashboardShell .luxLoadingState .luxLoadingMark > i,
.dashboardShell .luxLoadingState .luxLoadingTop small,
.dashboardShell .luxLoadingState .luxLoadingTop p,
.dashboardShell .luxLoadingState .luxLoadingTrack,
.dashboardShell .luxLoadingState .luxLoadingContent { display: none; }

.dashboardShell .luxLoadingState .luxLoadingTop strong {
  margin: 0;
  color: #dddfe5;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@keyframes dashboardLoadingSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .dashboardShell .luxLoadingState .luxLoadingMark { animation: none; }
}

@media (max-width: 520px) {
  .dashboardShell .luxLoadingState { padding: 14px 16px; min-height: 60px; }
}

/* Estados vazios dos paineis — nao altera a vitrine publica. */
.dashboardShell .luxEmptyState,
.adminActionModal .luxEmptyState {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  color: #92949e;
  background: #222327;
  box-shadow: none;
  text-align: left;
}

.dashboardShell .luxEmptyState::before,
.dashboardShell .luxEmptyState::after,
.adminActionModal .luxEmptyState::before,
.adminActionModal .luxEmptyState::after {
  content: none;
}

.dashboardShell .luxEmptyState .luxStateMark,
.adminActionModal .luxEmptyState .luxStateMark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: #292a2f;
  box-shadow: none;
}

.dashboardShell .luxEmptyState .luxStateMark::before,
.adminActionModal .luxEmptyState .luxStateMark::before {
  content: "";
  position: absolute;
  inset: 10px 9px;
  border: 1.5px solid #777a85;
  border-radius: 4px;
}

.dashboardShell .luxEmptyState .luxStateMark::after,
.adminActionModal .luxEmptyState .luxStateMark::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 13px;
  width: 10px;
  height: 1.5px;
  border-radius: 99px;
  background: #9699a3;
}

.dashboardShell .luxEmptyState .luxStateMark i,
.adminActionModal .luxEmptyState .luxStateMark i {
  display: none;
}

.dashboardShell .luxEmptyState > div,
.adminActionModal .luxEmptyState > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboardShell .luxEmptyState small,
.adminActionModal .luxEmptyState small {
  color: #7f818b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboardShell .luxEmptyState strong,
.adminActionModal .luxEmptyState strong {
  color: #e5e5e9;
  font-size: 13px;
  line-height: 1.3;
}

.dashboardShell .luxEmptyState p,
.adminActionModal .luxEmptyState p {
  max-width: 620px;
  margin: 0;
  color: #797b85;
  font-size: 10px;
  line-height: 1.5;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState {
  min-height: 92px;
  padding: 17px 18px;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 13px;
  background: #222327;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState .luxStateMark {
  display: block;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState > div {
  justify-items: start;
  gap: 3px;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState small {
  color: #7f818b;
  font-size: 9px;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState strong {
  color: #e5e5e9;
  font-size: 13px;
}

.dashboardShell.dashboardShell-reseller .luxEmptyState p {
  max-width: 620px;
  color: #797b85;
  font-size: 10px;
}

/* Modais administrativos compactos e neutros. */
.modalHost:has(.adminActionModal) {
  background: rgba(8, 9, 12, .78);
  backdrop-filter: blur(14px) saturate(.8);
}

#modalHost > .adminActionModal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 17px;
  color: #e7e7eb;
  background: #202125;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .02);
}

#modalHost > .adminActionModal.adminHistoryModal {
  width: min(940px, calc(100vw - 28px));
}

.adminActionModalHeader {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: rgba(32, 33, 37, .96);
  backdrop-filter: blur(14px);
}

.adminActionModalIcon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  color: #c879df;
  background: #292a2f;
}

.adminActionModalIcon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.adminActionModal.isFinancial .adminActionModalIcon {
  color: #e4ad55;
}

.adminActionModalHeader > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.adminActionModalHeader span {
  color: #9b68aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.adminActionModalHeader h2 {
  margin: 0;
  color: #f0eff2;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.adminActionModalHeader p {
  margin: 2px 0 0;
  color: #7e808a;
  font-size: 10px;
  line-height: 1.45;
}

.adminActionModalClose {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 9px;
  color: #858791;
  background: #27282c;
  cursor: pointer;
}

.adminActionModalClose:hover {
  border-color: rgba(198, 112, 221, .25);
  color: #e7e3e9;
  background: #2b2c31;
}

.adminActionModalClose svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.adminActionModalBody {
  display: grid;
  gap: 15px;
  padding: 18px 19px;
}

.adminActionNotice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 11px;
  background: #25262a;
  color: #a8aab2;
}

.adminActionNotice > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: #69d5aa;
}

.adminActionNotice.warning > svg {
  color: #e2ae58;
}

.adminActionNotice span {
  display: grid;
  gap: 2px;
}

.adminActionNotice strong {
  color: #d8d8dd;
  font-size: 10px;
}

.adminActionNotice small {
  color: #797b84;
  font-size: 9px;
  line-height: 1.45;
}

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

.adminActionFormGrid > label,
.adminActionModalBody > label {
  display: grid;
  gap: 7px;
  color: #92949e;
  font-size: 9px;
  font-weight: 750;
}

.adminActionFormGrid > label.full,
.adminActionModalBody > label.full {
  grid-column: 1 / -1;
}

#modalHost > .adminActionModal input:not([type="checkbox"]),
#modalHost > .adminActionModal select,
#modalHost > .adminActionModal textarea,
#modalHost > .adminActionModal .smartDropdownTrigger {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 10px;
  color: #e0e0e4;
  background: #1a1b1f;
  box-shadow: none;
}

#modalHost > .adminActionModal input:not([type="checkbox"]),
#modalHost > .adminActionModal select,
#modalHost > .adminActionModal textarea {
  padding: 10px 12px;
}

#modalHost > .adminActionModal textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

#modalHost > .adminActionModal input:focus,
#modalHost > .adminActionModal select:focus,
#modalHost > .adminActionModal textarea:focus,
#modalHost > .adminActionModal .smartDropdown.open .smartDropdownTrigger {
  border-color: rgba(198, 112, 221, .34);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(181, 91, 207, .07);
}

#modalHost > .adminActionModal .smartDropdownMenu {
  border-color: rgba(255, 255, 255, .08);
  background: #24252a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

#modalHost > .adminActionModal .smartDropdownOption {
  min-height: 37px;
  color: #b9bac1;
}

#modalHost > .adminActionModal .smartDropdownOption:hover,
#modalHost > .adminActionModal .smartDropdownOption.active {
  color: #f0edf2;
  background: rgba(194, 105, 219, .09);
}

#modalHost > .adminActionModal [hidden] {
  display: none !important;
}

.adminActionSwitch {
  display: flex !important;
  grid-column: 1 / -1;
  min-height: 46px;
  align-items: center;
  gap: 10px !important;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 10px;
  background: #25262a;
}

.adminActionSwitch input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #b75bd2;
}

.adminActionSwitch span {
  display: grid;
  gap: 2px;
}

.adminActionSwitch strong {
  color: #d9d9de;
  font-size: 10px;
}

.adminActionSwitch small {
  color: #767881;
  font-size: 9px;
  line-height: 1.4;
}

.adminActionModalFooter {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 19px;
  border-top: 1px solid rgba(255, 255, 255, .065);
  background: rgba(29, 30, 34, .97);
  backdrop-filter: blur(12px);
}

.adminActionModalFooter .btn,
.adminActionModalFooter .ghostBtn,
.adminActionModalFooter .dangerBtn {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 10px;
  font-weight: 800;
}

.adminActionModalFooter svg {
  width: 14px;
  height: 14px;
}

.adminActionModalFooter .ghostBtn {
  border-color: rgba(255, 255, 255, .08);
  color: #a6a7af;
  background: transparent;
}

.adminHistoryModal .adminActionModalBody {
  padding: 0;
}

.adminHistoryModal .tableWrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.adminHistoryModal table {
  width: 100%;
}

.adminHistoryModal th {
  height: 38px;
  color: #747780;
  background: #1c1d21;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adminHistoryModal td {
  padding-block: 12px;
  border-color: rgba(255, 255, 255, .055);
  color: #a9abb3;
  font-size: 10px;
}

@media (max-width: 700px) {
  .dashboardShell .luxEmptyState,
  .adminActionModal .luxEmptyState {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 84px;
    padding: 15px;
  }

  .dashboardShell .luxEmptyState .luxStateMark,
  .adminActionModal .luxEmptyState .luxStateMark {
    width: 32px;
    height: 32px;
  }

  .dashboardShell .luxEmptyState .luxStateMark::before,
  .adminActionModal .luxEmptyState .luxStateMark::before {
    inset: 8px;
  }

  .dashboardShell .luxEmptyState .luxStateMark::after,
  .adminActionModal .luxEmptyState .luxStateMark::after {
    top: 15px;
    left: 11px;
  }

  .adminActionModalHeader {
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 14px;
  }

  .adminActionModalIcon {
    width: 36px;
    height: 36px;
  }

  .adminActionModalHeader h2 {
    font-size: 18px;
  }

  .adminActionModalHeader p {
    display: none;
  }

  .adminActionModalBody {
    padding: 15px;
  }

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

  .adminActionFormGrid > label.full,
  .adminActionModalBody > label.full,
  .adminActionSwitch {
    grid-column: 1;
  }

  .adminActionModalFooter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 15px;
  }

  .adminHistoryModal .adminActionModalFooter {
    grid-template-columns: 1fr;
  }

  .adminHistoryModal .adminActionModalFooter button {
    width: 100%;
  }
}
/* Confirmacoes alinhadas ao painel cinza atual */
.modalHost:has(.confirmExperienceModal) {
  background: rgba(8, 9, 12, .78);
  backdrop-filter: blur(12px) saturate(.82);
}

.confirmExperienceModal {
  width: min(500px, 100%);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(232, 234, 241, .10);
  border-radius: 17px;
  color: #f2f3f7;
  background: #202126;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.confirmExperienceModal .confirmExperienceHeader {
  grid-template-columns: 39px minmax(0, 1fr) 33px;
  gap: 12px;
  padding: 16px 17px 14px;
  border-bottom: 1px solid rgba(232, 234, 241, .075);
  background: #222329;
}

.confirmExperienceModal .confirmExperienceIcon {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(201, 120, 232, .18);
  border-radius: 11px;
  color: #ca83e4;
  background: rgba(185, 101, 220, .08);
}

.confirmExperienceModal.isDanger .confirmExperienceIcon {
  border-color: rgba(231, 119, 151, .18);
  color: #e58ba6;
  background: rgba(137, 49, 75, .13);
}

.confirmExperienceModal .confirmExperienceIcon svg { width: 17px; height: 17px; }
.confirmExperienceModal .confirmExperienceHeader span { color: #8d909a; font-size: 7px; letter-spacing: .12em; }
.confirmExperienceModal.isDanger .confirmExperienceHeader span { color: #c27b91; }
.confirmExperienceModal .confirmExperienceHeader h2 { color: #f5f6f9; font-size: 18px; line-height: 1.2; }

.confirmExperienceModal .confirmExperienceClose {
  width: 33px;
  height: 33px;
  border-color: rgba(232, 234, 241, .075);
  border-radius: 9px;
  color: #92959e;
  background: #28292f;
}

.confirmExperienceModal .confirmExperienceClose:hover {
  border-color: rgba(201, 120, 232, .22);
  color: #e4c4ef;
  background: #2c2d34;
}

.confirmExperienceModal .confirmExperienceBody { padding: 15px 17px 4px; }
.confirmExperienceModal .confirmExperienceBody p { color: #a7aab3; font-size: 11px; line-height: 1.6; }
.confirmExperienceModal .confirmExperienceActions { gap: 9px; padding: 13px 17px 17px; }
.confirmExperienceModal .confirmExperienceActions > button { min-height: 40px; border-radius: 10px; }

.confirmExperienceModal .confirmExperienceActions .ghostBtn {
  border-color: rgba(232, 234, 241, .09);
  color: #c6c8cf;
  background: #28292f;
  box-shadow: none;
}

.confirmExperienceModal .confirmExperienceActions .ghostBtn:hover {
  border-color: rgba(232, 234, 241, .16);
  color: #fff;
  background: #2d2e35;
}

.confirmExperienceModal.isDanger .confirmExperienceActions .dangerBtn {
  border: 1px solid rgba(238, 130, 161, .24);
  color: #ffeaf0;
  background: #743047;
  box-shadow: none;
}

.confirmExperienceModal.isDanger .confirmExperienceActions .dangerBtn:hover {
  border-color: rgba(245, 151, 178, .38);
  background: #84364f;
  filter: none;
}

@media (max-width: 520px) {
  .confirmExperienceModal { border-radius: 15px; }
  .confirmExperienceModal .confirmExperienceHeader,
  .confirmExperienceModal .confirmExperienceBody,
  .confirmExperienceModal .confirmExperienceActions { padding-inline: 14px; }
}
