:root {
  color-scheme: light;
  --bg: #ffffff;
  --page: #f7f7f7;
  --card: #f5f5f5;
  --text: #111111;
  --muted: #8b8b8b;
  --line: #eeeeee;
  --green: #1f7a16;
  --green-2: #35a853;
  --red: #e85d6a;
  --black: #050505;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #f1f1f1;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-placeholder],
html.i18n-pending [data-i18n-title] {
  visibility: hidden;
}

button,
input,
select {
  font: inherit;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button,
a,
[role="button"],
.select-trigger,
.form-select-trigger,
.picker-panel button,
.language-options button {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
  cursor: pointer;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
.select-trigger:focus,
.select-trigger:focus-visible,
.form-select-trigger:focus,
.form-select-trigger:focus-visible {
  outline: none;
}

select {
  appearance: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.phone-page {
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 18px calc(136px + env(safe-area-inset-bottom));
  background: var(--bg);
  animation: page-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform;
}

body.page-transition-leaving .phone-page {
  pointer-events: none;
  animation: page-leave 130ms cubic-bezier(0.4, 0, 1, 1) both;
}

body.page-transition-leaving .bottom-nav {
  pointer-events: none;
}

@keyframes page-enter {
  from {
    opacity: 0.001;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-leave {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0.001;
    transform: translate3d(0, -4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-page,
  body.page-transition-leaving .phone-page {
    animation: none;
    transform: none;
  }
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--black);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px;
  border-radius: 18px;
  background: #f4f4f4;
}

.segmented-tabs span,
.segmented-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 15px;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.segmented-tabs .active {
  background: #ffffff;
  color: var(--black);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.muted {
  color: var(--muted);
}

.green {
  color: var(--green-2);
}

.red {
  color: var(--red);
}

.is-loading {
  display: inline-block;
  min-height: 1em;
  vertical-align: middle;
  color: transparent !important;
  border-radius: 6px;
  background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 50%, #eeeeee 75%);
  background-size: 200% 100%;
  animation: value-loading 1.1s linear infinite;
  user-select: none;
}

[data-asset-total].is-loading {
  display: inline-block;
  min-width: 150px;
}

[data-asset-change].is-loading {
  display: inline-block;
  min-width: 128px;
}

[data-asset-total-card].is-loading,
[data-holding-value].is-loading {
  display: inline-block;
  min-width: 86px;
}

[data-holding-price].is-loading {
  display: inline-block;
  min-width: 74px;
  min-height: 14px;
}

@keyframes value-loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.small-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #222222;
  font-size: 13px;
  text-decoration: none;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 22px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 22px;
  background: #f2f2f2;
  color: #111111;
  font-weight: 800;
  text-decoration: none;
}

.max-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.field-hint {
  color: #777777;
  font-size: 12px;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #f7f7f7;
  color: #111111;
  padding: 0 14px;
  font-weight: 900;
}

.select-trigger.compact {
  background: #ffffff;
}

.select-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.picker-sheet.open {
  display: block;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  animation: picker-fade 160ms ease forwards;
}

.picker-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  padding: 18px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  transform: translate(-50%, 100%);
  animation: picker-up 200ms ease forwards;
}

.picker-panel h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.picker-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #f7f7f7;
  color: #111111;
  padding: 0 14px;
  margin-top: 8px;
  font-weight: 900;
}

.picker-panel .picker-coin-option {
  justify-content: flex-start;
  gap: 12px;
}

.picker-panel .picker-coin-option b {
  font-size: 16px;
}

.confirm-dialog {
  width: min(370px, calc(100vw - 36px));
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.28);
}

.confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.confirm-dialog p {
  margin: 0 0 18px;
  color: #555555;
  line-height: 1.6;
}

.result-dialog {
  width: min(360px, calc(100vw - 36px));
  max-width: calc(100vw - 32px);
  max-height: min(78vh, 560px);
  box-sizing: border-box;
  border: 0;
  border-radius: 20px;
  padding: 22px 18px 18px;
  background: #ffffff;
  color: #111111;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
}

.result-dialog[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.28);
}

.result-dialog-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eaf8ee;
  color: var(--green);
}

.result-dialog[data-type="error"] .result-dialog-icon {
  background: #fff0f1;
  color: var(--red);
}

.result-dialog-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 3;
}

.result-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.result-dialog p {
  max-height: 220px;
  margin: 0 auto 18px;
  color: #666666;
  line-height: 1.55;
  font-size: 14px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

.kyc-required-dialog {
  width: min(360px, calc(100vw - 40px));
  padding: 22px 18px 18px;
}

.kyc-required-dialog .result-dialog-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  background: #eaf8ee;
  color: var(--green);
}

.kyc-required-dialog h2 {
  margin-bottom: 10px;
  font-size: 23px;
}

.kyc-required-dialog p {
  max-width: 270px;
  margin-bottom: 18px;
}

.kyc-required-dialog [data-kyc-required-close] {
  width: 100%;
  min-height: 42px;
  border-radius: 22px;
}

[data-trade-status],
[data-withdraw-status] {
  display: none !important;
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-popup.open {
  pointer-events: auto;
  opacity: 1;
}

.home-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
}

.home-popup-panel {
  position: relative;
  width: min(352px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  display: grid;
  gap: 12px;
  padding: 24px 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.22);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.home-popup.open .home-popup-panel {
  transform: translateY(0) scale(1);
}

.home-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.home-popup-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 8px;
  margin: 0;
  border-radius: 999px;
  background: #f4f4f4;
  color: #777777;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-popup-panel h2 {
  margin: 22px 0 4px;
  color: #111111;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-popup-panel p {
  margin: 8px auto 0;
  max-width: 100%;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.home-popup-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-popup-actions a,
.home-popup-actions button {
  width: 100%;
  text-decoration: none;
}

@keyframes picker-fade {
  to {
    opacity: 1;
  }
}

@keyframes picker-up {
  to {
    transform: translate(-50%, 0);
  }
}

.soft-card {
  border-radius: 16px;
  background: var(--card);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(430px, 100vw);
  min-height: 76px;
  padding: 9px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  color: #888888;
  font-size: 11px;
  text-decoration: none;
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
}

.bottom-nav a.active {
  color: var(--black);
  font-weight: 800;
}

.bottom-nav .trade-fab {
  width: 56px;
  height: 56px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--black);
  color: #ffffff;
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.bottom-nav .trade-fab svg {
  width: 22px;
  height: 22px;
}

.bottom-nav .trade-fab span {
  margin-top: -3px;
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
}

.side-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: #f7f7f7;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(430px, 100vw);
  padding: 18px 18px 22px;
  overflow-y: auto;
  background: #f7f7f7;
  transform: translateX(-50%);
  scrollbar-width: none;
}

.drawer-panel::-webkit-scrollbar {
  display: none;
}

.side-drawer.open {
  display: block;
}

.drawer-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
}

.drawer-status .language-menu {
  display: none;
}

.language-menu {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 12px;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.language-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.language-menu.open .language-trigger svg {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 132px;
  padding: 8px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.language-menu.open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-options button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0 10px;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-options button:hover,
.language-options button.active {
  background: #f4f4f4;
  color: #111111;
}

.settings-language-menu {
  position: relative;
  width: 100%;
  margin-bottom: 2px;
}

.settings-language-menu .language-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  justify-content: initial;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.settings-language-menu .language-trigger span:first-child {
  min-width: 0;
  text-align: left;
}

.settings-language-menu .language-trigger [data-language-label] {
  justify-self: end;
  text-align: right;
}

.settings-language-menu .language-trigger svg {
  justify-self: end;
}

.settings-language-menu .language-options {
  left: 0;
  right: 0;
  min-width: 0;
  transform-origin: top center;
}

.drawer-profile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 22px 0 18px;
}

.avatar-photo {
  display: block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.25), transparent 18%),
    linear-gradient(135deg, #17100c, #d66b05 48%, #27130a);
}

.avatar-upload input {
  display: none;
}

.guest-avatar {
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #dfe5ef, #a8b2c6 52%, #e8edf5);
}

.drawer-profile h2 {
  max-width: 100%;
  margin: 0;
  display: block;
  overflow: visible;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.drawer-profile-main {
  min-width: 0;
}

.drawer-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.drawer-role-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  border-radius: 999px;
  background: #fff7ec;
  color: #b57920;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.drawer-role-pill i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c97919;
}

.drawer-uid {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #eeeeee;
  color: #777777;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.drawer-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.drawer-profile-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 0;
  border-radius: 15px;
  background: #eeeeee;
  color: #555555;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.drawer-profile-actions .drawer-qr-button {
  width: 30px;
  flex: 0 0 30px;
  padding: 0;
}

.account-settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
}

.account-settings-sheet.open {
  display: block;
}

.account-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  animation: picker-fade 160ms ease forwards;
}

.account-settings-panel {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(430px, 100vw);
  padding: 18px 18px 28px;
  overflow-y: auto;
  background: #f7f7f7;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  animation: settings-in 180ms ease forwards;
  scrollbar-width: none;
}

.account-settings-panel::-webkit-scrollbar {
  display: none;
}

.account-settings-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 18px;
}

.account-settings-header h2 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.settings-summary-card {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 15px 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.settings-summary-card strong {
  font-size: 17px;
  font-weight: 900;
}

.settings-summary-card p {
  margin: 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.45;
}

.settings-action-list,
.settings-form {
  display: grid;
  gap: 10px;
}

.settings-action-list {
  margin-bottom: 18px;
}

.settings-group-title {
  margin: 8px 2px 0;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.settings-action-list > button {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  padding: 0 14px;
  text-align: left;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.settings-action-list > button.is-active {
  background: #eef8f0;
  color: var(--green);
}

.settings-action-list > button svg {
  width: 21px;
  height: 21px;
}

.settings-action-list > button.danger {
  color: #d94c58;
}

.settings-form {
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.settings-form-head {
  display: grid;
  gap: 5px;
}

.settings-form-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.settings-form-head p {
  margin: 0;
  color: #777777;
  font-size: 12px;
  line-height: 1.45;
}

.settings-form label {
  display: grid;
  gap: 8px;
  color: #666666;
  font-size: 13px;
  font-weight: 800;
}

.settings-form input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f5;
  color: #111111;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 800;
}

.settings-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef8f0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.45;
}

.settings-status[data-type="error"] {
  background: #fff0f1;
  color: var(--red);
}

@keyframes settings-in {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.drawer-profile-actions a.drawer-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 15px;
  background: #eeeeee;
  color: #555555;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.drawer-profile-actions a.drawer-auth-link.primary {
  background: var(--green);
  color: #ffffff;
}

.drawer-account-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.drawer-account-status article {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.drawer-account-status span {
  display: block;
  margin-bottom: 7px;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.2;
}

.drawer-account-status strong {
  display: block;
  color: #111111;
  font-size: 15px;
  line-height: 1.2;
  word-break: keep-all;
}

.drawer-account-status strong.is-ok {
  color: var(--green);
}

.drawer-account-status strong.is-warn {
  color: #b57920;
}

.vip-card,
.drawer-card,
.drawer-about {
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.vip-card {
  position: relative;
  margin-bottom: 14px;
  padding: 15px 14px 13px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(196, 151, 83, 0.14), transparent 42%),
    #ffffff;
}

.vip-card > button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #999999;
}

.vip-card h3 {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 14px;
  color: #b48a4a;
  font-size: 17px;
}

.vip-card div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: #7b633c;
  font-size: 11px;
}

.vip-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.drawer-card {
  margin-bottom: 14px;
  padding: 16px 16px 18px;
}

.drawer-card h3,
.drawer-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer-card > h3 {
  margin-bottom: 18px;
}

.drawer-grid {
  display: grid;
  gap: 18px 12px;
}

.drawer-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.drawer-grid a {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 58px;
  min-width: 0;
  color: #151515;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.drawer-grid svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.drawer-about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 14px;
  color: #202020;
  font-size: 14px;
}

.drawer-about span,
.drawer-about b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.coin-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.coin-icon.has-image {
  background: transparent;
  color: #ffffff;
}

.coin-icon.has-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.coin-icon.has-image .coin-fallback {
  display: none;
}

.coin-icon.has-image.image-failed {
  background: #111111;
}

.coin-icon.has-image.image-failed .coin-fallback {
  display: block;
}

.coin-icon.teal {
  background: #17a49a;
}

.coin-icon.orange {
  background: #f5a524;
}

.coin-icon.blue {
  background: #5f89ff;
}

.coin-icon.black {
  background: #111111;
}

.coin-icon.line {
  border: 2px solid #104538;
  background: #c8f3dd;
  color: #104538;
}

@media (max-width: 380px) {
  .phone-page {
    padding: 16px 14px calc(144px + env(safe-area-inset-bottom));
  }

  .drawer-panel {
    padding: 16px 14px 22px;
  }

  .drawer-profile {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0 15px;
  }

  .avatar-photo {
    width: 58px;
    height: 58px;
  }

  .drawer-profile h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .drawer-profile-actions {
    gap: 6px;
  }

  .drawer-account-status {
    gap: 6px;
  }

  .drawer-account-status article {
    padding: 10px 7px;
  }

  .drawer-account-status span {
    font-size: 10px;
  }

  .drawer-account-status strong {
    font-size: 14px;
  }

  .drawer-card {
    padding: 15px 12px 17px;
  }

  .drawer-grid {
    gap: 20px 8px;
  }

  .drawer-grid a {
    gap: 8px;
    font-size: 10.5px;
  }
}

@media (min-width: 760px) {
  body {
    background: #ededed;
  }

  .phone-page {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    margin-bottom: 14px;
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
  }
}

/* 2026 UI refresh */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --page: #eef2f7;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #0f8f6f;
  --green-2: #17b78b;
  --red: #ef476f;
  --black: #111827;
  --blue: #2563eb;
  --amber: #f59e0b;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.07);
}

html {
  background:
    radial-gradient(circle at top left, rgba(23, 183, 139, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body {
  min-height: 100vh;
  background: transparent;
  color: var(--text);
}

.phone-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 58%, #f8fafc 100%);
}

.top-row,
.simple-header,
.trade-header,
.records-header,
.discover-header,
.market-detail-header {
  color: var(--text);
}

.top-row h1,
.simple-header h1,
.trade-header h1,
.records-header h1,
.discover-title,
.section-title h2 {
  letter-spacing: 0;
}

.icon-button {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.primary-pill,
.wide-button.primary-pill {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 143, 111, 0.22);
}

.outline-pill {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.small-link,
.auth-switch a {
  color: var(--green);
}

.segmented-tabs {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf2f7;
}

.segmented-tabs span,
.segmented-tabs a {
  border-radius: 11px;
}

.segmented-tabs .active {
  background: #ffffff;
  color: var(--text);
}

.select-trigger,
.form-select-trigger,
.picker-panel button,
.language-trigger,
.settings-action-list button {
  border-color: var(--line);
}

.select-trigger,
.form-select-trigger,
.stack-form input {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.soft-card,
.form-card,
.market-info-card,
.drawer-card,
.settings-summary-card,
.settings-action-list button,
.confirm-dialog,
.result-dialog {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.is-loading {
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
}

.bottom-nav {
  min-height: 78px;
  padding: 10px 14px calc(9px + env(safe-area-inset-bottom));
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -16px 36px rgba(15, 23, 42, 0.1);
}

.bottom-nav a {
  color: #94a3b8;
  font-weight: 700;
}

.bottom-nav a.active {
  color: var(--green);
}

.bottom-nav .trade-fab {
  background: linear-gradient(145deg, #0f172a, #111827);
  border-color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.drawer-backdrop,
.account-settings-backdrop,
.picker-backdrop,
.home-popup-backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.drawer-panel,
.account-settings-panel,
.picker-panel,
.home-popup-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.picker-panel {
  border-radius: 26px 26px 0 0;
}

.picker-panel button {
  border-radius: 16px;
  background: #ffffff;
}

.confirm-dialog::backdrop,
.result-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
}

.coin-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.coin-icon.teal {
  background: #14b8a6;
}

.coin-icon.orange {
  background: #f59e0b;
}

.coin-icon.blue {
  background: #4f46e5;
}

.coin-icon.black {
  background: #111827;
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
      radial-gradient(circle at bottom right, rgba(15, 143, 111, 0.18), transparent 34%),
      #e8edf4;
  }

  .phone-page {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
  }
}

/* Tech blue refinement */
:root {
  --bg: #f3f8ff;
  --page: #eaf3ff;
  --card: #ffffff;
  --card-soft: #f7fbff;
  --text: #102033;
  --muted: #60758f;
  --line: #d7e6f7;
  --green: #247cff;
  --green-2: #54b8ff;
  --red: #ef476f;
  --black: #102033;
  --blue: #247cff;
  --amber: #7cc8ff;
  --shadow: 0 18px 44px rgba(36, 124, 255, 0.1);
  --shadow-soft: 0 10px 24px rgba(25, 92, 170, 0.08);
}

html {
  background:
    radial-gradient(circle at 18% 0%, rgba(84, 184, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.phone-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.98) 64%, #f4f9ff 100%);
}

.primary-pill,
.wide-button.primary-pill {
  background: linear-gradient(135deg, #247cff, #54b8ff);
  box-shadow: 0 12px 24px rgba(36, 124, 255, 0.2);
}

.small-link,
.auth-switch a,
.bottom-nav a.active {
  color: #247cff;
}

.bottom-nav .trade-fab {
  background: linear-gradient(145deg, #1b65d8, #102f66);
  box-shadow: 0 16px 34px rgba(36, 124, 255, 0.28);
}

.segmented-tabs,
.bottom-nav,
.select-trigger,
.form-select-trigger,
.stack-form input,
.picker-panel button,
.language-trigger {
  border-color: #d7e6f7;
}

.coin-icon.teal,
.coin-icon.orange,
.coin-icon.blue {
  background: linear-gradient(135deg, #56b6ff, #247cff);
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(84, 184, 255, 0.22), transparent 30%),
      radial-gradient(circle at bottom right, rgba(36, 124, 255, 0.15), transparent 34%),
      #e8f2ff;
  }
}

/* Drawer coordination pass */
.drawer-panel {
  padding: 18px 18px 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(84, 184, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.drawer-profile {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  margin: 4px 0 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(215, 230, 247, 0.8);
}

.avatar-photo {
  width: 64px;
  height: 64px;
  border: 3px solid #ffffff;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.7), transparent 16%),
    linear-gradient(135deg, #2f86ff, #6fd0ff);
  box-shadow: 0 14px 26px rgba(36, 124, 255, 0.18);
}

.drawer-profile h2 {
  color: #102033;
  font-size: 21px;
}

.drawer-role-pill,
.drawer-uid {
  min-height: 24px;
  background: #eaf4ff;
  color: #1b65d8;
}

.drawer-role-pill i {
  background: #247cff;
}

.drawer-profile-actions button,
.drawer-profile-actions a.drawer-auth-link {
  min-height: 32px;
  border: 1px solid #d7e6f7;
  background: #ffffff;
  color: #1f5fae;
}

.drawer-profile-actions .drawer-qr-button {
  border-radius: 12px;
}

.drawer-account-status {
  gap: 10px;
  margin-bottom: 16px;
}

.drawer-account-status article,
.drawer-card {
  border: 1px solid #d7e6f7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.drawer-account-status article {
  padding: 13px 10px;
  border-radius: 16px;
}

.drawer-account-status span {
  color: #60758f;
}

.drawer-account-status strong {
  color: #102033;
}

.drawer-card {
  margin-bottom: 16px;
  padding: 18px 16px 20px;
  border-radius: 18px;
}

.drawer-card h3,
.drawer-section-head h3 {
  color: #102033;
  font-size: 19px;
}

.drawer-grid {
  gap: 14px 10px;
}

.drawer-grid a {
  gap: 7px;
  min-height: 66px;
  color: #102033;
  font-size: 11px;
}

.drawer-grid a svg {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 9px;
  border-radius: 14px;
  background: #edf7ff;
  color: #247cff;
  stroke-width: 2.2;
}

@media (max-width: 380px) {
  .drawer-profile {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .avatar-photo {
    width: 56px;
    height: 56px;
  }

  .drawer-grid {
    gap: 12px 8px;
  }

  .drawer-grid a svg {
    padding: 8px;
  }
}

/* Account settings coordination pass */
.account-settings-panel {
  padding: 20px 18px 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(84, 184, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.account-settings-header {
  margin-bottom: 20px;
}

.account-settings-header h2 {
  color: #102033;
  font-size: 22px;
  font-weight: 900;
}

.settings-summary-card {
  gap: 7px;
  margin-bottom: 22px;
  padding: 18px 16px;
  border: 1px solid #d7e6f7;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(36, 124, 255, 0.08), rgba(172, 221, 255, 0.13)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.settings-summary-card strong {
  color: #102033;
  font-size: 18px;
}

.settings-summary-card p {
  color: #60758f;
}

.settings-action-list {
  gap: 12px;
}

.settings-group-title {
  margin: 12px 2px 2px;
  color: #60758f;
  font-size: 12px;
  text-transform: uppercase;
}

.settings-language-menu .language-trigger,
.settings-action-list > button {
  min-height: 58px;
  border: 1px solid #d7e6f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #102033;
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.settings-language-menu .language-trigger {
  padding: 0 16px;
}

.settings-language-menu .language-trigger span:first-child,
.settings-action-list > button span {
  font-weight: 900;
}

.settings-language-menu .language-trigger [data-language-label] {
  color: #1b65d8;
}

.settings-action-list > button {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 12px;
  padding: 0 14px;
}

.settings-action-list > button > svg:first-child {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 9px;
  border-radius: 14px;
  background: #edf7ff;
  color: #247cff;
}

.settings-action-list > button > svg:last-child,
.settings-language-menu .language-trigger svg {
  color: #1b65d8;
}

.settings-action-list > button.is-active {
  background: #edf7ff;
  color: #1b65d8;
}

.settings-action-list > button.danger {
  color: #e24961;
}

.settings-action-list > button.danger > svg:first-child {
  background: #fff0f3;
  color: #e24961;
}

.settings-action-list > button.danger > svg:last-child {
  color: #e24961;
}

.settings-form {
  border: 1px solid #d7e6f7;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.settings-form input {
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  background: #f7fbff;
}

@media (max-width: 380px) {
  .settings-action-list > button {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    padding: 0 12px;
  }

  .settings-action-list > button > svg:first-child {
    padding: 8px;
  }
}

/* Oh bits dark exchange theme */
:root {
  color-scheme: dark;
  --bg: #05080c;
  --page: #080c11;
  --card: #10151c;
  --card-soft: #0c1117;
  --text: #f7f8fb;
  --muted: #9aa1ad;
  --line: #2a3038;
  --green: #22c761;
  --green-2: #35d875;
  --red: #ff4d57;
  --black: #05080c;
  --blue: #f7a707;
  --amber: #f7a707;
  --brand: #f7a707;
  --brand-2: #ffbe1a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html,
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 167, 7, 0.1), transparent 30%),
    linear-gradient(180deg, #020408 0%, #070b10 100%);
}

.phone-page {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, transparent 0 17%, rgba(247, 167, 7, 0.34) 17.1% 17.25%, transparent 17.35% 44%, rgba(247, 167, 7, 0.22) 44.1% 44.25%, transparent 44.35%),
    radial-gradient(circle at 96% 26%, rgba(247, 167, 7, 0.09) 0 1px, transparent 1.4px) 0 0 / 11px 11px,
    radial-gradient(circle at 50% -8%, rgba(247, 167, 7, 0.08), transparent 26%),
    linear-gradient(180deg, #05080c 0%, #090d12 100%);
  color: var(--text);
}

.phone-page::before,
.phone-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(247, 167, 7, 0.28);
  opacity: 0.48;
  transform: rotate(30deg);
}

.phone-page::before {
  width: 210px;
  height: 210px;
  right: -128px;
  top: 80px;
}

.phone-page::after {
  width: 230px;
  height: 230px;
  left: -160px;
  bottom: 72px;
}

.phone-page > * {
  position: relative;
  z-index: 1;
}

.top-row,
.simple-header,
.trade-header,
.records-header,
.discover-header,
.market-detail-header,
.convert-header {
  color: var(--text);
}

.icon-button {
  color: var(--text);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line);
  background: #111821;
  box-shadow: none;
}

.primary-pill,
.wide-button.primary-pill,
.drawer-profile-actions a.drawer-auth-link.primary {
  border: 0;
  background: linear-gradient(180deg, #ffbe1a 0%, #f7a707 100%);
  color: #080b10;
  box-shadow: 0 14px 28px rgba(247, 167, 7, 0.24);
}

.outline-pill,
.secondary-inline-button,
.select-trigger,
.form-select-trigger,
.stack-form input,
.picker-panel button,
.language-trigger {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111821 0%, #0c1117 100%);
  color: var(--text);
  box-shadow: none;
}

.primary-pill:hover,
.outline-pill:hover,
.secondary-inline-button:hover {
  transform: translateY(-1px);
}

.small-link,
.auth-switch a,
.news-link,
.view-more,
.bottom-nav a.active,
.form-card code,
.form-status,
.form-status[data-type="success"] {
  color: var(--brand);
}

.soft-card,
.form-card,
.market-info-card,
.drawer-card,
.settings-summary-card,
.settings-action-list button,
.confirm-dialog,
.result-dialog {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.96), rgba(10, 15, 21, 0.96));
  box-shadow: var(--shadow-soft);
}

.bottom-nav {
  min-height: 82px;
  border: 1px solid #1d232b;
  border-bottom: 0;
  border-radius: 0;
  background: rgba(6, 10, 15, 0.94);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.34);
}

.bottom-nav a {
  color: #8f96a2;
  font-size: 12px;
}

.bottom-nav a.active {
  color: var(--brand);
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
}

.bottom-nav .trade-fab {
  width: auto;
  height: auto;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f96a2;
  box-shadow: none;
}

.bottom-nav .trade-fab span {
  color: inherit;
  font-size: 12px;
}

.bottom-nav .trade-fab.active,
.bottom-nav .trade-fab.active span {
  color: var(--brand);
}

.is-loading {
  background: linear-gradient(90deg, #151b23 25%, #242b35 50%, #151b23 75%);
}

.drawer-panel,
.account-settings-panel,
.picker-panel,
.home-popup-panel {
  border-color: var(--line);
  background:
    radial-gradient(circle at 86% 0%, rgba(247, 167, 7, 0.1), transparent 28%),
    linear-gradient(180deg, #10161f 0%, #080d13 100%);
  color: var(--text);
}

.picker-backdrop,
.drawer-backdrop,
.account-settings-backdrop,
.home-popup-backdrop,
.confirm-dialog::backdrop,
.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.section-title h2,
.simple-header h1,
.trade-header h1,
.convert-header h1 {
  color: var(--text);
}

.coin-icon {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.coin-icon.teal {
  background: linear-gradient(135deg, #21c977, #10864f);
}

.coin-icon.orange {
  background: linear-gradient(135deg, #ffbd28, #f7931a);
}

.coin-icon.blue {
  background: linear-gradient(135deg, #6f7bff, #4e5cf3);
}

.coin-icon.black {
  background: #05070a;
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(247, 167, 7, 0.12), transparent 28%),
      #020408;
  }

  .phone-page {
    border: 1px solid #1d232b;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  }
}

/* Oh bits dark drawer overrides */
.side-drawer .drawer-backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.side-drawer .drawer-panel {
  padding: 18px 18px 28px;
  border-right: 1px solid rgba(247, 167, 7, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 167, 7, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(247, 167, 7, 0.08) 0 1px, transparent 1px) 0 0 / 92px 92px,
    radial-gradient(circle, rgba(247, 167, 7, 0.16) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(180deg, #05080c 0%, #080d13 100%);
  color: var(--text);
}

.side-drawer .drawer-status .icon-button {
  color: var(--text);
}

.side-drawer .drawer-profile {
  margin: 4px 0 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 167, 7, 0.18);
}

.side-drawer .avatar-photo {
  border: 2px solid rgba(247, 167, 7, 0.48);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #1f2937, #05080c);
  box-shadow: 0 0 24px rgba(247, 167, 7, 0.18);
}

.side-drawer .drawer-profile h2,
.side-drawer .drawer-card h3,
.side-drawer .drawer-section-head h3 {
  color: var(--text);
}

.side-drawer .drawer-role-pill,
.side-drawer .drawer-uid {
  border: 1px solid rgba(247, 167, 7, 0.3);
  background: rgba(247, 167, 7, 0.1);
  color: var(--brand);
}

.side-drawer .drawer-role-pill i {
  background: var(--brand);
}

.side-drawer .drawer-profile-actions button,
.side-drawer .drawer-profile-actions a.drawer-auth-link {
  border: 1px solid rgba(247, 167, 7, 0.34);
  background: rgba(247, 167, 7, 0.08);
  color: var(--brand);
}

.side-drawer .drawer-profile-actions a.drawer-auth-link.primary {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #05080c;
}

.side-drawer .drawer-account-status article,
.side-drawer .drawer-card,
.side-drawer .drawer-about {
  border: 1px solid #1d232b;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 167, 7, 0.08), transparent 32%),
    linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.side-drawer .drawer-account-status span,
.side-drawer .drawer-about span,
.side-drawer .drawer-about b {
  color: var(--muted);
}

.side-drawer .drawer-account-status strong,
.side-drawer .drawer-grid a {
  color: var(--text);
}

.side-drawer .drawer-account-status strong.is-ok {
  color: var(--green);
}

.side-drawer .drawer-account-status strong.is-warn {
  color: var(--brand);
}

.side-drawer .drawer-grid a svg {
  border: 1px solid rgba(247, 167, 7, 0.3);
  background: rgba(247, 167, 7, 0.08);
  color: var(--brand);
}
