#pricing {
  margin-top: 30px;
}

/* Wrapper */
.currency-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 26px 0;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
}

/* Toggle container */
.switch {
  position: relative;
  width: 58px;
  height: 30px;
  cursor: pointer;
  perspective: 600px; /* enables subtle 3D tilt */
}

/* Hide checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* TRACK */
.slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(255,255,255,0.15);
  transition:
    background .35s cubic-bezier(.25,.8,.25,1),
    transform .35s cubic-bezier(.25,1,.30,1);
  transform-origin: center;
}

/* BALL */
.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  transition:
    transform .45s cubic-bezier(.25,1.4,.36,1),
    width .25s ease,
    height .25s ease;
  transform-origin: center;
}

/* PRESS EFFECT (liquid squish) */
.switch:active .slider {
  transform: scale(0.94);
}

.switch:active .slider::before {
  width: 26px;
  height: 20px;
}

/* ===== ACTIVE BLUE MODE ===== */
input:checked + .slider {
  background: rgb(0, 140, 255);       /* CLEAN BLUE */
}

/* Ball slide, tilt, bounce */
input:checked + .slider::before {
  transform: translate(28px, -50%) rotate(12deg) scale(1.05);
}

/* Subtle 3D tilt effect */
input:checked + .slider {
  transform: rotateY(-14deg) scale(1.02);
}

.switch:active input:checked + .slider {
  transform: rotateY(-10deg) scale(0.97);
}


/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

/* Cards */
.price {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  transition: .35s ease;
  position: relative;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-row .btn-primary {
  flex: 1;
}

.btn-row .show-more {
  flex-shrink: 0;
}


/* Glow border animation */
.price::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(120deg,
    rgba(0,150,255,0.6),
    rgba(255,255,255,0.05),
    rgba(0,150,255,0.6)
  );
  opacity: 0;
  transition: 0.4s ease;
  z-index: -1;
}

.price:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0,150,255,0.18);
}

.price:hover::before {
  opacity: 0.35;
}

/* Typography */
.price h4 {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

.price .small {
  opacity: 0.8;
  margin-bottom: 12px;
}

.amount {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
}

.amount {
  transition: opacity .25s ease, transform .25s ease;
}

/* CTA btn inside card */
.price .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* Highlighted middle plan */
.price:nth-child(2) {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transform: scale(1.035);
}

.price:nth-child(2):hover {
  transform: scale(1.045) translateY(-8px);
}

/* Responsive */
@media (max-width:620px) {
  .price:nth-child(2) {
    transform: none;
  }
}

.amount span,
.amount {
  white-space: nowrap;
}

/* Full card animation when currency changes */
.price {
  transition: 
    opacity .35s ease,
    transform .35s ease,
    filter .35s ease;
}

.price.currency-anim {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
}

.features {
  margin-top: 10px;
  margin-bottom: 16px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  max-height: 10px;
}

.features li {
  line-height: 1.3;
}


/* ========== 3D FLIP EFFECT ========== */
.pricing-grid {
  perspective: 1200px;
}

.flip-card {
  width: 100%;
  height: auto;
  position: relative;
}

.flip-inner {
  width: 100%;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.23,1,.32,1);
}

.price.front,
.price.back {
  position: absolute;
  height: auto;
  inset: 0;
  backface-visibility: hidden;
}

.price.back {
  transform: rotateY(180deg);
}

.flip-card.flip .flip-inner {
  transform: rotateY(180deg);
}






.flip-inner {
  transition: transform 1.1s cubic-bezier(.25,1,.35,1);
}



.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content.glass {
  width: 420px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  animation: pop .35s ease;
  color: white;
}

#modalTitle {
  font-size: 22px;
  margin-bottom: 12px;
}

#modalFeatures li {
  margin-bottom: 8px;
  font-size: 14px;
}

@keyframes pop {
  from { transform: scale(.75); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  float: right;
  margin-bottom: 8px;
  color: white;
}

.show-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.show-more span {
  transition: transform .25s ease;
}

.show-more::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: rgba(0,150,255,0.8);
  transition: width .3s ease;
}

.show-more:hover {
  color: #fff;
}

.show-more:hover span {
  transform: translateX(4px);
}

.show-more:hover::after {
  width: 100%;
}


.features li {
  color: rgba(255,255,255,0.7);
}

.features li span {
  color: rgb(0,150,255);
  font-weight: 600;
}



/* ===== MODAL V2 ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,18,0.75);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Card */
.modal-card.v2 {
  width: 520px;
  max-width: calc(100% - 32px);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.09),
    rgba(255,255,255,0.03)
  );
  border-radius: 26px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(50px) scale(.94);
  opacity: 0;
  transition: all .55s cubic-bezier(.22,1,.32,1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
}

/* Header */
.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.plan-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  background: rgba(0,150,255,0.18);
  color: #8bd3ff;
  margin-bottom: 12px;
}

.price-stack {
  margin-top: 12px;
}

.price-main {
  font-size: 44px;
  font-weight: 900;
}

.price-sub {
  font-size: 13px;
  opacity: .6;
}

.modal-features-wrap {
  margin-bottom: 22px;
}

.modal-features {
  display: grid;
  gap: 10px;
}

.modal-card.v2 {
  max-height: none;
}


.modal-features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.modal-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}

.modal-features li span {
  color: #00aaff;
  font-weight: 700;
}

/* Footer */
.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  opacity: .6;
}

.plan-pill.angled {
  position: absolute;
  top: 14px;
  left: 5%;
  transform: translateX(-50%) rotate(-12deg);

  padding: 6px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;

  background: linear-gradient(90deg, #00aaff, #4cffc3);
  color: #001018;

  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,150,255,0.35);
  white-space: nowrap;  
  z-index: 20;
}




.title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.price-main {
  font-size: 44px;
  font-weight: 900;
}

#modalTitle {
  font-size: 26px;
  font-weight: 600;
}

.plan-badge {
  position: absolute;
  top: -3px;
  right: -20px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #00c6ff, #4dffe1);
  color: #001018;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  transform: rotate(16deg);
  box-shadow: 0 4px 16px rgba(0,150,255,0.35);
  text-transform: uppercase;
  z-index: 20;
}


/* KEEP PRICING TOGGLE RIGHT ON MOBILE */
@media (max-width: 620px) {


  .currency-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .switch {
    transform: scale(0.85);
  }
}



/* ===== MOBILE RESPONSIVE MODAL ===== */
@media (max-width: 480px) {

  .modal-card.v2 {
    width: 92% !important;
    padding: 22px 20px 24px;
    border-radius: 20px;
    transform: translateY(40px) scale(.96);
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
  }

  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 18px;
  }

  .plan-pill.angled {
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    font-size: 10px;
    padding: 5px 12px;
  }

  .modal-header {
    margin-top: 30px;
    margin-bottom: 18px;
  }

  #modalTitle {
    font-size: 20px;
  }

  .price-main {
    font-size: 34px;
  }

  .modal-features li {
    font-size: 13px;
    line-height: 1.35;
    gap: 8px;
  }

  .modal-footer {
    margin-top: 10px;
  }

  #modalButton {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
  }
}
