.investment-calculator {
  padding: 100px 0;
  background: var(--dark);
}

.calculator-card {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 40px;
  margin-top: 60px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 25px;
  padding: 40px;
  backdrop-filter: blur(20px);
}

.calculator-left h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.calculator-left p {
  color: #bdbdd7;
  margin-bottom: 35px;
}

.calculator-card::before {

  content: "";

  position: absolute;

  inset: 0;

  border-radius: 25px;

  padding: 1px;

  background: linear-gradient(135deg,
      rgba(108, 92, 231, .4),
      rgba(0, 210, 255, .4));

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  pointer-events: none;

}

.input-group {
  margin-bottom: 30px;
}

.input-group label,
.label {
  display: block;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.amount-input {
  display: flex;
  align-items: center;
  background: #25253b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  padding: 0 18px;
  margin-bottom: 15px;
}

.amount-input span {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.amount-input input {
  width: 100%;
  height: 60px;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.2rem;
  padding-left: 10px;
}

.range-wrapper {
  position: relative;
  margin-top: 20px;
}

#investmentRange {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 50px;
  outline: none;
  cursor: pointer;

  background: linear-gradient(to right,
      var(--secondary) 2%,
      #2b2d42 2%);
}

#investmentRange::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--secondary);
  box-shadow: 0 0 15px rgba(0, 210, 255, .6);
  cursor: pointer;
}

#investmentRange::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  background: #fff;
  cursor: pointer;
}

.range-value {

  position: absolute;

  top: -45px;

  left: 0;

  transform: translateX(-50%);

  background: var(--secondary);

  color: #fff;

  padding: 8px 14px;

  border-radius: 10px;

  font-size: .9rem;

  font-weight: 600;

  transition: .2s;

}

.range-value::after {

  content: "";

  position: absolute;

  bottom: -6px;

  left: 50%;

  transform: translateX(-50%);

  border-left: 6px solid transparent;

  border-right: 6px solid transparent;

  border-top: 6px solid var(--secondary);

}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.plan-card {
  background: #25253b;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: .35s;
}

.plan-card::before {

  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  width: 100%;

  height: 100%;

  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .08),
      transparent);

  transition: .7s;

}

.plan-card:hover::before {

  left: 100%;

}

.plan-card:hover {
  transform: translateY(-6px);
}

.plan-card.active {
  border-color: var(--secondary);
  box-shadow: 0 0 25px rgba(0, 210, 255, .35);
}

.plan-card h4 {
  color: #fff;
  margin-bottom: 10px;
}

.plan-card span {
  color: var(--accent);
  font-weight: 600;
}

#days {
  width: 100%;
  height: 60px;
  background: #25253b;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 15px;
  padding: 0 18px;
}

.calculator-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.result-card {

  display: flex;

  align-items: center;

  gap: 20px;

  background: rgba(255, 255, 255, .04);

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 18px;

  padding: 22px;

  transition: .35s;

}

.result-card:hover {

  transform: translateY(-6px);

  border-color: rgba(0, 210, 255, .4);

  box-shadow: 0 12px 30px rgba(0, 210, 255, .15);

}

.result-icon {

  width: 60px;

  height: 60px;

  border-radius: 16px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 1.6rem;

  background: linear-gradient(135deg,
      var(--primary),
      var(--secondary));

}

.result-info {

  flex: 1;

}

.result-info span {

  display: block;

  color: #9ea5c4;

  margin-bottom: 8px;

}

.result-info h2 {

  color: #fff;

  font-size: 2rem;

  font-weight: 700;

}


.invest-btn {

  height: 65px;

  border: none;

  border-radius: 16px;

  background: linear-gradient(135deg,
      var(--primary),
      var(--secondary));

  color: #fff;

  font-weight: 700;

  letter-spacing: .6px;

  cursor: pointer;

  position: relative;

  overflow: hidden;

  transition: .4s;

}

.invest-btn::before {

  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  width: 100%;

  height: 100%;

  background: linear-gradient(90deg,

      transparent,

      rgba(255, 255, 255, .25),

      transparent);

}

.invest-btn:hover::before {

  left: 100%;

  transition: .8s;

}

.invest-btn:hover {

  transform: translateY(-4px);

  box-shadow: 0 20px 40px rgba(108, 92, 231, .45);

}

@media(max-width:992px) {

  .calculator-card {
    grid-template-columns: 1fr;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }

}

.profit-chart {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.circle {
  position: relative;
  width: 220px;
  height: 220px;
}

.circle svg {
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke-width: 14;
}

.circle .bg {
  stroke: #33334d;
}

.circle .progress {

  stroke: var(--secondary);

  stroke-linecap: round;

  stroke-dasharray: 565;

  stroke-dashoffset: 565;

  transition: stroke-dashoffset .8s ease;

}

.circle-content {

  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

}

.circle-content h2 {

  color: var(--accent);

  font-size: 2.2rem;

  margin-bottom: 8px;

}

.circle-content span {

  color: #bbb;

  font-size: .95rem;

}

.investment-summary {

  margin-top: 25px;

  background: rgba(255, 255, 255, .04);

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 18px;

  padding: 25px;

}

.investment-summary h4 {

  color: #fff;

  margin-bottom: 20px;

  font-size: 1.2rem;

}

.summary-item {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 14px 0;

  border-bottom: 1px solid rgba(255, 255, 255, .06);

}

.summary-item:last-child {

  border: none;

}

.summary-item span {

  color: #9ea5c4;

}

.summary-item strong {

  color: #fff;

  font-weight: 600;

}

.summary-item.total {

  margin-top: 12px;

  padding-top: 20px;

}

.summary-item.total strong {

  color: var(--accent);

  font-size: 1.2rem;

}

.calculator-card {
  position: relative;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: floatGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.glow-1 {
  width: 280px;
  height: 280px;
  background: var(--primary);
  top: -120px;
  left: -80px;
}

.glow-2 {
  width: 220px;
  height: 220px;
  background: var(--secondary);
  bottom: -80px;
  right: -80px;
  animation-delay: 3s;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(25px, -20px);
  }

}

.crypto-icon {

  position: absolute;

  font-size: 2rem;

  color: rgba(255, 255, 255, .08);

  animation: floatIcon 12s linear infinite;

  pointer-events: none;

}

.bitcoin {

  top: 8%;
  right: 12%;

}

.ethereum {

  bottom: 18%;
  left: 10%;

  animation-delay: 4s;

}

.usdt {

  top: 55%;
  right: 28%;

  animation-delay: 8s;

}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }

}

.trust-badge {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-top: 18px;

  color: #9ea5c4;

  font-size: .9rem;

}

.trust-badge i {

  color: #35d07f;

}