:root {
  --primary-color: #fff;
  --primary-color-reverse: #000;
  --site-background: #101010;
  --secondary-color: #7e56e3;
  --secondary-color_2: #6b49bf;
  --bg-primary: #101010;
  --grey-color: grey;
  --grey-color-2: #c4c2c2;
  --color-success: #0ac989;
  --color-danger: #f24242;
  --bg-reverse: #fff;
  --color-reverse: #000;

  --bg_1: #101010;
  --bg-grey_1: #202020;
  --bg-grey_2: #353535;
  --bg-grey_3: #353535;

  --bg_2: #181818;
  --bg_3: #232323;
  --bg_4: #252525;
  --bg_5: #353535;
  --bg_6: #404040;

  --card-bg: #252525;
  --card-bg-grey: #191919;
  --card-in-grey-card-bg: #303030;
  --sidenav-bg: #edecec;

  --border: #303030;
  --borderFaint: #252525;

  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-5: 20px;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;

  --lg-bg-color: rgba(227, 216, 248, 0.25);
  --lg-highlight: rgba(255, 255, 255, 0.75);
}

/* ========================== */
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--site-background);
}


/* backgrounds */
.bg_1 {background: var(--bg_1)}
.bg-grey_1 {background: var(--bg-grey_1)}
.bg-grey_2 {background: var(--bg-grey_2)}
.bg-grey_3 {background: var(--bg-grey_3)}

.bg_2 {background: var(--bg_2)}
.bg_3 {background: var(--bg_3)}
.bg_4 {background: var(--bg_4)}
.bg_5 {background: var(--bg_5)}
.bg_6 {background: var(--bg_6)}
.bg-reverse {background: var(--bg-reverse)}
.color-reverse {color: var(--color-reverse) !important}
.bg-sec { background: var(--secondary-color); }
.modal-body{ background: #202020 }
.blur-bg {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.blur-bg.mini {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.white-bg-only {
  background: #fff;
}

.auth-container {
  background: linear-gradient(to top right, #101010 60%, var(--secondary-color_2));
  background-repeat: no-repeat;
  height: 100%;
  overflow: scroll;
}
.gradient-container {
  background: linear-gradient(to top right, #101010 60%, var(--secondary-color_2));
  background-repeat: no-repeat;
  height: 100%;
  overflow: scroll;
}


/* Cards */
.auth-card {
  background: var(--bg_2);
  border-radius: var(--radius-2);
  padding: 30px;
  width: 80%;
  margin: 0px auto;
}
@media (max-width: 576px) {
  .auth-card { width: 90%; }
}
@media (min-width: 577px) and (max-width: 980px) {
  .auth-card { width: 60%; }
}

._card {
  padding: 12px;
  background: var(--card-bg);
  border-radius: var(--radius-2);
}
._card-grey {
  background: var(--card-bg-grey);
}
._card.in-grey-card {
  border: none;
  box-shadow: none;
  background: var(--card-in-grey-card-bg);
}

._card.gradient {
  background: linear-gradient(to bottom left, transparent, var(--bg_2) 80%, #472f83 100%);
}

/* ------------------------------ */
/*  Text && colors && fonts */
.primary-color { color: var(--primary-color) !important; }
.primary-color-reverse { color: var(--primary-color-reverse) !important; }
.secondary-color { color: var(--secondary-color) !important; }
.secondary-color-2 { color: var(--secondary-color_2) !important; }

.grey-color { color: var(--grey-color) !important }
.grey-color-2 { color: var(--grey-color-2) !important }
.color-success { color: var(--color-success) !important; }
.color-danger { color: var(--color-danger) !important; }

p, h1, h2, h3, h4, h5, span, label, small, i {color: var(--primary-color);}
p {font-size: var(--text-sm)}

.icon-fill{ fill: var(--primary-color) }
.icon-fill-grey{ fill: var(--grey-color) }
.icon-fill-grey-2{ fill: var(--grey-color-2) }
.icon-fill-secondary{ fill: var(--secondary-color) }
.icon-fill-success{ fill: var(--color-success) }

a {
    text-decoration: none !important;
    color: var(--primary-color) !important;
    font-size: var(--text-sm);
}
.link-hover:hover {
    background: var(--bg-2);
}

.text-xs { font-size: var(--text-xs) !important }
.text-sm { font-size: var(--text-sm) !important }
.text-md { font-size: var(--text-md) !important }
.text-lg { font-size: var(--text-lg) !important }
.text-xl { font-size: var(--text-xl) !important }

@media only screen and (max-width: 576px) {
  .text-xs-mobile { font-size: var(--text-xs); }
}

.open-sans {font-family: 'Open Sans', sans-serif}
.anuphan {font-family: 'Anuphan', sans-serif}
.gabarito {font-family: 'Gabarito', sans-serif}
.rubik {font-family: 'Rubik', sans-serif}
.ubuntu {font-family: 'Ubuntu', sans-serif}
.natasans {font-family: 'Nata Sans', sans-serif}
.open-sans.wt-200, .anuphan.wt-200, .gabarito.wt-200, .rubik.wt-200, .natasans.wt-200{ font-weight: 200; }
.open-sans.wt-400, .anuphan.wt-400, .gabarito.wt-400, .rubik.wt-400, .natasans.wt-400{ font-weight: 400; }
.open-sans.wt-500, .anuphan.wt-500, .gabarito.wt-500, .rubik.wt-500, .natasans.wt-500{ font-weight: 500; }
.open-sans.wt-600, .anuphan.wt-600, .gabarito.wt-600, .rubik.wt-600, .natasans.wt-600{ font-weight: 600; }
.open-sans.wt-700, .anuphan.wt-700, .gabarito.wt-700, .rubik.wt-700{ font-weight: 700; }

.uppercase {text-transform: uppercase !important}
.capitalize {text-transform: capitalize !important}
.underline{ text-decoration: underline !important; }


/* inputs */
.form-wrapper {
  position: relative;
  margin-top: 25px;
}

.form-wrapper input {
  width: 100%;
  border: 1px solid #282828;
  border-radius: 6px;
  color: #fff !important;
  background: transparent;
  caret-color: white;
  height: 46px;
  padding: 0px 14px;
}

.form-wrapper select{
  width: 100%;
  height: 46px;
  border: 1px solid #282828;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  padding: 0px 14px;
  font-size: 14px;
}

.form-wrapper label {
  font-size: var(--text-sm);
  color: var(--grey-color-2);
  margin-bottom: 6px;
}
.form-wrapper input::placeholder {
  font-size: 13px;
  color: var(--grey-color);
  font-family: 'open sans';
}
.form-wrapper select option:disabled {
  color: red !important;
}

.form-wrapper .placeholder-larger::placeholder {
  font-size: 16px;
}

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

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input:focus,
select:focus {
  box-shadow: none !important;
  outline: none !important;
}

.form-wrapper input:focus {
  border: 1px solid var(--secondary-color_2);
}

/* input icons and text */
.form-wrapper .has-icon {
  padding-right: 20% !important;
  position: relative;
}

.form-wrapper .has-dual-icon {
  padding-right: 30% !important;
  padding-left: 30% !important;
  position: relative;
}

.form-wrapper .input-icon-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  height: 46px;
  width: auto;
  padding: 0px 12px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 0px 4px 4px 0px;
  cursor: pointer;
}
.input-icon-wrapper-left {
  left: 10px;
  right: auto !important;
}
.input-icon {
  color: var(--primary-color);
  position: relative;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-box-shadow: none;
transition: background-color 5000s ease-in-out 0s;
background-color: none !important;
-webkit-text-fill-color: #fff;
}

input.input-border-2 { border: 1px solid #363636 !important; }
select.input-border-2 { border: 1px solid #363636 !important; }

.code-input-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.code-input-wrapper input {
  width: 60px;
  height: 60px;
  font-size: 32px;
  text-align: center;
}
@media(max-width: 576px) {
  .code-input-wrapper { gap: 10px; }
  .code-input-wrapper input {
    width: 45px; height: 45px;
    font-size: 22px;
  }
}


/* Buttons */
button {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--radius-2);
  text-align: center;
  color: #fff;
  width: 100%;
  font-family: 'anuphan';
  font-size: 14px;
  height: 46px;
}
button.md{ height: 50px; } 
button.lg{ height: 56px; } 

button.gradient {
  background: linear-gradient(169deg,#5c6cf6,#a371f4 53%),linear-gradient(0deg,#fff,#a371f4 67%,#da9eff);
}

button:focus {
  outline: 0px;
  box-shadow: 0px;
  -webkit-box-shadow: none;
  border: none !important;
}
button.grey {
  background: #303030 !important;
  color: #fff;
}
button.sec {
  background: white;
  color: black;
}
button.rounded {border-radius: 30px !important;}
button.open {
  background: none;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}
button.open.border-primary {
  background: none;
  color: var(--primary-color);
  border: 1px solid var(--primary-color) !important;
}
button:disabled {
  opacity: .5;
}
button.small {
  height: 30px;
  font-size: 12px;
}
button.medium {
  height: 38px;
  font-size: 12px;
}

/* End buttons */


/* Box Sizing / layout */
.h-100 {
  height: 100% !important;
}
.w-100 {
  width: 100% !important;
}
.min-h-100 {
  min-height: 100% !important;
}
.min-w-100 {
  min-width: 100% !important;
}
.vh-100 {
  height: 100vh;
}
.vw-100 {
  width: 100vw;
}
.w-fit-content {
  width: fit-content;
}
.h-fit-content {
  height: fit-content;
}

@media screen and (min-width: 1020px) {
  .w-lg-fit-content {
    width: fit-content;
  }
  .h-lg-100 {
    height: 100%;
  }
  .w-lg-50 {
    width: 50% !important;
  }
}

/* Side nav */
.sidenav {
  background: var(--bg_2);
  height: 100vh;
  z-index: 99 !important;
  left: 0px;
  overflow: auto;
  margin: 0px;
  padding: 15px 0px 30px 0px;
  border-right: 1px solid var(--borderFaint);
}

.sidenav .side-link {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 12px;
  border-left: 3px solid #202020;
  font-family: 'Anuphan';
  gap: 10px;
}
.sidenav .side-link:hover {
  background: #181818;
}
.sidenav .side-link.active {
  background: #202020;
  border-left: 3px solid var(--secondary-color);
}
.side-link .side-link-icon {
  fill: var(--grey-color-2);
  width: 30px;
  height: 30px;
  background: var(--bg_3);
  padding: 4px;
  border-radius: 4px;
}
.sidenav-overlay {
  position: fixed;
  z-index: 66;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
}
@media only screen and (max-width: 968px) {
  .sidenav {
    position: fixed;
    width: 60%;
    height: 100%;
    top: 0;
    z-index: 99;
    display: none;
  }
  .sidenav .side-link {
    font-size: 12px;
  }
}

@media only screen and (min-width: 577px) and (max-width: 968px) {
  .sidenav { width: 40%; }
}

/* Badge */
.badge {
  padding: 6px 12px;
  border-radius: 30px;
}
.badge-warning {
  background: #867522;
  color: #f2d43e;
  font-weight: 400;
  font-family: 'Gabarito', sans-serif;
}
.badge-success {
  background: #3e5c51;
  color: #2aca8f;
  font-weight: 400;
  font-family: 'Gabarito', sans-serif;
}
/* end badge */

/* liquid glass card */
.liq-glass-container {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 2rem;
  overflow: hidden;
  flex: 1 1 auto;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  color: var(--lg-text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.glass-filter {
  z-index: 0;
  backdrop-filter: blur(4px);
  filter: url(#lensFilter) saturate(120%) brightness(1.15);
}

.glass-overlay {
  z-index: 1;
  background: var(--lg-bg-color);
}
.glass-specular {
  z-index: 2;
  box-shadow: inset 1px 1px 0 var(--lg-highlight),
    inset 0 0 5px var(--lg-highlight);
}
.glass-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* flowing line */
.flowing-line-container {
  position: relative;
  height: 50px;
}
.flowing-line-container .elem {
  width: 50%;
  height: 100%;
  top: 1px;
  z-index: 0;
}
.flowing-line-container .right {
  position: absolute;
  right: 0;
  border-left: 1px solid #404040;
  border-bottom-left-radius: 30px;
}
.flowing-line-container .left {
  position: absolute;
  left: 0;
  border-right: 1px solid #404040;
  border-bottom-right-radius: 30px;
}


/* Others */
.radius {border-radius: var(--radius);}
.radius-2 {border-radius: var(--radius-2) !important;}
.radius-3 {border-radius: var(--radius-3) !important;}
.radius-4 {border-radius: var(--radius-4) !important;}
.radius-5 {border-radius: var(--radius-5) !important;}
.py-6 {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 576px) {
  .px-mobile-0 {
    padding-left: 0px;
    padding-right: 0px;
  }
}
.position-relative {
  position: relative;
}
.position-absolute {
  position: absolute;
}
.cursor-pointer {
  cursor: pointer;
}

.border-top { border-color: var(--border) !important; }
.border-bottom { border-color: var(--border) !important; }
.border-left { border-color: var(--border) !important; }
.border-right { border-color: var(--border) !important; }
.border-none { border: none !important; }
.border-none:hover { border: none !important; }
.border-color_1 { border-color: var(--bg_1); }
.border { border-color: var(--border) !important; }
.border-sec { border-color: var(--secondary-color_2) !important; }
.tv-dem-border { border-color: var(--bg_2); }
@media screen and (min-width: 1020px) {
  .border-lg-none {border: none !important;}
}
@media screen and (min-width: 768px) {
  .border-md-none {border: none !important;}
}

.header {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px;
  background: var(--bg_1);
}

.header .nav-link {
  margin: 0;
  padding: 5px 12px;
  font-family: 'Anuphan';
  font-size: 14px;
}

.header.header-index {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 30px;
  position: fixed !important;
  top: 0;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  height: 60px;
  border: none;
  z-index: 66;
}

.index-top-margin {
  margin-top: 90px;
}

@media (max-width: 768px) {
  .header.header-index {
    width: 95%;
  }
  .index-top-margin {
    margin-top: 50px;
  }
}

.header-index .menu-toggle {
  height: 2px;
  width: 20px;
  background: white;
}
.menu-content-mboX {
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  padding: 31px 7% 0 7%;
  display: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu-content-mboX .link {
  color: rgb(239, 237, 237) !important;
  font-size: 22px;
  font-weight: 500;
  font-family: 'anuphan';
  display: block;
  padding: 8px 0px;
}
.menu-content-mboX_bg_overlay {
  background: black;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
}

.index-int-mt {
  margin-top: 110px;
}

.table thead th {
  color: var(--grey-color);
  font-family: 'Anuphan';
  font-size: 14px;
  font-weight: 300;
  border-color: var(--border);
}
.table tbody td {
  border: none;
}
.pointer { cursor: pointer; }

.token-list-item {
  display: flex;
  flex-direction: row;
  padding: 12px 20px;
  gap: 10px;
  align-items: center;
}
.token-list-item:hover {
  background: var(--bg_3);
}

.loading-container {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 6;
  top: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  display: none;
}

.loading-container .loading-inner {
  background: var(--bg_4);
  padding: 12px;
}

.bottom-padding {
  padding-bottom: 70px;
}
.eoi_cont {
  position: relative;
  width: 40px;
  height: 35px;
  align-items: center;
  justify-content: center;
}

.ring-loader-text {
  color: var(--primary-color);
}
.ring-loader {
  border-left: 4px solid #fff;
}

.account-control-panel-overlay {
  background: transparent;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9992;
}
.account-control-panel {
  position: fixed;
  width: 230px;
  right: 20px;
  background: #292929;
  border-radius: 8px;
  z-index: 9999;
  top: 56px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  display: none;
}
.account-control-panel a:hover, 
.account-control-panel button:hover {
  background: #323232 !important;
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.grad-txt {
  background-image: linear-gradient(to right, var(--secondary-color), #d4d0fb);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-icon-container {
  height: 26px;
  width: 26px;
  padding: 2px;
  background: linear-gradient(to bottom right, var(--secondary-color), #d4d0fb);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.gradient-icon-container .content-container {
  background: var(--card-bg);
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-pattern {
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='21.45' height='36'>\
      <path fill='none' stroke='%231C1731' stroke-width='0.7' d='M10.725 0 21.45 6v12l-10.725 6L0 18V6z'/>\
      <use href='#a'/>\
    </svg>");
  background-repeat: repeat;
  background-size: 21.45px 36px; /* same as pattern size */
}

