body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background-color: #000000;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-bottom: 20px;

  /* Space for bottom navbar */
}

/* Header Section */
.profile-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -40px;
}

.profile-header .profile-info {
  display: flex;
  align-items: center;

}

.profile-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-header .profile-info h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.profile-header .profile-info small {
  color: #a9a9a9;
  font-size: 14px;
}

/* Balance Section */

.balance-card {
  background: linear-gradient(145deg, #222222, #1c1c1c);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

.balance-card .balance-text {
  color: #a9a9a9;
  font-size: 14px;
  margin-top: 13px;
}

.balance-card .balance-amount {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}


.balance-card .actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.balance-card .btn-custom {
  margin-right: 30px;
  flex: 1;
  margin: 10px 3px;
  background-color: #333333;
  border: none;
  border-radius: 20px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}


.balance-card .link-custom {
  position: relative;
  left: 8rem;
  top: -20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;

}

.balance-card .link-custom:hover {
  color: #f7941d;
}


.balance-card .btn-custom:hover {
  background-color: #f7941d;
  color: #000000;
}

.link-custom i {
  margin-right: 3px;
  font-size: 15px;
}

.link-custom {
  text-decoration: none;
  color: inherit;
  margin-right: 10px;
}
/* Level Badge (Top-Left Corner) */
.level-badge {
  position: absolute;
  top: 7.1rem;
  left: 30px;
  padding: 5px 10px;
  background: #25445d58;
  color: #f7f7f7;
  font-weight: 600;
  border-radius: 5px;
  font-size: 14px;
  
}

/* Refer Section */
.refer-card {
  background-color: #252525;
  border-radius: 15px;
  margin: 20px 20px;
  padding: 20px;
  text-align: center;
}

.refer-card h6 {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 20px;

}

.refer-card p {
  font-size: 17px;
  color: #d8d8d8;
  margin: 0;
}


@media (min-width: 768px) {
  .level-badge {
    position: absolute;
    top: 7.66rem;
    left: 21.75em;
    padding: 5px 10px;
    background: #26750155;
    color: #f7f7f7;
    font-weight: 600;
    border-radius: 5px;
        
  }
}

.container {
  max-width: var(--container-max-width);
  width: var(--container-width);
  padding: var(--container-padding);
  margin: 0 auto;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
  .container {
    max-width: 960px;
    margin: auto;
  }

  .balance-card .link-custom {
    position: relative;
    left: 22em;
    top: -15px;
  }
}






/* Qrcode styling */


/* Modal Container */

.modal-container {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0);
  /* Dark transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom 1.3s ease;
  z-index: 9999;
}

.wallet-modal {
  background: #000;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  max-width: 410px;
  animation: fadeIn 1s ease;
  position: relative;
  font-size: 15px;
}

/* X Close Button */
.close-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 25px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: #fd0000;
}

#walletQRCode {
  max-width: 250px;
  height: auto;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#walletAddress {
  word-break: break-all;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 26px;
  font-weight: 600;

}

.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

#walletAddress.text-muted {
  color: rgb(255, 255, 255) !important;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 26px;
  font-weight: 600;
}


/* Copy button styles */
.copy-btn {
  background: #0072b0;
  color: #ffffff;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 15px;
  border: none;
  padding: 9px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.copy-btn:hover {
  background: #0072b0;
  color: white;
}

.copy-btn.copied {
  background: #55ff00;
  color: #000000;
}



/* Add this CSS to your stylesheet */
.no-scroll {
  overflow: hidden;
}

/* Warning message styling */
.warning-message {
  color: yellow;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  background-color: #000000;
}

.warning-message::before {
  content: "\26A0";
  /* Unicode for caution icon */
  margin-right: 8px;
  font-size: 2rem;
  color: yellow;
}

.usdt-icon {
  position: absolute;
  top: 48%;
  left: 51%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 40px;
}

h4 {
  margin-bottom: 20px;

}

label {
  margin-bottom: 10px;
}

input {
  margin-bottom: 20px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}


/* Slide-in and slide-out animations */
.slide-in {
  bottom: 0;
}

.slide-out {
  bottom: -100%;
}

.toast {
  visibility: hidden;
  width: 300px;
  margin-left: -150px;
  background-color: #03b800;
  color: #ffffff;
  text-align: center;
  border-radius: 20px;
  padding: 10px 0;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 90px;
  font-size: 16px;
  font-weight: 500;
  transition: visibility 0.5s, opacity 0.5s ease-in-out;
  opacity: 0;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 600px) {
  .toast {
    font-size: 20px;
    /* Adjust font size for smaller screens */
    padding: 12px;
    /* Adjust padding for smaller screens */
    top: 40px;
    /* Adjust top position for smaller screens */
  }
}



/* General container for transaction history */

#transaction-container {
  width: 100%;
  max-width: 600px;
  margin: 50px auto;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  color: #fff;
}

/* Date label for each day of transactions */
.transaction-date {
  font-size: 14px;
  font-weight: bold;
  color: #999;
  margin: 10px 0;
  text-align: left;
}

/* Transaction row structure */
.transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

/* Arrow direction icons */
.direction-icon {
  font-size: 25px;
  color: #afaeae;
  margin-right: 10px;
}

/* Transaction details layout */
.icon-and-details {
  display: flex;
  align-items: center;
}

.transaction-details {
  font-size: 14px;
}

.transaction-time {
  font-size: 12px;
  color: #777;
}

/* Amount style */
.transaction-amount {
  font-size: 16px;
  font-weight: bold;
}

/* Income (received) and outcome (sent) color coding */
.income .transaction-amount span {
  color: #00ff00;
  /* Green for income */
}

.outcome .transaction-amount span {
  color: #ff4d4d;
  /* Red for outcome */
}

/* Additional styles for cleaner appearance */
.transaction-row:last-child {
  border-bottom: none;
}


/* Full-page modal overlay */
/* Modal Overlay */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black background */
  display: none;
  /* Initially hidden */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal Content */
.modal-content {
  background-color: #000000;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

/* Full-screen modal for mobile */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Remove rounded corners for full-screen display */
    max-width: none;
    /* Disable max width */
  }

}

/* Modal Header */
.modal-header {
  padding: 16px;
  background-color: #000000;
  /* Blue header */
  color: #ffffff;
  /* White text */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Space between elements */
  border-bottom: 2px solid #ccc;
  /* Separator line */
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

/* Close Button */
.close-modal {
  background: none;
  border: none;
  font-size: 2.6rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: -10px;
}


@media (max-width: 768px) {
  .close-modal {
    background: none;
    border: none;
    font-size: 2.6rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: -40px;
  }
}


.close-modal:hover {
  color: #ff0000;
  /* Light red on hover */
}

/* Modal Body */

.modal-body {
  padding: 20px;
  font-size: 1rem;
  color: #ffffff;
  /* Darker text color */
  line-height: 1.6;
  word-wrap: break-word;
  /* Ensure long text wraps to fit within the container */
  overflow-wrap: break-word;
  /* Break text if needed */
}

.modal-body strong {
  color: #febc06;
  /* Darker text color */
  line-height: 1.6;
  word-wrap: break-word;
  /* Ensure long text wraps to fit within the container */
  overflow-wrap: break-word;
  /* Break text if needed */
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Lodaer and spinner */
.spinner-container {
  display: none;
  /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.914);
  /* Semi-transparent black */
  z-index: 9999;
  /* Ensure it is on top of other elements */
  justify-content: center;
  align-items: center;
}

.spinner {
  font-size: 40px;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.spinner.center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;

}

.spinner .spinner-blade {
  position: absolute;
  left: 0.4629em;
  bottom: 0;
  width: 0.074em;
  height: 0.2777em;
  border-radius: 0.0555em;
  background-color: transparent;
  -webkit-transform-origin: center -0.2222em;
  -ms-transform-origin: center -0.2222em;
  transform-origin: center -0.2222em;
  animation: spinner-fade9234 1s infinite linear;
}

.spinner .spinner-blade:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
}

.spinner .spinner-blade:nth-child(2) {
  -webkit-animation-delay: 0.083s;
  animation-delay: 0.083s;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.spinner .spinner-blade:nth-child(3) {
  -webkit-animation-delay: 0.166s;
  animation-delay: 0.166s;
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}

.spinner .spinner-blade:nth-child(4) {
  -webkit-animation-delay: 0.249s;
  animation-delay: 0.249s;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.spinner .spinner-blade:nth-child(5) {
  -webkit-animation-delay: 0.332s;
  animation-delay: 0.332s;
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}

.spinner .spinner-blade:nth-child(6) {
  -webkit-animation-delay: 0.415s;
  animation-delay: 0.415s;
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}

.spinner .spinner-blade:nth-child(7) {
  -webkit-animation-delay: 0.498s;
  animation-delay: 0.498s;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.spinner .spinner-blade:nth-child(8) {
  -webkit-animation-delay: 0.581s;
  animation-delay: 0.581s;
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}

.spinner .spinner-blade:nth-child(9) {
  -webkit-animation-delay: 0.664s;
  animation-delay: 0.664s;
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}

.spinner .spinner-blade:nth-child(10) {
  -webkit-animation-delay: 0.747s;
  animation-delay: 0.747s;
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}

.spinner .spinner-blade:nth-child(11) {
  -webkit-animation-delay: 0.83s;
  animation-delay: 0.83s;
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}

.spinner .spinner-blade:nth-child(12) {
  -webkit-animation-delay: 0.913s;
  animation-delay: 0.913s;
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}

@keyframes spinner-fade9234 {
  0% {
    background-color: #ffffff;
  }

  100% {
    background-color: transparent;
  }
}


.back-button {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.back-button:hover {
  color: #ff7e7e;
}


.containers {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 0rem;
}

.content {
  width: 100%;
  max-width: 500px;
  background-color: #000000;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 1.8rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.settings-card {
  background: #2b2b2b;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  margin-bottom: 1rem;
}

.settings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.settings-header i {
  transition: transform 0.3s ease;
}

.settings-header.collapsed i {
  transform: rotate(180deg);
}

.settings-content {
  display: none;
  transition: max-height 0.3s ease;
  color: rgb(179, 179, 179);
}

.settings-content.open {
  display: block;
}

.setting-item {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: #31f100;
}

input:checked+.toggle-slider:before {
  transform: translateX(26px);
}

button {
  padding: 0.5rem 1rem;
  background: #6b46c1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background: #4a90e2;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  .settings-card {
    margin-top: 20px;
    padding: 1rem;
  }

  .settings-header {
    font-size: 1rem;
  }

  .back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
  }
}



.password-form {
  max-width: 400px;
  margin: 10px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f900;
}

.password-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.password-form div {
  position: relative;
  margin-bottom: 15px;
}

.password-form input {
  width: 350px;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}


#savePasswordButton {
  width: 30%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-right: 60px;
}

#cancelPasswordButton {
  width: 30%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #ff0000;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 70px;
}

#savePasswordButton:hover {
  background-color: #0056b3;
}

#cancelPasswordButton:hover {
  background-color: #97000f;
}


@media (max-width: 768px) {
  .password-form input {
    width: 302px;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }

  #savePasswordButton {
    width: 35%;
    margin-right: 40px;
  }

  #cancelPasswordButton {
    width: 35%;
    margin-left: 40px;
    background-color: red;
  }

}

/* General styles for the modal content */
.tradee-modal-content {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  margin: auto;
}

/* Styles for mobile screens */
@media (max-width: 767px) {
  .tradee-modal-content {
    width: 400px;
    padding: 10px;
  }

  .tradee-modal-content h4 {
    font-size: 1.2rem;
  }

  .tradee-modal-content table {
    width: 100%;
    font-size: 0.9rem;
  }
}

/* Styles for desktop screens */
@media (min-width: 768px) {
  .tradee-modal-content {
    width: 60%;
    padding: 20px;
  }

  .tradee-modal-content h4 {
    font-size: 1.5rem;
  }

  .tradee-modal-content table {
    width: 100%;
    font-size: 1rem;
  }
}


.chart-container {
  height: 100vh;
  width: 100%;
  background-color: rgb(10, 0, 0);
  /* Black background for the chart container */
  margin-top: 3rem;
}





@media screen and (min-width: 768px) {
  .trading-container1 {
    height: 100vh;
    width: 60%;
    margin: auto;
    background-color: rgb(10, 0, 0);
    /* Black background for the chart container */
    margin-top: 3rem;
  }  
}

/* General Container Styling */
.crypto-card {
  background-color: rgba(255, 255, 255, 0);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.crypto-card input {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #0105ff;
  border-radius: 5px;
  font-size: 19px;
  width: 100%;
  box-sizing: border-box;
}

.crypto-card input:focus {
  outline: none;
  border: 3px solid rgb(0, 146, 17);

}

.form-control {
  width: auto;
  padding: 20px;
}


.button-container {
  display: flex;
  justify-content: space-between;

}

#submitBtn {
  background-color: green;
  color: white;
  flex: 1;
  margin-right: 10px;

}

#sellBtn {
  background-color: red;
  color: white;
  flex: 1;
}

.button-container {
  display: flex;
  gap: 10px;
  /* Optional: Adds space between buttons */
}

.button-container .btn {
  flex: 1;
  /* Optional: Makes buttons take equal space */
}


/* History styling */
h4 {
  text-align: center;
  margin-top: 0;
}

/* Full-screen modal styles */
.history-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.history-modal.slide-in {
  animation: slideIn 0.6s forwards;
}

.history-modal.slide-out-right {
  animation: slideOutRight 0.6s backwards
}


@keyframes slideOutRight {
  from {
    right: 0;
    opacity: 1;
  }

  to {
    right: -100%;
    opacity: 0;
  }
}

.modal-contenta {
  background-color: #000000;
  margin: auto;
  padding: 20px;
  max-width: 400px;
  width: auto;
  height: 100vh;
  overflow: auto;
}

.closes-btn {
  color: #ffffff;
  float: right;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
}

.closes-btn:hover,
.closes-btn:focus {
  color: rgb(255, 42, 42);
  text-decoration: none;
}





/* Order history table styles */
.order-history-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.trade-card {
  background: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trade-header {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trading-header {
  background: linear-gradient(95deg, #37016d, #575af888);
}
.bonus-header {
  background: linear-gradient(75deg, #104e01, #3fda0288
  );
}

.trade-type {
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
}

.trade-date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
}

.trade-details {
  padding: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.108);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.profit {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.label {
  color: #888;
  font-size: 0.9rem;
}

.value {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.value.buy-order {
  color: #02a902;
  font-weight: bold;
}

.value.code {
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 1px;
}

.value.percentage {
  color: #ffd700;
  font-weight: bold;
}

.no-history {
  text-align: center;
  padding: 40px;
  color: #888;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-history-container {
      padding: 10px;
  }

  .trade-card {
      margin-bottom: 20px;
  }

  .trade-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }

  .trade-date {
      font-size: 0.9rem;
  }

  .detail-row {
      padding: 8px 0;
  }
}






@media (min-width: 768px) {
  #tradingCodeContainer .copy-icon {
    font-size: 16px;
    color: #00d0b8;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: 15rem;
  }
}


/*sweetalert styling*/
.swal2-popup {
  font-size: 1rem;
}

.swal2-confirm {
  background-color: #3085d6;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 1rem;
  cursor: pointer;
}

.swal2-confirm:hover {
  background-color: #00385d;
}



/* Transaction styles */
.transaction {
  max-width: 800px;
  margin: 20px auto;
  background: #000000;
  border-radius: 10px;
  padding: 15px;
}

.transactionDetails {
  padding: 15px;
  margin-bottom: 8px;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.773);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 3px solid #ffffff;
  font-size: 17px;

}

.transaction p {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.transaction strong {
  min-width: 150px;
  /* Ensures consistent spacing */
  color: #00e5ff;
  font-weight: 600;
}

.transaction span {
  color: #ffffff;
  font-weight: 500;
  word-wrap: break-word;
  /* Breaks long words */
  word-break: break-word;
  /* Ensures long words break */
  overflow-wrap: break-word;
  /* Prevents overflow */
}

.transaction-status {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 5px;
  text-transform: capitalize;
}

.transaction-status.completed {
  background: #007933;
  color: #ffffff;
  font-weight: 600;
}

.transaction-status.pending {
  background: #dac100;
  color: #ffffff;
  font-weight: 600;
}

.transaction-status.failed {
  background: #ff0000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}



.copied {
  color: rgb(255, 255, 255);
  cursor: default;
}



/* CSS for Report Transaction Issue Form */
#reportFormContainer {
  max-width: 500px;
  margin: 20px auto;
  padding: 30px;
  background-color: #f9f9f900;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#reportFormContainer h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 600;
}

#reportForm {
  display: flex;
  flex-direction: column;
}

#reportForm label {
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 500;
}

#reportForm input,
#reportForm select,
#reportForm textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#reportForm input:focus,
#reportForm select:focus,
#reportForm textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

#reportForm button {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#reportForm button:hover {
  background-color: #357abd;
}

#otherProblemDiv textarea {
  min-height: 100px;
  resize: vertical;
}

@media (max-width: 600px) {
  #reportFormContainer {
    width: 100%;
    padding: 20px;
  }
}

/* Add this CSS to your styles.css file or within a <style> tag in your HTML file */

/* Add this CSS to your styles.css file */

.button-container {
  display: flex;
  /* Use flexbox for centering */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  height: 50px;
  /* Full viewport height */
}

#toggleFormButton {
  background-color: #0e87ff;
  /* Blue background */
  color: rgb(255, 255, 255);
  /* White text */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  /* Padding */
  font-size: 16px;
  /* Font size */
  border-radius: 5px;
  /* Rounded corners */
  cursor: pointer;
  /* Pointer cursor on hover */
  transition: background-color 0.3s ease;
  /* Smooth transition for background color */
  font-weight: 600;
}

#toggleFormButton:hover {
  background-color: #0056b3;
  /* Darker blue on hover */
}






.containa {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.warning {
  color: #ff0000;
  /* Red color for warning text */
  margin-top: 15px;
  font-size: 13px;
  font-weight: bold;
}

#walletAddress {
  font-size: 16px;
  /* Minimum font size to prevent zoom */
  padding: 10px;
  /* Add padding for usability */
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#walletAddress:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.btn-primary {
  border: none;
  color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 1rem 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}


/* Copy Icon Styles */
#userUID {
  font-size: 16px;
  color: #ffffff;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  /* Pushes the icon to the right */
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Copy Icon Styles */
#copyIcon {
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  transition: color 0.2s ease-in-out;
}



/* Style for the referred users container */
#referredUsers {
  margin: -5px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #cccccc00;
  border-radius: 5px;
  background-color: #ffffff00;
}

/* Style for each user item */
.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* Style for the user name */
.user-name {
  font-weight: bold;
  color: #ffffff;
}

/* Style for the claim text */
.claim-text {
  cursor: pointer;
  color: #ffb908;
  text-decoration: underline;
  font-size: 18px;
  font-weight: bold;
}

/* Style for the claimed text */
.claim-text.claimed {
  color: #00ff3c;
  text-decoration: none;
  cursor: default;

}

#notification {
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}

#notification.error {
  background-color: #f8d7da;
  color: #721c24;
}

#notification.info {
  background-color: #d1ecf1;
  color: #0c5460;
}


/* Add this CSS to your stylesheet */
.btn .btn-secondary {
  background-color: #e25a0c;
  color: #ce0000;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}




.heading {
  text-align: center;
}

/* Add this CSS to your stylesheet */
.pwd-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0);
  border-radius: 10px;
}

.form-label {
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--input-focus-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.code-input {
  width: 45px;
  height: 45px;
  text-align: center;
  margin: 0 5px;
  font-size: 20px;
}

.code-input:focus {
  outline: none;
  border-color: var(--input-focus-color);
  box-shadow: 0 0 0 2px rgba(21, 255, 0, 0.25);
}

.form-text {
  font-size: 0.87rem !important;
  color: #ffb907 !important;
}

.red-border {
  border-color: red !important;
  border: 3px solid rgb(255, 0, 0) !important;
}

.red-background:focus {
  background-color: rgb(254, 145, 145) !important;
}







.dialog-container {
  display: none;
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  margin-top: -30px;
  padding-top: 4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-height: 800px;
  overflow-y: auto;
  width: 400px;
  height: 790px;
}

.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.no-scroll {
  overflow: hidden;
}

h1 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.step {
  margin-bottom: 30px;
}

.step-title {
  color: green;
  font-size: 20px;
  font-weight: bold;
}

.step p {
  font-size: 16px;
  color: #333;
}

.step-image {
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  margin-top: 10px;
}

@media (min-width: 768px) {

  .dialog-container,
  .dialog-overlay {
    display: none !important;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.welcome-screen {
  background-color: #00000000;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-in;
}

.welcome-screen.fade-out {
  animation: fadeOut 1.3s ease-out forwards;
}

.main-content {
  display: none;
  /* Initially hide the main content */
}

.welcome-content {
  text-align: center;
}

.welcome-text {
  font-size: 3em;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  animation: fadeIn 1.2s ease-in;
}

.welcome-gif {
  animation: fadeIn 1.2s ease-in;
}


/* Bottom nav styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #49494a, #2e2e2e);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.nav-item {
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.nav-item:hover {
  color: #f7ad00;
}

.nav-item span {
  display: block;
}

/* Desktop version */
@media (min-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #49494a, #2e2e2e);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    width: 63%;
    margin: 0 auto;
    /* Center horizontally */
  }

  .nav-item {
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
  }

  .nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
  }
}



/* Base styles for the modal */
.notification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

/* Modal content container */
.modal-contents {
  position: relative;
  border-radius: 20px;
  width: 90%;
  /* Adjusted for mobile */
  max-width: 600px;
  /* Maximum width for larger screens */
  height: 90%;
  /* Set to 90% of the viewport height */
  max-height: 90%;
  /* Prevent overflow on mobile */
  padding: 20px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  /* Enable scrolling if content exceeds height */
  animation: slideIn 0.3s ease-in-out;
  border: 1px solid #ffffff71;
  /* Added border */
}

/* Close button */
.close {
  position: absolute;
  top: 0;
  right: 15px;
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.close:hover {
  color: #ff0000;
  /* Change color on hover */
}

.notification-item .message {
  margin: 10px 0;
  font-size: 18px;
}

.notification-item small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #08d8ef;
  align-items: right;
  text-align: right;

}

.notification-item h4 {
  margin: 0;
  font-size: 18px;
  text-align: left;

}

/* Modal title */
.modal-contents h2 {
  margin: 0 0 30px;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

/* Notifications list container */
#notificationsList {
  max-height: calc(100% - 90px);
  /* Adjust height to fit within modal */
  overflow-y: auto;
}

/* Notification item styling */
.notification-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
  color: #fff;
  font-size: 15px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-left: 1px solid #ffffff;
  position: relative;
  /* Needed for the pseudo-element */
  border-right: 1px solid #ffffff;
  cursor: pointer;

}

.notification-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  /* Start at the center */
  transform: translateX(-50%);
  /* Center it horizontally */
  width: 90%;
  /* Half the screen width */
  height: 2px;
  /* Tiny border height */
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0) 100%);
  /* Fading effect */
  border-radius: 1px;
  /* Smooth the edges */
}


.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(77, 77, 77, 0.988);
}


/* Responsive styles */
@media (max-width: 600px) {
  .modal-contents {
    width: 100%;
    /* Full width on mobile */
    height: 100%;
    /* Full height on mobile */
    border-radius: 10px;
    /* Remove border radius for full screen */
    padding: 10px;
    /* Adjust padding for mobile */
  }

  .modal-contents h2 {
    font-size: 20px;
    /* Adjust title size for mobile */
  }

  .notification-item {
    font-size: 16px;
    /* Adjust font size for mobile */
  }
}

/* Add this CSS to your stylesheet */
.modal-open {
  overflow: hidden;
}

.notification-item.unread {
  background-color: #001831;
  color: #ffffff;
}

.notification-item.read {
  background-color: #000000;
  color: #d5d5d5;
}


#notificationCount {
  margin-left: 1px;
  font-size: 12px;
  color: #fff;
  background-color: red;
  border-radius: 50%;
  padding: 2px 5px;
}

.modal-contents .back {
  color: #aaa;
  float: left;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -4px;
}


.message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  line-height: 2;
  font-size: 18px;

}

.message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}

#deleteIcon {
  cursor: pointer;
  color: red;
  font-size: 18px;
}

/* Slide-in and Slide-out Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.support-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #ffffff;
  cursor: pointer;
}

.support-icon,
.contact-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  /* Adjust the spacing as needed */
}

.support-icon i,
.contact-item i {
  margin-right: 5px;
}




/* Mobile Styles */
@media (max-width: 768px) {
  .controls {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
  }

  .controls .btn {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .positions {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    background-color: #333;
    padding: 15px;
    border-radius: 10px;
  }

  .positions .position-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #333;
    padding: 10px;
    margin-top: 20px;
    border-radius: 10px;
  }

  .footer button {
    background-color: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.animate__fadeIn {
  animation: fadeIn 2s forwards;
}

.animate__fadeOut {
  animation: fadeOut 2s forwards;
}


@media screen and (min-width: 724px) {
  #triggerButton {
    display: none;
  }
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  margin: 100px auto;
}

.secret-container {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.secret-container input {
  width: 150px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.referred-users-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}





.trading-code {
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 0 15px 2px #08fffb;
  padding: 20px;
  margin: 15px;
  margin-bottom: 1.3rem;
}

.code-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.code-display {
  font-family: 'Roboto Mono', monospace;
  font-size: 24px;
  color: #11cf00;
  letter-spacing: 1px;
}

.copy-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-button i {
  font-size: 18px;
  color: #2dc41f;
  transition: all 1.3s ease;
}

/* Animation for icon change */
.fas {
  transition: transform 0.3s ease;
}

.fa-check {
  transform: scale(1.2);
}

.trading-code small {
  display: block;
  color: #c2c2c2;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

#codeTimer {
  margin-top: 10px;
}

/* No active code message */
.trading-code > div:first-child {
  color: #19d500;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* No active code message */
.trading-code spans {
  color: #ff2d2d;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}


.bonus-code {
  margin-top: 10px;
  margin-bottom: 3rem;
  padding: 10px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  width: 98%;
  margin-left: 1px;
}

.bonus-code .waiting-text {
  color: #888;
  font-style: italic;
}

.bonus-code .code-display {
  color: #ffdd00;
  font-size: 1.3rem;
}




.trading-type {
  color: #11cf00;
  font-weight: bold;
}

.bonus-type {
  color: #ffd700;
  font-weight: bold;
}




.buy-header {
  background: linear-gradient(45deg, #00a854, #006837);
}

.sell-header {
  background: linear-gradient(45deg, #ff4d4f, #cf1322);
}






.stat-item {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.stat-item .label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.stat-item .value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}

.form-tabs {
  display: flex;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 5px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: rgba(17, 207, 0, 0.1);
  color: #11cf00;
  border-radius: 6px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.trade-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.trade-type-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #333;
  background: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trade-type-btn.active[data-type="buy"] {
  background: #11cf00;
  border-color: #11cf00;
}

.trade-type-btn.active[data-type="sell"] {
  background: #ff0000;
  border-color: #ff0000;
}

.buy-direction {
  color: #00a854;
  font-weight: bold;
}

.sell-direction {
  color: #ff4d4f;
  font-weight: bold;
}

.buy-header {
  background: linear-gradient(45deg, #bf8900, #bf8900);
}

.sell-header {
  background: linear-gradient(45deg, #ff4d4f, #cf1322);
}


@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.trade-card {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.error-message {
  color: #ff4d4f;
  text-align: center;
  padding: 20px;
  background: rgba(255, 77, 79, 0.1);
  border-radius: 8px;
  margin: 15px;
  animation: fadeIn 0.5s ease-out forwards;
}




/* Manual Trading Panel Styles */
.manual-trading-panel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.trading-pair-selector {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
}

.price-label {
  color: #888;
  font-size: 0.9rem;
}

.price-value {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.trade-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.trade-type-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trade-type-btn[data-type="buy"] {
  background: rgba(16, 186, 104, 0.1);
  color: #10ba68;
  border: 1px solid rgba(16, 186, 104, 0.2);
}

.trade-type-btn[data-type="sell"] {
  background: rgba(255, 90, 90, 0.1);
  color: #ff5a5a;
  border: 1px solid rgba(255, 90, 90, 0.2);
}

.trade-type-btn.active[data-type="buy"] {
  background: #10ba68;
  color: #fff;
}

.trade-type-btn.active[data-type="sell"] {
  background: #ff5a5a;
  color: #fff;
}

.trade-inputs {
  display: grid;
  gap: 15px;
}

.input-groups{
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.input-groups label {
  display: block;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.input-groups input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto Mono', monospace;
}

.input-groups input:focus {
  outline: none;
  border-color: #10ba68;
}

.percentage-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.percentage-btn {
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.percentage-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.trade-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.trade-button[data-type="buy"] {
  background: #10ba68;
  color: #fff;
}

.trade-button[data-type="sell"] {
  background: #ff5a5a;
  color: #fff;
}

.trade-button:hover {
  filter: brightness(1.1);
}


/* Referral level styling */
.tradelle-level-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tradelle-level-modal-content {
  background-color: #1a1a1a;
  padding: 25px;
  border: 1px solid #333;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  color: #fff;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

.tradelle-level-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #888;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1;
}

.tradelle-level-benefits-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
}

/* Add this to handle body scroll lock */
body.modal-open {
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tradelle-level-modal-content {
    width: 95%;
    margin: 10px;
    padding: 20px;
  }
  
  .tradelle-level-card {
    width: 100%;
    max-width: 280px;
  }
}

.tradelle-level-card {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 200px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  border: 1px solid #333;
}

.tradelle-level-card:hover {
  transform: translateY(-5px);
}

.tradelle-level-card.active {
  border: 2px solid #007bff;
  background: #1e3a5f;
}

.tradelle-level-card h3 {
  color: #007bff;
  margin: 0 0 10px 0;
}

.tradelle-level-requirement {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.tradelle-level-benefit {
  background: #333;
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  font-weight: bold;
  color: #fff;
}

.tradelle-level-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #888;
    font-size: 32px; /* Increased font size for better touch target */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1000; /* Ensure it's above other content */
    padding: 10px; /* Add padding to increase touch target area */
    line-height: 1;
    width: 44px; /* Minimum touch target size */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.tradelle-level-close:hover,
.tradelle-level-close:active {
    color: #ff0000;
}

/* Additional mobile-specific adjustments */
@media (max-width: 768px) {
    .tradelle-level-close {
        right: 10px;
        top: 10px;
        font-size: 36px; /* Even larger for mobile */
        padding: 12px;
    }
    
    .tradelle-level-modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
        padding-top: 50px; /* Add space for the close button */
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    position: fixed;
    width: 100%;
    overflow-y: hidden;
}

.tradelle-level-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.tradelle-level-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #888;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tradelle-level-close:hover {
    color: #e30000;
    background-color: rgba(255, 255, 255, 0.225);
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.bottom-nav .nav-item {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version */
  -webkit-tap-highlight-color: transparent;
}