/* ============ INVESTMENT PLANS SECTION ============ */
.investment-plans {
  position: relative;
  padding: 120px 0;
  background: var(--dark-bg);
  overflow: hidden;
}

/* Background Effects */
.plans-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plans-orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.15), transparent);
  top: -150px;
  left: -150px;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
}

.plans-orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
  bottom: -100px;
  right: -100px;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite reverse;
}

.plans-orb-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06), transparent);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.plans-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge i {
  color: var(--accent);
  animation: starPulse 2s ease-in-out infinite;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Plan Toggle */
.plan-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-save {
  background: rgba(0, 214, 143, 0.15);
  border: 1px solid rgba(0, 214, 143, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  animation: savePulse 2s ease-in-out infinite;
}

.toggle-switch {
  position: relative;
  width: 55px;
  height: 28px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-card);
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 28px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
  background: rgba(124, 92, 252, 0.2);
  border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(27px);
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

/* Plan Card */
.plan-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
}

.plan-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(124, 92, 252, 0.2);
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
  z-index: 2;
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2);
}

.plan-card.featured::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(124, 92, 252, 0.2));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

.plan-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 252, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.plan-card:hover .plan-card-shine {
  opacity: 1;
}

/* Plan Badges */
.plan-popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(0, 214, 143, 0.2), rgba(0, 214, 143, 0.1));
  border: 1px solid rgba(0, 214, 143, 0.3);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.plan-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  animation: badgeGlow 2s ease-in-out infinite;
}

.plan-featured-badge i {
  font-size: 10px;
}

.plan-elite-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(124, 92, 252, 0.3);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* Plan Header */
.plan-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.plan-icon-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto 15px;
}

.plan-icon {
  width: 70px;
  height: 70px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.plan-card.featured .plan-icon {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--accent);
}

.plan-card:hover .plan-icon {
  transform: rotateY(180deg);
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
}

.plan-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plan-card:hover .plan-icon-glow {
  opacity: 0.3;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-description {
  font-size: 14px;
  color: var(--text-muted);
}

/* Plan Pricing */
.plan-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px 0;
  border-top: 1px solid rgba(124, 92, 252, 0.1);
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
  position: relative;
  z-index: 1;
}

.plan-roi {
  text-align: center;
}

.roi-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.plan-card.featured .roi-value {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(124, 92, 252, 0.3), transparent);
}

.plan-duration {
  text-align: center;
}

.duration-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.duration-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Investment Range */
.plan-investment-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(124, 92, 252, 0.05);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.range-item {
  text-align: center;
}

.range-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.range-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.range-divider {
  width: 1px;
  height: 30px;
  background: rgba(124, 92, 252, 0.2);
}

/* Plan Features */
.plan-features {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.features-list li i {
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
}

/* Plan Actions */
.plan-actions {
  position: relative;
  z-index: 1;
}

.invest-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.invest-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.invest-btn:hover::before {
  width: 400px;
  height: 400px;
}

.invest-btn:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 92, 252, 0.3);
}

.invest-btn.primary {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border-color: transparent;
  color: #1A1A3E;
  font-weight: 700;
}

.invest-btn.primary:hover {
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.invest-btn i {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.invest-btn span {
  position: relative;
  z-index: 1;
}

.invest-btn:hover i {
  transform: translateX(3px);
}

/* Calculator */
.calculator-wrapper {
  margin-bottom: 80px;
}

.calculator-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.05), transparent);
  pointer-events: none;
}

.calculator-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.calc-icon {
  width: 50px;
  height: 50px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.calc-title h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.calc-title p {
  font-size: 14px;
  color: var(--text-muted);
}

.calculator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.calc-select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.2);
}

.amount-input-wrapper {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-input {
  width: 100%;
  padding: 14px 20px 14px 40px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.2);
}

.amount-slider {
  margin-top: 15px;
}

.amount-slider input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(124, 92, 252, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.amount-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--dark-card);
  box-shadow: 0 0 15px rgba(124, 92, 252, 0.4);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: rgba(124, 92, 252, 0.05);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-label {
  font-size: 14px;
  color: var(--text-muted);
}

.result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-item.highlight .result-value {
  color: var(--success);
  font-size: 24px;
}

.result-item.total {
  padding-top: 20px;
  border-top: 1px solid rgba(124, 92, 252, 0.15);
}

.result-item.total .result-value {
  font-size: 22px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Comparison Table */
.comparison-wrapper {
  margin-top: 40px;
}

.comparison-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 30px;
}

.comparison-table {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: rgba(124, 92, 252, 0.1);
  padding: 20px 30px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.15);
}

.header-cell {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.header-cell.feature-name {
  text-align: left;
}

.header-cell.featured-column {
  color: var(--accent);
}

.table-body .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 18px 30px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.08);
  transition: background 0.3s ease;
}

.table-body .table-row:hover {
  background: rgba(124, 92, 252, 0.05);
}

.row-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
}

.row-cell {
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 500;
}

.row-cell.featured-column {
  color: var(--accent);
  font-weight: 600;
}

.row-cell i.fa-check-circle {
  color: var(--success);
  font-size: 18px;
}

.row-cell i.fa-times-circle {
  color: var(--text-muted);
  font-size: 18px;
}

/* ============ ANIMATIONS ============ */
@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }
}

@keyframes savePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes badgeGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .plan-card.featured {
    transform: scale(1.03);
  }

  .plan-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
  }
}

@media (max-width: 992px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card.featured {
    transform: scale(1);
    grid-column: span 1;
  }

  .plan-card.featured:hover {
    transform: translateY(-10px);
  }

  .calculator-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .investment-plans {
    padding: 80px 0;
  }

  .plans-container {
    padding: 0 30px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto 60px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-description {
    font-size: 16px;
  }

  .table-header,
  .table-body .table-row {
    padding: 15px 20px;
  }

  .header-cell,
  .row-cell {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .plans-container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .plan-card {
    padding: 30px 20px;
  }

  .roi-value,
  .duration-value {
    font-size: 30px;
  }

  .calculator-card {
    padding: 25px;
  }

  .calc-results {
    padding: 20px;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .table-header,
  .table-body .table-row {
    min-width: 600px;
  }
}