/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #FF7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}




.cookies-card {
  width: 520px;
  padding: 30px;
  color: hsl(var(--body-color));
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all .5s;
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--border-color));
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}


@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}




.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Line Awesome Free';
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}



.show-filter {
  display: none;
}

@media(max-width:767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}



/* ////////////////// select 2 css //////////////// */
.select2-dropdown {
  border: 0 !important;
  margin-top: 8px !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 9px rgba(50, 50, 9, 0.05), 6px 4px 19px rgb(115 103 240 / 20%)
}

.select2-search--dropdown {
  padding: 10px 10px !important;
  border-color: #ced4da !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: #ced4da !important;
  padding: 10px 20px;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 12px 14px !important;
  border-bottom: 1px solid #eee;
}

.select2-results__option.select2-results__message {
  text-align: center !important;
  padding: 12px 14px !important;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar {
  width: 8px;
  border-radius: 5px;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb {
  background: #ddd;
}

.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow:after {
  position: absolute;
  right: 10px;
  top: 0;
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  transition: .3s;
}

.select2-container--default .select2-selection--single {
  border-color: #ced4da !important;
  border-width: 2px !important;
  border-radius: .375rem !important;
  padding: .375rem .75rem !important;
  height: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 8px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select2-results__option:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.select2-results__option.select2-results__option--selected,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: rgb(var(--main)) !important;
  box-shadow: 0 0 25px rgba(115, 103, 240 0.071) !important;
  outline: 0 !important;
}

.select2-dropdown .country-flag {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.select2-dropdown .gateway-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px !important;
}

.select2-dropdown .gateway-subtitle {
  font-size: 12px;
  margin-bottom: 0px !important;
}
.select2-container--open .select2-selection.select2-selection--single, .select2-container--open .select2-selection.select2-selection--multiple {
  border-color: hsl(var(--base)) !important;
  border-radius: .375rem !important;
}


.gateway-card {
  padding: 15px;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: rgb(var(--main));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #cccccf59;
  --hover-border-color: rgb(var(--main));
  background-color: hsl(var(--white)/.1);
  border-radius: 5px;
  height: 100%;

}


.payment-system-list.is-scrollable {
  max-height: min(388px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;

}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: rgb(var(--main));
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid hsl(var(--white)/.1);
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid hsl(var(--base));
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width))
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--white)/.8);
  display: inline-block;
  border-radius: 100%;

}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
      width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}


.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 15px;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border: 1px solid var(--border-color);
  border-radius: 5px;

  .deposit-info__input-group-text {
      align-self: center;
      padding-left: 5px;
  }

}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;

}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px
}

.deposit-info__input-group:focus-within {
  border: 1px solid hsl(var(--base)/.4) !important;
}
.total-amount {
  border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: linear-gradient(180deg, hsl(var(--base-two)) 0%, hsl(var(--base)) 67%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
}
.payment-item__btn-text {
  color: hsl(var(--black));
}
.payment-item:hover+.payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

.cursor-pointer{
  cursor: pointer;
}

/* Profile Setting: Registered Account Data card - reduce height to content only */
.dashboard .dashboard-card.registered-account-data-card {
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 18px !important;
}
.dashboard .registered-account-data-card .account-setting {
  padding: 0 !important;
}
.dashboard .registered-account-data-card .account-setting h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem !important;
}
.dashboard .registered-account-data-card .account-setting p.text-muted {
  margin-bottom: 0.5rem !important;
}
.dashboard .registered-account-data-card .account-setting .row > div {
  margin-bottom: 0.25rem !important;
  line-height: 1.35;
}

/* ===== Mobile only: dashboard stacks; right column (Sell/Redeem/Buy Gold) first ===== */
@media screen and (max-width: 991px) {
  .dashboard .dashboard-column {
    display: flex;
    flex-direction: column;
  }
  .dashboard .dashboard-column__right {
    order: -1;
  }
  .dashboard .dashboard-column__left {
    order: 0;
  }
}

/* ===== Mobile: Sell Gold & Redeem Gold buttons – equal width, centered, fill row ===== */
@media screen and (max-width: 991px) {
  .dashboard .dashboard-buttons:not(.dashboard-buttons--grid-2) {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .dashboard .dashboard-buttons:not(.dashboard-buttons--grid-2) .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
}

/* ===== Portfolio page: 4 buttons in 2 rows, 2 buttons per row, equal width ===== */
.dashboard .dashboard-buttons--grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  flex-wrap: unset;
}
.dashboard .dashboard-buttons--grid-2 .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

/* ===== Mobile: Fixed dashboard header so it never hides on scroll ===== */
@media screen and (max-width: 1199px) {
  .dashboard .dashboard-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: hsl(var(--card-bg)) !important;
    border-color: hsl(var(--border-color));
    box-shadow: 0 2px 16px hsl(var(--black) / 0.08);
  }
  .dashboard .dashboard-body {
    padding-top: 80px !important;
  }
}

/* ===== Mobile bottom navigation (mobile view only) ===== */
@media screen and (max-width: 1199px) {
  .dashboard .dashboard__right {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-bottom-nav {
  display: none;
}

@media screen and (max-width: 1199px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 -4px 24px hsl(var(--black) / 0.08);
    z-index: 1000;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 8px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    text-decoration: none;
    color: hsl(var(--body-color));
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .mobile-bottom-nav__item--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
  }

  .mobile-bottom-nav__item:active:not(.mobile-bottom-nav__item--disabled) {
    transform: scale(0.96);
  }

  .mobile-bottom-nav__item.active,
  .mobile-bottom-nav__item:hover:not(.mobile-bottom-nav__item--disabled) {
    color: hsl(var(--base));
  }

  .mobile-bottom-nav__icon {
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__icon i {
    font-size: inherit;
  }

  .mobile-bottom-nav__label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
    color: hsl(var(--base));
  }
}

/* ===== More page (fullscreen sidebar on mobile) ===== */
.more-page-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

@media screen and (max-width: 1199px) {
  .more-page-fullscreen .sidebar-menu.sidebar-menu--fullscreen {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .more-page-fullscreen .mobile-bottom-nav {
    position: relative;
    flex-shrink: 0;
    bottom: auto;
    left: auto;
    right: auto;
  }
}

.more-page-fullscreen .sidebar-menu.sidebar-menu--fullscreen,
.sidebar-menu.sidebar-menu--fullscreen {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  transform: none;
  border-radius: 0;
  border-right: 0;
  background: hsl(var(--white) / 0.1);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
}

.more-page-fullscreen .sidebar-menu__close,
.sidebar-menu--fullscreen .sidebar-menu__close {
  top: 16px;
  right: 16px;
  padding: 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ===== Floating Quick Access panel (right side) ===== */
.floating-quick-access {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--border-color));
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(8px);
}

.floating-quick-access__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #FFA710;
  border: 2px solid #FFA710;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-quick-access__btn:hover {
  background: #FFA710;
  color: #fff;
  transform: scale(1.05);
}

.floating-quick-access__btn i {
  font-size: 1.9rem;
}

.floating-quick-access__btn img.floating-quick-access__img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .floating-quick-access {
    padding: 10px 6px;
    gap: 8px;
  }

  .floating-quick-access__btn {
    width: 42px;
    height: 42px;
  }

  .floating-quick-access__btn i {
    font-size: 1.5rem;
  }

  .floating-quick-access__btn img.floating-quick-access__img {
    width: 1.5rem;
    height: 1.5rem;
  }
}