:root {
  --bg: #0a0b0b;
  --rail: #141617;
  --panel: #202324;
  --panel-2: #2d3032;
  --panel-3: #151718;
  --border: #34383a;
  --border-soft: #44494c;
  --text: #f5f6f9;
  --muted: #909699;
  --cyan: #74f2e8;
  --purple: #c484fc;
  --green: #22c55e;
  --blue: #255aab;
  --sidebar-width: 280px;
  --topbar-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
a,
.token-input {
  transition:
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app {
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  justify-content: space-between;
  background: var(--rail);
}

.sidebar-top {
  padding: 10px 24px 0;
}

.trade-switch {
  display: flex;
  width: 232px;
  height: 58px;
  align-items: center;
  gap: 16px;
  padding: 0 10px;
  border: 1px solid #303436;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.trade-switch:hover {
  border-color: #515659;
  background: var(--panel-2);
}

.trade-switch:hover .chevron {
  color: var(--cyan);
}

.trade-switch .chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}

.orb-logo {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 4px 5px rgba(34, 197, 94, 0.22));
}

.orb-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: none;
}

.orb-logo__layer {
  transform-box: fill-box;
  transform-origin: center;
}

.orb-logo__layer--back {
  fill: #177b58;
  transform: translate(-2px, 2px);
}

.orb-logo__layer--mid {
  fill: #74f2e8;
  transform: translate(-1px, 1px);
}

.orb-logo__layer--front {
  fill: #c484fc;
}

.orb-logo--mini {
  width: 20px;
  height: 20px;
}

.menu {
  display: flex;
  flex-direction: column;
  padding-top: 9px;
}

.menu-sub,
.menu-row {
  display: flex;
  min-height: 51px;
  align-items: center;
  color: var(--muted);
}

.menu-sub {
  padding-left: 44px;
}

.menu-sub.active {
  color: var(--text);
  font-weight: 700;
}

.menu-sub:hover,
.menu-row:hover {
  color: var(--cyan);
}

.menu-row:hover .chevron {
  transform: rotate(180deg);
}

.menu-row {
  gap: 18px;
  font-size: 16px;
}

.menu-row svg:first-child {
  width: 20px;
  height: 20px;
}

.menu-row .chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
}

.sidebar-bottom {
  padding: 0 20px 19px;
}

.factory {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 700;
}

.factory svg,
.factory-icon {
  width: 18px;
  height: 18px;
}

.factory-icon,
.socials img,
.coin-img {
  display: block;
  object-fit: contain;
}

.factory:hover {
  color: #adfff8;
  transform: translateY(-1px);
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: 27px;
  color: var(--muted);
}

.socials a,
.socials img {
  width: 22px;
  height: 22px;
}

.socials a {
  display: block;
  opacity: 0.82;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(0) saturate(100%) invert(92%) sepia(73%) saturate(1120%) hue-rotate(106deg) brightness(101%) contrast(95%);
}

.sidebar-bottom p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-bottom p {
  font-size: 0;
}

.sidebar-bottom p::before {
  content: "\00A9\0020 LevraDEX 2025";
  font-size: 12px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  padding-left: calc(var(--sidebar-width) + 24px);
  padding-right: 60px;
  border-bottom: 1px solid rgba(48, 53, 56, 0.55);
  background: rgba(10, 11, 11, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.crumbs svg {
  width: 20px;
  height: 20px;
}

.crumbs svg:nth-child(2) {
  width: 14px;
  height: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--cyan);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.control-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.92;
  transition: filter 150ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover .control-icon,
.slippage:hover .control-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(92%) sepia(73%) saturate(1120%) hue-rotate(106deg) brightness(101%) contrast(95%);
}

.launch {
  border-radius: 6px;
  background: var(--purple);
  color: #070707;
  font-weight: 700;
}

.launch:hover {
  background: #d2a2fe;
  box-shadow: 0 0 0 1px rgba(210, 162, 254, 0.25), 0 8px 22px rgba(196, 132, 252, 0.18);
}

.launch:active {
  transform: translateY(1px);
}

.top-launch {
  width: 199px;
  height: 42px;
  margin-left: 28px;
  font-size: 14px;
}

.mobile-brand {
  display: none;
}

.content {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  padding-bottom: 60px;
}

.swap-stack {
  width: 470px;
  margin: 0 auto;
}

.swap-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.swap-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.swap-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.refresh {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 500px;
  background: var(--panel-2);
  color: var(--muted);
}

.refresh:hover,
.slippage:hover,
.quick-pills button:hover,
.swap-direction:hover {
  border-color: #515659;
  background: #3e4345;
  color: var(--cyan);
}

.refresh:hover svg {
  transform: rotate(28deg);
}

.refresh svg {
  width: 20px;
  height: 20px;
}

.slippage {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
}

.slippage svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.swap-card {
  overflow: hidden;
  border: 1px solid #303538;
  border-radius: 12px;
  background: var(--panel);
}

.swap-section {
  padding: 20px;
}

.pay-section {
  padding-bottom: 37px;
}

.receive-section {
  padding-top: 31px;
  padding-bottom: 20px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section-head label {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: none;
}

.section-head p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.quick-pills {
  display: flex;
  gap: 5px;
}

.quick-pills button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
}

.token-input {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 16px 0 24px;
  border-radius: 6px;
  background: #080909;
}

.token-input:hover {
  background: #0f1112;
}

.receive-section .token-input,
.receive-section .token-input:hover {
  background: #141617;
}

.token-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.token-select:hover {
  color: var(--cyan);
}

.token-select svg {
  width: 18px;
  height: 18px;
}

.coin {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 500px;
  flex: 0 0 auto;
}

.coin-img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 500px;
}

.coin-badge {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 500px;
  flex: 0 0 auto;
}

.coin-badge .coin-img {
  width: 28px;
  height: 28px;
  border-radius: 0;
}

.usdt-badge {
  background: transparent;
}

.usdt-badge .coin-img {
  width: 40px;
  height: 40px;
  border-radius: 500px;
}

.sol-badge {
  background: #020202;
}

.sol-badge .coin-img {
  opacity: 0.78;
  filter: saturate(0.62) brightness(0.92) contrast(0.95);
}

.sol {
  position: relative;
  overflow: hidden;
  background: #020202;
}

.sol span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 5px;
  transform: skewX(-20deg);
  border-radius: 8px;
  background: linear-gradient(90deg, #7dfce9, #7a39ff);
}

.sol span:nth-child(1) {
  top: 11px;
}

.sol span:nth-child(2) {
  top: 18px;
  background: linear-gradient(90deg, #7a39ff, #7dfce9);
}

.sol span:nth-child(3) {
  top: 25px;
}

.token-input output {
  color: #a8bdd2;
  font-size: 16px;
}

.divider {
  position: relative;
  height: 1px;
  background: #4a5153;
}

.swap-direction {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 0;
  line-height: 1;
}

.swap-direction svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card-launch {
  display: block;
  width: calc(100% - 40px);
  height: 48px;
  margin: 0 20px 30px;
  font-size: 14px;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.wallet-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 28px 28px;
  border: 1px solid #303538;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.wallet-modal h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.wallet-modal p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--cyan);
  background: var(--panel-2);
}

.modal-launch {
  width: 199px;
  height: 42px;
  margin-top: 24px;
  font-size: 14px;
}

.connect-modal {
  width: min(390px, 100%);
}

.connect-status[data-state="success"] {
  color: var(--cyan);
}

.connect-status[data-state="error"] {
  color: #ff9494;
}

.wallet-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.wallet-options button {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid #303538;
  border-radius: 8px;
  background: #080909;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.wallet-options button:hover {
  border-color: #515659;
  background: #0f1112;
  color: var(--cyan);
}

.wallet-options img {
  width: 30px;
  height: 30px;
  border-radius: 500px;
  object-fit: contain;
}

@media (min-width: 640px) and (max-width: 1279px) {
  .sidebar {
    width: 80px;
  }

  .sidebar-top {
    padding-inline: 10px;
  }

  .trade-switch {
    width: 60px;
    justify-content: center;
  }

  .trade-switch > span:not(.orb-logo),
  .trade-switch .chevron,
  .menu span,
  .menu .chevron,
  .menu-sub,
  .sidebar-bottom {
    display: none;
  }

  .menu {
    align-items: center;
    gap: 22px;
    padding-top: 28px;
  }

  .menu-row {
    min-height: 28px;
  }

  .topbar {
    padding-left: 80px;
    padding-right: 24px;
  }

  .crumbs {
    display: none;
  }

  .content {
    margin-left: 80px;
  }
}

@media (max-width: 639px) {
  body {
    overflow-x: hidden;
  }

  .sidebar,
  .crumbs {
    display: none;
  }

  .topbar {
    height: 60px;
    padding: 0 24px;
    background: rgba(10, 11, 11, 0.82);
  }

  .mobile-brand {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: transparent;
  }

  .top-actions {
    width: calc(100% - 47px);
    justify-content: flex-end;
    gap: 8px;
  }

  .top-launch {
    width: clamp(158px, 51vw, 199px);
    margin-left: 0;
  }

  .content {
    min-height: 100vh;
    margin-left: 0;
    padding-top: 60px;
    padding-bottom: 84px;
  }

  .swap-stack {
    width: calc(100vw - 48px);
    margin: 0 auto;
  }

  .swap-title-row {
    margin-bottom: 14px;
  }

  .swap-tools {
    gap: 16px;
  }

  .swap-card {
    width: 100%;
  }

  .swap-section {
    padding-inline: 20px;
  }

  .pay-section {
    padding-bottom: 37px;
  }

  .receive-section {
    padding-top: 31px;
  }

  .token-input {
    padding-left: 22px;
    padding-right: 16px;
  }

  .card-launch {
    width: calc(100% - 40px);
    margin-bottom: 30px;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    height: 64px;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #25292a;
    background: var(--rail);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-nav a.active {
    color: var(--text);
    font-weight: 700;
  }

  .mobile-nav a:hover {
    color: var(--cyan);
  }

  .mobile-nav svg,
  .mobile-nav .orb-logo {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 365px) {
  .topbar {
    padding-inline: 16px;
  }

  .swap-stack {
    width: calc(100vw - 32px);
  }

  .icon-btn {
    width: 36px;
  }

  .top-launch {
    width: 148px;
  }

  .quick-pills button {
    padding-inline: 8px;
  }
}

.balance-page-body {
  min-height: 100vh;
  background: rgb(19, 19, 19);
  font-family: Inter, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.balance-page {
  min-height: 100vh;
  background: rgb(19, 19, 19);
  color: #ffffff;
  letter-spacing: 0;
}

.balance-state {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 20px 32px;
  text-align: center;
}

.wallet-check-art {
  position: relative;
  width: 80px;
  height: 80px;
}

.wallet-check-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.wallet-check-icon img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.error-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 500px;
  border: 2px solid #19191b;
  background: color(srgb 0.235294 0.141176 0.14902);
  color: #ff5b6b;
}

.error-badge svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.8;
}

.balance-copy {
  display: flex;
  max-width: 430px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.balance-copy p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

#balance-title {
  color: #f05142;
  font-weight: 500;
  line-height: 19.5238px;
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizespeed;
}

.balance-copy p:not(#balance-title) {
  color: #949e9e;
  text-align: center;
}

.balance-actions {
  display: flex;
  justify-content: center;
  margin-top: 7px;
}

.retry-btn {
  display: inline-flex;
  width: auto;
  min-width: 121px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.retry-btn:hover {
  background: #f3f3f3;
}

.retry-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 520px) {
  .balance-copy {
    max-width: 360px;
  }

  .retry-btn {
    min-width: 121px;
    height: 40px;
  }
}
