.dashboard-header { justify-content: flex-start; gap: 10px; }
.dashboard-header > .menu-action { flex: 0 0 auto; }
.dashboard-header .avatar { border: 0; }
.dashboard-header button.avatar { padding: 0; font-family: inherit; cursor: pointer; }
.dashboard-header button.avatar { overflow: hidden; }
.dashboard-header button.avatar img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; }
.dashboard-header .install-action { border: 0; }

.dashboard-header .header-balances {
  min-width: 0;
  margin-left: auto;
  margin-right: 14px;
  padding: 5px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  color: #fff;
  background: rgba(6, 18, 35, .84);
  text-decoration: none;
}

.dashboard-header .header-balances:focus-visible {
  outline: 2px solid #d8b84c;
  outline-offset: 3px;
}

.dashboard-header .header-balances > span {
  min-width: 0;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-header .header-balances > span + span {
  border-left: 1px solid rgba(255, 255, 255, .11);
}

.dashboard-header .header-balances small {
  color: #aab6c8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dashboard-header .header-balances strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-header .header-balances b {
  color: #e2c458;
  font-size: 8px;
}

@media (max-width: 720px) {
  .dashboard-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 7px;
  }

  .dashboard-header > .menu-action { grid-column: 1; grid-row: 1; }
  .dashboard-header .header-brand { grid-column: 2; grid-row: 1; }
  .dashboard-header .header-actions { grid-column: 3; grid-row: 1; }
  .dashboard-header .header-balances {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }

  .dashboard-header .header-balances > span { flex: 1 1 50%; }
}

.menu-action {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #e4c45d;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.menu-action:focus-visible,
.app-navigation-drawer button:focus-visible,
.app-navigation-drawer a:focus-visible {
  outline: 2px solid #d8b84c;
  outline-offset: 3px;
}

.menu-action:active { transform: scale(.96); }
.menu-action:hover { color: #f1d77a; }

.app-navigation[hidden] { display: none; }

.app-navigation {
  position: fixed;
  z-index: 90;
  inset: 0;
}

.app-navigation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  background: rgba(0, 3, 10, .72);
  backdrop-filter: blur(5px);
  transition: opacity .2s ease;
}

.app-navigation-drawer {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: min(88vw, 370px);
  padding: max(20px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #f7f5ef;
  background:
    radial-gradient(circle at 18% 5%, rgba(204, 170, 53, .14), transparent 30%),
    linear-gradient(160deg, #061126 0%, #020816 52%, #02040b 100%);
  border-right: 1px solid rgba(210, 181, 88, .25);
  box-shadow: 24px 0 70px rgba(0, 0, 0, .55);
  transform: translateX(-102%);
  transition: transform .22s cubic-bezier(.2, .75, .25, 1);
  outline: none;
  overscroll-behavior: contain;
}

.app-navigation.is-open .app-navigation-backdrop { opacity: 1; }
.app-navigation.is-open .app-navigation-drawer { transform: translateX(0); }
body.navigation-open { overflow: hidden; }

.profile-panel[hidden] { display: none; }
.profile-panel { position: fixed; z-index: 100; inset: 0; }
.profile-panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  background: rgba(0, 3, 10, .74);
  transition: opacity .24s ease;
}
.profile-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 480px);
  display: flex;
  flex-direction: column;
  color: #f7f5ef;
  background: #020817;
  border-left: 1px solid rgba(210, 181, 88, .27);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
  outline: none;
}
.profile-panel.is-open .profile-panel-backdrop { opacity: 1; }
.profile-panel.is-open .profile-panel-drawer { transform: translateX(0); }
body.profile-panel-open { overflow: hidden; }
.profile-panel-header {
  min-height: 72px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(140deg, #07172c, #020817);
}
.profile-panel-header small { color: #d8b84c; font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.profile-panel-header h2 { margin: 4px 0 0; color: #fff; font-size: 22px; line-height: 1; }
.profile-panel-header button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #eee9dc;
  background: transparent;
  font: 300 24px/1 sans-serif;
  cursor: pointer;
}
.profile-panel-header button:focus-visible { outline: 2px solid #d8b84c; outline-offset: 3px; }
.profile-panel-content-host {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background: #020817;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --black: #000;
  --navy: #00050f;
  --navy-light: #03142d;
  --panel: rgba(0, 8, 23, .9);
  --gold: #ccaa35;
  --gold-dark: #946113;
  --gold-light: #ceb697;
  --white: #fff;
  --muted: #a8aab2;
  --line: rgba(206, 182, 151, .24);
  --green: #66d39a;
  --red: #ef7373;
}

@media (prefers-reduced-motion: reduce) {
  .profile-panel-backdrop, .profile-panel-drawer { transition: none; }
}

.dashboard-header .inbox-action {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #e7d7a8;
  background: transparent;
  cursor: pointer;
}
.dashboard-header .inbox-action:hover,
.dashboard-header .inbox-action[aria-expanded="true"] { background: rgba(204, 170, 53, .1); }
.dashboard-header .inbox-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inbox-action-count {
  position: absolute;
  top: 0;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #020817;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #10100c;
  background: #e4bf5b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.inbox-action-count[hidden] { display: none; }
.inbox-panel[hidden] { display: none; }
.inbox-panel { position: fixed; z-index: 101; inset: 0; }
.inbox-panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  background: rgba(0, 3, 10, .74);
  transition: opacity .24s ease;
}
.inbox-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 480px);
  display: flex;
  flex-direction: column;
  color: #f7f5ef;
  background: #020817;
  border-left: 1px solid rgba(210, 181, 88, .27);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
  outline: none;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
.inbox-panel.is-open .inbox-panel-backdrop { opacity: 1; }
.inbox-panel.is-open .inbox-panel-drawer { transform: translateX(0); }
body.inbox-panel-open { overflow: hidden; }
.inbox-panel-header {
  min-height: 72px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(140deg, #07172c, #020817);
}
.inbox-panel-header small { color: #d8b84c; font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.inbox-panel-header h2 { margin: 4px 0 0; color: #fff; font-size: 22px; line-height: 1; }
.inbox-panel-header button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #eee9dc;
  background: transparent;
  font: 300 24px/1 sans-serif;
  cursor: pointer;
}
.inbox-panel-toolbar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inbox-panel-tabs { display: flex; gap: 5px; padding: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #071427; }
.inbox-panel-tabs button, .inbox-mark-all, .inbox-load-more, .inbox-detail-actions button, .inbox-empty button {
  border: 0;
  color: #b8c5d5;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.inbox-panel-tabs button { padding: 8px 12px; border-radius: 9px; }
.inbox-panel-tabs button[aria-pressed="true"] { color: #f8e8b7; background: #1a2d45; }
.inbox-mark-all { color: #e5c36c; white-space: nowrap; }
.inbox-mark-all[hidden], .inbox-load-more[hidden] { display: none; }
.inbox-list-region { height: min(40dvh, 340px); min-height: 190px; flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid rgba(222, 183, 80, .24); background: #071222; }
.inbox-list-heading { padding: 12px 18px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inbox-list-heading strong { color: #f6f3ea; font-size: 11px; }
.inbox-list-heading span { color: #8fa1b7; font-size: 9px; text-align: right; }
.inbox-panel-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 12px; scrollbar-width: thin; scrollbar-color: #9b813f #101f31; }
.inbox-panel-list::-webkit-scrollbar { width: 6px; }
.inbox-panel-list::-webkit-scrollbar-track { border-radius: 10px; background: #101f31; }
.inbox-panel-list::-webkit-scrollbar-thumb { border-radius: 10px; background: #9b813f; }
.inbox-panel-list::-webkit-scrollbar-thumb:hover { background: #d8b84c; }
.inbox-message { width: 100%; margin: 0 0 8px; padding: 12px 14px; border: 1px solid rgba(163, 187, 215, .14); border-radius: 12px; display: block; color: inherit; background: #0b1a2b; font: inherit; text-align: left; cursor: pointer; }
.inbox-message.is-unread { border-color: rgba(223, 185, 87, .38); background: linear-gradient(135deg, #12243b, #09172a); }
.inbox-message.is-selected { border-color: #d8b84c; background: #172b43; box-shadow: inset 3px 0 #d8b84c; }
.inbox-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #95a8bd; font-size: 10px; }
.inbox-message-meta span { color: #e5c36c; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inbox-message-meta time { text-align: right; }
.inbox-message strong { margin: 7px 0 3px; display: block; color: #fff; font-size: 12px; line-height: 1.35; }
.inbox-message-preview { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #aebdcd; font-size: 10px; line-height: 1.5; }
.inbox-empty { min-height: 130px; padding: 22px 14px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #b7c3d1; }
.inbox-empty-icon { width: 68px; height: 68px; display: block; object-fit: contain; }
.inbox-empty p { max-width: 280px; margin: 0; font-size: 12px; line-height: 1.55; }
.inbox-empty button { color: #e5c36c; }
.inbox-load-more { margin: 0 18px 9px; padding: 8px; border: 1px solid rgba(222, 183, 80, .28); border-radius: 9px; color: #e5c36c; }
.inbox-panel-detail { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 19px 20px max(22px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: #6c7180 #081323; }
.inbox-detail-label { color: #d8b84c; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.inbox-detail-meta { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #99aabe; font-size: 10px; }
.inbox-detail-meta span { color: #e5c36c; font-weight: 800; text-transform: uppercase; }
.inbox-panel-detail h3 { margin: 12px 0; color: #fff; font-size: 20px; line-height: 1.32; }
.inbox-detail-body { margin: 0; color: #c2ccda; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-detail-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.inbox-detail-actions a { color: #e9c76f; font-size: 11px; font-weight: 800; text-decoration: none; }
.inbox-detail-actions button { margin-left: auto; padding: 9px 12px; border: 1px solid rgba(222, 183, 80, .25); border-radius: 9px; color: #e9c76f; }
.inbox-detail-placeholder { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.inbox-detail-placeholder > img { width: 68px; height: 68px; display: block; object-fit: contain; }
.inbox-detail-placeholder h3 { margin: 13px 0 5px; font-size: 15px; }
.inbox-detail-placeholder p { max-width: 275px; margin: 0; color: #9bacc0; font-size: 11px; line-height: 1.5; }
.inbox-panel button:focus-visible, .inbox-panel a:focus-visible, .dashboard-header .inbox-action:focus-visible { outline: 2px solid #d8b84c; outline-offset: 3px; }
@media (max-width: 600px) { .dashboard-header .inbox-action { width: 36px; height: 36px; } }
@media (max-height: 600px) { .inbox-list-region { height: 34dvh; min-height: 145px; } }
@media (prefers-reduced-motion: reduce) { .inbox-panel-backdrop, .inbox-panel-drawer { transition: none; } }

.app-navigation-drawer > header {
  min-height: 57px;
  padding: 0 2px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-navigation-drawer > header small,
.app-navigation-drawer nav > p {
  color: #cbaa3d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.app-navigation-drawer > header h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 23px;
  line-height: 1;
}

.app-navigation-drawer > header button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #eee9dc;
  background: transparent;
  font: 300 24px/1 sans-serif;
  cursor: pointer;
}

.app-navigation-drawer nav { padding: 8px 0 14px; }
.app-navigation-drawer nav > p { margin: 14px 10px 5px; }

.app-navigation-drawer nav a {
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.app-navigation-drawer nav a + a { margin-top: 2px; }
.app-navigation-drawer nav a span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-navigation-drawer nav a small { color: #868d9b; font-size: 8px; font-weight: 600; letter-spacing: .03em; }
.app-navigation-drawer nav a strong { color: #f7f5ef; font-size: 12px; font-weight: 750; }
.app-navigation-drawer nav a > b { color: #b89c42; font-size: 16px; font-weight: 400; }

.app-navigation-wallet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.app-navigation-wallet a {
  min-height: 76px !important;
  padding: 11px !important;
  border-color: rgba(255, 255, 255, .08) !important;
  align-items: flex-start !important;
  background: rgba(0, 8, 23, .58);
}
.app-navigation-wallet a + a { margin-top: 0 !important; }
.app-navigation-wallet a small { max-width: 100px; line-height: 1.4; }
.app-navigation-wallet a > b { margin-top: 2px; }

.app-navigation-signal {
  border: 1px solid rgba(204, 170, 53, .22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 8, 23, .7);
}
.app-navigation-signal-head {
  min-height: 59px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(100deg, rgba(204, 170, 53, .12), rgba(204, 170, 53, .025));
}
.app-navigation-signal-head > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-navigation-signal-head > span small { color: #b89c42; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-navigation-signal-head > span strong { color: #ead58d; font-size: 13px; }
.app-navigation-drawer nav .app-navigation-signal-head > a {
  min-height: 31px;
  padding: 0 10px;
  border-color: rgba(204, 170, 53, .28);
  border-radius: 9px;
  color: #d9c16d;
  background: rgba(204, 170, 53, .06);
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}
.app-navigation-signal-links a {
  min-height: 49px !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 0 !important;
}
.app-navigation-signal-links a + a { margin-top: 0 !important; }
.app-navigation-signal-links a strong { font-size: 11px; }
.app-navigation-signal-links a small { font-size: 7px; }
.app-navigation-signal-links a:hover,
.app-navigation-signal-links a:active,
.app-navigation-signal-links a[aria-current="page"] { background: rgba(204, 170, 53, .075); }

.app-navigation-drawer nav a:hover,
.app-navigation-drawer nav a:active,
.app-navigation-drawer nav a[aria-current="page"] {
  border-color: rgba(204, 170, 53, .24);
  background: rgba(204, 170, 53, .075);
}

.app-navigation-drawer nav a[aria-current="page"] strong { color: #e2c458; }

@media (max-width: 640px) {
  .menu-action { width: 36px; height: 36px; }
  .menu-action svg { width: 17px; height: 17px; }
}

@media (max-width: 360px) {
  .header-actions { gap: 7px !important; }
  .app-navigation-drawer { width: 92vw; padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-navigation-backdrop,
  .app-navigation-drawer { transition: none; }
}
