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

.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 {
    flex: 0 0 30% !important;
  }

  #output {
    flex: 0 0 70% !important;
  }

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

}


.msgoutput {
  font-size: 0.85em;
  order: 1;
  flex: 0 0 70%;
  padding: 10px;
  overflow-y: scroll;
  min-height: 130px;
  max-height: 350px;
  text-align: left;
  border: 1px solid #a3a3a3;
  border-radius: 5px 0 0 5px;
  border-right: none;
}

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

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

  /* Mobile: settings on top, log below */
  #btm-tool {
    flex-wrap: wrap;
  }

  #opration-cosole {
    order: 1 !important;
    flex: 0 0 100% !important;
    font-size: 0.9em !important;
    border-radius: 5px 5px 0 0 !important;
    border-left: 1px solid #a3a3a3 !important;
    border-bottom: none !important;
  }

  #output {
    order: 2 !important;
    flex: 0 0 100% !important;
    border-radius: 0 0 5px 5px !important;
    border-right: 1px solid #a3a3a3 !important;
  }

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


#btm-tool {
  display: flex;
  align-items: stretch;
}

/* SETTINGS: compact right panel */
#opration-cosole {
  order: 2;
  text-align: left;
  flex: 0 0 30%;
  height: auto;
  overflow: visible;
  border: 1px solid #a3a3a3;
  border-radius: 0 5px 5px 0;
  border-left: none;
}

/* ---- Ops header ---- */
.ops-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #ddd;
  padding: 0.3em 0.55em;
  border-radius: 0 5px 0 0;
}
.ops-title {
  flex: 1;
  color: #333;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Shared always-visible settings ---- */
.ops-shared {
  padding: 0.3em 0.55em 0.1em;
  border-bottom: 2px solid #e0e0e0;
}

/* ---- Tab navigation ---- */
.trade-tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
}
.trade-tab {
  flex: 1;
  padding: 0.35em 0;
  font-size: 0.78em;
  font-weight: 700;
  background: #f5f5f5;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #888;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
}
.trade-tab.active {
  background: #fff;
  color: #1565c0;
  border-bottom: 2px solid #1565c0;
}
.trade-tab:first-child {
  border-right: 1px solid #ddd;
}

/* ---- Tab panels ---- */
.tab-panel {
  padding: 0.35em 0.55em 0.3em;
}

/* ---- Insight panel ---- */
.insight-panel {
  margin-bottom: 0.3em;
}
.insight-row {
  display: flex;
  align-items: center;
  padding: 0.18em 0;
  font-size: 0.8em;
  border-bottom: 1px dotted #f0f0f0;
}
.insight-label {
  flex: 1;
  color: #555;
  font-weight: 600;
}
.insight-badge {
  font-size: 0.82em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: #eee;
  color: #666;
  white-space: nowrap;
}
.insight-value {
  font-size: 0.9em;
  font-weight: 700;
  color: #333;
}
.badge-buy   { background: #e8f5e9; color: #2e7d32; }
.badge-hold  { background: #f5f5f5; color: #888; }
.badge-good  { background: #e3f2fd; color: #1565c0; }
.badge-bad   { background: #fce4ec; color: #c62828; }
.badge-warn  { background: #fff8e1; color: #e65100; }

/* ---- Readiness dots ---- */
.readiness-dots {
  display: flex;
  gap: 3px;
}
.r-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
}
.r-dot.active {
  background: #1976d2;
}

/* ---- Unified action buttons (Buy Now + Sell) — same container = perfect alignment ---- */
.ops-actions {
  padding: 0 0.55em 0.4em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.ops-actions .manualbtn,
.ops-actions .fallbtn {
  width: 100% !important;
  margin: 0 !important;
}
.ops-sell-btn {
  background: #15891a !important;
  border-color: #184c1a !important;
}

/* Settings inner layout */
#Auto {
  padding: 0;
}

.safe-sell-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.82em;
  padding-bottom: 0.3em;
  margin-bottom: 0.2em;
  border-bottom: 1px dotted #ccc;
}

.span-text-safe {
  flex: 1;
}

.setting-row {
  display: flex;
  align-items: center;
  padding: 0.18em 0;
  font-size: 0.82em;
  border-bottom: 1px dotted #f0f0f0;
}

.setting-label-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 0.3em;
}

.setting-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  line-height: 1.3;
}

.setting-hint {
  font-size: 0.78em;
  color: #999;
  line-height: 1.2;
  white-space: normal;
}

.setting-input {
  width: 100px;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid #bbb;
  outline: none;
  text-align: center;
  flex-shrink: 0;
}

.settings-btns {
  margin-top: 0.2em;
  display: flex;
  flex-direction: column;
}

#tab-manual .settings-btns {
  padding-bottom: 0.1em;
}

.settings-btns .risebtn,
.settings-btns .fallbtn,
.settings-btns .manualbtn {
  width: 100%;
  margin: 0.15em 0;
}

.manualbtn {
  background: linear-gradient(to bottom, #1976d2 5%, #1565c0 100%);
  background-color: #1976d2;
  border-radius: 4px;
  border: 1px solid #0d47a1;
  color: #fff;
  cursor: pointer;
  font-size: 0.8em;
  padding: 5px 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.manualbtn:hover {
  background: linear-gradient(to bottom, #1565c0 5%, #1976d2 100%);
  background-color: #1565c0;
}

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


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




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