:root {
  --primary-color: #fff;
  --primary-color-reverse: #000;
  --site-background: #101010;
  --secondary-color: #0066ec;
  --secondary-color_2: #2c7ae1;
  --bg-primary: #101010;
  --grey-color: grey;
  --grey-color-2: #c4c2c2;
  --color-success: #0ac989;
  --color-danger: #f24242;
  --bg-reverse: #fff;

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

  --card-bg: #191919;
  --card-bg-grey: #191919;
  --card-in-grey-card-bg: #232323;
  --sidenav-bg: #151515;
  --header-section-bg: #151515;

  --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;
}

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

.no-scroll {
  overflow: hidden;
  height: 100vh; /* optional: fully lock body height */
}


/* 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)}
.header-section-bg { background-color: var(--header-section-bg); }

.bg_2 {background: var(--bg_2)}
.bg-reverse {background: var(--bg-reverse)}
.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%, #45896e, #347058); */
  background-repeat: no-repeat;
  height: 100%;
}
@media only screen and (max-width: 980px) {
  .auth-container {
    background: linear-gradient(to top, var(--bg_1) 90%, #224b82);
  }
}
.auth-lp-bg {
  background: linear-gradient(to bottom right, #5798ed, var(--secondary-color));
  height: 100%;
  border-radius: var(--radius-2);
  overflow: hidden;
  position: relative;
}

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


/* Cards */
.auth-card {
  border-radius: var(--radius-2);
  padding: 30px;
  width: 70%;
  margin: 0px auto;
}
@media (max-width: 576px) {
  .auth-card { 
    width: 100%;
  }
}
@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 right, var(--card-bg) 70%, rgba(0, 102, 236, .3));
}


/* ------------------------------ */
/*  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_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-secondary{ fill: var(--secondary-color) }
.icon-fill-success{ fill: var(--color-success) }
.icon-fill-danger{ fill: var(--color-danger) }

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 }
.title-txt { font-size: 30px; }

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

.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;
  }

.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-300, .anuphan.wt-300, .gabarito.wt-300, .rubik.wt-300, .natasans.wt-300{ font-weight: 300; }
.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 textarea{
  border: 1px solid #282828;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  padding: 14px;
  font-size: 14px;
  box-sizing: border-box;
  resize: none;
  width: 100%;
  min-height: 46px;
}

.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,
textarea:focus {
  box-shadow: none !important;
  outline: none !important;
}

.form-wrapper input:focus,
.form-wrapper textarea: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;
  top: 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; }
textarea.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.x-small{ height: 30px; } 
button.small{ height: 35px; } 
button.medium{ height: 50px; } 
button.large{ height: 56px; } 

button.gradient {
  background: linear-gradient(to right, #0066ec 40%, #5ebef2);
}

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_2);
  border: 1px solid var(--secondary-color_2);
}
button.open.border-primary {
  background: none;
  color: var(--primary-color);
  border: 1px solid var(--primary-color) !important;
}
button.trans-shade {
  background: #0e1d34;
}
button.bg-none {
  background: transparent;
}
button:disabled {
  opacity: .5;
}

/* 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;
  }
}

/* Side nav */
.sidenav {
  background: var(--sidenav-bg);
  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: 8px 12px;
  margin: 4px 8px;
  font-family: 'Anuphan';
  gap: 10px;
  border-radius: var(--radius-2);
}
.sidenav .side-link:hover {
  background: #202020;
}
.sidenav .side-link.active {
  background: linear-gradient(to right, #1f395a, #202020 15%);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(8, 8, 8, 0.05) 0px 0px 0px 1px inset;
}
.side-link .side-link-icon {
  fill: var(--grey-color-2);
  width: 25px;
  height: 25px;
}

.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: #473f1b;
  color: #f2d43e;
  font-weight: 400;
  font-family: 'Gabarito', sans-serif;
}
.badge-success {
  background: #30433c;
  color: #2aca8f;
  font-weight: 400;
  font-family: 'Gabarito', sans-serif;
}
.badge-sec {
  background: #021937;
  color: var(--secondary-color_2);
  font-weight: 400;
  font-family: 'Gabarito', sans-serif;
}
/* end badge */


/* Toast -------------- */
.px-toast-wrp {
  position: fixed;
  right: 20px;
  z-index: 9999999;
  display: none;
  max-width: 40%;
}

.px-toast {
  padding: 15px;
  border-radius: var(--radius-4);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
@media only screen and (min-width: 577px) and (max-width: 1020px) {
  .px-toast-wrp { max-width: 60%; }
}
@media only screen and (max-width: 576px) {
  .px-toast-wrp { max-width: 80%; }
}

.px-toast .message,
.px-toast .title {
  margin: 0;
  font-family: 'Anuphan';
  font-weight: 500;
  color: var(--primary-color-reverse);
}

.px-toast .title {
  font-size: var(--text-md);
  font-weight: 600;
}

.px-toast .icon-wrp {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.px-toast .close-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-toast.error {
  background: #f4d2d2;
  border: 1px solid #ee2f2f;
}
.px-toast.error .icon-wrp {
  background: #ee2f2f;
}
.px-toast.success {
  background: #e1f6ec;
  border: 1px solid #23ad6d;
}
.px-toast.success .icon-wrp {
  background: #23ad6d;
}
.px-toast.warning {
  background: #fbf7dc;
  border: 1px solid #f1d626;
}
.px-toast.warning .icon-wrp {
  background: #f1d626;
}
.px-toast.info {
  background: #e3eaf6;
  border: 1px solid #3477f3;
}
.px-toast.info .icon-wrp {
  background: #3477f3;
}

/* End toast */


/* Others */
.radius {border-radius: var(--radius-1);}
.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 !important;
}
.position-absolute {
  position: absolute !important;
}
.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; }
.border-tab-active { border-bottom: 2px solid var(--secondary-color); }
.border-faint{ border-color: var(--borderFaint) !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;
}

.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: #303030;
}

.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: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  display: flex;
}

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

.overflow-hidden {
  overflow: hidden;
}
.overflow-scroll {
  overflow: scroll;
}
.hide-scroll-bar::-webkit-scrollbar {
    display: none;
}

.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;
}