* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  color: var(--white);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-15);
  min-height: 100vh;
}

button {
  outline: none;
}

body.popup-open {
  overflow: hidden;
}

h1 {
  font-size: var(--s22);
  font-weight: var(--w6);
}

h2 {
  font-size: var(--s20);
  font-weight: var(--w6);
}

h3 {
  font-size: var(--s18);
  font-weight: var(--w6);
}

a {
  text-decoration: none;
}

.hidden {
  display: none;
}

.na {
  font-size: var(--s10);
  color: var(--gray);
  opacity: 0.5;
}

/* Color Hlper */
.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.gray {
  color: var(--gray);
}

.gray-secondary {
  color: var(--gray-light);
}

.white {
  color: var(--white);
}

.btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wrapper-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Global Chekbox */
.ios-checkbox {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.ios-checkbox input {
  display: none;
}

.checkbox-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  transition: all 0.2s ease;
}

.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: var(--white);
  transform: scale(0);
  transition: all 0.2s ease;
}

.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
  stroke: var(--green);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
  background: var(--bg-green);
  border-color: var(--green);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}

.ios-checkbox input:checked + .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}

.ios-checkbox:hover .checkbox-wrapper {
  transform: scale(1.05);
}

.ios-checkbox:active .checkbox-wrapper {
  transform: scale(0.95);
}

/* ────── Navbar ────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 60px;
  background: var(--bg-20);
  border-bottom: 1px solid var(--bg-40);
  z-index: 1000;
  width: 100%;
}

.box-menu-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.box-menu-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 38px;
  transition: all 0.2s;
  cursor: pointer;
}

.box-logo {
  display: flex;
  gap: 10px;
}

.box-menu-in.active,
.box-menu-in:hover {
  background: var(--bg-white);
}

.box-menu-in.active span,
.box-menu-in:hover span {
  color: var(--white);
}

.box-menu-in.active svg,
.box-menu-in:hover svg {
  fill: var(--white);
}

.box-menu-in svg {
  fill: var(--gray);
}

.box-menu-in span {
  font-size: var(--s14);
  font-weight: var(--w4);
  color: var(--gray);
}

.title-navbar {
  font-family: "Nexion", sans-serif;
  font-size: var(--s20);
  font-weight: var(--w5);
}

.logo-navbar {
  height: 25px;
  width: 25px;
}

.icon-account {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 1px solid var(--bg-70);
  cursor: pointer;
}

/* ────── Jurnaling Secsion ────── */

.jurnaling {
  position: relative;
  margin: 80px 40px 40px;
}

/* ────── Stats Jurnal ────── */
.wrapper-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 25px;
}

.box-stats {
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  border: 1px solid var(--bg-40);
}

.box-stats-normal {
  background: var(--bg-20);
}

.box-stats-green {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

.box-stats-red {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(244, 63, 94, 0.05) 100%
  );
}

.bx-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-front {
  font-size: var(--s12);
  color: var(--gray);
  font-weight: var(--w5);
}

.icon-front-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid rgba(64, 64, 64, 0.2);
}

.icon-front-box-normal {
  background: var(--bg-40);
}

.icon-front-box-green {
  background: rgba(16, 185, 129, 0.05);
}

.icon-front-box-red {
  background: rgba(244, 63, 94, 0.05);
}

.icon-green {
  fill: var(--green);
}

.icon-red {
  fill: var(--red);
}

.mid-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 130px;
}

.bx-content {
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mg {
  position: relative;
  padding: 0 45px 0 10px;
}

.mg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(116, 116, 116, 0.2);
  border-radius: 2px;
}

.title-mid-content {
  font-size: var(--s12);
  color: var(--gray-dark);
  font-weight: var(--w4);
}

.pairs-mid-content {
  font-size: var(--s22);
  font-weight: var(--w5);
}

.value-mid-content {
  font-size: var(--s12);
  color: var(--gray);
  font-weight: var(--w4);
}

.text-mid-content {
  font-size: var(--s24);
  font-weight: var(--w6);
}

.box-in-mid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.pairs-mid-content {
  font-size: var(--s24);
  font-weight: var(--w6);
}

.date-mid-content {
  font-size: var(--s18);
  font-weight: var(--w5);
  color: var(--gray);
}

.subtitle-front {
  font-size: var(--s14);
  color: var(--white);
  font-weight: var(--w4);
  margin-bottom: 10px;
}

.ps {
  display: flex;
  gap: 6px;
}

.footer-font {
  font-size: var(--s12);
  color: var(--gray-dark);
  font-weight: var(--w4);
}

.sub-profite {
  color: var(--green);
}

.sub-lose {
  color: var(--red);
}

.sket {
  color: var(--gray);
}

/* ────── Container Tabel ────── */
.subcontainer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 15px;
}

.box-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-jurnal {
  padding: 8px 25px;
}

#btnDeleteSelect {
  display: none;
}

#btnDeleteSelect svg {
  fill: var(--red);
}

#btnEdit.active svg {
  fill: var(--green);
}

.tabel-trade tbody tr.editable:hover {
  background: var(--bg-green) !important;
}

/* -- Tabel Main --*/
.tabel-box {
  background: var(--bg-20);
  border: 1px solid var(--bg-40);
  padding: 20px;
  border-radius: 15px;
}

.tabel-trade {
  width: 100%;
  border: none;
  border-collapse: collapse;
  table-layout: fixed;
}

#tabel-spot {
  display: none;
}

/* Style tabel */
.no-tabel,
.causes-tabel,
.files-tabel,
.class-tabel,
.rr-tabel {
  width: 60px;
}

.result-tabel,
.pos-tabel {
  width: 75px;
}

th,
td {
  font-family: inherit;
  text-align: center;
  border: none;
}

/* Deposit Withdraw */
.deposit {
  background: linear-gradient(
    135deg,
    rgba(2, 255, 200, 0.04) 0%,
    rgba(20, 20, 20, 0.02) 60%
  ) !important;
}

.withdraw {
  background: linear-gradient(
    135deg,
    rgba(255, 2, 2, 0.04) 0%,
    rgba(20, 20, 20, 0.02) 60%
  ) !important;
}

.tabel-trade thead tr th {
  font-size: var(--s12);
  text-transform: uppercase;
  color: var(--gray);
  font-weight: var(--w6);
  padding: 16px 0;
}

.tabel-trade tbody tr {
  height: 55px;
}

.tabel-trade thead tr {
  border-bottom: 1px solid var(--bg-30);
  cursor: pointer;
}

.tabel-trade thead .sweep:hover {
  color: var(--white);
}

.tabel-trade tbody tr {
  border-bottom: 1px solid var(--bg-30);
}

th.sortable {
  cursor: pointer;
  position: relative;
}

.tabel-trade tbody tr:nth-child(odd) {
  background: rgba(25, 25, 25, 0.5);
}

.tabel-trade tbody tr:nth-child(even) {
  background: rgba(25, 25, 25, 1);
}

.row-title {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 3px;
  width: 100%;
  vertical-align: middle;
}

/* Style Data Tabel */
.no,
.date {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--gray);
}

.pairs {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--white);
}

.method {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--white);
}

.confluance {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  border-radius: 8px;
  padding: 2px 0;
}

.rr-win {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
}

.rr-lose {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--red);
}

.rr-null {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--gray);
}

.behavior {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--white);
}

.box-causes {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  width: fit-content;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.1s;
}

.box-causes:hover,
.box-causes:hover .icon-causes {
  background: var(--bg-40);
  fill: var(--white);
}

.icon-causes {
  fill: var(--gray-dark);
}

.causes-disabled {
  opacity: 0.35;
  pointer-events: none;
  fill: var(--gray-dark);
}

.confident {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  border-radius: 8px;
  padding: 2px 0;
}

.doubtful {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
  background: var(--bg-yellow);
  border-radius: 8px;
  padding: 2px 0;
}

.reckless {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--bg-red);
  border-radius: 8px;
  padding: 2px 0;
}

.class {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--white);
}

.files-disabled {
  fill: var(--gray-dark);
  opacity: 0.35;
  pointer-events: none;
}

.files-single {
  fill: var(--gray-dark);
  opacity: 0.9;
}

.short {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--bg-red);
  border-radius: 8px;
  padding: 2px 0;
}

.long {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  border-radius: 8px;
  padding: 2px 0;
}

.pos-null {
  font-size: var(--s12);
  font-weight: var(--w4);
}

.margin {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--white);
}

.result-lose {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--bg-red);
  border-radius: 8px;
  padding: 2px 0;
}

.result-win {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  border-radius: 8px;
  padding: 2px 0;
}

.result-missed {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--gray);
  border: 1px solid var(--bg-40);
  background: var(--bg-30);
  border-radius: 8px;
  padding: 2px 0;
}

.result-break-even {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--bg-green);
  border-radius: 8px;
  padding: 2px 0;
}

.pnl-win {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--green);
}

.pnl-loss {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--red);
}

.pnl-null {
  font-size: var(--s12);
  font-weight: var(--w4);
  color: var(--gray);
}

/* ────── Tooltip Jurnal Tabel ────── */
.tooltip-box {
  position: fixed;
  min-width: 200px;
  max-width: 560px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(61, 61, 61, 0.65);
  backdrop-filter: blur(3px);
  color: var(--white);
  z-index: 100;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-100px) translateX(-40px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.tooltip-box.show {
  opacity: 1;
  transform: translateY(-100px) translateX(-40px);
}

.tooltip-box.hidden {
  display: none;
}

.tooltip-title {
  font-weight: var(--w6);
  margin-bottom: 6px;
  font-size: var(--s14);
  opacity: 0.9;
}

.tooltip-text {
  font-size: var(--s14);
  opacity: 0.8;
}

.tooltip-imgs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tooltip-imgs img {
  width: auto;
  max-width: 240px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-link {
  margin-top: 8px;
  display: inline-block;
  font-size: var(--s14);
  color: #66b3ff;
  text-decoration: none;
}

.tooltip-link:hover {
  text-decoration: underline;
}

.tooltip-img-placeholder {
  width: 160px;
  height: 90px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: var(--s12);
}

/* ────── Pagination ────── */
.container-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 0;
  width: 100%;
}

.wrapper-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  width: 35px;
  border-radius: 10px;
  border: 1px solid var(--bg-45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.box-page-of:hover,
.box-page-rows:hover,
.box-number-page:hover,
.btn-pagination:hover {
  border-color: var(--bg-60);
  background: var(--bg-30);
}

.box-number-page:active,
.btn-pagination:active {
  transform: scale(0.9);
}

.wrapper-page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 4px;
}

.box-number-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  width: 35px;
  border-radius: 10px;
  border: 1px solid var(--bg-45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.box-number-page.active {
  background: var(--green-border);
  border-color: var(--green-border);
}

.box-more {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 35px;
  width: 35px;
}

.number-page {
  font-size: var(--s12);
}

.wrapper-page-of {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-text {
  font-size: var(--s12);
  color: var(--gray);
}

.box-page-of {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  min-width: 35px;
  padding: 0 12px;
  border-radius: 10px;
  margin-left: 10px;
  border: 1px solid var(--bg-45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.number-page-active {
  font-size: var(--s12);
}

.box-page-rows {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  padding: 0 12px;
  border-radius: 10px;
  margin-left: 10px;
  border: 1px solid var(--bg-45);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Dropdown Menu Pagination */
.dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: fit-content;
  min-width: 100%;
  white-space: nowrap;
  background: var(--bg-30);
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 6px;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: var(--s12);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--bg-40);
}

/* ────── Button Up Instan ────── */
.box-down,
.box-up {
  position: fixed;
  bottom: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-30);
  border: 1px solid var(--bg-55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.box-down:hover,
.box-up:hover {
  background: var(--bg-green);
  border: 1px solid var(--green);
}

.box-down:active,
.box-up:active {
  transform: scale(0.95);
}

.box-down svg,
.box-up svg {
  fill: var(--gray);
}

.box-down:hover svg,
.box-up:hover svg {
  fill: var(--green);
}

/* ────── Popup Delet ────── */
.icon-confirm svg {
  width: 25px;
  height: 25px;
  fill: var(--white);
}

/* ────── Statistic Secsion ────── */
.statistic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 80px 40px 40px;
  min-height: auto;
}

.container-statistic {
  display: flex;
  gap: 15px;
}

/* ────── Statistic Header ────── */
.box-statistic {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-box-statistic {
  display: flex;
  align-items: center;
  gap: 6px;
}

.min-title {
  font-size: var(--s14);
  color: var(--gray);
}

.total-equity {
  font-size: var(--s18);
  font-weight: var(--w5);
}

.persentase-fees {
  font-size: var(--s14);
  color: var(--red);
}

.row-header-out {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.circle-green {
  background: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.circle-blue {
  background: rgb(47, 239, 250);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.if-eq {
  font-size: var(--s12);
  color: var(--gray);
}

.if-tl-eq {
  font-size: var(--s12);
  color: var(--white);
}

.value-wd {
  font-size: var(--s12);
  color: var(--green);
  background: var(--bg-green);
  border: 1px solid var(--green-border);
  border-radius: 15px;
  padding: 2px 7px;
}

.box-share {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 8px;
  flex: 1;
}

.btn-sop {
  padding: 10px;
}

.btn-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
}

/* ────── Statistic & Chart Balance ────── */
.chart-balance {
  display: flex;
  justify-content: space-between;
  height: 475px;
  width: 100%;
  padding: 20px;
  gap: 40px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.chart-balance::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.bx-statistic-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px 0;
  width: 275px;
}

.bx-in-ll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 15px 15px;
}

.border-btn {
  border-bottom: 1px solid var(--bg-40);
}

.bx-in-sta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bx-prgs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.value-lessons {
  font-size: var(--s12);
}

.min-subttl {
  font-size: var(--s12);
  color: var(--gray);
}

.min-perst {
  font-size: var(--s12);
  color: var(--gray);
}

.progress-statistic {
  width: 100%;
  height: 4px;
  background: var(--bg-40);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-statistic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--win-percent, 0%);
  background: linear-gradient(
    135deg,
    var(--green-dark) 0%,
    rgba(16, 185, 129, 0.5) 100%
  );
}

.tx-ll {
  font-size: var(--s14);
}

.ath-balance {
  font-size: var(--s18);
  font-weight: var(--w4);
  color: var(--green);
}

.bx-in-bl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.roi-bl-ath-svg {
  fill: var(--green);
}

.roi-bl-ath {
  font-size: var(--s14);
  color: var(--green);
}

.x-progress {
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  height: 40px;
  width: 100%;
  border-radius: 10px;
  background: var(--bg-30);
}

.bx-usd {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bg-red);
}

.value-dropdown {
  font-size: var(--s12);
  color: var(--red);
}

.bx-dwn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.circle-dwn {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--red);
}

.min-dwn-roi {
  font-size: var(--s12);
  color: var(--red);
}

/* Chart Balance */
.container-chart-balance {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.chart-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#radarPnl,
#radarRR {
  position: absolute;
  transform: translate(-50%, -50%);
}

.tooltip-balance {
  position: absolute;
  min-width: 220px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(99, 99, 99, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: var(--s14);
  pointer-events: none;
  display: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.1s ease-out,
    opacity 0.1s ease-out;
}

.tooltip-balance.active {
  display: block;
}

.tooltip-date-balance {
  font-size: var(--s12);
  color: var(--gray);
}

.line-horizontal-tooltip {
  height: 1px;
  background: var(--bg-70);
  margin: 6px 0;
}

.wrap-tooltip-stats {
  display: flex;
  flex-direction: column;
}

.row-tooltip-balance {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tooltip-stats,
.title-balance-tooltip {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--white);
}

.date-label-balance {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(99, 99, 99, 0.2);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: var(--s10);
  pointer-events: none;
  display: none;
  z-index: 10;
  font-weight: var(--w6);
}

.date-label-balance.active {
  display: block;
}

.circle-balance {
  display: none;
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  background: var(--circlebalance-color, rgb(13, 185, 129));
}

.circle-balance::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--circlebalance-after-color, rgba(13, 185, 129, 0.6));
  transform: translate(-50%, -50%);
  animation: pulse-circlebalance 2s infinite;
}

@keyframes pulse-circlebalance {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.btn-wrapper-filter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.column-value {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#toggleCircles {
  background: var(--bg-20);
  border: 1px solid var(--bg-40);
  color: var(--gray);
  border-radius: 12px;
  height: 100%;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.1s ease;
}

#toggleCircles.on {
  background: var(--bg-green);
  border: 1px solid var(--green-border);
  color: var(--green);
}

#toggleCircles.off {
  background: var(--bg-20);
  border: 1px solid var(--bg-40);
  color: var(--gray);
}

.stats-balance-wrapper {
  display: flex;
  justify-content: end;
}

.stats-balance-time {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
}

.subtitle-stats-balance {
  font-size: var(--s14);
  font-weight: var(--w4);
  color: var(--gray);
}

.balance-pnl {
  font-size: var(--s20);
  font-weight: var(--w6);
  color: var(--green);
}

/* ────── Chart PnL-RR & Detailed Statistics ────── */
.chart-rr-pnl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 420px;
  width: 100%;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.chart-rr-pnl::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.statistic-rr-pnl {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 420px;
  min-width: 250px;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.statistic-rr-pnl::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.box-title-statsrr {
  width: 100%;
  margin-bottom: 10px;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 15px;
}

.radio-group {
  display: flex;
  gap: 60px;
  position: relative;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-label {
  font-size: var(--s14);
  color: var(--gray-dark);
  font-weight: var(--w6);
  transition: color 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: var(--green);
  font-weight: var(--w6);
}

.active-line {
  position: absolute;
  bottom: -6px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-content:not(.active) {
  pointer-events: none;
}

.container-main-rr {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;

  position: relative;
  overflow: hidden;
  overflow-y: auto;
}

.container-quality.active {
  transform: translateX(0);
}

.container-quality:not(.active) {
  transform: translateX(-100%);
}

.container-averages.active {
  transform: translateX(0);
}

.container-averages:not(.active) {
  transform: translateX(100%);
}

.title-stats-rr {
  font-size: var(--s14);
  color: var(--gray);
}

.header-rr-pnl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--s12);
}

.legend-item span {
  color: var(--gray);
  font-weight: var(--w5);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.pnl {
  background: #00ffcc;
}

.legend-dot.rr {
  background: #ff9500;
}

.header-title-rr-pnl {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 35px;
}

.title-chart-pnl {
  font-size: var(--s12);
  color: #00ffcc;
}

.title-chart-rr {
  font-size: var(--s12);
  color: #ff9500;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(99, 99, 99, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: var(--s12);
  pointer-events: none;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.tooltip-date {
  color: var(--gray);
  margin-bottom: 8px;
  font-size: 11px;
}

.tooltip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tooltip-label {
  min-width: 40px;
}

.tooltip-green {
  color: #34d399;
}

.tooltip-yellow {
  color: #ff9500;
}

.tooltip-value {
  font-weight: var(--w5);
  color: var(--white);
}

.pnl {
  --circle-color: #00ffcc;
  --circle-color-rgba: 0, 255, 204;
  --border-color: #00ffcc;
}

.rr {
  --circle-color: #ff9500;
  --circle-color-rgba: 255, 149, 0;
  --border-color: #ff9500;
}

.radar {
  display: none;
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--circle-color, var(--white));
  border: 2px solid var(--border-color, #000);
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(var(--circle-color-rgba), 0.6);
  transform: translate(-50%, -50%);
  animation: pulse-radar 2s infinite;
}

@keyframes pulse-radar {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.bx-statsrrpnl {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  gap: 8px;
  margin-bottom: 10px;
}

.tl-stats {
  font-size: var(--s12);
  color: var(--gray);
}

.bx-statsrrpnl .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bx-statsrrpnl .value-tl-stats {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--green);
}

.value-tl-stats-red {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--red);
}

.icon-stats-rp {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  background: var(--bg-30);
  border: 1px solid var(--bg-40);
}

/* ────── Monly Report ────── */
.container-monly {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  height: 550px;
  width: 470px;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.container-monly::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.title-monly {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.month-card {
  background: var(--bg-30);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--bg-45);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.month-card:active {
  transform: scale(0.98);
}

.month-card:hover {
  background: var(--bg-35);
  border-color: var(--bg-45);
}

.month-name {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--gray);
  margin-bottom: 6px;
}

.profit-loss {
  font-size: var(--s14);
  font-weight: bold;
  margin-bottom: 6px;
}

.profit-loss.positive {
  color: var(--green);
}

.profit-loss.negative {
  color: var(--red);
}

.return-rate {
  font-size: var(--s10);
  font-weight: var(--w6);
}

.return-rate.positive {
  color: var(--green-dark);
}

.return-rate.negative {
  color: var(--red-dark);
}

.no-data {
  grid-column: 1 / -1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: var(--s14);
  color: var(--gray);
}

.chart-container-performance {
  display: flex;
  flex-direction: column;
  background: var(--bg-30);
  padding: 15px;
  border-radius: 10px;
  width: 100%;
  height: 100%;
}

.chart-container-performance h3 {
  color: var(--white);
  font-size: var(--s12);
  text-align: center;

  margin-bottom: 10px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 12px 0 10px;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  min-width: 10px;
}

.bar:hover {
  filter: brightness(1.3);
}

#barChart:hover .bar {
  opacity: 0.6;
}

#barChart .bar:hover {
  opacity: 1 !important;
}

.bar-label {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--s10);
  color: var(--gray-dark);
  white-space: nowrap;
}

.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--s10);
  font-weight: bold;
  color: var(--gray);
}

/* ────── Calender Trading ────── */
.calendar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 550px;
  flex: 1;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.calendar-wrapper::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 6px;
}

.nav-btn {
  width: 30px;
  height: 30px;
  color: var(--bg-30);
  background: var(--bg-35);
  border: 1px solid var(--bg-60);
}

.nav-btn:hover {
  background: var(--bg-45);
  border: 1px solid var(--bg-70);
}

.svg-monthly-btn {
  fill: var(--gray);
}

.nav-btn:hover .svg-monthly-btn {
  fill: var(--gray-light);
}

.month-year-selector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 150px;
}

.current-month {
  font-size: var(--s14);
  font-weight: var(--w7);
  color: var(--white);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.current-month:hover {
  background: var(--bg-35);
}

/* Custom Select */
.custom-select {
  position: relative;
  min-width: 120px;
  z-index: 1000;
}

.select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  background: var(--bg-35);
  cursor: pointer;
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--white);
  transition: all 0.2s;
  min-height: 38px;
}

.select-header:hover {
  border-color: var(--green);
  background: var(--bg-40);
}

.select-header svg {
  transition: transform 0.2s;
}

.custom-select.active .select-header svg {
  transform: rotate(180deg);
}

.custom-select.active .select-header {
  border-color: var(--green);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-35);
  border: 1px solid var(--bg-45);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.custom-select.active .select-options {
  display: block;
}

.select-option {
  padding: 10px 15px;
  font-size: var(--s12);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.select-option:hover {
  background: var(--bg-40);
}

.select-option.selected {
  background: var(--green-dark);
  color: var(--white);
}

.select-options::-webkit-scrollbar {
  width: 6px;
}

.select-options::-webkit-scrollbar-track {
  background: var(--bg-30);
  border-radius: 0 0 8px 0;
}

.select-options::-webkit-scrollbar-thumb {
  background: var(--bg-45);
  border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb:hover {
  background: var(--green-dark);
}

.date-picker-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 100;
}

.date-picker {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: var(--bg-30);
  border: 1px solid var(--bg-35);
  border-radius: 10px;
  padding: 15px;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.date-picker.active {
  display: block;
}

.date-picker select {
  padding: 10px 15px;
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  font-size: var(--s12);
  font-weight: var(--w6);
  cursor: pointer;
  background: var(--bg-35);
}

.date-picker select:focus {
  outline: none;
  border-color: var(--green);
}

.date-picker-buttons {
  display: flex;
  gap: 8px;
}

.date-picker-btn {
  flex: 1;
  padding: 8px;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 0 8px;
}

.day-name {
  text-align: center;
  font-size: var(--s12);
  font-weight: var(--w7);
  color: var(--gray);
  padding: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: 100%;
  gap: 4px;
}

.day-cell {
  background: var(--bg-30);
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: default;
}

.day-cell.future {
  opacity: 0.3;
  pointer-events: none;
}

.day-cell.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.day-cell.past,
.day-cell.today {
  background: var(--white);
}

.day-cell.positive {
  background: var(--bg-green);
  border-color: var(--green-dark);
  cursor: pointer;
}

.day-cell.positive:hover {
  background: rgba(16, 185, 129, 0.2);
}

.day-cell.negative {
  background: var(--bg-red);
  border-color: var(--red-dark);
  cursor: pointer;
}

.day-cell.negative:hover {
  background: rgba(244, 63, 94, 0.2);
}

.day-cell.empty {
  background: var(--bg-30);
}

.day-number {
  font-size: var(--s12);
  font-weight: var(--w7);
  color: var(--white);
}

.pnl-value {
  font-size: var(--s12);
  font-weight: var(--w5);
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.positive .pnl-value {
  color: var(--green);
}

.negative .pnl-value {
  color: var(--red);
}

.empty .pnl-value {
  color: var(--gray-dark);
}

.trade-count {
  margin-top: 3px;
  font-size: var(--s10);
  color: var(--gray);
}

/* Tooltip */
.tooltip-calender {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--bg-40);
  border: 1px solid var(--bg-45);
  color: var(--gray);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: var(--s12);
  font-weight: var(--w6);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.day-cell:hover .tooltip-calender {
  opacity: 1;
}

.tooltip-calender p {
  margin: 0;
}

.date-daily-pnl {
  color: var(--gray);
}

.wrapper-pnl-daily {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pnl-label {
  color: var(--white);
}

.pnl-value.positive {
  color: var(--green);
}
.pnl-value.negative {
  color: var(--red);
}

/* ────── Detailed Statistics ────── */
.winrate {
  font-size: var(--s12);
  font-weight: var(--w5);
  padding: 2px 10px;
  width: min-content;
  border-radius: 6px;
  background: var(--bg-green);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.stats-wr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
}

.row-stats-wr {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 4px;
}

.ttl-stats-wr {
  font-size: var(--s14);
  color: var(--gray);
}

.row-in-wr {
  display: flex;
  flex-direction: column;
}

.data-stats-wr {
  font-size: var(--s12);
  font-weight: var(--w6);
}

/* ────── Chart Pairs ────── */
.container-chart-pairs {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 420px;
  width: auto;
  min-width: 560px;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.container-chart-pairs::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.container-in-pairs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
}

.wrapper-header-pairs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wrapper-pairs {
  display: flex;
  height: 100%;
  width: 100%;
  min-height: 0;
}

.title-pairs-chart {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
}

.chart-container-pairs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container-pairs svg {
  transform: rotate(-90deg);
}

.chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.total-value-pairs {
  font-size: var(--s24);
  font-weight: var(--w7);
  color: var(--w7);
}

.tooltip-pairs {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #3a3a3a;
  border-radius: 13px;
  padding: 2px 10px 2px 2px;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.tooltip-pairs.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tooltip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.tooltip-value-pairs {
  font-size: var(--s10);
  color: var(--white);
  font-weight: var(--w6);
}

.segment {
  cursor: pointer;
}

circle.segment {
  animation: fillChart 1.5s ease-out forwards;
}

@keyframes fillChart {
  from {
    stroke-dashoffset: 628;
  }
}

.wrapper-paris-identifier {
  display: flex;

  padding: 25px 0;

  flex: 1;
  min-height: 0;
}

.box-identifier-pairs {
  display: flex;
  flex-direction: column;
  gap: 8px;

  height: 100%;
  overflow-y: auto;

  justify-content: center;
  align-items: start;
}

.bx-in-identifier {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.circle-pairs {
  height: 8px;
  width: 8px;
  border-radius: 50%;
}

.text-pairs-chart {
  font-size: var(--s14);
  color: var(--gray);
}

/* ────── Global Summary ────── */
.container-statistic-pairs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  width: auto;
  min-width: 400px;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.container-statistic-pairs::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.card-title {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
  margin-bottom: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-row-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-row-style-trading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: var(--s12);
  color: var(--gray);
}

.stat-value {
  font-size: var(--s12);
  font-weight: var(--w4);
}

.wrap-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--bg-40);
  border-radius: 4px;
}

.fill-left {
  position: absolute;
  left: 0;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.75) 0%,
    rgb(52, 211, 153) 100%
  );
  z-index: 1;
}

.space-mid {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  border-radius: 4px;
  background: var(--white);
  z-index: 2;
}

.fill-right {
  position: absolute;
  right: 0;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    135deg,
    rgb(250, 93, 117) 0%,
    rgba(250, 93, 117, 0.75) 100%
  );
  z-index: 1;
}

.fill-left, .fill-right, .space-mid {
  opacity: var(--op, 1);
  transition: opacity 0.3s ease;
}

.badge {
  font-size: var(--s12);
  font-weight: var(--w6);
}

.title-trading-style {
  font-size: var(--s14);
  color: var(--white);
}

.hr-h {
  height: 1px;
  border: none;
  background: var(--bg-40);
}

.mental-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mental-box {
  text-align: center;
  padding: 10px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--bg-30);
}

.mental-label {
  font-size: var(--s12);
  margin-bottom: 2px;
}

.mental-value {
  font-size: var(--s14);
  font-weight: var(--w6);
}

/* ────── Statistic Bheavior Single ────── */
.container-bias-pairs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  flex: 1;
  gap: 15px;
}

.subcontainer-continuation,
.subcontainer-reversal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.subcontainer-continuation::before,
.subcontainer-reversal::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.performance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-40);
}

.performance-title {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wrapper-bheavior {
  display: flex;
  align-items: center;
  gap: 6px;
}

.circle-bheavior {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.winrate-badge {
  font-size: var(--s12);
  font-weight: var(--w5);
  color: var(--green);
}

.wrapper-box-bheavior {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.column-bheavior {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--bg-30);
}

.padding-metric-item {
  padding: 0 20px;
}

.wrapper-progress-bheavior {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

.column-sub-bheavior {
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-sub-bheavior span {
  font-size: var(--s12);
}

.progress-bheavior {
  height: 6px;
  width: 80%;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(95, 95, 95, 0.5) 0%,
    rgb(35, 35, 35) 100%
  );
  overflow: hidden;
}

.metric-label {
  font-size: var(--s12);
  margin-bottom: 4px;
}

.metric-value {
  font-size: var(--s14);
  font-weight: var(--w5);
}

/* ────── Chart WR ────── */
.container-chart-wr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: start;
  justify-content: space-between;
  height: 420px;
  width: 450px;
  padding: 20px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.container-chart-wr::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.wrapper-header-winrate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.title-pairs-wr {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
}

.wrapper-chartwr {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wrChartSVG {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 170px;
  height: 170px;
  z-index: 1;
}

#donutChart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ────── Pair ────── */
.container-stats-pairs {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  max-height: 420px;
  background: var(--bg-20);
  border-radius: 12px;
  position: relative;
}

.container-stats-pairs::before {
  box-shadow:
    rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) -1px 0px 0px 0px inset,
    rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset,
    rgba(255, 255, 255, 0.05) 1px 0px 0px 0px inset;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  content: "";
  inset: 0;
}

.wrapper-header-pairs h2 {
  font-size: var(--s16);
  color: var(--white);
  font-weight: var(--w5);
}

.pairs-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 0 4px;
  overflow: hidden;
}

.pairs-body {
  overflow-y: auto;
}

/* Header */
.pairs-header {
  display: grid;
  grid-template-columns: 0.7fr 0.6fr 1fr 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-40);
}

.pairs-header div {
  text-transform: uppercase;
  color: var(--gray);
  font-size: var(--s12);
  font-weight: var(--w5);
}

/* Baris Data */
.pairs-row {
  display: grid;
  grid-template-columns: 0.7fr 0.6fr 1fr 1fr;
  align-items: center;
  padding: 10px 0;
  color: var(--white);
  font-size: var(--s12);
  border-bottom: 1px solid var(--bg-40);
  transition: background 0.2s ease;
  cursor: pointer;
}

.pairs-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.no-date {
  opacity: 0.35;
}

/* Kolom Pair */
.pair-item {
  font-size: var(--s12);
  font-weight: var(--w6);
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin-left: 10px;
}

.icon-tabel {
  border-radius: 50%;
  height: 20px;
  width: 20px;
}

.null {
  color: var(--gray);
  opacity: 0.5;
}

.pairs-header div:nth-child(1) {
  margin-left: 10px;
}

.pairs-header div:nth-child(3),
.pairs-row div:nth-child(3) {
  margin-left: 140px;
}

.pairs-header div:nth-child(4),
.pairs-row div:nth-child(4) {
  display: flex;
  justify-content: end;
  margin-right: 10px;
}

.no-data-pairs {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;

  font-size: var(--s14);
  color: var(--gray);
}

/* trades */
.column-win-loss {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.win-loss-progress {
  position: relative;
  display: block;
  height: 5px;
  width: 100%;
  background: var(--red-light);
  border-radius: 5px;
  overflow: hidden;
}

.win-loss-fill {
  height: 100%;
  background: var(--green);
  border-radius: 5px 0 0 5px;
  transition: width 0.3s ease;
}

.row-win-loss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}

.row-wl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.label-win-box {
  height: 4px;
  width: 4px;
  background: var(--green);
}

.label-loss-box {
  height: 4px;
  width: 4px;
  background: var(--red);
}

.win-badge,
.loss-badge {
  font-size: var(--s10);
}

/* ────── Setting Secsion ────── */

.setting {
  display: flex;
  flex-direction: column;
  margin: 90px 40px 40px;
}

/* ──────- Pofile ──────- */
.container-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 15px;
  background: var(--bg-20);
  border: 1px solid var(--bg-40);
  margin-bottom: 15px;
}

.raw-profile-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.box-profile img {
  border-radius: 50%;
  height: 38px;
  width: 38px;
  border: 2px solid var(--bg-70);
}

.username {
  font-size: var(--s18);
}

.email {
  font-size: var(--s14);
  color: var(--gray);
}

.wrapper-button-profile {
  display: flex;
  gap: 10px;
}

/* Edit Profile */
.btn-edit-profile {
  padding: 8px;
}

.wrapper-edit-profile {
  display: flex;
  width: 800px;
  height: 100%;
  overflow: hidden;
}

.left-panel {
  width: 50%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
}

.right-panel {
  width: 50%;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-35);
  border-radius: 0 15px 15px 0;
  overflow: hidden;
}

.right-panel svg {
  position: absolute;
  top: 50%;
  height: 450px;
}

.user-card-main {
  background: rgba(40, 40, 40, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.user-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(40, 40, 40, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.wrapper-chard {
  margin: 0 auto 12px;
  position: relative;
}

.rope-hanger {
  background: rgba(148, 148, 148, 0.2);
  border: 1px solid rgba(102, 102, 102, 0.6);
  border-radius: 6px;
  height: 100vh;
  width: 45px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.hole-chard {
  width: 50px;
  height: 10px;
  border-radius: 10px;
  background: #000;
}

.form-group-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wraper-btn-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.altert-text {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--red);
}

.row-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

#tooltipUsername,
.tooltipPassword {
  fill: #666;
  transition: all 0.2s ease;
  cursor: pointer;
}

#tooltipUsername:hover,
.tooltipPassword:hover {
  fill: #fff;
  cursor: pointer;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 6px;
  cursor: help;
}

.tooltip-wrapper .tooltip-content {
  visibility: hidden;
  width: 220px;
  background: #333;
  color: #eee;
  text-align: left;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: var(--s12);
  line-height: 1.4;
  position: absolute;
  z-index: 10;
  bottom: 30px;
  left: -8px;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: normal;
}

.tooltip-wrapper:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-wrapper .tooltip-content::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 10px;
  margin-top: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

input[type="text"] {
  background: var(--bg-30);
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: var(--s14);
  color: var(--white);
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  border-color: var(--green);
  background: var(--bg-40);
}

input[type="text"]::placeholder {
  color: var(--gray-dark);
}

input[type="file"] {
  display: none;
}

.input-error {
  border-color: var(--red) !important;
  transition: border-color 0.2s;
}

.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 180px;
  padding: 40px 20px;
  border: 1px dashed var(--bg-55);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-40);
}

.file-upload-area:hover {
  border-color: var(--bg-70);
  background: var(--bg-45);
}

.file-upload-area.dragover {
  border-color: var(--bg-70);
  background: var(--bg-45);
}

.upload-text {
  color: #b8b8b8;
  font-size: var(--s14);
}

.upload-icon {
  color: var(--red);
  font-size: 32px;
}

.file-name {
  color: var(--red);
  font-size: var(--s14);
}

.btn-delete-foto {
  padding: 6px 12px;
}

.preview-section {
  text-align: center;
}

.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(40, 40, 40, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.profile-name {
  font-size: var(--s22);
  font-weight: var(--w6);
  color: var(--white);
  margin-top: 10px;

  max-width: 15ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-placeholder {
  color: var(--gray);
}

.user-id-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
}

.barcode {
  height: 25px;
  margin-bottom: 12px;
  box-shadow: 0 0 8px var(--bg-green);
  background: repeating-linear-gradient(
    90deg,
    var(--green),
    var(--green-light) 2px,
    transparent 2px,
    transparent 4px,
    var(--green) 4px,
    var(--green-dark) 6px,
    transparent 6px,
    transparent 10px,
    var(--green-dark) 10px,
    var(--green-light) 11px,
    transparent 11px,
    transparent 13px
  );
  opacity: 0.6;
}

.user-id {
  font-family: "Courier New", monospace;
  font-size: var(--s10);
  color: var(--gray-dark);
}

/* Logout */
.row-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin: 5px 0;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    fill 0.15s ease;
}

.row-profile svg {
  fill: var(--gray);
}

.title-menu {
  font-size: var(--s12);
  color: var(--gray);
}

.wrapper-setting {
  display: flex;
  align-items: stretch;
  gap: 15px;
}

.container-setting {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 15px;
  background: var(--bg-20);
  border: 1px solid var(--bg-40);
}

.title-setting {
  font-size: var(--s16);
}

.title-setting-fr {
  font-size: var(--s14);
  font-weight: var(--w5);
  color: var(--gray);
  margin-bottom: 12px;
}

.info-text {
  font-size: var(--s12);
  color: var(--gray);
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
}

.percent-sign {
  position: absolute;
  right: 15px;
  color: var(--gray);
  font-weight: var(--w6);
  pointer-events: none;
}

.wrapper-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-download-data {
  padding: 10px 0;
  width: 100%;
}

.btn-delete-data {
  padding: 10px 0;
}

/* ────── Popup ────── */

/* ────── Global Setting ────── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  z-index: 100;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: none;
  flex-direction: column;
  border-radius: 15px;
  width: auto;
  z-index: 101;
  background: var(--bg-20);
  border: 1px solid var(--bg-35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-container.show {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ────── Popup Perpetual Add ────── */
.popup-perpetual-add {
  padding: 20px;
  width: 60%;
  transition: width 0.3s ease;
}

.wrapper-add {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-body {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  flex: 1;
}

.popup-body::-webkit-scrollbar {
  width: 8px;
}

.popup-body::-webkit-scrollbar-track {
  background: var(--bg-30);
  border-radius: 10px;
}

.popup-body::-webkit-scrollbar-thumb {
  background: var(--bg-55);
  border-radius: 10px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.grid-sesion {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;

  margin-bottom: 6px;
}

.form-group label {
  font-size: var(--s12);
  font-weight: var(--w5);
  text-transform: uppercase;
}

.row-settiing {
  display: flex;
  gap: 40px;
}

/* Clear */
.input-with-clear {
  position: relative;
  width: 100%;
}

.input-with-clear .clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-dark);
  backdrop-filter: blur(5px);
  border: 1px solid var(--bg-45);
  font-size: var(--s14);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  pointer-events: none;
}

.input-with-clear.has-value .clear-btn {
  opacity: 1;
  pointer-events: auto;
}

.input-with-clear .clear-btn:hover {
  fill: var(--red);
  background: var(--bg-red);
  border-color: var(--red-border);
}

.input-with-clear .clear-btn:hover svg {
  fill: var(--red);
}

.clear-btn svg {
  height: 9px;
  width: 9px;
}

.form-group input,
.form-group textarea {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-30) !important;
  border: 1px solid var(--bg-50);
  border-radius: 8px;
  font-size: var(--s14);
  color: var(--white);
  font-family: inherit;
  resize: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--bg-40);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--gray-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dark);
  opacity: 0.6;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white) !important;
  caret-color: var(--white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20" fill="%23e3e3e3"><path d="M202.87-71.87q-37.78 0-64.39-26.61t-26.61-64.39v-554.26q0-37.78 26.61-64.39t64.39-26.61H240v-80h85.5v80h309v-80H720v80h37.13q37.78 0 64.39 26.61t26.61 64.39v195.7h-91V-560H202.87v397.13h275.7v91h-275.7Zm0-568.13h554.26v-77.13H202.87V-640Zm0 0v-77.13V-640Zm355.7 568.13v-129.7L781-423q9.72-9.76 21.59-14.1 11.88-4.33 23.76-4.33 12.95 0 24.8 4.85Q863-431.72 872.7-422l37 37q8.67 9.72 13.55 21.59 4.88 11.88 4.88 23.76 0 12.19-4.36 24.41T909.7-293.3L688.26-71.87H558.57Zm304.78-267.78-37-37 37 37Zm-240 203h38L781.39-257.7l-18-19-19-18-121.04 120.05v38ZM763.39-276.7l-19-18 37 37-18-19Z"/></svg>')
    no-repeat center;
  opacity: 0.8;
  cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ────── Popup Spot Add ────── */
.popup-spot-add,
.popup-spot-edit,
.popup-spot-transactions-edit {
  padding: 20px;
  width: 60%;
  transition: width 0.3s ease;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-selected {
  position: relative;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-30);
  border: 1px solid var(--bg-50);
  border-radius: 8px;
  font-size: var(--s14);
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.dropdown-selected:hover {
  border-color: var(--gray-dark);
}

.dropdown-selected.active {
  border-color: var(--green);
  background: var(--bg-40);
}

.dropdown-selected .placeholder {
  color: var(--gray-dark);
  opacity: 0.6;
}

.icon-container {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  border: 1px solid var(--bg-45);
  width: 100%;
  height: 100%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
}

.close-icon svg,
.close-icon path {
  pointer-events: visiblePainted;
}

.dropdown-arrow {
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: rotate(0deg);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-selected.has-value .close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

.dropdown-selected.has-value .dropdown-arrow {
  opacity: 0;
  visibility: hidden;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

.close-icon:hover {
  fill: var(--red) !important;
  background: var(--bg-red);
  border-color: var(--red-border);
}

.dropdown-selected.has-value:hover .close-icon {
  opacity: 1;
}

.dropdown-selected.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-30);
  border: 1px solid var(--bg-40);
  border-radius: 8px;
  max-height: 123px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.1s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropdown-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-options::-webkit-scrollbar {
  width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
  background: var(--bg-30);
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: var(--bg-55);
  border-radius: 10px;
}

.dropdown-option {
  padding: 12px 14px;
  font-size: var(--s14);
  color: var(--white);
  cursor: pointer;
  transition: all 0.1s ease;
}

.dropdown-option:hover {
  background: var(--bg-40);
}

.dropdown-option.selected {
  background: var(--bg-green);
  color: var(--green);
  font-weight: var(--w5);
}

.confluance-wrapper,
.file-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.sub-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-field label {
  font-size: var(--s10);
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.row-btn-edit {
  display: flex;
  gap: 8px;
}

.btn-add {
  padding: 10px 25px;
}

.btn-submit {
  display: none;
  padding: 10px 25px;
}

.btn-submit.active {
  display: inline-flex;
}

/* ────── Popup Perpetual Edit ────── */
.popup-perpetual-edit,
.popup-perpetual-transactions-edit {
  padding: 20px;
  width: 60%;
}

.box-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px;
  background: var(--bg-40);
  border: 1px solid var(--bg-55);
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

.box-auto:hover {
  background: var(--bg-green);
  border: 1px solid var(--green);
}

.box-auto:hover svg {
  fill: var(--green);
}

.box-auto:active {
  transform: scale(0.95);
}

#AutomationPnL.active {
  scale: 0.95;
  transition: 0.2s;
  filter: brightness(1.2);
}

.btn-edit {
  padding: 10px 25px;
}

/* ────── Popup Caculate ────── */
.popup-caculate {
  padding: 20px;
  max-width: 480px;
}

.wrapper-title-caculate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.informasion-risk {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--red);
}

.risk-display {
  background: var(--bg-30);
  border-radius: 8px;
  padding: 20px 10px;
  text-align: center;
  margin-bottom: 10px;
  border: 1px solid var(--bg-45);
}

.risk-label {
  font-size: var(--s12);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.risk-value {
  font-size: var(--s22);
  font-weight: var(--w7);
  color: var(--green);
}

.con-information {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.row-box {
  display: flex;
  gap: 6px;
  width: 100%;
}

.row-if {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-30);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--bg-45);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 50%;
}

.row-if:hover {
  background: var(--bg-40);
}

.row-if label {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--gray);
}

.value-caculate {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--green);
}

.container-input {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 8px;
}

.label-input-cc {
  font-size: var(--s12);
  font-weight: var(--w5);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper-caculate {
  position: relative;
  display: inline-block;
}

.input-wrapper-caculate input {
  width: 100%;
  padding-right: 40px;
}

.input-wrapper-caculate .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-dark);
  pointer-events: none;
}

input[type="number"] {
  background: var(--bg-30);
  border: 1px solid var(--bg-45);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: var(--s14);
  color: var(--white);
  outline: none;
  transition: all 0.3s ease;
}

input[type="number"]:focus {
  border-color: var(--green);
  background: var(--bg-40);
}

input[type="number"]::placeholder {
  color: var(--gray-dark);
}

.toast {
  position: fixed;
  top: 70px;
  left: 140px;
  transform: translate(-50%, -50px);
  color: var(--green);
  background: var(--bg-green);
  border: 1px solid var(--green-border);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: var(--s14);
  transition: all 0.3s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.btn-caculate {
  padding: 10px 0;
}

/* ────── Popup Share ────── */
.popup-share {
  padding: 20px;
}

.container-share {
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvasShareContainer {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

#canvasShareContainer.loading #canvasShare {
  visibility: hidden;
}

#canvasShare {
  height: 300px;
  width: auto;
}

.wrapper-btn-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wraaper-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
}

.canvas-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-30);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.canvas-loading.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spinCanvas 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spinCanvas {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--white);
  font-size: var(--s14);
  font-weight: var(--w6);
}

.dots {
  display: inline-block;
  width: 20px;
  text-align: left;
  animation: dotsAnim 1.5s infinite;
}

@keyframes dotsAnim {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

.dots::after {
  content: ".";
  animation: dotsContent 1.5s infinite;
}

@keyframes dotsContent {
  0%,
  20% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60%,
  100% {
    opacity: 1;
  }
}

/* ────── Popup Sop ────── */
.popup-sop {
  padding: 20px;
}

.container-sop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 270px;
  margin-top: 15px;
}

.wrapper-sop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  height: 100%;
}

.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    90deg,
    rgba(6, 68, 47, 0.15) 0%,
    rgba(38, 38, 38, 1) 100%
  );
  border-radius: 10px;
  padding: 10px 15px;
  width: 100%;
  border: 1px solid var(--bg-55);
  border-left: 1px solid var(--green-border);
  transition: all 0.2 ease;
  cursor: pointer;
}

.rule-row:hover {
  filter: brightness(1.2);
}

.rule-row.active {
  border-left: 1px solid var(--green-border);
  background: linear-gradient(
    90deg,
    rgba(6, 68, 47, 0.15) 0%,
    rgba(38, 38, 38, 1) 100%
  );
}

.rule-row.warning {
  border-left: 1px solid var(--yellow-border);
  background: linear-gradient(
    90deg,
    rgba(204, 164, 34, 0.15) 0%,
    rgba(38, 38, 38, 1) 100%
  );
}

.rule-row.danger {
  border-left: 1px solid var(--red-border);
  background: linear-gradient(
    90deg,
    rgba(204, 34, 60, 0.15) 0%,
    rgba(38, 38, 38, 1) 100%
  );
}

.rule-row.warning .rule-value,
.rule-row.warning .progress-count {
  color: var(--yellow);
}

.rule-row.danger .rule-value,
.rule-row.danger .progress-count {
  color: var(--red);
}

.rule-info {
  flex: 1;
}

.rule-label {
  font-size: var(--s12);
  color: var(--gray);
  font-weight: var(--w5);
  margin-bottom: 3px;
}

.rule-value {
  font-size: var(--s14);
  color: var(--green);
  font-weight: var(--w6);
  display: inline-block;
}

.progress-wrapper {
  flex: 1;
  margin-left: 15px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.progress-label {
  font-size: var(--s10);
  color: var(--white);
  font-weight: var(--w5);
}

.progress-count {
  font-size: var(--s10);
  font-weight: var(--w6);
  color: var(--green);
}

.progress-bar-sop {
  height: 10px;
  background: var(--bg-55);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill-sop {
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
  background: linear-gradient(
    90deg,
    rgb(47, 180, 131) 0%,
    rgb(31, 230, 157) 70%
  );
}

.progress-fill-sop.warning {
  background: linear-gradient(
    90deg,
    rgb(204, 163, 41) 0%,
    rgb(255, 222, 102) 70%
  );
}

.progress-fill-sop.danger {
  background: linear-gradient(90deg, rgb(216, 78, 98) 0%, rgb(247, 66, 93) 70%);
}

.info-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.info-card {
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--gray);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.info-label {
  font-size: var(--s10);
  color: var(--gray);
  margin-bottom: 2px;
}

.info-value {
  font-size: var(--s12);
  font-weight: var(--w6);
}

.info-card.active {
  border-color: var(--green-border);
  background: linear-gradient(
    155deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
}

.info-card.active .info-value {
  color: var(--green);
}

.info-card.warning {
  border-color: var(--yellow-border);
  background: linear-gradient(
    155deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(204, 164, 34, 0.1) 100%
  );
}

.info-card.warning .info-value {
  color: var(--yellow);
}

.info-card.danger {
  border-color: var(--red-border);
  background: linear-gradient(
    155deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(204, 34, 60, 0.1) 100%
  );
}

.info-card.danger .info-value {
  color: var(--red);
}

/* ────── Popup Logout ────── */
.popup-edit-sop {
  width: 320px;
  padding: 24px;
  text-align: center;
}

.popup-edit-sop .popup-title {
  margin: 0 0 12px;
  font-size: var(--s18);
}

.popup-edit-sop .edit-rule-label {
  font-size: var(--s14);
  color: var(--text-secondary, #888);
  margin-bottom: 16px;
}

.popup-edit-sop .popup-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-edit-sop {
  padding: 10px 0;
  flex: 1;
}

/* ────── Popup Logout ────── */
#logoutModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

#logoutModal.hidden {
  display: none;
}

/* ────── Popup Edit Dropdown ────── */
.container-edit-dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  display: none;
  flex-direction: column;
  border-radius: 15px;
  padding: 15px;
  width: auto;
  z-index: 101;
  background: var(--bg-20);
  border: 1px solid var(--bg-35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.container-edit-dropdown h3 {
  font-size: var(--s18);
  margin-bottom: 15px;
}

.wrapper-btn-dropdown {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

.btn-dropdown {
  padding: 10px 20px;
}

.btn-remove {
  padding: 6px;
}

.btn-remove svg {
  pointer-events: none;
}

#editOptionsList {
  min-height: 150px;
  max-height: 150px;
  padding: 4px 15px;
  border: 1px solid var(--bg-40);
  border-radius: 8px;
  overflow: hidden;
  overflow-y: auto;
}

/* ────── Popup Account Menu ────── */
.container-popup-account {
  display: none;
  position: fixed;
  background: var(--bg-40);
  min-width: 200px;
  border-radius: 6px;
  padding: 0 5px;
  border: 1px solid var(--bg-55);
  z-index: 1000;
  overflow: hidden;
}

.line-gap {
  height: 1px;
  width: 100%;
  background: var(--bg-55);
}

.row-account {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin: 5px 0;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    fill 0.15s ease;
}

.row-account svg {
  fill: var(--gray);
}

.row-account:hover {
  background: var(--bg-55);
}

.row-account:hover .title-menu {
  color: var(--white);
}

.row-account:hover svg {
  fill: var(--white);
}

/* ────── Popup Account ────── */
.popup-account {
  padding: 20px;
}

#closeAccount {
  position: absolute;
  top: 20px;
  right: 20px;
}

.popup-account h3 {
  margin-bottom: 8px;
}

.subtitle-account {
  font-size: var(--s14);
  color: var(--gray);

  margin-bottom: 25px;
}

.wrapper-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-35);
  border-radius: 10px;
  padding: 10px;
  width: 450px;

  margin-bottom: 25px;
}

.column-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 4px 0;
}

.column-box-account {
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-box-account img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid var(--bg-60);
}

.usernmae-account {
  font-size: var(--s14);
  font-weight: var(--w7);
  color: var(--white);
}

.text-account-active {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--green);
}

.btn-close-account {
  padding: 6px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  height: 37px;
  width: 37px;
}

.btn-switch {
  color: var(--white);
  background: var(--bg-45);
  border: 1px solid var(--bg-50);
  padding: 10px 24px;
}

.btn-logout:hover,
.btn-switch:hover {
  background: var(--bg-50);
  border-color: var(--bg-60);
}

.btn-add-account {
  padding: 10px;
}

/* ────── Signout Popup ────── */
.container-logout {
  display: none;
  position: fixed;
  background: var(--bg-30);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--bg-45);
  z-index: 1001;
}

.container-logout.show {
  display: block;
}

.signout-btn-universal {
  padding: 6px 25px;
  cursor: pointer;
}

.signout-btn-universal:hover {
  background: var(--bg-red);
}

.text-signout {
  font-size: var(--s12);
}

/* ────── Popup Monthly ────── */
.popup-monthly {
  flex-direction: column;
  min-height: 380px;
  min-width: 700px;
  padding: 20px;
}

.column-title-popup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maincontainer-stats {
  display: flex;
  gap: 20px;
  width: 100%;
  flex: 1;
  height: 100%;
}

.leftcontainer,
.rightcontainer {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.subcontainer-trading-summary {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.subcontainer-stats {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding: 10px 0;
  min-height: 0;

  border-radius: 10px;
  border: 1px solid var(--bg-45);
  background: var(--bg-30);
  padding: 10px 16px;
  margin-top: 8px;
}

.subcolumn-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.box-performance-pairs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--s14);
  color: var(--gray);
}

.text-title svg {
  opacity: 0.5;
}

.value-stats {
  font-size: var(--s14);
}

.value-stats-two {
  font-size: var(--s16);
  font-weight: var(--w7);
}

.line-horizontal-performance-pairs {
  height: 1px;
  width: 100%;
  background: var(--bg-45);
  margin: 10px 0;
}

.subtitle-performance {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--white);
  margin-bottom: 10px;
}

.wr-red {
  font-weight: var(--w6);
  color: var(--red);
}

.wr-green {
  font-weight: var(--w6);
  color: var(--green);
}

.subcolumn-stats-one {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex: 1;
}

.balance-value-monthly {
  font-size: var(--s18);
  font-weight: var(--w7);
}

.pnl-value-monthly {
  font-size: var(--s14);
  color: var(--green);
}

/* ────── Popup Pairs Analysis ────── */
.popup-pairs {
  flex-direction: column;
  min-height: 380px;
  min-width: 800px;
  padding: 20px;
}

.balance-value-pairs {
  font-size: var(--s30);
  font-weight: var(--w7);
  color: var(--green);
}

.column-pairs-popup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.row-pairs-popup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.row-bs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bx-bs-buy {
  height: 5px;
  width: 5px;
  background: var(--green);
}

.bx-bs-sell {
  height: 5px;
  width: 5px;
  background: var(--red);
}

.value-stats-bs {
  font-size: var(--s12);
}

/* ────── Popup Fee Analysis ────── */
.popup-fee-analysis {
  padding: 20px;
}

.container-fee-analysis {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 330px;
  margin-top: 15px;
}

.container-chart-fee {
  display: flex;
  flex-direction: column;
  width: 700px;
  min-height: 350px;
  margin-top: 14px;
}

.container-chart-fee .chart-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.tooltip-fee {
  position: absolute;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(99, 99, 99, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: var(--s14);
  pointer-events: none;
  display: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.1s ease-out,
    opacity 0.1s ease-out;
}

.tooltip-fee.active {
  display: block;
}

.tooltip-date-fee {
  font-size: var(--s12);
  color: var(--gray);
}

.row-tooltip-fee {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.title-fee-tooltip {
  font-size: var(--s12);
  font-weight: var(--w6);
  color: var(--white);
}

.date-label-fee {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(99, 99, 99, 0.2);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  pointer-events: none;
  display: none;
  z-index: 10;
  font-weight: var(--w6);
}

.date-label-fee.active {
  display: block;
}

.circle-fee {
  display: none;
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  background: var(--red);
}

.circle-fee::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-border);
  transform: translate(-50%, -50%);
  animation: pulse-circlefee 2s infinite;
}

@keyframes pulse-circlefee {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* ────── Tooltips Information ────── */
.tooltip-informasion {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-35);
  color: var(--gray-light);
  font-size: var(--s12);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--bg-40);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -5px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tooltip-informasion::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: var(--bg-40) transparent transparent transparent;
}

.tooltip-informasion::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-35) transparent transparent transparent;
}

.tooltip-informasion.show {
  opacity: 1;
  transform: translate(-50%, -10px);
}