@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
body,
html {
  height: 100%; /* Đảm bảo chiếm đủ màn hình */
  overflow-y: auto; /* Kích hoạt cuộn */
}

body {
  font-family: Manrope !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.12px;
  letter-spacing: 0.02em;
  text-align: left;
  min-height: 100%;
  position: relative;
  width: 100%;
}

ul li {
  list-style-type: none;
}

.share-social-title {
  font-family: Manrope;
  font-size: 24px;
  font-weight: 700;
  line-height: 37.49px;
  color: #333;
}

.custom-modal .modal-dialog {
  width: 100%;
  max-width: 1200px;
}

.social-desc {
  font-family: Manrope;
  font-size: 16px;
  font-weight: 700;
  line-height: 21.86px;
  color: rgb(0, 16, 11);
  letter-spacing: 0.04em;
  padding-bottom: 20px;
}

.container-market {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.drop_btn {
  width: 200px;
}

@keyframes blink {
  0% {
    background-color: #b0ffc9;
  } /* Màu sáng */
  50% {
    background-color: #76e6a7;
  } /* Màu tối hơn */
  100% {
    background-color: #b0ffc9;
  } /* Quay lại màu ban đầu */
}

.claim-token-button {
  animation: blink 1s infinite alternate;
  border-radius: 8px;
}

.modal {
  z-index: 10000 !important;
}

.note {
  padding: 8px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
  transition: all 0.5s ease-in-out;
}

.buy-node {
  width: 100%;
  /* padding-top: 32px; */
  position: relative;
  z-index: 1;
}

.main-content {
  width: 100%;
  /* padding-top: 32px; */
  display: flex;
}
/* header-market styling */
.header-market {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sign-out {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: rgba(0, 104, 72, 1);
  border: 1px solid rgba(0, 104, 72, 1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 1);
  width: 80px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-content {
  width: 72%;
  padding-right: 25px;
}

.right_content {
  width: 28%;
}

.header-market img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.logo-mobile {
  display: none;
}

.connect-wallet-btn {
  background-color: #4fb8c9;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.strong {
  font-size: 13px;
  font-weight: bold;
}

.connect-wallet-btn:hover {
  background-color: #31d2f2;
}

/* Swap Demo */
.swap-demo h2 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 15px;
}

.section label {
  display: block;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.input-group-market {
  display: flex;
  align-items: center;
  background-color: #f0f4f8;
  padding: 8px;
  border-radius: 8px;
}

.notification-custom {
  color: rgb(0, 16, 11);
  font-family: Manrope;
  font-size: 16px;
  font-weight: 600;
  line-height: 21.86px;
  letter-spacing: 0.02em;
}

.on_time {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.12px;
  letter-spacing: 0.02em;
  color: rgba(125, 125, 125, 1);
}

.token-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
}

.select,
.input-market {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc !important;
  border-radius: 8px;
  font-size: 16px;
}

.input-market {
  text-align: right;
}

.input-market[disabled] {
  background-color: #e0e0e0;
  cursor: not-allowed;
}

.affiliate-fee {
  color: #6c757d;
  font-size: 14px;
  text-align: right;
  margin-bottom: 15px;
}

.review-trade-btn {
  width: 100%;
  padding: 12px;
  background-color: #4fb8c9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.review-trade-btn:hover {
  background-color: #31d2f2;
}

.leaflet-control-attribution.leaflet-control {
  display: none;
}

button.approve-btn {
  background-color: #4fb8c9;
  color: #fff;
  font-weight: bold;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.approve-btn:hover {
  background-color: #31d2f2;
}

button.approve-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.navbar {
  display: none !important;
}

.coin_app {
  overflow-x: auto;
  background: #131722;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 0px 5px 0px 0px #79f7b5;
}

.coin_app::-webkit-scrollbar {
  width: 8px;
}

.coin_app::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.coin_app::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 8px;
  border: 2px solid #f1f1f1;
}

.coin_app::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.text-copy {
  color: #feb019 !important;
  font-weight: 600;
  cursor: pointer;
  padding-left: 3px;
}

.copy-btn {
  background: transparent;
  border: none;
}

.searchInput {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.main {
  background-color: #000 !important;
  /* color: rgba(255, 255, 255, 0.7); */
}

.sidebar {
  background: #000 !important;
  color: rgba(255, 255, 255, 0.7);
  z-index: 0 !important;
}

.card-custom {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #131722 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.nav-bar-menu {
  display: flex;
  align-items: center;
}

.show-sm {
  display: none;
  cursor: pointer;
}

#ordertabthree {
  width: 100%;
}
#ordertabthree thead th {
  position: sticky;
  top: 0;
}

#ordertabthree tbody td:nth-child(1),
#ordertabthree thead th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 1;
}

#ordertabthree tbody td:nth-child(2),
#ordertabthree thead th:nth-child(2) {
  position: sticky;
  left: 66px; /* Adjust this value to the width of the first column */
  z-index: 2;
}

.table_marketplace thead th {
  position: sticky;
  top: 0;
}

.table_marketplace tbody td:nth-child(1),
.table_marketplace thead th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 1;
}

.referral_tree {
  overflow-x: auto;
  width: max-content;
}

.table_marketplace tbody td:nth-child(2),
.table_marketplace thead th:nth-child(2) {
  position: sticky;
  left: 37px; /* Adjust this value to the width of the first column */
  z-index: 2;
}

.table_marketplace tbody tr {
  /* border-color: rgb(239 242 245 / 1);
  border-bottom-width: 1px; */
  height: 69px;
}

.table_marketplace {
  width: 100%;
}

.infor_icon {
  width: 1rem;
  height: 1rem;
  margin-left: 2px;
  cursor: pointer;
}

.table_marketplace tbody tr,
.table_marketplace thead tr {
  cursor: pointer;
}

.table_marketplace thead th {
  position: sticky;
  top: 0;
}

.table_marketplace tbody td:nth-child(1),
.table_marketplace thead th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 1;
}

.table_marketplace tbody td:nth-child(2),
.table_marketplace thead th:nth-child(2) {
  position: sticky;
  left: 37px; /* Adjust this value to the width of the first column */
  z-index: 2;
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
  display: none;
}

.blinking-circle {
  animation: pulse 1s infinite;
}

@media (min-width: 1200px) {
  .table_marketplace tbody tr td,
  .table_marketplace thead tr th {
    position: static !important;
  }
  .table_marketplace tbody tr:hover {
    cursor: pointer;
  }
  #ordertabthree tbody tr:hover {
    cursor: pointer;
  }
}

/* new UI */
#cryptoon-layout {
  width: 100%;
  padding: 24px 0 !important;
  background-color: #000;
  overflow-x: hidden;
  min-height: 100%;
  height: 100%;
  padding-bottom: 150px !important;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: env(
    safe-area-inset-bottom
  ); /* Đảm bảo vùng an toàn dưới cùng */
}

.sidebar .menu-list .m-link svg {
  margin-right: 4px;
  margin-left: 12px;
}

#sidenav,
.main {
  height: calc(100vh - 48px) !important;
}

.bg-frame {
  width: 100%;
  margin-top: 48px;
  margin-bottom: 20px;
  position: relative;
}

.bg-frame img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 269px;
}

.profile {
  display: flex;
}

.custom-modal .modal-body {
  padding: 0;
  background-color: #ffffff;
}

.custom-modal .modal-header {
  border-bottom: none;
}

.custom-modal .modal-body .rule-buy-node,
.custom-modal .modal-body ol li {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  color: rgba(0, 16, 11, 1);
}

.custom-modal .modal-body ol li {
  margin-top: 10px;
}

.custom-modal .modal-body p {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(125, 125, 125, 1);
}

@media (max-width: 1200px) {
  .table_marketplace tbody td:nth-child(1),
  .table_marketplace thead th:nth-child(1) {
    background-color: #131722;
  }

  .table_marketplace tbody td:nth-child(2),
  .table_marketplace thead th:nth-child(2) {
    background-color: #131722;
  }

  .light.table_marketplace tbody td:nth-child(1),
  .light.table_marketplace thead th:nth-child(1) {
    background-color: #f3f3f3;
  }

  .light.table_marketplace tbody td:nth-child(2),
  .light.table_marketplace thead th:nth-child(2) {
    background-color: #f3f3f3;
  }
}

.m-link-custom {
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: pointer;
}

.m-link-custom h6 {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.12px;
  letter-spacing: 0.02em;
  color: rgba(125, 125, 125, 1);
  text-transform: uppercase;
}

.menu-list li:hover {
  background: #a9fed1;
  border-radius: 8px;
}

.menu-list li:hover .m-link-custom h6 {
  color: #006848;
}

.total_eph_game {
  display: flex;
  flex-direction: column;
}

.m-link-custom.active h6 {
  color: #006848;
}

.m-link-custom.active {
  color: rgba(255, 255, 255, 1) !important;
}

.logo-text {
  color: #fff !important;
}
.sidebar .brand-icon .logo-icon svg path {
  fill: #79f7b5 !important;
}

.wallet-login-success {
  padding: 0 7px !important;
  cursor: pointer !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff !important;
  padding: 15px;
  border-radius: 8px;
  width: 400px;
}

.checkin-header {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.bg_top_left {
  position: absolute;
  width: 100%;
  height: 308.72px;
  top: -218px;
  left: -428.7px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #79f7b5 0%,
    rgba(217, 217, 217, 0) 100%
  );
  backdrop-filter: blur(100px);
}

.bg_body_left {
  display: none;
}

.bg_bottom_right {
  position: absolute;
  width: 100%;
  height: 308.72px;
  bottom: -210px;
  left: 838.3px;
  gap: 0px;
  opacity: 0px;
  transform: rotate(4.14deg);

  background: radial-gradient(50% 50% at 50% 50%, #79f7b5, transparent);
  /* backdrop-filter: blur(100px); */
}

.checkin-header span {
  margin-right: 8px;
}

.checkin-header span i {
  font-size: 20px;
  color: rgb(121, 247, 181);
}

.change-password {
  cursor: pointer;
  text-decoration: underline;
}

.check-in-btn.not_checked {
  background-color: rgb(121, 247, 181) !important;
  color: #000;
  font-weight: 600;
}

.checkin-header p {
  color: #fff;
  font-size: 20px;
}

.checkin-content p {
  font-size: 14px;
  margin: 0;
  color: #fff;
  font-weight: bold;
}

.point-text {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.checkin-content button {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #3b82f6;
  color: #333;
  cursor: pointer;
}

.checkin-content button:disabled {
  background-color: #79f7b5;
  cursor: not-allowed;
}

.checkin-block {
  background: #131722;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 5px 0px 0px #79f7b5;
}

.earnings-tracker {
  background: #131722;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.earnings-tracker h3 {
  font-size: 20px;
  margin: 0;
}

.earnings-amount {
  font-size: 18px;
  font-weight: bold;
  margin: 4px 0;
}

.connection-time {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  /*! margin-top: 10px; */
  /*! padding: 0; */
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px;
  color: #fff;
  position: relative;
}

.referral-section {
  display: flex;
}

.referral-checkin {
  display: none;
}

.referral-section h4 {
  padding-top: 10px;
}

.referral-section p {
  margin: 0 10px;
  font-size: 14px;
  font-weight: bold;
}

.referral-section button,
.copy-block button {
  background-color: #79f7b5;
  color: #000;
  padding: 6px 12px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid #000;
  margin-left: 20px;
  padding: 3px 15px;
}

.copy-block {
  box-shadow: 0px 5px 0px 0px #79f7b5;
  color: #fff;
  border-color: #000;
  background: #131722;
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
  display: flex;
  border: 1px solid;
  border-radius: 20px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-left: 10px;
  align-items: center;
}

.referral-section button:hover {
  opacity: 0.8;
}

.user-section {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  margin-right: 15px;
  font-size: 1rem;
}

.dark-mode-toggle input {
  display: none;
}

.dark-mode-toggle .toggle-slider {
  width: 50px;
  height: 22px;
  background-color: #131722;
  border-radius: 10px;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  border: 1px solid #131722;
}

.dark-mode-toggle input:checked + .toggle-slider {
  background-color: #131722;
}

.dark-mode-toggle input:checked + .toggle-slider::before {
  left: 26px;
  background-color: #79f7b5;
}

.dark-mode-toggle .toggle-slider::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: left 0.2s;
}

.greeting {
  margin-right: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.header-blocks {
  display: grid;
  row-gap: 1rem;
  column-gap: 0.75rem;
  grid-template-columns: 6.8fr 3.2fr;
}

.custom_display {
  display: none;
}

.btn-switch-mode {
  display: none;
}

.btn-nav-bar span {
  color: #fff;
}

.light.btn-nav-bar span {
  color: #000;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.overlay.open {
  display: block;
}

.forgot-password {
  text-decoration: none;
  outline: transparent solid 2px;
  outline-offset: 2px;
  font-size: 1rem;
  color: #545454;
  transition: 0.3s;
  cursor: pointer;
  padding-top: 0.75rem;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.ordertabthree {
  margin: 10px;
}

#sidenav {
  padding: 0 !important;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.menu-list li {
  margin: 10px 20px;
}

.coming-soon {
  background: rgba(253, 238, 208, 1);
  height: 18px;
  padding: 2px 4px 2px 4px;
  border-radius: 4px;
  font-family: Manrope;
  font-size: 10px;
  font-weight: 500;
  line-height: 13.66px;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(252, 163, 6, 1);
}

.brand-icon img {
  width: 158px;
}

/* Center-align elements and allow wrapping for mobile */
ul.d-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Enables wrapping on small screens */
}

.row-gap-5 {
  row-gap: 10px;
}

.supportTicket {
  display: none;
}

@media only screen and (max-width: 1279px) {
  .navbar {
    display: flex !important;
  }

  .supportTicket {
    display: block;
    padding: 8px 13px;
    border-radius: 6px;
    background: rgba(169, 254, 209, 1);
    display: flex;
    align-items: center;
    font-family: Manrope;
    font-size: 14px;
    font-weight: 600;
    line-height: 19.12px;
    color: rgba(0, 104, 72, 1);
    margin-right: 20px;
    cursor: pointer;
    border: 1px solid rgba(235, 243, 241, 1);

    svg {
      width: 17px;
      height: 17px;
      margin-right: 11px;
    }
  }

  #sidenav {
    z-index: 1000 !important;
  }

  .sidebar .menu-list {
    /* overflow-y: clip !important; */
    overflow-x: auto !important;
  }
}

@media (max-width: 1024px) {
  .left-content {
    width: 65%;
  }

  .right_content {
    width: 35%;
  }
}

.wallet,
.profile {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1;
  /* padding-top: 32px; */
  position: relative;
}

.left-column-wallet,
.right-column-wallet,
.left-column-profile,
.right-column-profile {
  min-width: 300px;
  flex: 1;
}

.left-column-wallet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.right-column-wallet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 992px) {
  .referral-section button,
  .copy-block button {
    font-size: 11px;
  }

  .referral-section p {
    font-size: 11px;
  }

  .earnings-tracker {
    margin: 20px;
  }

  .referral-checkin {
    display: flex;
    align-items: center;
  }

  .header-blocks {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    display: none;
  }

  .custom_display {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .user-section,
  .title-page {
    display: none;
  }

  .btn-switch-mode {
    display: flex !important;
  }
}

.ref_code {
  padding-top: 5px;
  font-size: 12px;
  padding-left: 15px;
  color: #fff;
}

.ref_code span {
  font-weight: 600;
  padding-left: 5px;
  color: #fff;
}

/* Responsive scaling for smaller screens */
@media (max-width: 768px) {
  .referral-checkin {
    display: none;
  }

  .wallet {
    flex-direction: column;
  }

  .bg-frame {
    margin-top: 0px;
    margin-bottom: 10px;
  }

  .main-content {
    display: block;
  }

  .left-content {
    width: 100%;
    padding-right: 0;
  }

  .right_content {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .left-column-wallet,
  .right-column-wallet,
  .left-column-profile,
  .right-column-profile {
    min-width: 300px;
    flex: auto;
  }
}

@media (max-width: 576px) {
  .nav-bar-menu {
    display: none !important;
  }

  .show-sm {
    display: flex;
  }

  .social-desc {
    font-size: 14px;
  }

  .header {
    position: fixed;
    width: 100%;
    z-index: 100000;
    padding: 0 15px;
    top: 15px;
    padding-bottom: 10px;
  }

  .light .header {
    background: #fff;
  }

  .dark .header {
    background: rgba(0, 16, 11, 1);
  }

  .main {
    padding: 0 !important;
  }

  .bg_body_left {
    display: block;
    width: 550.97px;
    height: 308.72px;
    position: absolute;
    top: -273px;
    left: -194.15px;
    transform: rotate(20.58deg);
    background: radial-gradient(rgba(121, 247, 181, 1), rgba(217, 217, 217, 0));
    filter: blur(100px);
    z-index: -100;
  }
}
