:root {
  color-scheme: dark;
  --exo-bg: #070711;
  --exo-bg-soft: #0d0d1a;
  --exo-panel: rgba(22, 22, 41, 0.76);
  --exo-panel-strong: rgba(27, 27, 51, 0.94);
  --exo-border: rgba(255, 255, 255, 0.085);
  --exo-border-bright: rgba(142, 119, 255, 0.34);
  --exo-text: #f8f8ff;
  --exo-muted: #9b9bb4;
  --exo-purple: #8b6cff;
  --exo-violet: #6f4dff;
  --exo-pink: #d85cff;
  --exo-blue: #46b5ff;
  --color-purple: var(--exo-purple);
  --color-accent: var(--exo-purple);
  --color-brand: var(--exo-purple);
  --color-dark: var(--exo-bg);
  --color-dark-alt: #151527;
  --color-gray: var(--exo-muted);
}

html,
body {
  background: var(--exo-bg) !important;
  color: var(--exo-text);
}

body {
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(10px);
}

body::before {
  width: 720px;
  height: 720px;
  top: -390px;
  right: -180px;
  background: radial-gradient(circle, rgba(104, 72, 255, 0.28) 0%, rgba(104, 72, 255, 0) 68%);
}

body::after {
  width: 560px;
  height: 560px;
  bottom: -340px;
  left: 16%;
  background: radial-gradient(circle, rgba(37, 142, 255, 0.16) 0%, rgba(37, 142, 255, 0) 70%);
}

.main {
  background: transparent !important;
}

.content {
  position: relative;
  z-index: 1;
  margin-left: 258px !important;
  padding: 0 48px 80px !important;
  background:
    radial-gradient(circle at 72% -15%, rgba(108, 72, 255, 0.18), transparent 37%),
    linear-gradient(145deg, #090914 0%, #0a0a16 48%, #070711 100%) !important;
}

/* Sidebar */
.sidebar {
  width: 258px !important;
  max-width: 258px !important;
  padding: 30px 16px 24px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 35% 4%, rgba(126, 83, 255, 0.22), transparent 27%),
    linear-gradient(180deg, rgba(17, 17, 34, 0.98), rgba(8, 8, 18, 0.99)) !important;
  box-shadow: 28px 0 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.sidebar__block {
  position: relative;
  z-index: 1;
}

.sidebar__block:first-child > div:first-child {
  min-height: 48px;
  padding: 0 18px 24px !important;
  gap: 0 !important;
}

.sidebar__block:first-child > div:first-child img {
  content: url("../icons/logo.png?v=exodus-20260820-10");
  width: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 22px rgba(113, 78, 255, 0.3));
}

.sidebar__block:first-child > div:first-child span {
  display: none !important;
}

.sidebar__block:first-child > p[style] {
  padding-left: 18px !important;
  margin: 0 0 28px !important;
  color: #77778f !important;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__title {
  padding: 0 14px 12px !important;
  color: #67677d !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar__list {
  width: 100% !important;
  margin: 0 !important;
  gap: 5px;
  border-radius: 0 !important;
  background: transparent !important;
}

.sidebar__item {
  width: 100% !important;
  height: 50px !important;
  border: 1px solid transparent !important;
  border-radius: 14px;
  color: #9999ae !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  overflow: hidden;
  transform: none !important;
  translate: none !important;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

.sidebar__item:not(:last-child) {
  border-bottom-color: transparent !important;
}

.sidebar__item:hover:not(.is-active) {
  color: #e5e3ff !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.055) !important;
  transform: none !important;
}

.sidebar__item:hover,
.sidebar__item:active,
.sidebar__item:focus-within,
.sidebar__item.is-active {
  transform: none !important;
  translate: none !important;
}

.sidebar__item.is-active {
  color: #fff !important;
  background: linear-gradient(110deg, rgba(112, 75, 255, 0.36), rgba(194, 82, 255, 0.15)) !important;
  border-color: rgba(151, 119, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(61, 34, 152, 0.2);
}

.sidebar__link {
  width: 100% !important;
  height: 50px !important;
  padding: 0 16px !important;
  transform: none !important;
  translate: none !important;
  transition: color 160ms ease, opacity 160ms ease !important;
}

.sidebar__link:hover,
.sidebar__link:active,
.sidebar__link:focus,
.sidebar__link:focus-visible {
  transform: none !important;
  translate: none !important;
}

.sidebar__link.is-active {
  pointer-events: none;
}

.sidebar__button-inner {
  column-gap: 13px !important;
}

.sidebar__link svg path,
.sidebar__item:hover svg path,
.sidebar__item.is-active svg path {
  color: inherit !important;
  fill: currentColor !important;
}

.sidebar__item svg,
.sidebar__item svg *,
.sidebar__button-inner,
.sidebar__arrow {
  transform: none !important;
  translate: none !important;
  transition: color 160ms ease, fill 160ms ease, stroke 160ms ease, opacity 160ms ease !important;
}

.sidebar__item.is-active .sidebar__button-inner > svg path {
  color: #b8a9ff !important;
  fill: #b8a9ff !important;
}

.sidebar__item:hover:not(.is-active) .sidebar__button-inner > svg path {
  color: #9f91ff !important;
  fill: #9f91ff !important;
}

.sidebar__arrow {
  opacity: 0.48;
}

.sidebar__block:last-child {
  margin-top: auto;
  padding-top: 20px !important;
}

/* Headers */
.page-header {
  padding: 34px 0 18px !important;
  margin-bottom: 10px !important;
}

.portfolio__title,
.market__title,
.reports__subtitle,
.stg-title {
  color: var(--exo-text) !important;
  font-size: clamp(32px, 3.1vw, 46px) !important;
  font-weight: 520 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.05 !important;
}

.portfolio__account,
.market__portfolio,
.reports__portfolio {
  min-height: 38px;
  padding: 8px 14px !important;
  border: 1px solid var(--exo-border) !important;
  border-radius: 999px !important;
  color: #aaaac0 !important;
  background: rgba(21, 21, 40, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Portfolio hero */
.graph {
  gap: 36px !important;
  margin-top: 10px;
  padding: 30px !important;
  border: 1px solid var(--exo-border) !important;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 8%, rgba(103, 71, 255, 0.19), transparent 38%),
    linear-gradient(145deg, rgba(28, 28, 53, 0.92), rgba(13, 13, 29, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.graph__actions {
  min-width: 240px;
}

.graph__actions-price {
  font-size: clamp(42px, 4vw, 58px) !important;
  font-weight: 450 !important;
  letter-spacing: -0.045em !important;
}

.graph__actions-percent {
  color: #b2b2c7;
  font-size: 24px !important;
}

.graph__elements-buttons {
  gap: 6px !important;
  padding: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(5, 5, 14, 0.35);
  align-self: flex-start;
}

.graph__elements-button {
  min-width: 54px;
  height: 32px !important;
  border-radius: 9px !important;
  color: #85859b !important;
}

.graph__elements-button:hover {
  color: #ded9ff !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.graph__elements-button.is-active {
  color: #fff !important;
  background: linear-gradient(120deg, #7655ff, #9a5cff) !important;
  box-shadow: 0 7px 20px rgba(101, 67, 255, 0.32);
}

.graph__axis-labels,
.line__header-name,
.line__header-value {
  color: #77778e !important;
}

.line {
  margin-top: 18px;
  padding: 22px 24px !important;
  border: 1px solid var(--exo-border);
  border-radius: 22px;
  background: rgba(18, 18, 35, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.line__list {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important;
  gap: 16px;
  min-width: 0;
}

.line__item {
  width: auto !important;
  min-width: 0;
  margin-right: 0 !important;
  padding-right: 8px;
  overflow: hidden;
}

.line__item-asset {
  min-width: 0;
  column-gap: 8px !important;
}

.line__item-asset-name,
.line__item-asset-value,
.line__item-price {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Native shell behavior: content behaves like labels, not a document. */
html,
body,
body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

html,
body {
  overscroll-behavior: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
  cursor: text !important;
}

button,
a,
[role="button"] {
  cursor: pointer;
}

/* Lists and cards */
.tokens {
  padding-top: 30px !important;
}

.tokens__header,
.transactions__header {
  padding-bottom: 18px !important;
}

.tokens__title,
.transactions__title {
  font-size: 24px !important;
  font-weight: 560 !important;
  letter-spacing: -0.025em;
}

.tokens__link,
.transactions__link {
  color: #8e8da5 !important;
  font-size: 14px !important;
}

.tokens__link:hover,
.transactions__link:hover {
  color: #b9adff !important;
}

.tokens__item,
.transactions__item,
.market__item,
.market__card,
.reports__graph-card,
.generate__row,
.events__item,
.assets,
.developer,
.stg-card {
  border: 1px solid var(--exo-border) !important;
  background: linear-gradient(145deg, rgba(25, 25, 47, 0.82), rgba(15, 15, 30, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tokens__item,
.transactions__item {
  min-height: 82px;
  border-radius: 20px !important;
}

.tokens__item:hover,
.transactions__item:hover,
.market__item:hover,
.market__card:hover {
  border-color: var(--exo-border-bright) !important;
  background: linear-gradient(145deg, rgba(39, 34, 77, 0.88), rgba(17, 17, 35, 0.9)) !important;
  transform: translateY(-1px);
}

.tokens__info-name,
.tokens__amount-name,
.market__asset-name {
  color: #f4f3ff !important;
}

.tokens__info-value,
.tokens__amount-value,
.market__asset-value,
.reports__header-description {
  color: #85859a !important;
}

.market__cards {
  gap: 14px !important;
}

.market__card,
.reports__graph-card {
  border-radius: 22px !important;
}

/* Controls */
.button,
.welcome__button,
.assets__button,
.generate__button,
.documents__button,
.security__button,
.register__button,
.import__button {
  color: #fff !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(115deg, #6d4dff 0%, #9258ff 52%, #c85cff 100%) !important;
  box-shadow: 0 14px 34px rgba(98, 61, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button:hover,
.welcome__button:hover,
.assets__button:hover,
.generate__button:hover,
.documents__button:hover {
  color: #fff !important;
  filter: brightness(1.09);
  transform: translateY(-1px);
}

input,
select,
textarea,
.market__search,
.token-select__button {
  color: #f2f1ff !important;
  border-color: var(--exo-border) !important;
  background: rgba(14, 14, 29, 0.86) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(139, 108, 255, 0.66) !important;
  outline: 3px solid rgba(139, 108, 255, 0.13) !important;
}

.stg-title {
  padding-top: 34px !important;
  margin-bottom: 26px !important;
}

.stg-group-label,
.settings h2.profile__title {
  color: #77778e !important;
}

.stg-card,
.settings section.developer {
  border-radius: 20px !important;
}

.stg-row:hover .stg-row-body span {
  color: #b9adff !important;
}

.terms-overlay,
.token-overlay,
.market-overlay {
  background: rgba(3, 3, 10, 0.76) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.terms-modal,
.token-modal,
.market-overlay__wrapper {
  border: 1px solid var(--exo-border-bright) !important;
  background: linear-gradient(150deg, rgba(29, 29, 55, 0.98), rgba(11, 11, 25, 0.98)) !important;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58) !important;
}

@media (max-width: 1050px) {
  .sidebar {
    width: 224px !important;
    max-width: 224px !important;
  }

  .content {
    margin-left: 224px !important;
    padding-inline: 30px !important;
  }

  .graph {
    gap: 22px !important;
    padding: 24px !important;
  }

  .graph__actions {
    min-width: 205px;
  }
}

@media (max-width: 780px) {
  .sidebar {
    width: 82px !important;
    max-width: 82px !important;
    padding-inline: 12px !important;
  }

  .sidebar__block:first-child > div:first-child img {
    content: url("../favicon.png?v=exodus-20260820-10");
    width: 42px !important;
    height: 42px !important;
  }

  .sidebar__block:first-child > p,
  .sidebar__title,
  .sidebar__button-inner:not(:has(svg)),
  .sidebar__button-inner {
    font-size: 0 !important;
  }

  .sidebar__link {
    justify-content: center !important;
    padding: 0 !important;
  }

  .sidebar__arrow {
    display: none !important;
  }

  .content {
    margin-left: 82px !important;
    padding-inline: 20px !important;
  }

  .graph {
    flex-direction: column;
  }
}
