body {
  margin: 0;
  padding: 0 10px;
  font-size: 16px;
  text-align: center;
  font-family: "Arial", sans-serif;
}

h1 {
  font-size: 12px;
}

.menu {
  display: flex;
}

.menu span {
  cursor: pointer;
  padding: 3px 0;
  flex-basis: auto;
  flex-grow: 1;
  text-align: center;
  font-size: 12px;
  border-radius: 5px;
  color: #fff;
  background-color: #000000;
  margin: 0.1em;
}

.menu span:hover {
  background: #173262;
}

span.menu-active {
  background: #173262;
  /* -webkit-box-shadow: 0 0 5px 2px #3796a3 inset;
  -moz-box-shadow: 0 0 5px 2px #3796a3 inset;
  box-shadow: 0 0 5px 2px #3796a3 inset; */
}

.digits {
  margin-bottom: 5px;
  display: flex;
}

.digits span {
  padding: 3px 0;
  flex-basis: auto;
  flex-grow: 1;
  text-align: center;
  font-size: 16px;
  /* border-radius: 5px; */
  color: #fff;
  border-radius: 0.2em;
  margin: 1px;
}

.digits_moved_down {
  background-color: #c03;
}

.digits_moved_up {
  background-color: #29abe2;
}

.headcol {
  margin-bottom: 15px;
  display: flex;
}

.headcol span {
  padding: 2px 0;
  flex-basis: auto;
  flex-grow: 1;
  text-align: center;
  font-size: 0px;
  /* border-radius: 5px; */
  color: #fff;
}

.Head_moved_down {
  background-color: #c03;
}

.Head_moved_up {
  background-color: #29abe2;
}

.Head_moved_mid {
  background-color: #32cd32;
}

.market-menu {
  margin-top: -2.5em;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  max-width: 400px;
  margin: auto;
  font-family: 'Arial', sans-serif;
}

/* Label Styling */
.form-label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
}

/* Select Menu Styling */
.form-select {
  font-size: 1em;
  padding: 0.4em 0.5em;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Responsiveness */
@media (max-width: 768px) {
  .market-menu {
    margin-top: 1em;
    padding: 15px;
    max-width: 100%;
  }

  .form-label {
    font-size: 1em;
  }

  .form-select {
    font-size: 0.9em;
    padding: 0.7em 0.8em;
  }
}

@media (max-width: 480px) {
  .market-menu {
    padding: 10px;
    margin-top: 0;
  }

  .form-label {
    font-size: 0.9em;
  }

  .form-select {
    font-size: 0.85em;
    padding: 0.6em 0.8em;
  }
}


.placecol {
  margin-bottom: 20px;
  display: flex;
}

.placecol span {
  padding: 2px 0;
  flex-basis: auto;
  flex-grow: 1;
  text-align: center;
  font-size: 0px;
  /* border-radius: 5px; */
  color: #fff;
}

.Place_moved_down {
  background-color: #c03;
}

.Place_moved_up {
  background-color: #29abe2;
}

.Place_moved_none {
  background-color: #fff;
}

.chartContainer {
  /* margin-bottom: 15px; */
  min-height: 120px;
  min-width: 125px;
  height: 300px;
}

.chartContainerDigit {
  min-height: 150px;
  min-width: 125px;
}

input {
  font-family: monospace;
  font-weight: bold;
  border: 1px solid #909090;
  /* border-radius: 4px; */
  outline: none;
}

#token {
  padding: 0.2em;
  border-right: transparent;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  /* width: 8em; */
}

#tokenbtn {
  color: white;
  background: black;
  position: relative;
  left: -2em;
  padding: 0.2em 0.5em;
  border-radius: 0;

}

.top-lbl {
  margin: 0;
  margin-left: 0.5em;
  font-size: 1.5em;
}

.row {
  width: 100%;
  ;
}

.column {
  float: left;
  width: 33.33%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}


.textbox-btm {
  padding-left: 0.5em;
  border-radius: 5px;
  width: 120%;
}

.risebtn {
  /* box-shadow: 0px 10px 14px -7px #3e7327; */
  background: linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
  background-color: #77b55a;
  border-radius: 4px;
  border: 1px solid #4b8f29;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial;
  font-size: 13px;
  font-weight: bold;
  width: 95%;
  text-decoration: none;
  /* text-shadow: 0px 1px 0px #5b8a3c; */
  /* height: 44px;
  margin: 2.5em 0; */
  margin: 0.3em;
}

#sellat-lbl {
  font-size: 0.8em;
  font-weight: 100;
}

.risebtn:hover {
  background: linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
  background-color: #72b352;
}

.risebtn:active {
  position: relative;
  top: 1px;
}

.fallbtn {
  /* box-shadow: 0px 10px 14px -7px #b07a41; */
  background: linear-gradient(to bottom, #c94e4e 5%, #c94e4e 100%);
  background-color: #c94e4e;
  border-radius: 4px;
  border: 1px solid #ad4949;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial;
  font-size: 13px;
  font-weight: bold;
  width: 95%;
  text-decoration: none;
  /* height: 44px;
  margin: 2.5em 0; */
  margin: 0.3em;
}

.fallbtn:hover {
  background: linear-gradient(to bottom, #c94e4e 5%, #c94e4e 100%);
  background-color: #c94e4e;
}

.fallbtn:active {
  position: relative;
  top: 1px;
}

.button-active {
  color: #000 !important;
  background-color: #ccc !important
}


/* ------------------------------------------------------------------  */

:root {
  --color-white-100: hsl(206, 5%, 98%);
  --color-white-200: hsl(206, 5%, 90%);
  --color-white-300: hsl(206, 5%, 80%);
  --color-white-400: hsl(206, 5%, 65%);
  --color-white-500: hsl(206, 5%, 50%);
  --color-black-100: hsl(213, 23%, 8%);
  --color-black-200: hsl(214, 21%, 6%);
  --color-black-300: hsl(210, 21%, 6%);
  --color-black-400: hsl(216, 22%, 4%);
  --color-black-500: hsl(220, 18%, 3%);
  --color-pink-100: hsl(326, 10%, 32%);
  --color-pink-200: hsl(336, 3%, 29%);
  --color-pink-300: hsl(330, 4%, 9%);
  --color-pink-400: hsl(328, 11%, 26%);
  --color-pink-500: hsl(336, 5%, 19%);
  --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 100%;
  box-sizing: inherit;
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  height: -webkit-fill-available;
  color: var(--color-black-500);
  background-color: var(--color-white-100);
}

a,
button {
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: none;
  box-shadow: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
}

.container {
  max-width: 75rem;
  height: auto;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  font-family: inherit;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--color-pink-500);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 100;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
  background-color: var(--color-white-100);
}

.wrapper {
  max-width: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  row-gap: 2rem;
  width: 100%;
  height: 3.5rem;
  margin: 0 auto;
}

@media screen and (max-width: 992px) {
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    box-shadow: var(--shadow-medium);
    background-color: var(--color-white-100);
    transition: all 0.5s ease;
  }

  .navbar.active {
    left: 0rem;
    opacity: 1;
    visibility: visible;
  }
}

.menu-item {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}

.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  -moz-column-gap: 0.25rem;
  column-gap: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
  text-transform: capitalize;
  color: var(--color-black-500);
  transition: all 0.3s ease-in-out;
}

.menu-link>i.bx {
  font-size: 1.35rem;
  line-height: 1.5;
  color: inherit;
}

.menu-link:hover {
  outline: none;
  color: var(--color-pink-500);
}

@media only screen and (min-width: 993px) {
  .menu-dropdown:hover>.submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 992px) {
  .menu {
    width: 100%;
    height: auto;
    padding: 1rem 0;
    display: block;
  }

  .menu-item {
    display: block;
    margin: 0 auto;
    text-align: left;
    font-size: 1.2em;
    padding: 0.5em;
  }

  .menu-link {
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
  }

  .market-menue {
    display: flex !important;
    margin-top: -4.5em !important
  }

  .btm-mrkt-list {
    margin-bottom: -0.5em !important;
    margin-top: -1em !important;
  }

  .top-lbl {
    font-size: 1.2em;
  }

  #opration-cosole {
    width: 60% !important;
  }

  /* #output {
    width: 40% !important;
  } */

  .w3-bar .w3-button {
    font-size: 0.9em;
  }

}

@media only screen and (max-width: 1200px) {
  .span-text-safe:before {
    content: "S/Sell" !important;
  }
}



@media only screen and (min-width: 992px) {
  #mobile-login {
    display: none !important;
  }
}

@media only screen and (max-width: 600px) {
  .top-lbl {
    font-size: 1em;
  }

  #opration-cosole {
    width: 100% !important;
    font-size: 0.9em !important;
  }

  #output {
    width: 100% !important;
    margin-top: 0.5em !important;
    border: 1px solid #a3a3a3;

  }

  .chartContainerDigit {
    min-height: 110px !important
  }

  .header-titl {
    font-size: 1.5em;
  }

  .chartContainer {
    height: 250px;
  }
}


.submenu {
  position: absolute;
  top: 2.35rem;
  left: -2rem;
  min-width: 13rem;
  height: auto;
  padding: 0 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  border-radius: 0 0 0.25rem 0.25rem;
  border-top: 2px solid var(--color-pink-400);
  box-shadow: var(--shadow-medium);
  background-color: var(--color-white-100);
  transition: all 0.3s ease-in-out;
}

.submenu-item {
  display: block;
  margin-top: 0.75rem;
}

.submenu-link {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
  color: var(--color-black-500);
  transition: all 0.35s ease;
}

.submenu-link:hover {
  outline: none;
  color: var(--color-pink-500);
}

@media only screen and (max-width: 992px) {
  .submenu {
    position: relative;
    top: -0.5rem;
    left: 2.5rem;
    width: 100%;
    max-height: 0;
    padding: 0px;
    border: none;
    outline: none;
    opacity: 1;
    overflow: hidden;
    visibility: visible;
    transform: translateY(0px);
    box-shadow: none;
    background: transparent;
  }
}

.burger {
  position: relative;
  display: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 1.75rem;
  height: 1rem;
  opacity: 0;
  visibility: hidden;
  background: transparent;
}

.burger-line {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 1;
  border: none;
  outline: none;
  background: var(--color-black-500);
}

.burger-line:nth-child(1) {
  top: 0px;
}

.burger-line:nth-child(2) {
  top: 0.5rem;
}

.burger-line:nth-child(3) {
  top: 1rem;
}

@media only screen and (max-width: 992px) {
  .burger {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease-in-out;
  background-color: rgba(0, 0, 0, 0.65);
}

@media only screen and (max-width: 992px) {
  .overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/* CSS */
.button-3 {
  width: 10em;
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #2c974b;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-3:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-3:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

.img-text-men {
  font-size: 1.2em;
  padding: 0.5em;
}

/* -------------------------------------------------- */


.select-mrkt {
  appearance: none;
  /* safari */
  -webkit-appearance: none;
  /* other styles for aesthetics */
  width: 60%;
  font-size: 1.15rem;
  padding: 0.675em 6em 0.675em 1em;
  background-color: #fff;
  border: 1px solid #caced1;
  border-radius: 0.25rem;
  cursor: pointer;
}

.w3-bar .w3-button {
  border-radius: 5px;
  margin: 0 0.1em;
  background: #67636a;
  padding: 0.2em 0.5em !important;
}

.w3-bar {
  padding: 0.2em 0 !important;
  background-color: #fff !important;
}

.w3-container {
  border-top: 1px solid #caced1;
}


.tbl-rw {
  padding: 0.22em 0;
  font-size: 0.9em;
}


#opration-cosole {
  text-align: left;
  width: 40%;
  height: 150px;
  max-height: 300px;
  display: inline-block;
  border: 1px solid #a3a3a3;
  border-radius: 5px;
}


.disabledbtn {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  opacity: 0.6;
}

.live-indicator-analyzing {
  height: 1.5em;
  position: initial;
  float: right;
  margin-left: 1em;
  display: none;
  margin-right: 0.2em;
}

.notyf__toast--dismissible .notyf__wrapper {
  font-size: 0.8em;
  padding: 0.5em;
  padding-left: 0;
}

.setting-titl {
  color: #3a3a3a;
  font-weight: 550;
  padding-left: 1em;
  float: left;
}

.notiy-icon {
  color: #fff !important;
  font-size: 1.5em !important;
}

.span-text-safe {
  vertical-align: top;
}

.span-text-safe:before {
  content: "Safe Sell";
}



.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
}

.switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  top: 1px;
  left: 1px;
  transition: all 0.3s;
}

.checkbox:checked+.switch::after {
  left: 20px;
}

.checkbox:checked+.switch {
  background-color: #73b354;
}

.checkbox {
  display: none;
}

#latestTick {
  margin-top: 0.2em;
  font-size: 0.85em;
  color: #666;
}

/* Compact Signal Styles */

/* Signal Container */
#signal-container {
  position: absolute;
  /* Changed from absolute for better centering */
  left: 50%;
  /* Changed from 43% */
  transform: translateX(-50%);
  /* Added to center horizontally */
  text-align: center;
  background-color: white;
  padding: 0.8em 0 0;
  z-index: 99;
}

/* Signal Content Layout - Horizontal */
.signal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  flex-direction: row;
}

/* Signal Icon */
.signal-icon {
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

/* Signal Text */
.signal-text {
  font-weight: bold;
  font-size: 0.9em;
}

/* Signal Type */
.signal-type {
  font-size: 0.7em;
  font-weight: bold;
  opacity: 0.8;
  margin-left: 4px;
}

/* Strength Bar */
.strength-bar-container {
  width: 60px;
  background: rgba(0, 0, 0, 0.1);
  height: 3px;
  border-radius: 2px;
  margin-left: 6px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  transition: width 0.5s ease;
}

/* Signal Classes with Compact Styling */
.strong-buy,
.medium-buy,
.strong-sell,
.medium-sell,
.neutral,
.analyzing {
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

/* Buy Signals */
.strong-buy {
  border: 1px solid rgb(38, 189, 38);
  background-color: rgba(0, 100, 0, 0.05);
}

.strong-buy .strength-bar {
  background-color: rgb(38, 189, 38);
  ;
}

.medium-buy {
  border: 1px solid rgb(109, 219, 109);
  background-color: rgba(0, 128, 0, 0.05);
}

.medium-buy .strength-bar {
  background-color: rgb(109, 219, 109);
  ;
}

/* Sell Signals */
.strong-sell {
  border: 1px solid darkred;
  background-color: rgba(139, 0, 0, 0.05);
}

.strong-sell .strength-bar {
  background-color: darkred;
}

.medium-sell {
  border: 1px solid rgb(218, 46, 40);
  background-color: rgba(255, 140, 0, 0.05);
}

.medium-sell .strength-bar {
  background-color: rgb(218, 46, 40);
  ;
}

/* Neutral State */
.neutral {
  border: 1px solid #bbbbbb;
  background-color: transparent
}

.neutral .strength-bar {
  background-color: #666;
}

/* Analyzing State */
.analyzing {
  border: 1px solid #2196F3;
  background-color: rgba(33, 150, 243, 0.05);
  animation: pulse 1.5s infinite;
}

/* Bottom Details Container */
.bottom-data-con {
  border: #caced1 1px solid;
  border-radius: 4px;
  margin: 0.5em 0;
  padding: 6px;
  font-size: 0.85em;
  background-color: #f8f9fa;
}

#trend-details {
  color: #666;
  font-weight: 500;
  font-size: 0.85em;
}

#latestTick {
  color: #444;
  font-weight: 500;
  font-size: 0.85em;
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  #signal-container {
    min-width: auto;
    font-size: 0.8em;
  }

  .signal-content {
    padding: 0;
    gap: 4px;
  }

  .signal-text {
    font-size: 0.85em;
  }

  .strength-bar-container {
    width: 40px;
  }
}



.trading-section {
  display: flex;
  gap: 15px;
  margin: 15px auto;

}

.trade-buttons-container {
  flex: 0 0 400px;
  /* Fixed width for controls */
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 2;
  /* Move to right side */
}

.trade-control {
  width: 100%;
  height: 40px;
  padding: 8px;
  border: 1px solid #caced1;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

.trade-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trade-button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  color: white;
  border: none;
}

.buy-button {
  background: #77b55a;
}

.buy-button:hover {
  background: #72b352;
}

.sell-button {
  background: #c94e4e;
}

.sell-button:hover {
  background: #c03;
}

.msgoutput {
  flex: 1;
  height: 144px;
  /* Match height of trade controls + buttons */
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #caced1;
  border-radius: 4px;
  font-size: 0.85em;
  text-align: left;
  background: white;
  order: 1;
  /* Move to left side */
}

/* Mobile styles */
@media (max-width: 768px) {
  .trading-section {
    flex-direction: column;
    gap: 0;
  }

  .trade-buttons-container,
  .msgoutput {
    max-height: 144px;
    width: 100%;
    order: 0;
    /* Reset order on mobile */
  }

  #btm-tool {
    margin-top: 2.5em !important;
  }


}

#btm-tool{
  margin-top: 5.5em;
  display: none;
}

.chart-container {
  /* margin-bottom: 15px; */
  min-height: 120px;
  min-width: 125px;
  height: 300px;
  position: relative;
}

/* Loading Spinner Styles */
.data-spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -2.5em;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

.data-spinner-overlay.active {
  visibility: visible;
  opacity: 1;
}

.data-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2ea44f;
  border-radius: 50%;
  animation: spinData 1s linear infinite;
}

@keyframes spinData {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ========================================= */
/* COMPLETE FOOTER CSS - COPY ALL OF THIS */
/* ========================================= */


/* Main footer styles */
.site-footer-compact {
  background: white;
  border-top: 1px solid #ddd;
  padding: 15px 20px 10px 20px;
  font-size: 11px;
  color: #333;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
}

.footer-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-label {
  color: #007acc;
  font-weight: bold;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-group a {
  color: #333;
  text-decoration: none;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-group a:hover {
  color: #007acc;
  background: rgba(0, 122, 204, 0.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 10px;
  color: #666;
}

.footer-bottom a {
  color: #007acc;
  text-decoration: none;
  font-size: 10px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: #ccc;
  font-size: 10px;
}

/* Mobile tool links for SEO */
.mobile-tool-links {
  display: none;
  font-size: 7px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.mobile-tool-links a {
  color: #007acc;
  text-decoration: none;
  margin: 0 2px;
  font-size: 7px;
}

.mobile-tool-links a:hover {
  text-decoration: underline;
}

/* Smart positioning for short screens */
@media (min-width: 769px) and (max-height: 850px) {
  .site-footer-compact {
    position: relative !important;
  }

  body {
    padding-bottom: 10px !important;
  }


}

/* Tablet responsive */
@media (max-width: 768px) {
  .site-footer-compact {
    padding: 4px 5px 3px 5px;
    font-size: 8px;
    border-top: 1px solid #ddd;
  }

  .footer-links {
    display: none;
  }

  .mobile-tool-links {
    display: block;
  }

  .footer-bottom {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
    font-size: 7px;
    gap: 4px;
  }

  .footer-bottom a {
    font-size: 7px;
  }

  .footer-divider {
    font-size: 7px;
  }

  #btm-tool {
    margin-bottom: 3em;
  }

}

/* Phone responsive */
@media (max-width: 480px) {
  .site-footer-compact {
    padding: 3px 5px 2px 5px;
    font-size: 7px;
  }

  .mobile-tool-links {
    font-size: 6px;
    margin-bottom: 2px;
  }

  .mobile-tool-links a {
    font-size: 6px;
    margin: 0 1px;
  }

  .footer-bottom {
    font-size: 6px;
    gap: 2px;
  }

  .footer-bottom a {
    font-size: 6px;
  }

  .footer-divider {
    font-size: 6px;
  }

  #btm-tool {
    margin-bottom: 13em;
  }

}

/* ============================================================= */
/* AUTOPILOT — Automated Trading Bot (new Deriv Automation API)  */
/* ============================================================= */

.ap-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px 2em;
}

/* Logo — bigger, matching the LDP theme */
.header-titl {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-black-500);
  margin: 0;
}
@media only screen and (max-width: 600px) {
  .header-titl { font-size: 1.3rem; }
}

/* Account / balance / P-L row — lighter weight (h3 default is too bold in mono) */
.top-lbl { font-weight: 500; }
.ap-acct-row {
  padding: 1.4em 0 1em;
  font-family: monospace;
}

/* Notice banner (digits-not-supported / info) */
.ap-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eef6ff;
  border: 1px solid #cfe4fb;
  color: #1565c0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8em;
  text-align: left;
  margin: 0.4em 0 0.8em;
  line-height: 1.4;
}
.ap-notice b { color: #0d47a1; }

/* Stacked full-width layout: Setup panel on top (100% wide), monitor below */
.ap-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ap-panel-config { order: 1; }
.ap-panel-monitor { order: 2; }

/* Card / panel */
.ap-panel {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
  text-align: left;
}
.ap-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1em;
  border-bottom: 1px solid #eceff1;
  background: #fafbfc;
}
.ap-panel-head .ap-title {
  flex: 1;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #37474f;
}
.ap-panel-head i { color: #90a4ae; }
.ap-panel-body { padding: 0.85em 1em 1em; }

/* Field rows */
.ap-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45em 0;
  border-bottom: 1px dashed #eceff1;
}
.ap-field:last-child { border-bottom: none; }
.ap-field-label {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ap-field-label .lbl {
  font-weight: 600;
  color: #37474f;
  font-size: 0.9em;
  line-height: 1.2;
}
.ap-field-label .hint {
  font-size: 0.72em;
  color: #90a4ae;
  line-height: 1.25;
  margin-top: 1px;
}
.ap-input,
.ap-select {
  width: 140px;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: inherit;
  background: #fff;
  color: #263238;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  flex-shrink: 0;
}
.ap-input:focus,
.ap-select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
.ap-input:disabled,
.ap-select:disabled { background: #f3f5f7; color: #90a4ae; cursor: not-allowed; }

.ap-full { width: 100%; }

/* ---- Full-width flex form (label-above-input cells) ----
   Cells grow to fill every row completely (no trailing gaps) and wrap down
   to a single column on phones. */
.ap-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
}
.ap-form .span-2 { flex: 1 1 100%; }

.ap-cell {
  flex: 1 1 175px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-lbl {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8em;
  font-weight: 600;
  color: #37474f;
  line-height: 1.2;
}
.ap-sub {
  font-size: 0.82em;
  font-weight: 400;
  color: #9aa7b1;
}
.ap-ctl {
  width: 100%;
  height: 40px;
  padding: 7px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 0.92em;
  font-family: inherit;
  background: #fff;
  color: #263238;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ap-ctl:focus { border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
.ap-ctl:disabled { background: #f3f5f7; color: #90a4ae; cursor: not-allowed; }

.ap-inline { display: flex; gap: 6px; }
.ap-inline .ap-ctl { flex: 1 1 auto; min-width: 0; }
.ap-inline .ap-unit { flex: 0 0 68px; width: 68px; padding-left: 6px; padding-right: 4px; }

/* Rise / Fall segmented control */
.ap-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}
.ap-seg-btn {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95em;
  color: #607d8b;
  background: #f4f6f8;
  border: 2px solid transparent;
  transition: all .15s;
}
.ap-seg-btn .arw { font-size: 1.1em; line-height: 1; }
.ap-seg-btn.rise.active { background: #eaf6e3; color: #2e7d32; border-color: #77b55a; }
.ap-seg-btn.fall.active { background: #fdeaea; color: #c62828; border-color: #c94e4e; }

/* Trade-type selector (Deriv-style pills) */
.ap-tradetypes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ap-tradetypes::-webkit-scrollbar { display: none; }
.ap-tt {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 0.85em;
  font-weight: 600;
  color: #5b6b78;
  background: #f4f6f8;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .15s;
}
.ap-tt:hover { background: #eceff1; color: #37474f; }
.ap-tt.active {
  background: #fff;
  color: #14171a;
  border: 1.5px solid #14171a;
  font-weight: 700;
  padding: 7px 15px;
}
.ap-tt .tt-hot { font-size: 0.95em; line-height: 1; }

/* Beta / availability note */
.ap-beta-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff8e1;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.74em;
  line-height: 1.4;
  margin-top: 8px;
}
.ap-beta-note b { color: #6b4600; }

/* Zero-balance warning */
.ap-warn-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fdeaea;
  border: 1px solid #f3b7b7;
  color: #a12626;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82em;
  line-height: 1.4;
  margin-bottom: 0.8em;
}
.ap-warn-note b { color: #7f1616; }

/* Strategy params (dynamic) — children flow directly in the parent form grid */
#ap-strategy-params { display: contents; }
#ap-strategy-params:empty { display: none; }

/* Section divider label (spans the full form width) */
.ap-subhead {
  grid-column: 1 / -1;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #90a4ae;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid #eef1f3;
}

/* Control buttons — own full-width row */
.ap-controls {
  flex: 1 1 100%;
  display: grid;
  gap: 8px;
  margin-top: 0.3em;
}
.ap-btn {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95em;
  color: #fff;
  border: none;
  transition: filter .15s, transform .05s;
}
.ap-btn:active { transform: translateY(1px); }
.ap-btn i { font-size: 1.05em; }
.ap-btn-start { background: linear-gradient(to bottom, #4caf50, #43a047); }
.ap-btn-start:hover { filter: brightness(1.05); }
.ap-btn-stop  { background: linear-gradient(to bottom, #ef5350, #e53935); }
.ap-btn-stop:hover { filter: brightness(1.05); }
.ap-btn-ghost {
  background: #fff;
  color: #455a64;
  border: 1px solid #cfd8dc;
}
.ap-btn-ghost:hover { background: #f5f7f9; }
.ap-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Monitor panel ---- */
.ap-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.9em 1em;
  border-bottom: 1px solid #eceff1;
}
.ap-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: #eceff1;
  color: #607d8b;
}
.ap-status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.ap-status-badge.running { background: #e8f5e9; color: #2e7d32; }
.ap-status-badge.running .dot { animation: apPulse 1.2s infinite; }
.ap-status-badge.paused  { background: #fff8e1; color: #e65100; }
.ap-status-badge.stopped,
.ap-status-badge.completed { background: #eceff1; color: #607d8b; }
.ap-status-badge.error { background: #fce4ec; color: #c62828; }
@keyframes apPulse { 0%{opacity:1} 50%{opacity:.35} 100%{opacity:1} }

.ap-run-id {
  flex: 1;
  font-size: 0.72em;
  color: #b0bec5;
  font-family: monospace;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stat tiles */
.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #eceff1;
  border-bottom: 1px solid #eceff1;
}
.ap-stat {
  background: #fff;
  padding: 0.7em 0.5em;
  text-align: center;
}
.ap-stat .val {
  font-size: 1.25em;
  font-weight: 700;
  color: #263238;
  line-height: 1.1;
}
.ap-stat .val.pos { color: #2e7d32; }
.ap-stat .val.neg { color: #c62828; }
.ap-stat .cap {
  font-size: 0.66em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #90a4ae;
  margin-top: 3px;
}

/* ---- Monitor tabs: Contracts / Logs ---- */
.ap-mon-tabs {
  display: flex;
  border-bottom: 1px solid #eceff1;
}
.ap-mon-tab {
  flex: 1;
  padding: 0.6em 0;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #90a4ae;
  background: #fafbfc;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ap-mon-tab:hover { color: #455a64; background: #f3f5f7; }
.ap-mon-tab.active {
  color: #1565c0;
  background: #fff;
  border-bottom: 2px solid #1976d2;
}
.ap-mon-view { display: block; }

/* Contracts feed */
.ap-feed {
  max-height: 320px;
  min-height: 320px;
  overflow-y: auto;
  padding: 0.6em 0.6em;
}
.ap-feed-empty {
  text-align: center;
  color: #b0bec5;
  font-size: 0.85em;
  padding: 2.2em 1em;
}
.ap-contract {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  margin-top: 6px;
  font-size: 0.82em;
  background: #f8f9fa;
  border-left: 3px solid #cfd8dc;
}
.ap-contract:first-child { margin-top: 0; }
.ap-contract.won  { background: #f1f8f2; border-left-color: #4caf50; }
.ap-contract.lost { background: #fdf1f1; border-left-color: #e53935; }
.ap-contract.ap-in { animation: apContractIn 0.35s ease; }
@keyframes apContractIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ap-contract .c-type { font-weight: 700; color: #455a64; }
.ap-contract .c-stake { color: #78909c; }
.ap-contract .c-pl { margin-left: auto; font-weight: 700; }
.ap-contract .c-pl.pos { color: #2e7d32; }
.ap-contract .c-pl.neg { color: #c62828; }

/* Log */
.ap-log {
  height: 320px;
  overflow-y: auto;
  padding: 8px 10px;
  font-size: 0.78em;
  text-align: left;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #546e7a;
  background: #fbfcfd;
}
.ap-log div { padding: 1px 0; }

/* Responsive — scale the whole UI down as screens get smaller */
@media (max-width: 768px) {
  .ap-notice { font-size: 0.74em; padding: 7px 10px; }
  .ap-tradetypes { gap: 7px; padding-bottom: 10px; }
  .ap-tt { padding: 6px 13px; font-size: 0.8em; }
  .ap-tt.active { padding: 5px 12px; }
  .ap-panel-head { padding: 0.55em 0.85em; }
  .ap-panel-body { padding: 0.7em 0.85em 0.85em; }
  .ap-form { gap: 10px 12px; }
  .ap-lbl { font-size: 0.76em; }
  .ap-ctl { height: 38px; font-size: 0.88em; }
  .ap-seg-btn { height: 40px; font-size: 0.88em; }
  .ap-btn { height: 42px; font-size: 0.88em; }
}

@media (max-width: 600px) {
  /* Account / Balance / Session P-L — one compact centered line of small
     rounded-border pills instead of 3 cramped floated columns */
  .ap-acct-row { padding: 0.55em 0 0.45em; }
  .row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
  .column { float: none; width: auto; flex: 0 0 auto; min-width: 0; }
  .top-lbl {
    font-size: 0.62em;
    margin-left: 0;
    white-space: nowrap;
    padding: 3px 8px;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    background: #fafbfc;
  }
  .ap-notice { font-size: 0.7em; padding: 6px 9px; gap: 6px; }
  .ap-tradetypes { gap: 6px; padding-bottom: 9px; }
  .ap-tt { padding: 5px 11px; font-size: 0.75em; gap: 4px; }
  .ap-tt.active { padding: 4px 10px; }
  .ap-panel-head .ap-title { font-size: 0.74em; }
  .ap-panel-body { padding: 0.6em 0.7em 0.75em; }
  .ap-form { gap: 9px 10px; }
  .ap-cell { min-width: 130px; }
  .ap-lbl { font-size: 0.72em; }
  .ap-sub { font-size: 0.78em; }
  .ap-ctl { height: 36px; font-size: 0.84em; padding: 6px 8px; }
  .ap-inline .ap-unit { flex-basis: 58px; width: 58px; }
  .ap-seg-btn { height: 38px; font-size: 0.84em; }
  .ap-seg-btn .arw { font-size: 1em; }
  .ap-btn { height: 40px; font-size: 0.85em; }
  .ap-beta-note { font-size: 0.7em; padding: 6px 9px; }
  .ap-warn-note { font-size: 0.72em; padding: 7px 9px; }
  .ap-status-bar { padding: 0.6em 0.7em; }
  .ap-status-badge { font-size: 0.74em; padding: 4px 10px; }
  .ap-stat { padding: 0.55em 0.3em; }
  .ap-stat .val { font-size: 0.98em; }
  .ap-stat .cap { font-size: 0.6em; }
  .ap-mon-tab { font-size: 0.7em; padding: 0.5em 0; }
  .ap-feed { padding: 0.5em; max-height: 220px; min-height: 220px; }
  .ap-contract { font-size: 0.78em; padding: 6px 8px; }
  .ap-log { font-size: 0.72em; height: 220px; }
}

@media (max-width: 400px) {
  .top-lbl { font-size: 0.56em; }
  .ap-cell { min-width: 118px; }
  .ap-ctl { height: 34px; font-size: 0.82em; }
  .ap-seg-btn { height: 36px; }
}

/* Push content below fixed header, above fixed footer */
.ap-page {
  padding-top: 4.2em;
  padding-bottom: 3.5em;
}
@media (max-width: 768px) {
  .ap-page { padding-bottom: 4.5em; }
}

/* ===== Header: LDP Pro highlight (matches LDP Analyzer) ===== */
.ldp-pro-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  animation: glow-pulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
}
.ldp-pro-highlight:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-1px);
  color: #fff !important;
}
.ldp-pro-highlight i { color: #ffd700 !important; }
@keyframes glow-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
@media only screen and (max-width: 992px) {
  .ldp-pro-highlight { padding: 0.5rem 1rem; margin: 0.5rem 0; }
}

/* ===== FAQ dialog ===== */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item {
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}
.faq-item:hover { border-color: rgba(102, 126, 234, 0.3); }
.faq-item.active {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}
.faq-question {
  padding: .6rem .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fafbfc;
  transition: all 0.3s ease;
  user-select: none;
}
.faq-question:hover { background: #f0f4f8; }
.faq-item.active .faq-question {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.faq-icon {
  font-size: 1.25rem;
  font-weight: bold;
  color: #667eea;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon { background: white; color: #667eea; transform: rotate(45deg); }
.faq-text { font-weight: 600; font-size: 0.95rem; color: #2c3e50; flex: 1; }
.faq-item.active .faq-text { color: white; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer { max-height: 320px; }
.faq-answer p {
  padding: 0.9rem 1.2rem 1.2rem;
  margin: 0;
  color: #5a6c7d;
  line-height: 1.7;
  font-size: 0.9rem;
}