/* ===== Fund Transactions Page ===== */
.ftx-page {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.ftx-section {
  padding: 4.5rem 0;
}

.ftx-section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.ftx-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.ftx-subtitle {
  color: var(--text-secondary);

  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.ftx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;

  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.ftx-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* Hero */
.ftx-hero {
  padding: 2rem 0 5rem;
  overflow: hidden;
  background: url("../image/capitalbg.png") no-repeat;
  background-size: 100% 100%;
}

.ftx-hero .container {
  position: relative;
  z-index: 1;
}



.ftx-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.ftx-hero-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

.ftx-cube-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}



/* Why cards */
.ftx-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ftx-why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  min-height: 180px;
}

.ftx-why-icon {
  margin-bottom: 0.6rem;
}

.ftx-why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ftx-why-card p {

  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Stats */
.ftx-stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.ftx-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.8rem 1.65rem;
  position: relative;
  overflow: hidden;
}

.ftx-stat-card--large,
.ftx-stat-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ftx-stat-text {
  padding: 1.5rem 1.65rem 0 1.65rem;
  flex: 0 0 auto;
}

.ftx-stat-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.ftx-stat-label {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.ftx-stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.ftx-stat-desc {

  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.ftx-stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ftx-stat-tag {
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.ftx-stat-tag--blue {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}

.ftx-stat-chart {
  margin-top: auto;
  line-height: 0;
}

.ftx-stat-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.ftx-stat-card--glow::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
          circle,
          rgba(0, 82, 255, 0.85) 0%,
          rgba(0, 82, 255, 0.3) 60%,
          transparent 100%
  );
  pointer-events: none;
}

.ftx-stat-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  min-height: 100%;
}

.ftx-stat-side > .ftx-stat-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* How it works */
.ftx-how-row {
  margin-bottom: 2rem;
}

.ftx-how-row > li:first-child {
  display: flex;
  align-items: center;
}

.ftx-how-head {
  width: 100%;
}

.ftx-how-head .ftx-pill {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #2a2428 0%, #0f0e0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.ftx-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ftx-dashboard-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.ftx-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.ftx-dashboard-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 280px;
}

.ftx-dashboard-nav {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border-color);
}

.ftx-dashboard-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.ftx-dashboard-nav a.active {
  background: rgba(0, 82, 255, 0.15);
  color: var(--blue-light);
}

.ftx-dashboard-main {
  padding: 1.25rem;
  position: relative;
}

.ftx-profile-float {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 220px;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.ftx-profile-float .name {

  font-weight: 600;
}

.ftx-profile-float .role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ftx-profile-float .badge-sm {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-size: 0.62rem;
  background: rgba(0, 82, 255, 0.15);
  color: var(--blue-light);
}

.ftx-market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);

}

.ftx-market-row .up {
  color: #4ade80;
}

.ftx-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ftx-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
}

.ftx-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ftx-step-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 500;
  background: linear-gradient(180deg, #323232 0%, #181818 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.ftx-step-icon {
  flex-shrink: 0;
  line-height: 0;
}

.ftx-step-icon img {
  display: block;
  height: auto;
}

.ftx-step-card h4 {

  font-weight: 600;
  margin-bottom: 0.45rem;
}

.ftx-step-card p {

  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.ftx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-ftx-white {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: #fff;
  color: var(--blue-primary);

  font-weight: 600;
  text-decoration: none;
  border: none;
}

.btn-ftx-white:hover {
  color: var(--blue-primary);
}

.btn-ftx-blue {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: var(--blue-primary);
  color: #fff;

  font-weight: 600;
  text-decoration: none;
  border: 1px solid #fff;
}

.btn-ftx-blue:hover {
  color: #fff;
  border-color: #fff;
}

.btn-ftx-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  color: #fff;

  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ftx-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Pricing */
.ftx-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.ftx-plan-tab {
  padding: 0.45rem 1.15rem;
  border-radius: 50px;

  font-weight: 500;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ftx-plan-tab.active {
  background: #fff;
  color: #000;
}

.ftx-plan-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.25rem;
}

.ftx-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 0.35rem;
  margin-bottom: 1.15rem;
}

.ftx-amount-btn {
  padding: 0.55rem 0.75rem;
  border-radius: 50px;

  font-weight: 500;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ftx-amount-btn.active {
  background: var(--blue-primary);
}

.ftx-plan-card {
  background: var(--blue-primary);
  border-radius: 18px;
  padding: 1.5rem 1.65rem 1.35rem;
  margin-bottom: 1.15rem;
}

.ftx-plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ftx-plan-card-head h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.ftx-popular-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #fff;
  color: var(--blue-primary);
}

.ftx-plan-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ftx-plan-price {
  font-size: 2rem;
  font-weight: 700;
}

.ftx-plan-price small {

  font-weight: 400;
  opacity: 0.85;
}

.ftx-plan-account {

  opacity: 0.9;
}

.btn-ftx-black {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 50px;
  background: #000;
  color: #fff;

  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  margin-bottom: 0.85rem;
}

.btn-ftx-black:hover {
  color: #fff;
}

.ftx-plan-note {

  opacity: 0.85;
  margin: 0;
}

.ftx-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ftx-phase-tab {
  padding: 0.4rem 1rem;
  border-radius: 50px;

  font-weight: 500;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.ftx-phase-tab.active {
  background: var(--blue-primary);
  color: #fff;
}

.ftx-rules-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.ftx-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}

.ftx-rule-row:last-child {
  border-bottom: none;
}

.ftx-rule-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
}

.ftx-rule-label i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ftx-rule-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.ftx-rule-pct {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  font-size: 0.68rem;
  background: rgba(0, 82, 255, 0.15);
  color: var(--blue-light);
  margin-left: 0.35rem;
}

/* Included plans */
.ftx-included-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ftx-included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ftx-included-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.ftx-included-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}

.ftx-included-row:last-child {
  border-bottom: none;
}

.ftx-included-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 400;
}

.ftx-included-label i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ftx-included-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* Payouts */
.ftx-payout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ftx-payout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 320px;
}

.ftx-payout-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ftx-payout-card > p {

  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.ftx-shield {
  width: 120px;
  height: 130px;
  margin: auto auto 0;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftx-shield svg {
  width: 100%;
  height: 100%;
}

.ftx-payout-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: auto;
}

.ftx-payout-sub {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.2rem 0.75rem 1.2rem;
  text-align: left;
}

.ftx-payout-sub .tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #2a2a2a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}

.ftx-payout-sub li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  list-style: none;
}

.ftx-payout-sub li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ftx-payout-sub li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ftx-payout-sub ul {
  padding: 0;
  margin: 0;
}

.ftx-cta-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Love grid */
.ftx-love-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.ftx-love-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.ftx-love-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ftx-love-icon {

}

.ftx-love-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ftx-love-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
}

.ftx-love-card .highlight {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.ftx-love-card p {

  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Extended footer */
.ftx-footer-extra {

  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 1rem;
}

.ftx-footer-extra p {
  margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
  .ftx-why-grid,
  .ftx-steps-grid,
  .ftx-love-grid {
    grid-template-columns: 1fr;
  }

  .ftx-stats-grid {
    grid-template-columns: 1fr;
  }

  .ftx-stat-side > .ftx-stat-card {
    flex: none;
  }

  .ftx-dashboard-body {
    grid-template-columns: 1fr;
  }

  .ftx-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .ftx-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ftx-included-grid,
  .ftx-payout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ftx-section {
    padding: 3rem 0;
  }

  .ftx-payout-subgrid {
    grid-template-columns: 1fr;
  }
}
