@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

body {
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  background: #092a59;
  padding: 0;
  margin: 0;
  color: #bfdbfe;
}

#app{
  max-width: 1440px;
  margin: 0 auto;
}

.serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.25em;
}

.industry {
  color: #00ffee;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25em;
  font-style: italic;
  font-weight: 500;
}

:root {
  --nwhite: 255, 255, 255;
  --nred: 20, 184, 166;
  --npanelbg: 255, 255, 255;
  --nred: 20, 184, 166;
}

html.lending:root {
  --nwhite: 255, 255, 255;
  --nred: 20, 184, 166;
  --npanelbg: 32, 0, 0;
  --nred: 20, 184, 166;
}

/* GREEN */
/* :root {
  --nwhite: 255, 255, 255;
  --nred: 192, 255, 0;
  --npanelbg: 24, 32, 0;
  --nkbut: 64, 125, 0;
} */

.toplogo img,
.toplogo svg {
  width: 148px;
  height: auto;
  position: relative;
  top: 4px;
}

.toplogo .tlinvest {
  display: none;
}

html.lending .toplogo .tlinvest {
  display: block;
}

html.lending .toplogo .tlinvest path {
  fill: rgba(var(--nred), 1);
}

html.lending .toplogo .tlloans {
  display: none;
}

#topbar {
  display: flex;
  align-items: end;
  width: 100%;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box;
}

#topbar>div:first-child {
  flex-basis: calc(50% - 260px);
}

#topbar>div:nth-child(2) {
  flex-basis: 520px;
}

#topbar>div:last-child {
  flex-basis: calc(50% - 260px);
}

#topbar>div:first-child {
  display: flex;
  align-items: end;
  height: 76px;
}

#topbar nav a {
  text-decoration: none;
  line-height: 16px;
  padding: 10px;
  font-weight: 400;
}

#topbar nav a:hover {}

#topbar nav {
  position: relative;
  margin-left: 2em;
}

.topsearch {
  height: 44px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.topright {
  text-align: right;
}

button {
  appearance: none;
  font-family: inherit;
  font-weight: 500;
  border: none;
  outline: none;
  color: inherit;
  font-size: 1em;
  line-height: 1em;
  padding: .25em;
}

#connect {
  background: #00003060;
  backdrop-filter: blur(30px);
  border: 1px solid #8080ff50;
  padding: 1em 1.5em;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transition: all .15s ease-out;
}

#connect:hover {
  border: 1px solid #00ffee;
}

input {
  appearance: none;
  font-family: inherit;
  font-size: 1em;
}

.topsearch {
  background: rgba(var(--npanelbg), .5);
  border: none;
  outline: none;
  border-radius: 3px;
  border: 1px solid rgba(var(--nred), .2);
  font-size: .875rem;
  padding: 0 16px;
  box-sizing: border-box;
  color: inherit;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all .15s ease-out;
}

.topsearch:hover {
  border: 1px solid rgba(var(--nred), .5);
  background: rgba(var(--npanelbg), .75);
}

.topsearch::placeholder {
  color: rgba(var(--nred), .5);
  font-weight: 600;
}

#topbar>div:nth-child(2) {
  text-align: center;
}

.bgimage {
  background: #f2f0eb;
  position: fixed;
  width: 100%;
  height: 100%;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity .15s ease-out;
  z-index: -1;
}

.bgimage.active {
  display: block;
}

.bgimage.show {
  opacity: 1;
  animation: bgshow 4s ease-out 1 forwards;
}

@keyframes bgshow {
  0% {
    scale: 1.05;
  }

  100% {
    scale: 1;
  }
}

header {
  position: relative;
  z-index: 10;
}

.bg1 {
  background-image: url('/images/bg1.webp');
}

.bg2 {
  background-image: url('/images/bg2.webp');
}

.bg3 {
  background-image: url('/images/bg3.webp');
  transform: scaleX(-1);
}

.bg4 {
  background-image: url('/images/bg4.webp');
}

.bg5 {
  background-image: url('/images/bg5.webp');
}

.lbg1 {
  background-image: url('/images/lbg1.webp');
}

.lbg2 {
  background-image: url('/images/lbg2.webp');
}

.lbg3 {
  background-image: url('/images/lbg3.webp');
  transform: scaleX(-1);
}

.lbg4 {
  background-image: url('/images/lbg4.webp');
  transform: scaleX(-1);
}

.lbg5 {
  background-image: url('/images/lbg5.webp');
}

.lbg6 {
  background-image: url('/images/lbg6.webp');
}


main {
  position: relative;
  margin: 0 auto;
  max-width: auto;
  padding: 0 30px;
  margin-top: 1em;
}

.nkpanel {
  appearance: none;
  padding: 30px;
  box-sizing: border-box;
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #80ffff30;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
  animation: nkpr 1s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
  position: absolute;
}

@keyframes nkpr {
  0% {
    opacity: 0;
    top: 100px;
  }

  100% {
    opacity: 1;
    top: 0;
  }
}

.nkbutton {
  background: #00002040;
  line-height: 1em;
  padding: 1em;
  border: 1px solid #80b0ff60;
  outline: none;
  border-radius: 5px;
  user-select: none;
  color: #fff;
}


.nkbutton:hover {
  background: #00002080;
  border: 1px solid #00ffee;
  cursor: pointer;
}



.priinput {
  color: inherit;
  font-size: 32px;
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  font-family: inherit;
  font-weight: 400;
  line-height: 1em;
  height: 54px;
  width: 100%;
  color: #fff;
}


.priinput::placeholder {
  color: inherit;
  font-weight: 300;
}

/* SUBBOX */

.subbox .sbilabel,
.sbclabel {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  height: 16px;
  display: flex;
  gap: 8px;
}


.sbclabel {
  color: #bfdbfe;
}

.subbox .cmeta {
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  height: 16px;
  margin-top: 8px;
  text-align: right;
  text-wrap: nowrap;
  color: #bfdbfeb0;
}


.subbox .cmeta span.cmax {
  margin-left: .5em;
  color: #00ffee;
  font-weight: 500;
  user-select: none;
  vertical-align: middle;
  border-radius: 3px;
  padding: 0 5px;
  border: 1px solid #00ffee;
}

.subbox .cmeta span.cmax:hover {
  cursor: pointer;
  background: rgba(var(--nred), .2);
  /* border: 1px solid rgba(var(--nred), 1); */
}

.subbox .sbclabel {
  width: fit-content;
  margin-left: auto;
  margin-bottom: 8px;
}

.subbox .sbclabel svg {
  opacity: .75;
}

.subbox .sbclabel:hover svg {
  opacity: 1;
  cursor: pointer;
}


.subbox .sbimeta {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  height: 16px;
  color: inherit;
}

.subbox .sbimeta span {
  opacity: .4;
  margin-left: .25em;
}



.nkpanel {
  position: relative;
  transition: all .1s ease-out;
  top: 0;
  max-width: 520px;
  margin: 0 auto;
  min-height: 200px;
}

.panelheader {
  display: flex;
  color: #ffffffb0;
  font-weight: 500;
  justify-content: space-between;
  align-content: center;
}

.menu {
  display: flex;
}

.menu div {
  opacity: .5;
  line-height: 1em;
  padding: .75em .5em;
  user-select: none;
  border-radius: 4px;
}

.menu .active {
  opacity: 1;
  font-weight: 600;
}

.menu div:not(.active):hover {
  background: rgba(var(--nred), .1);
  cursor: pointer;
  opacity: .75;
}

.slippage {
  background: rgba(var(--nred), .1);
  line-height: 1em;
  padding: .75em 1em;
  border-radius: 4px;
  opacity: .6;
  user-select: none;
  align-items: center;
  display: flex;
  font-size: 15px;
}

.slippage svg {
  width: 1em;
  height: 1em;
  margin-left: .5em;
}

.slippage:hover {
  opacity: 1;
  cursor: pointer;
}

.caption {
  font-family: inherit;
  font-size: 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  font-weight: 400;
  color: #fff;
}

.subcaption {
  font-size: 21px;
  text-align: center;
  margin-top: 1.5em;
}

.getstarted {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 18px;
  font-weight: 600;
  padding: 1.4em 2em;
  border-radius: 5px;
  border-width: 2px;
  box-sizing: border-box;
  color: #134e4a;
}

.invest {
  background: rgba(var(--nred), .2);
  line-height: 1em;
  border: 0px solid rgba(var(--nred), 1);
  user-select: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 18px;
  font-weight: 600;
  padding: 1.4em 2em;
  border-radius: 5px;
  border-width: 0px;
  margin-left: 1em;
}

.invest:hover {
  background: rgba(var(--nred), .3);
  cursor: pointer;
}

.buttons {
  margin: 0 auto;
  width: fit-content;
  margin-top: 3em;
}

.subbox {
  width: 100%;
  /* border: 1px solid #80b0ff20; */
  margin-top: .6em;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: #00b0ff10;
}


.subbox.tall {
  flex-wrap: wrap;
  height: auto;
  padding: 12px;
}


.subbox>div:first-child,
.subbox>div:nth-child(2) {
  flex-basis: 50%;
}

main {
  margin-bottom: 100px;
}

.deposit {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 21px;
  font-weight: 500;
  padding: 0em 2em;
  border-radius: 100px;
  box-sizing: border-box;
  width: 100%;
  margin-top: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.depositbuttontext {
  text-align: left;
  line-height: .9em;
}

.depositbuttontext .meta {
  font-size: 13px;
  font-weight: 500;
  opacity: .75;
}

.buttonloading {
  width: 1.75em;
  height: 1.75em;
  margin-right: .75em;
  display: none;
}

.bloading .buttonloading {
  display: flex;
}

.deposit.disabled {
  cursor: not-allowed;
  background: rgba(var(--nred), .05);
  border: 1px solid #ffffff20;
  color: #ffffffb0;
}

@media screen and (orientation:landscape) and (min-height:800px) {
  main {
    margin-top: max(calc(50vh - 350px - 100px), 1em);
  }
}

/* HOMEPAGE */

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

main.homepage .nkpanel {
  position: relative;
  transition: all .1s ease-out;
  top: 0;
  border-color: rgba(var(--nred), .5);
  max-width: 520px;
  margin: 0 auto;
  min-height: 300px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.1));
}

main.homepage .nkpanel:hover {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.1));
  top: -.5em !important;
  cursor: pointer;
  border-color: rgba(var(--nred), 1);
}

main.homepage .panelheader {
  display: flex;
  color: rgba(var(--nred), 1);
  font-weight: 500;
  justify-content: space-between;
  align-content: center;
}

main.homepage .menu {
  display: flex;
}

main.homepage .menu div {
  opacity: .5;
  line-height: 1em;
  padding: .75em .5em;
  user-select: none;
  border-radius: 4px;
}

main.homepage .menu .active {
  opacity: 1;
  font-weight: 600;
}

main.homepage .menu div:not(.active):hover {
  background: rgba(var(--nred), .1);
  cursor: pointer;
  opacity: .75;
}

main.homepage .slippage {
  background: rgba(var(--nred), .1);
  line-height: 1em;
  padding: .75em 1em;
  border-radius: 4px;
  opacity: .6;
  user-select: none;
  align-items: center;
  display: flex;
  font-size: 15px;
}

main.homepage .slippage svg {
  width: 1em;
  height: 1em;
  margin-left: .5em;
}

main.homepage .slippage:hover {
  opacity: 1;
  cursor: pointer;
}

main.homepage .caption {
  font-family: inherit;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1em;
  position: relative;
  margin-top: -50px;
}

main.homepage .subcaption {
  margin: 0 auto;
  font-size: 21px;
  text-align: center;
  margin-top: 1.5em;
  line-height: 1.5em;
  max-width: 520px;
  text-align: justify;
  text-align-last: center;
}

main.homepage .getstarted {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 18px;
  font-weight: 600;
  padding: 1em 2em;
  border-radius: 5px;
  border-width: 2px;
  box-sizing: border-box;
}

main.homepage .invest {
  background: rgba(var(--nred), .2);
  line-height: 1em;
  border: 0px solid rgba(var(--nred), 1);
  user-select: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 18px;
  font-weight: 600;
  padding: 1.15em 2em;
  border-radius: 5px;
  border-width: 0px;
  margin-left: 1em;
  color: #134e4a;
}

main.homepage .invest:hover {
  background: rgba(var(--nred), .3);
  cursor: pointer;
}

main.homepage .buttons {
  margin: 0 auto;
  width: fit-content;
  margin-top: 2em;
}


main.homepage {
  margin-bottom: 100px;
}

main.homepage .panelheader {
  pointer-events: none;
}

main.homepage .subbox {
  pointer-events: none;
}




/* Currency Drop Down */

.pricurdd {
  display: flex;
  gap: 12px;
  background: #00003040;
  padding: 8px;
  padding-right: 12px;
  align-items: center;
  border-radius: 30px;
  border: 1px solid rgba(var(--nred), .15);
  font-weight: 500;
  width: fit-content;
  margin-left: auto;
  user-select: none;
  color: #fff;
}

.pricurdd .icon {
  display: flex;
}

.pricurdd .icon img {
  width: 24px;
}


.pricurdd:hover {
  border-color: rgba(var(--nred), .5);
}

.pricurddsel {
  font-weight: 400;
  background: rgba(var(--nred), .1);
  width: fit-content;
  margin-left: auto;
  padding: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.ddarrow {
  width: 14px;
  height: 14px;
  position: relative;
}

.ddarrow svg {
  position: absolute;
}

.text {
  font-size: 18px;
  line-height: 18px;
  text-wrap: nowrap;
}

#topbar nav a.active {
  color: #fff;
  /* filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red); */
}



.tlchide {
  display: none;
}

.tlinsignia {
  animation: rotatelogo 10s linear infinite forwards;
  transform-origin: 30.64px 30.69px;
  isolation: isolate;
}

.tlinsigniabg {
  filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red);
  animation: insigbg 10s linear infinite forwards;
  stroke-width: 2px;
}

html.lending .tlinsigniabg {
  filter: drop-shadow(0px 0px 2px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1));
  animation: insiglbg 10s linear infinite forwards;
}

svg#toplogo {
  overflow: visible;
}

.tlinsigniac,
.tlinsigniab1,
.tlinsigniab2,
.tlinsigniab3 {
  animation: insigfg 10s linear infinite forwards;
  stroke-width: 0px;
}

html.lending .tlinsigniac,
html.lending .tlinsigniab1,
html.lending .tlinsigniab2,
html.lending .tlinsigniab3 {
  animation: insiglfg 10s linear infinite forwards;
}

.mobnav {
  display: none;
  position: relative;
  top: 4px;
  margin-left: 1.5em;
}

.mobnav svg {
  width: 21px;
}

.mobnav svg path {
  fill: #00ffee;
}

.mobnavlinks {
  position: absolute;
  background: #fff;
  padding: .75em 1em;
  border: 1px solid rgba(var(--nred), .5);
  border-radius: 5px;
  top: 40px;
  right: 7px;
  box-shadow: 0 10px 20px -5px #00104080;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 300;
  animation: mnlr .1s ease-out 1 forwards;
  transform-origin: top right;
  display: none;
  color: #000;
}

.mobnavlinks.active {
  display: block;
  z-index: 1;
}

.topright {
  display: flex;
  justify-content: end;
}

.menumode {
  display: flex;
  height: 26px;
  font-size: 12px;
  line-height: 12px;
  align-items: center;
  margin-right: 15px;
  background: rgba(var(--nred), .1);
  background: rgba(0, 0, 0, .1);
  border-radius: 5px;
  border: 2px solid rgba(var(--nred), .75);
  font-weight: 600;
  padding: 0 3px;
  gap: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
  text-wrap: nowrap;
  background: #00000020;
}

.menumode div.active {
  background: rgba(var(--nred), 1);
  padding: 5px;
  border-radius: 3px;
  font-weight: 700;
  text-shadow: 0 0 1px rgba(0, 0, 0, 1);
}

.menumode div:not(.active) {
  padding: 5px;
}

.menumode:hover {
  cursor: pointer;
}

@keyframes mnlr {
  0% {
    scale: .9;
    opacity: 0;
  }

  100% {
    scale: 1;
    opacity: 1;
  }
}

.mobnavlinks>*:not(.menumode) {
  display: block;
}

.mobnavlinks>*:not(:last-child) {
  margin-bottom: .5em;
}

.mobnavlinks a.active {
  color: rgba(var(--nred), 1);
  font-weight: 700;
}

.mobmenhider {
  position: fixed;
  inset: 0;
  background: rgba(0, 32, 64, .35);
  animation: mnhr .1s ease-out 1 forwards;
  z-index: 1;
  backdrop-filter: blur(3px);
}

@keyframes mnhr {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes rotatelogo {
  0% {
    rotate: 0deg;
  }

  5% {
    rotate: 360deg;
  }

  100% {
    rotate: 720deg;
  }
}

@keyframes insigbg {
  0% {
    fill: white;
    stroke: white;
    filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red)
  }

  5% {
    fill: #f9c900;
    stroke: white;
    filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red)
  }

  20% {
    fill: #f9c900;
    stroke: white;
    filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red)
  }

  25% {
    fill: #ff000010;
    stroke: orange;
    filter: drop-shadow(0px 0px 1px red) drop-shadow(0px 0px 8px red)
  }

  50% {
    fill: #00000000;
    stroke: red;
    filter: drop-shadow(0px 0px 1px red) drop-shadow(0px 0px 4px red)
  }

  100% {
    fill: #ff000010;
    stroke: red;
    filter: drop-shadow(0px 0px 2px red) drop-shadow(0px 0px 8px red)
  }
}

@keyframes insigfg {
  0% {
    fill: white;
    stroke: #00000000
  }

  5% {
    fill: #333;
    stroke: black
  }

  20% {
    fill: #333;
    ;
    stroke: black
  }

  25% {
    fill: red;
    stroke: #00000000
  }

  50% {
    fill: red;
    stroke: #00000000
  }

  100% {
    fill: red;
    stroke: #00000000
  }
}

@keyframes insiglbg {
  0% {
    fill: white;
    stroke: white;
    filter: drop-shadow(0px 0px 2px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1))
  }

  5% {
    fill: #f9c900;
    stroke: white;
    filter: drop-shadow(0px 0px 2px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1))
  }

  20% {
    fill: #f9c900;
    stroke: white;
    filter: drop-shadow(0px 0px 2px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1))
  }

  25% {
    fill: #ff000010;
    stroke: #00ffff;
    filter: drop-shadow(0px 0px 1px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1))
  }

  50% {
    fill: #00000000;
    stroke: rgba(var(--nred), 1);
    filter: drop-shadow(0px 0px 1px rgba(var(--nred), 1)) drop-shadow(0px 0px 4px rgba(var(--nred), 1))
  }

  100% {
    fill: #ff000010;
    stroke: rgba(var(--nred), 1);
    filter: drop-shadow(0px 0px 2px rgba(var(--nred), 1)) drop-shadow(0px 0px 8px rgba(var(--nred), 1))
  }
}

@keyframes insiglfg {
  0% {
    fill: white;
    stroke: #00000000
  }

  5% {
    fill: #333;
    stroke: black
  }

  20% {
    fill: #333;
    ;
    stroke: black
  }

  25% {
    fill: rgba(var(--nred), 1);
    stroke: #00000000
  }

  50% {
    fill: rgba(var(--nred), 1);
    stroke: #00000000
  }

  100% {
    fill: rgba(var(--nred), 1);
    stroke: #00000000
  }
}

.panelmenu {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  line-height: 1em;
  margin-bottom: .5em;
}

.panelmenu>div:first-child {
  flex-basis: 40%;
  font-size: 15px;
}

.panelmenu>div:nth-child(2) {
  flex-basis: 20%;
  text-align: center;
  font-size: 1.25em;
  opacity: 1;
  color: rgba(var(--nred), .75);
}

.panelmenu>div:last-child {
  flex-basis: 40%;
  text-align: right;
  font-size: 15px;
  flex-direction: row-reverse;
}

.panelmenu>div:not(.arrright) {
  font-weight: 400;
  user-select: none;
}

.panelmenu>div:not(:nth-child(2)):not(.active) {
  opacity: .9;
}


.panelmenu>div:not(.arrright).active {
  opacity: 1;
  font-weight: 500;
  color: white;
}

.panelmenu>div:not(:nth-child(2)):not(.active):hover {
  cursor: pointer;
  opacity: 1;
}

.arrright {
  width: 1em;
}

#itip {
  background: rgba(var(--nred), 1);
  color: black;
  font-weight: 600;
  font-size: 14px;
  padding: .5em;
  margin-left: 1em;
  border-radius: 4px;
}

.infobox {
  display: grid;
  grid-template-columns: 16px calc(100% - 26px);
  grid-gap: 10px;
  padding: 1em;
  font-size: 14px;
  align-items: start;
  border: 1px solid rgba(var(--nred), .6);
  border-radius: 5px;
  font-weight: 300;
  color: #ffffff;
}

.infobox span {
  font-weight: 600;
  color: #ffffffff;
}

.mt10 {
  margin-top: 10px;
}

.mt15 {
  margin-top: 15px;
}

.mt20 {
  margin-top: 20px;
}

.infobox>div:first-child {
  top: 2px;
  position: relative;
  color: rgba(var(--nred), 1);
}

.infobox>div:last-child {
  top: -1px;
  position: relative;
}

.infobox.success {
  border-color: #4ade80;
}


.infobox.success>div:first-child {
  top: 2px;
  position: relative;
  color: #4ade80;
}

.infobox.iberror {
  border-color: rgba(var(--nred), 1);
  background: rgba(var(--nred), .1);
}

.maxborrowsec {
  font-size: 14px;
  padding: 5px 12px 8px 12px;
}

.maxborrowsec>div {
  display: flex;
  justify-content: space-between;
}

.maxborrowsec div:not(:last-child, .leverageslider) {
  margin-bottom: 2px;
}

.maxborrowsec>div>div:first-child {
  color: #ffffffe0;
  font-weight: 300;
}

.maxborrowsec>div>div:first-child span {
  color: #ffffffff;
  font-weight: 500;
}

.maxborrowsec>div>div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.maxborrowsec>div>div:last-child .tokenicon {
  width: 1.5em;
  border-radius: 50%;
}

.boxesarrdown {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  border: 10px solid #00ffee;
  background: #00ffee;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  margin: -23px auto 0 auto;
  border-radius: 30px;
  color: #000040;
  padding: 11px;
  transition: all 0.3s ease;
  z-index: 10;
  display: block;
}


.boxesarrdown:hover {
  background: #06cabe;
  border-color: #06cabe;
  transform: translateY(-23px) scale(1.1);
  box-shadow: 0 4px 20px rgba(6, 202, 190, 0.4);
}

.boxesarrdown svg {
  width: 14px;
  height: 14px;
  position: relative;
  margin: 0 auto;
  display: block;
}

.sbhider {
  position: fixed;
  inset: 0;
  background: rgba(0, 32, 64, .35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.wallet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: auto;
  gap: 16px;
}

.wallet.modal {
  height: max-content;
  z-index: 30;
}

.installedProviders {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.walletProvider {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 1px solid rgba(var(--nred), .25);
  padding: 7px;
  padding-right: 12px;
  border-radius: 4px;
}

.walletProvider:hover {
  background: rgba(var(--nred), .1);
  color: #134e4a;
}

.modal .nkpanel {
  margin-top: calc(5vh + 76px);
  z-index: 11;
  max-width: 420px;
  min-height: auto;
  animation: nkpr .5s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
}

.modal .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1em;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1.25em;
}

.modal .close:hover {
  color: rgba(var(--nred), 1);
  cursor: pointer;
}

.modal .close svg {
  width: 12px;
}

.tokenlist {
  padding-bottom: 20px;
  overflow: auto;
  max-height: calc(100vh - 340px);
}

@media screen and (orientation:landscape) {

  /* width */
  .tokenlist::-webkit-scrollbar {
    width: 5px;
  }

  /* Track */
  .tokenlist::-webkit-scrollbar-track {
    background: rgba(var(--nred), .25);
  }

  /* Handle */
  .tokenlist::-webkit-scrollbar-thumb {
    background: rgba(var(--nred), .75);
  }

  /* Handle on hover */
  .tokenlist::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--nred), 1);
  }
}

@media screen and (orientation:landscape) and (min-height:780px) {
  .tokenlist {
    max-height: calc(100vh - 360px);
  }
}

@media screen and (orientation:landscape) and (min-height:900px) {
  .tokenlist {
    max-height: calc(100vh - 400px);
  }
}

@media screen and (orientation:portrait) and (max-height:959px) {
  .tokenlist {
    max-height: calc(100vh - 300px);
  }
}

@media screen and (orientation:portrait) and (min-height:960px) {
  .tokenlist {
    max-height: calc(100vh - 400px);
  }
}

.tokenlist>div {
  display: flex;
  width: 100%;
  gap: 15px;
  line-height: 1em;
  font-size: 15px;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
}

.tokenlist>div:hover {
  cursor: pointer;
  color: #fff;
  background: rgba(var(--nred), .1);
}

.tokenlist>div:not(:last-child) {
  /* margin-bottom: 1.25em; */
}

.tokenlist>div>div:first-child {
  flex-basis: 36px;
  height: 36px;
  width: 36px;
  overflow: hidden;
}

.tokenlist>div>div:last-child {
  margin-left: auto;
}

.tokenlist .tsym {
  font-size: 12px;
  margin-top: 2px;
}

.tokenlist .tsym span {
  color: #ffffffff;
  font-weight: 400;
}

.tokensearch {
  position: relative;
  box-sizing: border-box;
}

.tokensearch input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  width: 100%;
  background: rgba(var(--nred), .1);
  margin-bottom: 1em;
  border: 1px solid rgba(var(--nred), .2);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1em;
  padding: .5em .75em;
  padding-left: 2.5em;
  box-sizing: border-box;
}

.tokensearch input::placeholder {
  color: #ffffffb0;
}

.searchico {
  position: absolute;
  width: 16px;
  opacity: .5;
  top: 11px;
  left: 31px;
  color: #ffffffb0;
}

.tokenmodal {
  padding: 0px;
  background: #000030d0;
}

.tokenmodal .header {
  padding: 20px;
  padding-bottom: 0;
}

.tokenmodal .tokensearch {
  padding: 0 20px;
}

input.nospinner::-webkit-outer-spin-button,
input.nospinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tinfocont {
  border: 1px solid rgba(var(--nred), .25);
  border-radius: 4px;
}

.tinfohead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background .1s ease-out;
}

.tinfoicon {
  color: rgba(var(--nred), 1);
  width: 16px;
  height: 16px;
  rotate: 90deg;
  opacity: .75;
  transition: all .1s ease-out;
}

.tinfohead.active {
  border-radius: 4px 4px 0 0;
  background: rgba(var(--nred), .06);
}

.tinfohead.active .tinfoicon {
  rotate: -90deg;
}

.tinfohead:hover {
  background: rgba(var(--nred), .055);
}

.tinfohead:hover .tinfoicon {
  color: rgba(var(--nred), 1);
  opacity: 1;
}

.submenue {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  line-height: 1em;
}

.submenue svg {
  color: rgba(var(--nred), 1);
  opacity: .75;
}

.submenue.active svg {
  opacity: 1;
}

.submenue img {
  opacity: .75;
}

.submenue.active img {
  opacity: 1;
}

.submenuicon {
  width: 18px;
}

.r180 {
  rotate: 180deg;
}

.rm90 {
  rotate: -90deg;
}

.mla {
  margin-left: auto;
}

.slmenu {
  display: flex;
  gap: 6px;
  padding: 6px;
}

.slme {
  background: rgba(var(--nred), .2);
  padding: 7px 10px;
  border-radius: 3px;
  color: #ffffffd0;
  user-select: none;
}

.slme:not(.active):hover {
  cursor: pointer;
}

.slme.active {
  background: rgba(var(--nred), .75);
  color: white;
}

.triad {
  height: 16px;
  padding: 12px;
}

.triad:hover {
  cursor: pointer;
}

.trit {
  padding-left: 12px;
}

.leverageslider {
  position: relative;
  padding-top: 16px;
  padding-bottom: 1.75em;
  margin-bottom: .75em;
}

.leverageslider .slider {
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  outline: 0;
}

.leverageslider .slider::-webkit-slider-runnable-track {
  background: rgba(var(--nred), .15);
  height: 8px;
  border-radius: 3px;
}

.leverageslider .slider::-moz-range-track {
  background: rgba(var(--nred), .15);
  height: 8px;
  border-radius: 3px;
}

.leverageslider .slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #00ffee;
  border: 0px solid rgba(var(--nred), .5);
  border-radius: 10px;
  margin-top: -6px;
  z-index: 2;
}

.leverageslider .slider::-moz-range-thumb {
  appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background: #00ffee;
  border: 0px solid rgba(var(--nred), .5);
  border-radius: 10px;
  margin-top: -6px;
  z-index: 1;
}

.leverageslider .slider::focus {
  outline: none;
}

.leveragelabels {
  display: flex;
  position: absolute;
  justify-content: space-between;
  width: 100%;
  bottom: 0;
  font-size: 12px;
  color: rgba(var(--nred), 1);
  font-weight: 500;
}

.leveragefill {
  position: absolute;
  background: #00ffee80;
  height: 8px;
  border-radius: 3px;
  z-index: 1;
  top: 7px;
  max-width: 100%;
  pointer-events: none;
}

.nkpanel.markets {
  max-width: 900px;
}

.marketssg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 20px;
}

.marketssg .nkpanel {
  width: 100%;
  min-height: 80px;
}

.marketscont {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.marketscont .nkbutton {
  margin-left: auto;
  position: relative;
  display: block;
  padding: .75em 1em;
  font-size: 15px;
  background: rgba(var(--npanelbg), .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketscont .nkbutton:hover {
  background: rgba(var(--nred), .25);
}

.marketscont .nkbutton svg {
  width: 9px;
  rotate: 45deg;
  margin-right: .4em;
  color: rgba(var(--nred), 1);
}

.mktph {
  text-align: center;
}

.mktph svg {
  width: 30px;
  color: rgba(var(--nred), 1);
}

.mktnote {
  font-size: 13px;
  margin: 0 auto;
  margin-top: .75em;
  max-width: 200px;
}

.nkpanel.markets.empty {
  display: grid;
  align-items: center;
}

.mktmeta {
  font-size: 13px;
  color: rgba(var(--nred), 1);
  font-weight: 600;
  margin-bottom: .6em;
  line-height: 1em;
}

.mkmt {
  font-size: 15px;
}

.mktmeta svg {
  width: 1em;
  vertical-align: bottom;
  margin-left: 7px;
}

.aucnote {
  font-size: 13px;
  margin: 0 auto;
  margin-top: 0.75em;
  max-width: 260px;
}

.loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 245, 244, .1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.loader img {
  width: 100%;
  max-width: 72px;
  position: absolute;
  left: calc(50% - 36px);
  top: calc(50% - 36px);
}

html.lending .loader img {
  filter: hue-rotate(200deg) brightness(1.5);
}

.error {
  position: relative;
  border: 1px dashed rgba(var(--nred), 1);
  display: none;
}

.deposit.nkbutton:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.spin {
  animation: spin 5s linear infinite forwards;
}

.chain-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.chain-info .chain-icon {
  width: 28px;
}

.chain-info .chain-icon-lg {
  width: 32px;
}

.loader.hidden {
  display: none !important;
}

.flexbreak {
  flex-basis: 100%;
  height: 0;
}

.leverageslider.nolabels {
  margin: 0;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 0;
  width: 100%;
}

.leverageslider.nolabels .leveragefill {
  top: 7px;
}

.error {
  background: rgba(var(--nred), .25);
  position: fixed;
  z-index: 40;
  width: 100%;
  max-width: 420px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  border-radius: 4px;
  top: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nktable {
  width: 100%;
  font-size: 14px;
}

.nktable th {
  text-align: left;
  font-size: 12px;
  color: rgba(var(--nred), 1);
  line-height: 1em;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.nktable td {
  padding: 4px 0;
}

.nktable span.meta {
  font-size: 11px;
  opacity: .75;
}

.nktable .marketpill {
  border: 1px solid rgba(var(--nred), .5);
  font-size: 12px;
  text-align: center;
  margin-right: 15px;
  font-weight: 500;
  line-height: 1em;
  padding: 10px 0;
  border-radius: 4px;
}

.nktable .marketpill-borrow {
  border: 1px solid rgba(var(--nred), .5);
  background: rgba(var(--nred), .1);
}

.nktable .marketpill-lend {
  border: 1px solid #22c55e80;
  background: #22c55e30;
}

.nktable .marketpill-collateral {
  border: 1px solid #fbbf2480;
  background: #fbbf2420;
}

.nktvbut {
  border: 1px solid rgba(var(--nred), .5);
  font-size: 12px;
  text-align: center;
  line-height: 13px;
  border-radius: 4px;
  user-select: none;
  font-size: 500;
}

.nktvbut>div {
  padding: 6px 0;
}

.nktvbut>div:hover {
  background: rgba(var(--nred), .25);
  cursor: pointer;
}

.nktvbut>div:not(:last-child) {
  border-bottom: 1px solid rgba(var(--nred), .5);
}

.marketspage .nktable th:last-child {
  text-align: right;
}

.pricurdd.invest {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(var(--nred), .25);
  padding: 8px 10px;
}

.pricurdd.invest .ddarrow {
  margin-left: auto;
}

.nklabel {
  font-size: 13px;
  line-height: 13px;
  margin-bottom: 8px;
  color: white;
  font-weight: 400;
}

.nkmheading {
  font-size: 20px;
  line-height: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(var(--nred), .25);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.modal .nkpanel.wide {
  width: 100%;
  max-width: 520px;
}

table.auctions .meta {
  font-size: 11px;
  opacity: .5;
  margin-top: 3px;
}

table.auctions .colflex {
  display: flex;
  gap: 10px;
  line-height: 1em;
  align-items: center;
}

table.auctions .tflex {
  display: flex;
  gap: 10px;
  line-height: 1em;
  align-items: center;
}

table.auctions .tflex img {
  width: 1.5em;
  border-radius: 50%;
}

table.auctions img {
  width: 1.5em;
  border-radius: 50%;
}

.nukebut {
  border: none;
  background: rgba(var(--nred), .9);
  font-weight: 600;
  font-size: 14px;
}

.nukebut:hover {
  background: rgba(var(--nred), 1);
  filter: drop-shadow(0 0 10px rgba(var(--nred), 1));
}

.nukebut>div {
  padding: 10px 0;
  border: none;

}

nav.topmenu {
  display: flex;
  margin-bottom: 8px;
}

a.disabled {
  pointer-events: none;
  opacity: .5;
}

@keyframes spin {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

span.cmv {
  display: inline-block;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-weight: 500;
}

.tinfosec {
  font-size: 14px;
  padding: 15px 12px 15px 12px;
}

.tinfogrid {
  display: grid;
  grid-template-columns: calc(26% - 15px) calc(37% - 20px) 40px calc(37% - 20px);
  grid-column-gap: 5px;
  grid-row-gap: 10px;
  line-height: 1em;
}

.tith {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(var(--nred), .9);
  line-height: 11px
}

.tinfogrid>div.mitm {
  opacity: .75;
  font-weight: 500;
}

.tinfogrid .meta {
  font-size: 11px;
  opacity: .5;
  text-wrap: nowrap;
  line-height: 11px;
}

.timarket {
  margin-bottom: 5px;
}

.tinfogrid .toicon {
  color: rgba(var(--nred), .5);
  width: 11px;
  height: 11px;
  position: relative;
  margin: 0 auto;
  margin-top: 2px;
}

.tinfogrid>div:nth-child(4n+6) {
  text-align: right;
}

.timarket {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.timarket .icons {
  display: flex;
}

.timarket .icons img {
  width: 24px;
}

.timarket .icons img:nth-child(2) {
  margin-left: -4px;
  z-index: 1;
}

.mrow {
  line-height: 24px;
}

.modal .nkpanel {
  filter: drop-shadow(0px 10px 50px rgba(var(--nred), .4));
}

.subbox input.priinput:read-only:hover {
  cursor: not-allowed;
}

.atmm {
  opacity: 1;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}

.sbclabel:hover .atmm {
  opacity: 1;
  cursor: pointer;
}

.atmmlink {
  text-decoration: underline;
  text-decoration-color: rgba(var(--nred), .75);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  user-select: none;
}

.atmmlink:hover {
  cursor: pointer;
  text-decoration-color: rgba(var(--nred), 1);
}

.unsupportedalert {
  width: 1em;
  color: rgba(var(--nred), 1);
}


.ush {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  line-height: 1.25em;
}

.ushs {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.nkpanel.nkperror {
  filter: drop-shadow(0 0 40px rgba(var(--nred), 0.4));
}

.unsupported-text {
  font-size: 14px;
  line-height: 1.75em;
}

.usl {
  padding: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75em;
  margin-top: .75em;
  list-style-type: none;
  cursor: pointer;
}

.rth {
  display: block;
  margin-top: 1.5em;
  text-align: center;
  font-weight: 500;
}

.usl li {
  display: flex;
  align-items: center;
  line-height: 1em;
  gap: .5em;
}

.usl li>div:first-child svg {
  top: 1px;
  position: relative;
}

.usl li>div:first-child svg path,
.usl li>div:first-child svg circle {
  fill: #f9c200 !important;
}

.usl li:not(:last-child) {
  margin-bottom: .75em;
}

.usl li svg {
  width: 1em;
  height: 1em;
}

.errlogo {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  margin-bottom: 20px;
}



.errlogo .tlloans {
  display: none;
}

body .swal2-container.swal2-backdrop-show {
  background: rgba(var(--nred), .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body div:where(.swal2-icon).swal2-error {
  border-color: rgba(var(--nred), 1);
  color: rgba(var(--nred), 1);
}

body div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line] {
  background-color: #fff;
}

body .swal2-popup {
  background: white;

  /* color: white; */
  border: 1px solid #00ffee;
  filter: drop-shadow(0px 20px 30px #00004080);
  border-radius: 20px;
  color: #334155;
}

.swal2-popup .swal2-title {
  color: #000040;
}

body button.swal2-styled{
  border-radius: 100px !important;
  font-weight: 600;
}

body div:where(.swal2-container) div:where(.swal2-popup) {
  padding: 0 0 2.5em;
}

.swal2-confirm,
.swal2-deny,
.swal2-cancel {
  padding: 1em 1.5em;
}

body .swal2-confirm {
  box-sizing: border-box;
  background: #00ffee10 !important;
  border: 1px solid #00ffee !important;
  color: #000040 !important;

}

body .swal2-cancel {
 background: #f8fafc !important;
 color: #334155 !important;
 border: 1px solid #cbd5e1 !important;
}

body .swal2-confirm:hover {
  background: #00ffee !important;
}

body div:where(.swal2-container) button:where(.swal2-styled).swal2-deny {
  background: rgba(var(--nred), .9);
}

body div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:hover {
  background: rgba(var(--nred), 1);
}

body div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover {
  background-image: none !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(112, 102, 224, 0) !important;
}

.swal2-success-circular-line-right,
.swal2-success-circular-line-left,
.swal2-success-fix {
  display: none;
}

body div:where(.swal2-icon).swal2-success {
  border-color: #22c55e;
}

body div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
  background-color: #fff !important;
}

body div:where(.swal2-icon).swal2-success {
  animation: swal2-animate-success-ring .5s;
}

@keyframes swal2-animate-success-ring {
  0% {
    /* margin-top: 1.625em; */
    transform: scaleY(0.4);
    opacity: 0;
  }

  50% {
    /* margin-top: 1.625em; */
    transform: scaleY(0.4);
    opacity: 0;
  }

  60% {
    /* margin-top: -0.375em; */
    transform: scaleY(0);
    opacity: 0;
  }

  100% {
    /* margin-top: 0; */
    transform: scaleY(1);
    opacity: 1;
  }
}

#sbinvest {
  flex-basis: 100%;
}

.subbox.imarket {
  height: auto;
  padding: 20px 20px 35px;
}

.subbox.imarket .sbclabel {
  margin-left: 0;
  margin-bottom: 0;
  margin-top: 4px;
}

.subbox.imarket .pricurdd {
  margin-left: 0;
}

.imdt {
  margin-top: 10px;
  width: 100%;
  font-size: 14px;
}

.imdt th {
  color: rgba(var(--nred), 1);
  font-size: 13px;
  font-weight: 600;
  line-height: 13px;
  height: 13px;
  text-align: left;
}

.imdt td {
  vertical-align: baseline;
}

.imdt .meta {
  font-size: 12px;
  font-weight: 400;
  opacity: .6;
}

.sbimsf {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.imdt tr>*:last-child,
.imdt tr>*:nth-child(2) {
  text-align: right;
}

.sbigrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* border: 1px solid rgba(var(--nred), .25); */
  background: rgba(var(--npanelbg), .5);
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  grid-gap: 15px;
  margin-top: 15px;
  padding-bottom: 15px;
}

.sbigrid:not(.nmi)>div:first-child {
  border-bottom: 1px solid rgba(var(--nred), .25);
  padding-bottom: 10px;
  grid-column: 1/4;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  gap: 10px;
  line-height: 15px;
}

.sbigrid.nmi {
  border-top: 1px solid rgba(var(--nred), .25);
  padding-top: 20px !important;
}

.sbigrid .icons {
  display: flex;
}

.sbigrid .icons img {
  width: 18px;
}

.sbigrid .icons img:nth-child(2) {
  margin-left: -4px;
}

.sbigrid .label {
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
  text-transform: uppercase;
  color: rgba(var(--nred), .9);
  margin-bottom: 1px;
}

.sbigrid .meta {
  font-size: 11px;
  font-weight: 400;
  line-height: 11px;
  opacity: .6;
  margin-top: 2px;
}

.chdd {
  width: 12px;
  padding: 10px 2px;
  color: #fff;
}

.chdd:hover {
  cursor: pointer;
  color: #fff;
}

.ciselect {
  top: 3px;
  position: relative;
  z-index: 1;
  user-select: none;
}

.cisdd {
  height: 32px;
}

.cishider {
  position: fixed;
  inset: 0;
  background: rgba(0, 32, 64, .35);
  animation: mnhr .1s ease-out 1 forwards;
  z-index: -1;
  backdrop-filter: blur(3px);
}

.trans100 {
  transition: all .1s ease-out;
}

.cischains {
  position: absolute;
  display: none;
  background: white;
  color: #000;
  padding: 15px;
  border-radius: 5px;
  top: 44px;
  right: 24px;
  box-shadow: 0 10px 20px -5px #00104080;
  animation: mnlr .1s ease-out 1 forwards;
  transform-origin: top right;
  width: 240px;
  font-weight: 400;
}

.cischains.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cisgrid>div {
  display: grid;
  grid-template-columns: 20px calc(100% - 60px) 20px;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.cisgrid>div:not(:last-child) {
  margin-bottom: 16px;
}

.cisgrid>div>div:first-child {
  height: 20px;
  width: 20px;
}

.cisgrid>div>div:first-child img {
  border-radius: 10px;
}

.cisgrid .selected {
  font-weight: 600;
}

.ciso:not(.selected):hover {
  cursor: pointer;
}

.chainname .checkmark {
  width: 12px;
  margin-left: auto;
  color: rgba(var(--nred), 1);
}

.chainname {
  cursor: pointer;
  line-height: 1em;
}

.wadd {
  font-weight: 500;
  font-size: 11px;
  margin-right: auto;
  margin-top: 2px;
  opacity: .75;
}

.cicidd {
  display: flex;
  color: rgba(255, 255, 255, .75);
  gap: 6px;
}

.cicidd:hover {
  cursor: pointer;
  color: white;
}

.slperc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 3px;
  color: rgba(255, 255, 255, .75);
  font-weight: 400;
  user-select: none;
}

.slperc>div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.slperc>div:not(:first-child)>div:first-child {
  transform: translateX(-33%);
}

.slperc>div>div:hover {
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
  cursor: pointer;
}

.subbox:has(.slperc) {
  height: auto;
}

.subbox:has(.slperc) .leverageslider {}

.subbox:first-child {
  padding-bottom: 30px;
}

.subbox.mt0 {
  margin-top: 0;
}

.subbox:hover {
  /* background: rgba(var(--nred), .075); */
}

.subbox>div.repayf {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-basis: 100%;
}

.subbox>div.repayf .pricurdd {
  margin-left: 0;
}

.subbox>div.repayf .sbclabel {
  margin-top: 11px;
}

.nkpanel.nmh {
  min-height: auto;
}

.nkpanel.positions {
  max-width: none;
  min-height: auto;
  overflow: auto;
}

.nkptable {
  font-size: 14px;
  min-width: 800px;
  border-collapse: collapse;
}

.nkptable th {
  font-weight: 700;
  text-align: left;
  font-size: 12px;
  color: rgba(var(--nred), 1);
  line-height: 12px;
  text-transform: uppercase;
}

.nkptable thead th {
  padding-bottom: 8px;
  padding-top: 4px;
  margin-bottom: 10px;
}


.nkptable thead th:first-child {
  border-radius: 4px 0 0 4px;
}

.nkptable thead th:last-child {
  border-radius: 0 4px 4px 0;
}

.nkptable tbody>tr:not(:last-child) td {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--nred), .3);
}

.nkptable tbody>tr td {
  padding-top: 10px;
}

.nkptable>*>tr>*:last-child {
  text-align: right;
  width: 50px;
}

.nkpactions {
  display: flex;
  justify-content: end;
}

.nkpa {
  font-size: 13px;
  line-height: 13px;
  border-top: 1px solid rgba(var(--nred), .75);
  border-bottom: 1px solid rgba(var(--nred), .75);
  border-left: 1px solid rgba(var(--nred), .75);
  padding: 8px 10px;
  user-select: none;
  background: transparent;
}

.nkpactions button:first-child {
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}

.nkpactions button:last-child {
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  border-right: 1px solid rgba(var(--nred), .75);
}

.nkpa:hover {
  border-color: rgba(var(--nred), 1);
  cursor: pointer;
  background: rgba(var(--nred), .2);
}

.nkparp {
  background: rgba(255, 125, 125, .1);
  border-radius: 3px;
  text-align: center;
  margin-right: 20px;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(var(--nred), .3);
}

@keyframes gradient {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.nkparp.high {
  border-color: rgba(var(--nred), 1);
  background: repeating-linear-gradient(to right, rgba(var(--nred), .25) 0%, rgba(var(--nred), .1) 50%, rgba(var(--nred), .25) 100%);
  background-size: 200% auto;
  background-position: 0 100%;
  animation: gradient 4s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

.nkparp.medium {
  border-color: #f97316;
}

.nkparp.low {
  border-color: #4ade80;
}

.nkpa.spinnerbut:hover {
  box-shadow: 0 0 10px rgba(var(--nred), .5);
}

.iconpairs {
  display: flex;
  height: 20px;
}

.iconpairs img {
  width: 20px;
  height: 20px;
}

.iconpairs :nth-child(2) {
  margin-left: -5px;
}

.flexcenter {
  display: flex;
  gap: 10px;
}

.fw500 {
  font-weight: 500;
}

.fw600 {
  font-weight: 600;
}

.nkpa svg {
  width: 10px;
}

.marketmodal .flexcenter {
  align-content: center;
  align-items: center;
  font-size: 18px;
}

.marketmodal .iconpairs {
  display: inline;
  height: 24px;
}

.marketmodal .iconpairs img {
  width: 24px;
  height: 24px;
}

.marketmodal .sbigrid {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(var(--nred), .25);
  padding-bottom: 15px;
  grid-row-gap: 20px;
}

.mktbuttons {
  margin-top: 20px;
  display: flex;
  font-size: 13px;
  line-height: 15px;
  font-weight: 500;
  gap: 10px;
  flex-wrap: wrap;
  user-select: none;
}

.mktbuttons>div {
  border: 2px solid rgba(var(--nred), 1);
  border-radius: 3px;
  padding: 10px;
  flex-grow: 1;
  text-align: center;
}

.mktbuttons>div:hover {
  cursor: pointer;
  background: rgba(var(--nred), .2);
  font-weight: 600;
}

.modal .nkpanel.marketmodal {
  max-width: 640px;
}

.marketmodal .sbigrid .label {
  font-size: 11px;
  margin-bottom: 3px;
}

.positionsempty {
  text-align: center;
  padding: 50px 0;
}

.positionsempty svg {
  width: 48px;
  margin-bottom: 10px;
  color: rgba(var(--nred), 1);
}

.positionsempty .meta {
  font-size: 14px;
  opacity: .8;
}

.posmeta {
  font-size: 11px;
  opacity: .65;
  line-height: 11px;
}

#topbar .mobnav a,
#topbar .topmenu a {
  /* text-decoration: underline;
  text-decoration-color: rgba(var(--nred), .75);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px; */
  /* text-transform: uppercase; */
  font-size: 16px;
  font-weight: 600;
}


#topbar nav.topmenu a:hover {
  text-decoration-color: rgba(var(--nred), 1);
  color: #fff;
}

#topbar nav.topmenu a.active {
  text-decoration: underline;
  text-decoration-color: rgba(var(--nred), .75);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--nred), 1);
}

#topbar nav a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(var(--nred), .75);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.mobnavlinks .menumode {
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.atmmi {
  width: 16px;
}

.icon img {
  /* vertical-align: middle; */
}

.liquidationtable {
  text-align: left;
}

.liquidationtable th {
  font-weight: 600;
  font-size: 13px;
  color: rgba(var(--nred), 1);
}

.liquidationtable td {
  font-size: 20px;
}

.paytable {
  text-align: left;
}

.paytable th {
  font-weight: 600;
  font-size: 13px;
  color: rgba(var(--nred), 1);
}

.paytable td {
  font-size: 20px;
}

.nbicon {
  display: inline-block;
  width: 15px;
  height: 15px;
}

.nkpa.flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spinnerbut:hover img {
  animation: spin 5s linear infinite forwards;
}

.prired {
  color: rgba(var(--nred), 1);
}

.dltflex {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.bgb10 {
  background: rgba(0, 0, 0, 0.1);
}

.bgb15 {
  background: rgba(0, 0, 0, 0.15);
}

.invtable {
  font-size: 20px;
}

.invtable th {
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--nred), 1);
  text-align: left;
  line-height: 12px;
}

.invtable td {
  vertical-align: text-top;
  font-weight: 500;
}

.invtable .meta {
  font-size: 12px;
  opacity: .75;
  font-weight: 400;
  line-height: 12px;
  margin-top: 2px;
}

.yourposition {
  color: rgba(var(--nred), 1);
  display: inline-block;
  background: rgba(var(--nred), .15);
  font-weight: 600;
  font-size: 12px;
  margin-left: 7px;
  line-height: 12px;
  padding: 5px;
  border: 1px solid rgba(var(--nred), .3);
  border-radius: 4px;
}

.wselect {
  min-height: auto;
  height: fit-content;
  top: 50%;
  position: fixed;
  margin-top: 50vh;
  transform: translateY(-50%);
  z-index: 50;

}

.wselect .header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.wclabel {
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--nred), 1);
  background: rgba(var(--nred), .1);
  line-height: 14px;
  padding: 5px;
  border-radius: 3px;
  width: fit-content;
  margin-bottom: 10px;
}

.disconnect {
  text-align: left;
  margin-top: 2px;
  font-weight: 500;
  border-top: 1px solid rgba(var(--nred), .5);
  padding-top: 10px;
  user-select: none;
}

.disconnect:hover {
  cursor: pointer;
  font-weight: 600;
}

.invisible {
  opacity: 0;
  pointer-events: none;
}

.swal2-modal div:where(.swal2-icon).swal2-warning {
  border-color: #00ffee;
  color: inherit;
}

.mypositionfilter {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1.25em;
  line-height: 13px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 13px;
}

.mypositionfilter:hover {
  cursor: pointer;
}

.mpft {
  height: 1em;
  width: 2em;
  background: rgba(var(--nred), .25);
  border-radius: .25em;
  border: 1px solid rgba(var(--nred), .5);
}

.mpftd {
  height: calc(1em - 4px);
  width: calc(1em - 4px);
  background: white;
  border-radius: 25%;
  position: relative;
  top: 2px;
  left: 2px;
  transition: all .1s ease-out;
}

.mpft.active {
  background: rgba(var(--nred), 1);
}

.mpft.active .mpftd {
  left: 14px;
}

.cltimer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  margin-top: 10px;
}

.ncswitch {
  display: flex;
  align-items: center;
  margin-right: 15px;
  position: relative;
  gap: 5px;
}

.ncswitch:hover {
  cursor: pointer;
}

.ncswitch img {
  width: 36px;
  position: relative;
  right: 0px;
  bottom: 0px;
  opacity: .75;
  border: 2px solid rgba(var(--nred), 0.1);
  box-sizing: border-box;
}

.ncswitch .connected {
  width: 36px;
  position: relative;
  z-index: 1;
  bottom: 0;
  right: 0;
  display: block;
  border: 3px solid rgba(var(--nred), 1);
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 1;
}

.ncnote {
  padding: 20px;
  box-sizing: border-box;
  background: #ff634710;
  border: 1px dashed #ff6347;
  border-radius: 3px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}

.ncnote svg {
  width: 20px;
}

.h1 {
  line-height: 1em;
  font-size: 24px;
}

.landinglogo .insignia {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  display: block;
  margin-bottom: 2em;
  transform: scaleX(-1);
  filter: drop-shadow(-30px 30px 30px #00004080);
}

.landinglogo .sukuktext {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  position: relative;
  display: block;
  margin-bottom: 6em;
}

.innerhead {
  font-weight: 450;
  letter-spacing: -0.03em;
  margin: 0;
  margin-bottom: .5em;
  color: #fff;
}

.marketsheader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 1.5em;
}

.marketsheader .kyc {
  grid-column: span 2;
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 10px;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
  padding: 1em 1.5em;
  display: flex;
  align-items: center;
  gap: 2em;
}

.marketsheader .tvl {
  background: #00003080;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid #00ffee;
  padding: 1em;
  display: grid;
}

.tvlheader {
  display: flex;
  justify-content: space-between;

}

.tvlheader div:first-child {
  font-size: 14px;
  font-weight: 600;
}

.tvlheader div:last-child {
  font-size: 30px;
  line-height: 1em;
  letter-spacing: -.05em;
  text-align: right;
  font-weight: 450;
  color: #00ffee;
}

.tvlchart {
  margin-top: auto;
}

.kycnftlogo {
  background: url(./images/kycnft.svg) no-repeat center center;
  background-size: contain;
  width: 100px;
  height: 100px;
  margin-left: 0px;
}

.kyctr {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
}

.fw700 {
  font-weight: 700;
}

.kycprogress {
  background: #00ffee40;
  height: 6px;
  border-radius: 10px;
  width: 10vw;
  position: relative;
  top: 6px;
}

.kycprogress::after {
  content: '';
  background: #00ffee;
  height: 100%;
  width: 33%;
  position: absolute;
  border-radius: 10px;
}

.kycnftgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1em;
  gap: 1em;
}

.kycnftgrid>div {
  display: flex;
  align-items: start;
  gap: 1em;
  font-size: 14px;
}

.kycnftgrid>div .fw600 {
  color: #ffffff00;
  background: #00ffee80;
  width: fit-content;
  border-radius: 5px;
}

.wipetext {
  color: #e7e5e400;
  background: #e7e5e440;
  border-radius: 5px;
  line-height: 1em;
  margin: .25em 0;
}

.kycnfticon {
  font-size: 2em;
}

.kycstatus {
  margin-top: .5em;
  font-weight: 500;
}

.tableheader {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.marketstable {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  margin-top: 1.5em;
  border-radius: 10px;
  padding: 1em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.tableheader>div:first-child {
  grid-column: span 2;
}

.tablebody .row>div:first-child {
  grid-column: span 2;
  color: #fff;
  font-weight: 500;
  align-items: center;
  display: flex;
  gap: .5em;
}

.tableheader>div:last-child,
.tablebody .row>div:last-child {
  text-align: right;
}

.tablebody {
  margin-top: 1em;
}

.tablebody .row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  padding: .75em 0;
  align-items: center;
}

.tablebody .row:not(:last-child) {
  border-bottom: 1px solid #e7e5e4;
}

/* New Markets Page Styles - Card Layout */
.markets-page-header {
  margin-bottom: 2em;
}

.markets-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5em;
  margin-top: 1.5em;
  align-items: start;
}

/* Left side card - spans 2 rows, top aligned with top row, stretches to bottom */
.markets-stats > .stat-card.sukuk-vaults-card,
.markets-stats > .stat-card.liquidity-pools-card {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
}

/* Right side card - spans 2 rows, top aligned with top row, stretches to bottom */
.markets-stats > .stat-card.points-card {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: stretch;
}

/* Middle 2x2 grid - Total Value Deposits (top left, 2nd child) */
.markets-stats > .stat-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

/* Middle 2x2 grid - Total Value Used (bottom left, 3rd child) */
.markets-stats > .stat-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Middle 2x2 grid - Top APY (top right, 4th child) */
.markets-stats > .stat-card:nth-child(4) {
  grid-column: 3;
  grid-row: 1;
}

/* Middle 2x2 grid - My Assets (bottom right, 5th child) */
.markets-stats > .stat-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

/* Pools page specific layout - only 4 boxes */
.pools-page .markets-stats {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.pools-page .markets-stats > .stat-card.liquidity-pools-card {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
}

.pools-page .markets-stats > .stat-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.pools-page .markets-stats > .stat-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.pools-page .markets-stats > .stat-card.points-card {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: stretch;
}

.stat-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
  display: flex;
  flex-direction: column;
}

.tvl-card {
  border-color: #00ffee;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #bfdbfe;
  margin-bottom: 0.5em;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #00ffee;
  line-height: 1em;
  margin-bottom: 0.5em;
}

.pools-card .stat-value {
  color: #fff;
}

.stat-sublabel {
  font-size: 12px;
  color: #a8a29e;
  margin-top: auto;
}

.stat-text {
  font-size: 13px;
  color: #bfdbfe;
  line-height: 1.5;
  margin: 0.5em 0;
}

.stat-link {
  margin-top: auto;
  padding-top: 0.75em;
}

.stat-link a {
  font-size: 13px;
  color: #00ffee;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.stat-link a:hover {
  color: #06cabe;
  text-decoration: underline;
}

.sukuk-vaults-card {
  border-color: #3b82f6;
}

.liquidity-pools-card {
  border-color: #3b82f6;
}

.liquidity-pools-card .stat-label {
  font-size: 18px;
}

.liquidity-pools-card .stat-text {
  font-size: 16px;
}

.liquidity-pools-card .stat-link a {
  font-size: 15px;
}

.sukuk-vaults-card .stat-label {
  font-size: 18px;
}

.sukuk-vaults-card .stat-text {
  font-size: 16px;
}

.sukuk-vaults-card .stat-link a {
  font-size: 15px;
}

.points-card {
  border-color: #06cabe;
}

.points-card .stat-label {
  font-size: 18px;
}

.points-card .stat-text {
  font-size: 16px;
}

.points-card .stat-link a {
  font-size: 15px;
}

.points-multiplier {
  color: #00ffee;
  font-weight: 700;
}

.stat-chart {
  margin-top: auto;
}

.markets-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1em;
  color: #a8a29e;
  font-size: 16px;
}

.search-input {
  width: 100%;
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 8px;
  padding: 0.75em 1em 0.75em 3em;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #00ffee;
}

.search-input::placeholder {
  color: #a8a29e;
}

.filter-group {
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
}

.filter-select {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 8px;
  padding: 0.75em 1em;
  color: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: #00ffee;
}

.sort-btn {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 8px;
  padding: 0.75em 1em;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.2s;
}

.sort-btn:hover {
  border-color: #00ffee;
  background: #000030a0;
}

.sort-btn.active {
  border-color: #00ffee;
  background: rgba(0, 255, 238, 0.1);
  color: #00ffee;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5em;
}

.pool-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.pool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 32, .7);
  border-color: #00ffee60;
}

.pool-card.status-available {
  border-color: #a3e63540;
}

.pool-card.status-capacity {
  border-color: #00ffee60;
}

.pool-card.status-over {
  border-color: #f59e0b40;
}

.pool-card.status-thoon {
  border-color: #6366f140;
}

.pool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5em;
  min-width: 0;
  gap: 0.75em;
}

.pool-icon-name {
  display: flex;
  align-items: center;
  gap: 1em;
  flex: 1;
  min-width: 0;
}

.pool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.pool-name-section {
  flex: 1;
  min-width: 0;
}

.pool-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.pool-product {
  font-size: 12px;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pool-status-badge {
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-available {
  background: #a3e63520;
  color: #a3e635;
  border: 1px solid #a3e63540;
}

.badge-capacity {
  background: #00ffee20;
  color: #00ffee;
  border: 1px solid #00ffee40;
}

.badge-over {
  background: #f59e0b20;
  color: #f59e0b;
  border: 1px solid #f59e0b40;
}

.badge-thoon {
  background: #6366f120;
  color: #6366f1;
  border: 1px solid #6366f140;
}

.pool-card-body {
  flex: 1;
  margin-bottom: 1.5em;
  min-width: 0;
  overflow: hidden;
}

.pool-info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #93c5fd20;
  align-items: stretch;
  min-width: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}

.info-label {
  font-size: 11px;
  color: #a8a29e;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.currency-display {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  flex-wrap: wrap;
  min-height: 48px;
  width: 100%;
}

.currency-icons-group {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
  min-height: 24px;
  width: 100%;
}

.currency-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.currency-icon:hover {
  transform: scale(1.1);
}

.pool-metric {
  margin-bottom: 1em;
  min-width: 0;
  overflow: hidden;
}

.pool-metric:last-child {
  margin-bottom: 0;
}

.pool-apy-valueinuse-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin: 1.5em 0;
  min-width: 0;
}

.apy-metric {
  padding: 1em;
  background: rgba(0, 255, 238, 0.05);
  border: 1px solid rgba(0, 255, 238, 0.2);
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.value-in-use-metric {
  padding: 1em;
  background: rgba(0, 255, 238, 0.05);
  border: 1px solid rgba(0, 255, 238, 0.2);
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.metric-label {
  font-size: 12px;
  color: #a8a29e;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.metric-value {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.apy-value {
  font-size: 32px;
  color: #00ffee;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.value-in-use-value {
  font-size: 32px;
  color: #00ffee;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.pool-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 1em;
  min-width: 0;
}

/* Pools page specific metrics grid - 2x2 layout */
.pools-page .pools-metrics {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
}

.pools-page .pools-metrics .pool-metric.apy-metric {
  grid-column: 1;
  grid-row: 2;
}

.pools-page .pools-metrics .pool-metric:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.pools-page .pools-metrics .pool-metric:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.pools-page .pools-metrics .pool-metric:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

/* Pair and Points styling */
.pair-value {
  font-weight: 600;
  color: #00ffee;
  font-size: 16px;
}

.points-value {
  font-weight: 700;
  color: #00ffee;
  font-size: 18px;
}

.pool-card-footer {
  margin-top: auto;
  padding-top: 1em;
  border-top: 1px solid #93c5fd20;
  min-width: 0;
}

.pool-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #00ffee20, #00ffee10);
  border: 1px solid #00ffee40;
  border-radius: 8px;
  padding: 0.75em 1em;
  color: #00ffee;
  box-sizing: border-box;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  transition: all 0.2s;
}

.pool-action-btn:hover {
  background: linear-gradient(135deg, #00ffee30, #00ffee20);
  border-color: #00ffee;
  transform: translateY(-1px);
}

.pool-action-btn i {
  font-size: 12px;
}

.no-results {
  text-align: center;
  padding: 4em 2em;
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  margin-top: 2em;
}

.no-results i {
  font-size: 48px;
  color: #a8a29e;
  margin-bottom: 1em;
}

.no-results p {
  color: #a8a29e;
  font-size: 16px;
  margin-bottom: 1.5em;
}

.clear-filters-btn {
  background: #00003080;
  border: 1px solid #00ffee40;
  border-radius: 8px;
  padding: 0.75em 1.5em;
  color: #00ffee;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  border-color: #00ffee;
  background: #000030a0;
}

main.borrowpage {
  margin-top: max(10vh, 1em);
}

/* Vault Details Page Styles */
.vault-details-page {
  margin-top: max(10vh, 1em);
  padding: 0 2em;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  padding-bottom: 4em;
}

.back-nav {
  margin-bottom: 0.5em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  color: #bfdbfe;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0.5em 1em;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(0, 30, 60, 0.3);
  border: 1px solid rgba(147, 197, 253, 0.2);
}

.back-link:hover {
  color: #00ffee;
  background: rgba(0, 30, 60, 0.5);
  border-color: rgba(0, 255, 238, 0.4);
  transform: translateX(-4px);
}

.back-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.back-link:hover i {
  transform: translateX(-2px);
}

.vault-header-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.vault-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
}

.vault-header-left {
  display: flex;
  align-items: center;
  gap: 1.5em;
  flex: 1;
}

.vault-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5em;
}

.vault-header-info {
  flex: 1;
}

.vault-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5em 0;
}

.vault-meta {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 14px;
  color: #a8a29e;
}

.vault-product {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.vault-separator {
  color: #93c5fd40;
}

.vault-principle {
  font-style: italic;
}

.vault-status-large {
  padding: 0.75em 1.5em;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vault-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
}

.vault-stat-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.vault-stat-label {
  font-size: 12px;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5em;
}

.vault-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25em;
}

.vault-stat-value.apy-stat {
  color: #00ffee;
  font-size: 36px;
}

.vault-stat-sublabel {
  font-size: 11px;
  color: #a8a29e;
}

.vault-currency-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.vault-currency-header {
  margin-bottom: 1em;
}

.vault-currency-label {
  font-size: 14px;
  font-weight: 600;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vault-currency-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.currency-icons-group-large {
  display: flex;
  align-items: center;
  gap: 0.75em;
  flex-wrap: wrap;
}

.currency-icon-large {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s;
}

.currency-icon-large:hover {
  transform: scale(1.1);
}

.currency-names {
  font-size: 14px;
  color: #a8a29e;
}

.vault-actions-container {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.action-tabs {
  display: flex;
  gap: 0.5em;
  margin-bottom: 2em;
  border-bottom: 1px solid #93c5fd20;
}

.action-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1em 1.5em;
  color: #a8a29e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-tab:hover {
  color: #bfdbfe;
  border-bottom-color: #93c5fd40;
}

.action-tab.active {
  color: #00ffee;
  border-bottom-color: #00ffee;
}

.action-tab i {
  font-size: 12px;
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.vault-info-card {
  background: #00003080;
  backdrop-filter: blur(10px);
  border: 1px solid #93c5fd40;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 32, .5);
}

.vault-info-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1em 0;
}

.vault-info-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 0;
  border-bottom: 1px solid #93c5fd20;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .info-label {
  font-size: 14px;
  color: #a8a29e;
  font-weight: 500;
}

.info-row .info-value {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.vault-loading {
  text-align: center;
  padding: 4em 2em;
  color: #a8a29e;
}

/* Vault Main Content - Just the vault card */
/* Vault Content Wrapper - Side-by-side layout */
.vault-content-wrapper {
  display: flex;
  gap: 2em;
  width: 100%;
  align-items: flex-start;
  position: relative;
}

.vault-main-content {
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 !important;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5em;
}

/* Scrollbar styling for vault-main-content */
.vault-main-content::-webkit-scrollbar {
  width: 6px;
}

.vault-main-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.vault-main-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 238, 0.3);
  border-radius: 3px;
}

.vault-main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 238, 0.5);
}

/* nkpanel in vault-details should be fixed/sticky, full size */
.vault-content-wrapper .nkpanel {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  flex: 0 0 auto;
  width: 600px;
  max-width: 600px;
  min-width: 600px;
  height: auto;
  overflow: visible;
}

/* Deposit/Redeem Toggle Buttons */
.deposit-redeem-toggle {
  display: flex;
  gap: 0.75em;
  margin-bottom: 1.5em;
  justify-content: center;
}

.toggle-button {
  background: rgba(0, 30, 60, 0.4);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(128, 128, 255, 0.3);
  padding: 0.85em 2em;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 140px;
  text-align: center;
}

.toggle-button:hover {
  background: rgba(6, 202, 190, 0.15);
  border-color: #06cabe;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(6, 202, 190, 0.3);
}

.toggle-button.active {
  background: rgba(0, 255, 238, 0.15);
  border: 1.5px solid #00ffee;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0, 255, 238, 0.2);
}

.toggle-button.active:hover {
  background: rgba(0, 255, 238, 0.25);
  box-shadow: 0 4px 20px rgba(0, 255, 238, 0.4);
}

/* Responsive layout for vault-content-wrapper */
@media screen and (max-width: 1024px) {
  .vault-content-wrapper {
    flex-direction: column;
  }
  
  .vault-main-content {
    max-height: none;
    overflow-y: visible;
  }
  
  .vault-content-wrapper .nkpanel {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
  }
}

@media screen and (max-width: 767px) {
  .vault-content-wrapper {
    flex-direction: column;
    gap: 1.5em;
  }
}

/* Ensure all direct children are flex items */
.vault-main-row > * {
  min-width: 0 !important; /* Prevent flex blowout */
  flex-shrink: 1 !important;
}

/* Vault Summary Card Wrapper */
.vault-summary-card-wrapper {
  width: 100% !important;
  max-width: 600px !important;
}

/* Vault Summary Card (from markets page) - Smaller, left side */
.vault-summary-card {
  background: rgba(0, 30, 60, 0.6);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(147, 197, 253, 0.3);
  border-radius: 16px;
  padding: 2em;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.vault-summary-card:hover {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
}

/* Enhanced Content Section - Separate element, below vault-main-content */
.vault-enhanced-content {
  background: rgba(0, 30, 60, 0.6);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(147, 197, 253, 0.3);
  border-radius: 16px;
  padding: 2.5em;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
  margin: 2em 0 0 0 !important;
  width: 100% !important;
  min-height: 200px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.vault-enhanced-content:hover {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5em 0;
  padding-bottom: 0.75em;
  border-bottom: 1px solid rgba(147, 197, 253, 0.2);
}

.content-placeholder {
  color: #a8a29e;
  line-height: 1.6;
  font-size: 14px;
}

/* Vault Interfaces Container - Now individual panels, not a container */
.vault-interfaces-container {
  display: contents; /* Allow children to be direct grid items */
}

.vault-interface-panel {
  background: rgba(0, 30, 60, 0.6);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(147, 197, 253, 0.3);
  border-radius: 16px;
  padding: 2em;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.vault-interface-panel:hover {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
}

.interface-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2em 0;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(147, 197, 253, 0.2);
}

.interface-title i {
  font-size: 16px;
  color: #00ffee;
}

/* Responsive styles for vault details */
@media screen and (max-width: 1024px) {
  .vault-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .vault-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

  @media screen and (max-width: 1024px) {
    .vault-main-content {
      max-width: 100% !important;
    }
  }

  @media screen and (max-width: 767px) {
    .vault-details-page {
      padding: 0 1em;
      gap: 1.5em;
    }

    .vault-title {
      font-size: 24px;
    }

    .vault-header-icon {
      width: 48px;
      height: 48px;
    }

    .vault-stats-grid {
      grid-template-columns: 1fr;
    }

    .vault-main-content {
      max-width: 100% !important;
    }

    .vault-enhanced-content {
      padding: 1.5em;
    }
  }

/* Pool Details Page Styles - Uses same styles as vault-details */
.pool-details-page {
  margin-top: max(10vh, 1em);
  padding: 0 2em;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  padding-bottom: 4em;
}

.pool-loading {
  text-align: center;
  padding: 4em 2em;
  color: #bfdbfe;
}

.pool-loading a {
  color: #00ffee;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .pool-details-page {
    padding: 0 1em;
    gap: 1.5em;
  }
}

.npe {
  pointer-events: none;
}

.npe .loadingopacity {
  opacity: .75;
}

.countdown {
  text-align: center;
  font-size: 2em;
  font-weight: 500;
  margin-top: .6em;
  line-height: 1em;
  color: #fff;
}

.vaultstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 1em;
  margin-top: .5em;
}

.vaultstats>div {
  border-radius: 10px;
}

.vshead {
  font-size: 12px;
  font-weight: 450;
  line-height: 1em;
  margin-bottom: .5em;
  color: #bfdbfe;
}

.yvshead{
  margin-bottom: .6em;
}

.vsval {
  font-size: 15px;
  line-height: 1em;
  font-weight: 600;
}

.vsact {
  font-size: 13px;
  font-weight: 600;
  color: #00ffee;
  line-height: 1em;
  margin-top: .5em;
  user-select: none;
}

.vsact:hover {
  cursor: pointer;
}

.vsstatus {
  font-size: 13px;
  font-weight: 600;
  color: orange;
  line-height: 1em;
  margin-top: .5em;
  user-select: none;
}

.vaultstatshead {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1em;
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 1em;
  border: 1px solid #00ffee80;
}

.tweetpreview {
  font-size: 14px;
  line-height: 1.5em;
  margin-top: .5em;
  word-break: break-word;
}

.tweetpreview div {
  margin: .5em 0;
  border: 1px dashed #44403c40;
  padding: 1em;
  border-radius: 10px;
}

.twitter-share-button {
  margin-top: .125em;
}

.twitter-follow-button {
  margin-top: .25em;
}

.fnt {
  font-size: 18px;
  font-weight: 450;
  margin-top: .5em;
}

.fnt span {
  font-weight: 600;
}

.fnt .meta {
  font-size: 12px;
  font-weight: 500;
  color: tomato;
}

.tweeturl {
  font-size: 16px;
  appearance: none;
  border: 1px solid #44403cb0;
  border-radius: 10px;
  padding: 1em;
  box-sizing: border-box;
  width: 100%;
  font-weight: 450;
}

.tweeturl::placeholder {
  color: #44403c80;
  font-weight: 450;
}

.claimbutton.disabled {}

.tweeterror {
  color: tomato;
  font-size: 14px;
  font-weight: 500;
  padding: 1em;
  border-radius: 10px;
  background: #ff634710;
  border: 1px dashed tomato;
  text-align: left;
  margin-top: 1em;
  line-height: 1.5em;
}

.toplogo .tbinsignia {
  width: 48px;
}

.toplogo .sukuktext {
  width: 100px;
  margin-left: 1em;
}

.bg {
  position: fixed;
  inset: 0;
  background: #092a59;
  height: 100lvh;
}

.bg2 {
  position: fixed;
  inset: 0;
  background: #00bbff;
  opacity: .2;
  animation: bg2 10s linear infinite forwards;
  height: 100lvh;
}

@keyframes bg2 {
  0% {
    opacity: .2;
  }

  25% {
    opacity: 0;
  }

  75% {
    opacity: 0;
  }
}

.grads {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
}

.grad1 {
  position: absolute;
  top: 25%;
  left: 5%;
  width: 70lvh;
  height: 50%;
  rotate: -45deg;
  background: #000040;
  opacity: .6;
  /* mix-blend-mode: multiply; */
  border-radius: 100%;
  filter: blur(100px);
}

.grad2 {
  position: absolute;
  width: 75lvh;
  height: 75lvh;
  background: url('./images/edgegrad.webp');
  opacity: .25;
  background-position: top left;
  background-size: contain;
  background-repeat: no-repeat;
}

.grad4 {
  position: absolute;
  width: 100lvh;
  height: 100lvh;
  right: 0;
  transform: scaleX(-1);
  background: url('./images/edgegrad.webp');
  opacity: .25;
  background-repeat: no-repeat;
}

.grad5 {
  position: absolute;
  width: 50lvh;
  height: 50lvh;
  left: 0;
  bottom: 0;
  background: url('./images/edgegrad2.webp');
  opacity: .5;
  background-size: contain;
  transform: scaleX(-1);
  background-position: bottom right;
  background-repeat: no-repeat;
}


.grad3 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100lvh;
  background: url('./images/edgegrad2.webp');
  background-size: cover;
  background-position: bottom right;
  opacity: .75;
}

.galaxy {
  position: absolute;
  width: 100%;
  height: 100lvh;
  background: url('./images/galaxy.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .15;
  animation: galaxy 5s ease-out 1 forwards;
}

.rgrad {
  position: absolute;
  width: 100lvh;
  height: 100lvh;
  background: url('./images/rgrad.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .4;
  z-index: -1;
  animation: rgrad 10s linear infinite forwards;
}

@keyframes rgrad {
  0% {
    top: -50lvh;
    left: 50vw;
    transform: translateX(-50lvh) translateY(-50lvh);
  }

  10% {
    top: 0lvh;
  }

  50% {
    left: 100vw;
    top: 0lvh;
    transform: translateX(0lvh) translateY(-50lvh);
  }

  50.1% {
    left: 50vw;
    transform: translateX(-50lvh) translateY(50lvh);
    top: 50lvh;
  }

  60% {
    top: 0lvh;
  }

  100% {
    left: 0vw;
    transform: translateX(-100lvh) translateY(50lvh);
  }
}

@keyframes galaxy {
  0% {
    scale: 1.2;
  }

  100% {
    scale: 1;
  }
}

.rgrad2 {
  position: absolute;
  width: 100lvh;
  height: 100lvh;
  background: url('./images/rgrad.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: -1;
}


    .wselect{
      color: #000;
      background: #fff;
    }


.unsupported-title{
  color: #fff;
}

.supported-chains .nkbutton{
  border-radius: 20px;
  padding: 1em 1.5em;
}

ul.usl li:hover{
  color: white;
}

.ushs{
  color: #fff;
}

.usheader{
  display: flex;
  width: fit-content;
  margin: 0 auto;
  gap: 1em;
}

@media screen {}

@media screen and (orientation:landscape) and (min-height:800px) {
  main.homepage {
    margin-top: max(calc(50vh - 306px - 80px), 1em);
  }
}

@media screen and (orientation:landscape) and (min-height:750px) {
  main:not(.homepage) {
    margin-top: 6vh;
  }
}

@media screen and (orientation:landscape) and (min-height:750px) {
  main:not(.homepage) {
    margin-top: 8vh;
  }
}

@media screen and (orientation:landscape) and (min-height:700px) {
  main:not(.homepage) {
    margin-top: 3vh;
  }

  main.borrowpage {
    margin-top: max(10vh, 1em);
  }
}

@media screen and (orientation:portrait) {
  @media screen and (min-height:1200px) {
    main {
      margin-top: 15vh;
    }

    #topbar {
      margin-top: 1vh;
    }

    .bg1 {
      background-position: 66%;
    }

    .bg2 {
      background-position: 33%;
    }
  }

  @media screen and (max-width:960px) {
    main {
      margin-top: 13vh;
    }

    main.homepage .caption {
      font-size: 55px;
    }

    #topbar {
      margin-top: 1vh;
    }

    .bg1 {
      background-position: 66%;
    }

    .bg2 {
      background-position: 33%;
    }

    nav {
      display: none;
    }

    .mobnav {
      display: block;
    }

    nav.topmenu {
      display: none;
    }

    #topbar>div:last-child {
      flex-basis: auto;
    }

    .toplogo {
      position: relative;
      top: 10px;
    }

    .marketsheader {
      grid-template-columns: repeat(1, 1fr);
    }

    .marketsheader .kyc {
      grid-column: 1;
    }

    .markets-stats {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    
    .stat-card.sukuk-vaults-card,
    .stat-card.liquidity-pools-card,
    .stat-card.points-card {
      grid-column: 1;
      grid-row: auto;
    }
    
    .stat-card:nth-of-type(2),
    .stat-card:nth-of-type(3),
    .stat-card:nth-of-type(4),
    .stat-card:nth-of-type(5) {
      grid-column: 1;
      grid-row: auto;
    }

    .markets-controls {
      flex-direction: column;
    }

    .search-box {
      width: 100%;
      min-width: 100%;
    }

    .filter-group {
      width: 100%;
    }

    .filter-select,
    .sort-btn {
      flex: 1;
      min-width: 150px;
    }

    .markets-grid {
      grid-template-columns: 1fr;
    }

    #topbar>div:first-child {
      height: 60px;
    }

    .landinglogo img {
      max-width: 70vw;
      margin-top: 10vh;

    }

    .kycnftgrid {
      grid-template-columns: repeat(1, 1fr);
    }

    .marketstable {
      overflow-x: auto;
    }

    .tablecontainer {
      min-width: 950px;
    }
  }

  @media screen and (max-width:767px) {
    main {
      margin-top: 5vh;
    }

    .marketmodal .sbigrid {
      grid-template-columns: repeat(2, 1fr);
    }

    .mobnav {
      margin-left: 1em;
    }

    .marketsheader .kyc {
      display: grid;

    }

    .kycnftlogo {
      margin: 0 auto;
    }

    .kyctr {
      display: block;
      justify-content: space-between;
      width: 100%;
      font-size: 14px;
    }

    .kycprogress {
      width: 100%;
      margin-bottom: .75em;
    }

    .markets-stats {
      gap: 1em;
    }

    .stat-card {
      padding: 1em;
    }

    .stat-value {
      font-size: 24px;
    }

    .pool-card {
      padding: 1em;
      overflow: hidden;
    }

    .pool-name {
      font-size: 16px;
    }

    .apy-value {
      font-size: 28px;
    }

    .value-in-use-value {
      font-size: 28px;
    }

    .pool-metrics-grid {
      grid-template-columns: 1fr;
      gap: 0.75em;
    }

    .pool-apy-valueinuse-row {
      grid-template-columns: 1fr;
      gap: 0.75em;
    }

    .pool-info-row {
      grid-template-columns: 1fr;
      gap: 0.75em;
    }

  }

  @media screen and (max-width:599px) {
    main {
      margin-top: 2vh;
      padding: 0 20px;
    }

    main.homepage .caption {
      font-size: 40px;
    }

    #topbar {
      padding: 0 20px;
      margin-top: 0;
    }

    .priinput {
      font-size: 30px;
      line-height: 36px;
      height: 54px;
    }

    .subbox {
      height: auto;
      padding-top: 30px;
      padding-bottom: 30px;
    }

    .tinfogrid {
      grid-template-columns: calc(26% - 7px) calc(37% - 10px) 12px calc(37% - 10px);
    }

    .ncswitch img {
      display: none;
    }

    .ncswitch .connected {
      border: 0px solid rgba(var(--nred), 1);
    }
  }


  @media screen and (max-width:439px) {
    main {
      padding: 0 20px;
      margin-top: 2em;
    }

    main.homepage .caption {
      font-size: 44px;
    }

    #topbar {
      padding: 0 10px;
    }

    .priinput {
      font-size: 24px;
      line-height: 36px;
      height: 54px;
    }

    main.homepage .caption {
      font-size: 30px;
    }

    .ush {
      align-items: flex-start;
    }

    .ush svg {
      top: 3px;
      position: relative;
    }

    .landinglogo .insignia {
      width: 75%;
  }
  }
}

/* Dashboard Styles */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2em;
  padding: 2em 0;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5em;
  backdrop-filter: blur(10px);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: #bfdbfe;
  font-weight: 500;
}

.tier-badge {
  padding: 0.25em 0.75em;
  border-radius: 20px;
  font-size: 0.875em;
  font-weight: 500;
  background: rgba(20, 184, 166, 0.2);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.tier-badge.tier-gold {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.tier-badge.tier-silver {
  background: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
  border-color: rgba(192, 192, 192, 0.3);
}

.dashboard-card-body {
  color: #a8a29e;
}

.balance-main, .yield-main, .points-main {
  margin-bottom: 1.5em;
}

.balance-label, .yield-label, .points-label {
  font-size: 0.875em;
  color: #a8a29e;
  margin-bottom: 0.5em;
}

.balance-amount, .yield-amount {
  font-size: 2.5em;
  font-weight: 600;
  color: #bfdbfe;
  margin: 0.25em 0;
}

.yield-amount {
  color: #14b8a6;
}

.points-amount {
  font-size: 3em;
  font-weight: 600;
  color: #bfdbfe;
  margin: 0;
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  font-size: 0.875em;
}

.balance-change.positive {
  color: #10b981;
}

.balance-change.negative {
  color: #ef4444;
}

.change-label {
  color: #a8a29e;
}

.yield-apy {
  font-size: 0.75em;
  color: #a8a29e;
  margin-top: 0.25em;
}

.points-month {
  font-size: 0.875em;
  color: #a8a29e;
  margin-top: 0.5em;
}

.balance-grid, .yield-grid, .zakat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-item-label, .yield-item-label, .zakat-label {
  font-size: 0.75em;
  color: #a8a29e;
  margin-bottom: 0.25em;
}

.balance-item-value, .yield-item-value, .zakat-value {
  font-size: 1.25em;
  font-weight: 600;
  color: #bfdbfe;
}

.zakat-value.highlight {
  color: #14b8a6;
}

.claim-button {
  width: 100%;
  margin-top: 1.5em;
}

.points-progress {
  margin: 1.5em 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #a8a29e;
  margin-bottom: 0.5em;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #0ea5e9);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.benefits-section {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-section h4 {
  font-size: 0.875em;
  color: #bfdbfe;
  margin-bottom: 0.75em;
  font-weight: 500;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.875em;
  color: #a8a29e;
  margin-bottom: 0.5em;
}

.benefits-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #14b8a6;
  border-radius: 50%;
  flex-shrink: 0;
}

.date-range-selector {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}

.date-range-selector input[type="date"] {
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #bfdbfe;
  font-family: inherit;
  font-size: 0.875em;
}

.date-range-selector span {
  color: #a8a29e;
}

.pnl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-bottom: 1.5em;
}

.pnl-item {
  padding: 1em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pnl-item.profit {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pnl-item.loss {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pnl-item.net {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.pnl-item.net.positive {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
}

.pnl-label {
  font-size: 0.75em;
  color: #a8a29e;
  margin-bottom: 0.5em;
}

.pnl-value {
  font-size: 1.5em;
  font-weight: 600;
  color: #bfdbfe;
}

.pnl-item.profit .pnl-value {
  color: #10b981;
}

.pnl-item.loss .pnl-value {
  color: #ef4444;
}

.pnl-item.net .pnl-value {
  color: #0ea5e9;
}

.chart-container {
  margin-top: 1.5em;
  padding: 1em;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.chart-container canvas {
  width: 100%;
  height: 200px;
}

.zakat-eligible {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.zakat-info {
  padding: 1em;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
}

.zakat-info p {
  margin: 0.25em 0;
  color: #bfdbfe;
}

.zakat-details {
  font-size: 0.875em;
  color: #a8a29e;
}

.zakat-not-eligible {
  padding: 3em;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.zakat-not-eligible p {
  color: #a8a29e;
  margin: 0.5em 0;
}

.donation-section {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-section h4 {
  font-size: 1em;
  color: #bfdbfe;
  margin-bottom: 0.75em;
  font-weight: 500;
}

.donation-description {
  font-size: 0.875em;
  color: #a8a29e;
  margin-bottom: 1em;
  line-height: 1.5;
}

.donation-input-group {
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
}

.donation-input-group input {
  flex: 1;
  min-width: 200px;
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #bfdbfe;
  font-family: inherit;
  font-size: 1em;
}

.donation-input-group input::placeholder {
  color: #6b7280;
}

.donation-input-group .nkbutton.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
}

.donation-input-group .nkbutton.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1em;
}

.modal-content {
  background: #092a59;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2em;
  max-width: 500px;
  width: 100%;
}

.modal-content h3 {
  margin: 0 0 1em 0;
  color: #bfdbfe;
  font-size: 1.5em;
}

.modal-content p {
  color: #a8a29e;
  margin: 0.75em 0;
  line-height: 1.5;
}

.modal-note {
  font-size: 0.875em;
  color: #6b7280;
}

.modal-actions {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
}

.modal-actions .nkbutton {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 1em 0;
  }

  .pnl-grid {
    grid-template-columns: 1fr;
  }

  .balance-grid, .yield-grid, .zakat-grid {
    grid-template-columns: 1fr;
  }

  .donation-input-group {
    flex-direction: column;
  }

  .donation-input-group input {
    width: 100%;
  }
}

/* veSUKUK Statistics Styles */
.vesukuk-stats-container {
  padding: 2em 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-bottom: 2em;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5em;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stat-card.revenue {
  border-left: 3px solid #14b8a6;
}

.stat-card.token {
  border-left: 3px solid #0ea5e9;
}

.stat-card.duration {
  border-left: 3px solid #8b5cf6;
}

.stat-card.burnt {
  border-left: 3px solid #f59e0b;
}

.stat-icon {
  font-size: 2.5em;
  line-height: 1;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.875em;
  color: #a8a29e;
  margin: 0 0 0.5em 0;
  font-weight: 400;
}

.stat-value {
  font-size: 1.75em;
  font-weight: 600;
  color: #bfdbfe;
  margin: 0.25em 0;
  word-break: break-word;
}

.stat-subtext {
  font-size: 0.75em;
  color: #6b7280;
  margin: 0.25em 0 0 0;
}

.stat-change {
  font-size: 0.875em;
  margin-top: 0.5em;
  font-weight: 500;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

.vesukuk-info-section {
  margin-top: 2em;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2em;
  backdrop-filter: blur(10px);
}

.info-card h3 {
  color: #bfdbfe;
  font-size: 1.5em;
  margin: 0 0 1em 0;
  font-weight: 500;
}

.info-card p {
  color: #a8a29e;
  line-height: 1.6;
  margin: 0;
  font-size: 1em;
}

@media screen and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .stat-card {
    padding: 1.25em;
  }

  .stat-icon {
    font-size: 2em;
  }

  .stat-value {
    font-size: 1.5em;
  }

  .info-card {
    padding: 1.5em;
  }
}

@media screen and (max-width: 480px) {
  .vesukuk-stats-container {
    padding: 1em 0;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .stat-icon {
    margin-bottom: 0.5em;
  }
}