/* AutoTrade Bitget VIP: premium strategy/workflow cards. UI only. */
.bottom-layout > .strategy-table-panel,
.bottom-layout > .how-card {
  position: relative;
  isolation: isolate;
  padding: clamp(16px, 1.25vw, 20px) !important;
  border: 1px solid rgba(45, 151, 255, .48) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(18, 104, 255, .13), transparent 34%),
    linear-gradient(145deg, rgba(7, 24, 39, .98), rgba(4, 17, 30, .98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 14px 34px rgba(0, 7, 18, .28),
    0 0 24px rgba(18, 104, 255, .09) !important;
  overflow: hidden !important;
}

.bottom-layout > .strategy-table-panel::before,
.bottom-layout > .how-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 200, 255, .68), transparent);
  pointer-events: none;
}

.bottom-layout > .strategy-table-panel > h3,
.bottom-layout > .how-card > h3 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 14px !important;
  padding: 0 46px 12px 0;
  border-bottom: 1px solid rgba(76, 173, 255, .16);
  color: #f7faff;
  font-size: clamp(17px, 1.1vw, 20px) !important;
  font-weight: 700;
  letter-spacing: -.012em;
}

.bottom-layout > .strategy-table-panel > h3::after,
.bottom-layout > .how-card > h3::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(4, 200, 255, .34);
  border-radius: 11px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(18, 104, 255, .2), rgba(4, 200, 255, .07));
  box-shadow: inset 0 0 14px rgba(4, 200, 255, .06);
  font-size: 16px;
  line-height: 1;
}

.bottom-layout > .strategy-table-panel > h3::after { content: "\223F"; }
.bottom-layout > .how-card > h3::after { content: "\2713"; }

.strategy-table-panel .evolution-rules {
  display: grid !important;
  gap: 8px !important;
  margin: 0;
}

.strategy-table-panel .evolution-rules > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(76, 173, 255, .15);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(4, 18, 31, .92), rgba(7, 27, 45, .74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.strategy-table-panel .evolution-rules dt,
.strategy-table-panel .evolution-rules dd {
  min-width: 0;
  margin: 0;
}

.strategy-table-panel .evolution-rules dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9bad0;
  font-size: 12px;
  font-weight: 600;
}

.strategy-table-panel .evolution-rules dt::before {
  content: "\2022";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(4, 200, 255, .26);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(18, 104, 255, .12);
  box-shadow: inset 0 0 12px rgba(4, 200, 255, .04);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.strategy-table-panel .evolution-rules dd {
  color: #f7faff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.strategy-table-panel .evolution-rules > div:nth-child(1),
.strategy-table-panel .evolution-rules > div:nth-child(6),
.strategy-table-panel .evolution-rules > div:nth-child(7) {
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  padding-top: 10px;
}

.strategy-table-panel .evolution-rules > div:nth-child(1)::before,
.strategy-table-panel .evolution-rules > div:nth-child(6)::before,
.strategy-table-panel .evolution-rules > div:nth-child(7)::before {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: rgba(84, 204, 255, .84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}

.strategy-table-panel .evolution-rules > div:nth-child(1)::before { content: "STRATEGY"; }
.strategy-table-panel .evolution-rules > div:nth-child(6)::before { content: "CYCLE"; }
.strategy-table-panel .evolution-rules > div:nth-child(7)::before { content: "EXIT"; }

.strategy-table-panel .evolution-rules > div:nth-child(1) dt,
.strategy-table-panel .evolution-rules > div:nth-child(6) dt,
.strategy-table-panel .evolution-rules > div:nth-child(7) dt {
  font-size: 0;
}

.strategy-table-panel .evolution-rules > div:nth-child(1) dd,
.strategy-table-panel .evolution-rules > div:nth-child(6) dd,
.strategy-table-panel .evolution-rules > div:nth-child(7) dd {
  text-align: left;
}

.strategy-table-panel .evolution-rules > div:nth-child(1) dd {
  color: #fff;
  font-size: 14px;
}

.strategy-table-panel .evolution-rules > div:nth-child(6) dd {
  color: #d4e2f2;
  font-weight: 500;
}

.strategy-table-panel .evolution-rules > div:nth-child(7) {
  border-color: rgba(255, 79, 105, .2);
  background: linear-gradient(135deg, rgba(24, 16, 29, .78), rgba(7, 27, 45, .66));
}

.strategy-table-panel .evolution-rules > div:nth-child(1) dt::before { content: "\25C8"; }
.strategy-table-panel .evolution-rules > div:nth-child(2) dt::before { content: "\25CE"; }
.strategy-table-panel .evolution-rules > div:nth-child(3) dt::before { content: "\2B21"; }
.strategy-table-panel .evolution-rules > div:nth-child(4) dt::before { content: "\25A4"; }
.strategy-table-panel .evolution-rules > div:nth-child(5) dt::before,
.strategy-table-panel .evolution-rules > div:nth-child(6) dt::before { content: "\21BB"; }

.strategy-table-panel .evolution-rules > div:nth-child(7) dt::before {
  content: "\00D7";
  color: #ff8496;
  border-color: rgba(255, 79, 105, .3);
  background: rgba(255, 79, 105, .09);
}

.how-card .steps {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  align-content: stretch;
  gap: 10px !important;
  margin: 0 !important;
}

.how-card .step {
  position: relative;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center;
  min-width: 0;
  min-height: 78px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid rgba(40, 137, 255, .28) !important;
  border-radius: 14px !important;
  color: #d3deed !important;
  background: linear-gradient(145deg, rgba(4, 18, 31, .94), rgba(7, 28, 46, .8)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
  font-size: 12px !important;
  line-height: 1.3 !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.how-card .step:hover {
  border-color: rgba(4, 200, 255, .52) !important;
  box-shadow: 0 0 18px rgba(18, 104, 255, .11), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.how-card .step > span {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 182, 255, .42);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #1e7bff, #0f56dc) !important;
  box-shadow: 0 0 13px rgba(18, 104, 255, .42);
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
}

.how-card .step > p {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin: 0 !important;
  color: #d3deed;
  font-size: 12px !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}

.how-card .step > p::before {
  content: "\2022";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(4, 200, 255, .2);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(4, 200, 255, .055);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.how-card .step:nth-child(1) > p::before { content: "#"; }
.how-card .step:nth-child(2) > p::before { content: "\25A5"; }
.how-card .step:nth-child(3) > p::before { content: "\25EB"; }
.how-card .step:nth-child(4) > p::before { content: "\25CE"; }
.how-card .step:nth-child(5) > p::before { content: "\21C4"; }
.how-card .step:nth-child(6) > p::before { content: "\2713"; }
.how-card .step:nth-child(7) > p::before { content: "\25B6"; }
.how-card .step:nth-child(8) > p::before { content: "\21BB"; }

@media (max-width: 1180px) {
  .bottom-layout > .strategy-table-panel,
  .bottom-layout > .how-card {
    height: auto !important;
  }

  .how-card .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .bottom-layout > .strategy-table-panel,
  .bottom-layout > .how-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .strategy-table-panel .evolution-rules > div {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 10px;
  }

  .strategy-table-panel .evolution-rules > div:nth-child(1),
  .strategy-table-panel .evolution-rules > div:nth-child(6),
  .strategy-table-panel .evolution-rules > div:nth-child(7) {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .how-card .steps {
    grid-template-columns: 1fr !important;
  }

  .how-card .step {
    min-height: 70px !important;
  }
}

@media (max-width: 400px) {
  .strategy-table-panel .evolution-rules > div:not(:nth-child(1)):not(:nth-child(6)):not(:nth-child(7)) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .strategy-table-panel .evolution-rules dt {
    gap: 8px;
    font-size: 11px;
  }

  .strategy-table-panel .evolution-rules dd {
    font-size: 12px;
  }

  .how-card .step {
    padding: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-card .step {
    transition: none;
  }
}
