.dream-auth-active {
  overflow: hidden;
}

.dream-auth-page {
  position: fixed;
  inset: 0;
  z-index: 18000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 44px;
  padding: 44px clamp(28px, 7vw, 96px);
  box-sizing: border-box;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .36) 48%, rgba(0, 0, 0, .88)),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .88)),
    url("../login-wallpaper.png") center / cover no-repeat,
    #050607;
}

.dream-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 238, 255, .17), transparent 27%),
    radial-gradient(circle at 72% 62%, rgba(255, 125, 76, .13), transparent 26%);
}

.dream-auth-brand,
.dream-auth-card {
  position: relative;
  z-index: 1;
}

.dream-auth-brand {
  align-self: end;
  display: grid;
  gap: 14px;
  padding-bottom: min(9vh, 74px);
  text-align: left;
}

.dream-auth-brand span {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dream-auth-brand h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: .96;
  letter-spacing: 0;
  text-shadow: 0 28px 54px rgba(0, 0, 0, .74);
}

.dream-auth-card {
  width: 100%;
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 30px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(13, 14, 16, .84);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.dream-auth-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  text-align: left;
}

.dream-auth-card-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}

.dream-auth-card-head p {
  margin: 0;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.dream-auth-form {
  display: grid;
  gap: 13px;
}

.dream-auth-form label {
  display: grid;
  gap: 7px;
  text-align: left;
}

.dream-auth-form label span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
}

.dream-auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dream-auth-form input:focus {
  border-color: rgba(0, 238, 255, .55);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 3px rgba(0, 238, 255, .12);
}

.dream-auth-form input::placeholder {
  color: rgba(255, 255, 255, .36);
}

.dream-auth-message {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  text-align: left;
}

.dream-auth-message:empty {
  visibility: hidden;
}

.dream-auth-message.error {
  visibility: visible;
  border-color: rgba(248, 113, 113, .26);
  background: rgba(127, 29, 29, .28);
  color: #fecaca;
}

.dream-auth-message.success {
  visibility: visible;
  border-color: rgba(34, 197, 94, .24);
  background: rgba(20, 83, 45, .28);
  color: #bbf7d0;
}

.dream-auth-submit {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: #f8fafc;
  color: #050607;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dream-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 18px 42px rgba(255, 255, 255, .14);
}

.dream-auth-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.dream-auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.dream-auth-foot button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.dream-auth-foot button:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.canvas-entry-topbar.dream-account-topbar-ready {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.dream-account-slot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.dream-account-actions,
.dream-account-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dream-account-nav-btn,
.dream-account-chip {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(18, 19, 21, .82);
  color: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.dream-account-nav-btn {
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
}

.dream-account-nav-btn.primary {
  border-color: rgba(0, 238, 255, .42);
  background: rgba(0, 238, 255, .16);
  color: #d8fcff;
}

.dream-account-nav-btn:hover,
.dream-account-chip:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(32, 33, 36, .94);
}

.dream-account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 154px;
  padding: 5px 13px 5px 6px;
  text-align: left;
}

.dream-account-avatar,
.dream-account-modal-avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 238, 255, .28);
  border-radius: 50%;
  background: rgba(0, 238, 255, .14);
  color: #d8fcff;
  font-weight: 900;
}

.dream-account-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.dream-account-chip-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dream-account-chip-text strong,
.dream-account-dropdown-head strong {
  max-width: 104px;
  overflow: hidden;
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-account-chip-text em,
.dream-account-dropdown-head span {
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.dream-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(15, 16, 18, .96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dream-account-dropdown-head {
  display: grid;
  gap: 2px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 6px;
  text-align: left;
}

.dream-account-dropdown button {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.dream-account-dropdown button:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.dream-account-dropdown button.danger {
  color: #fecaca;
}

.dream-account-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 18100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dream-account-modal {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: #121315;
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .68);
}

.dream-account-modal-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dream-account-modal-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.dream-account-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.dream-account-modal-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
}

.dream-account-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.dream-account-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px 0;
}

.dream-account-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dream-account-tabs button.active,
.dream-account-tabs button:hover {
  border-color: rgba(0, 238, 255, .36);
  background: rgba(0, 238, 255, .13);
  color: #d8fcff;
}

.dream-account-modal-body {
  flex: 1;
  min-height: 280px;
  overflow: auto;
  padding: 18px;
}

.dream-account-balance-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(0, 238, 255, .2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 238, 255, .14), rgba(255, 255, 255, .05));
  text-align: left;
}

.dream-account-balance-card span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 800;
}

.dream-account-balance-card strong {
  color: #d8fcff;
  font-size: 38px;
  line-height: 1;
}

.dream-account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dream-account-info-grid label,
.dream-account-copy-row {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  text-align: left;
}

.dream-account-info-grid label span,
.dream-account-copy-row span {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  font-weight: 800;
}

.dream-account-info-grid label strong,
.dream-account-copy-row strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.dream-account-tab-head h3,
.dream-account-recharge h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.dream-account-tab-head button,
.dream-account-copy-row button,
.dream-account-modal-foot button,
.dream-account-pagination button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dream-account-tab-head button:hover,
.dream-account-copy-row button:hover,
.dream-account-modal-foot button:hover,
.dream-account-pagination button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.dream-account-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .48);
  font-size: 14px;
}

.dream-account-records {
  display: grid;
  gap: 8px;
}

.dream-account-record {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}

.dream-account-record div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dream-account-record strong {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}

.dream-account-record span,
.dream-account-record em,
.dream-account-record-side small {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  font-style: normal;
}

.dream-account-record-side {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.dream-account-record-side b {
  font-size: 16px;
}

.dream-account-record-side b.income {
  color: #86efac;
}

.dream-account-record-side b.expense {
  color: #fca5a5;
}

.dream-account-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.dream-account-pagination span {
  color: rgba(255, 255, 255, .46);
  font-size: 12px;
}

.dream-account-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.dream-account-recharge {
  display: grid;
  gap: 12px;
  text-align: left;
}

.dream-account-recharge p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 9px;
  background: rgba(245, 158, 11, .1);
  color: rgba(255, 237, 213, .82);
  font-size: 13px;
  line-height: 1.7;
}

.dream-account-copy-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.dream-account-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dream-account-modal-foot button.danger {
  color: #fecaca;
}

.dream-account-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 19000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(18, 19, 21, .95);
  color: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.dream-account-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dream-account-toast.success {
  border-color: rgba(34, 197, 94, .24);
  color: #bbf7d0;
}

.dream-account-toast.error {
  border-color: rgba(248, 113, 113, .24);
  color: #fecaca;
}

.dream-account-toast.warning {
  border-color: rgba(245, 158, 11, .24);
  color: #fed7aa;
}

@media (max-width: 860px) {
  .dream-auth-page {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 26px 16px;
  }

  .dream-auth-brand {
    align-self: auto;
    padding-bottom: 0;
  }

  .dream-auth-brand h1 {
    font-size: clamp(42px, 14vw, 70px);
  }

  .dream-auth-card {
    padding: 24px;
  }

  .dream-account-chip {
    min-width: 0;
  }

  .dream-account-chip-text {
    display: none;
  }

  .dream-account-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .canvas-entry-topbar.dream-account-topbar-ready {
    left: 14px !important;
    right: 14px !important;
    top: 14px !important;
    flex-wrap: wrap !important;
  }

  .dream-account-nav-btn {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

  .dream-account-modal-overlay {
    padding: 12px;
  }

  .dream-account-tabs {
    overflow-x: auto;
  }

  .dream-account-copy-row {
    grid-template-columns: 1fr;
  }
}
