/* ============================================================
   VM FITNESS - MEMBERSHIP & PRICING CSS
   Theme: Minimal Monochromatic (Crisp White, Deep Black & Grays)
   All Clickable Boxes & Cards Strictly Square (0px)
   ============================================================ */

/* 1. DURATION SWITCHER (DESKTOP & UNIVERSAL) */
.duration-switcher-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
  padding: 4px 8px 12px;
}

.duration-switcher {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px;
  border-radius: 0 !important;
  gap: 4px;
  max-width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.duration-btn {
  background: transparent;
  border: none;
  color: var(--apple-grey-700);
  padding: 10px 22px;
  border-radius: 0 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.duration-btn:hover {
  color: #000000;
}

.duration-btn.active {
  background: #000000;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 2. SUBSCRIPTION PRICING GRID (DESKTOP - 3 COLUMNS) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 50px;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: #000000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border: 2px solid #000000;
  background: #FFFFFF;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #000000;
  border-radius: 0 !important;
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #000000;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 0 !important;
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #1D1D1F;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--apple-grey-500);
  line-height: 1.5;
  min-height: 38px;
}

.pricing-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1D1D1F;
  vertical-align: top;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -1px;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--apple-grey-500);
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 4px;
}

.savings-tag-wrapper {
  min-height: 26px;
  display: flex;
  align-items: center;
}

.savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1D1D1F;
  background: #E5E5E7;
  border: 1px solid #D2D2D7;
  padding: 3px 10px;
  border-radius: 0 !important;
  animation: fadeInSavings 0.3s ease forwards;
}

@keyframes fadeInSavings {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
  padding: 0;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--apple-grey-700);
}

.pricing-feature svg {
  color: #000000;
  flex-shrink: 0;
}

/* 3. SPECIALIZED TRAINING (DESKTOP - 2 COLUMNS) */
.specialized-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

/* 4. TABLET RESPONSIVENESS (<= 1024px) */
@media (max-width: 1024px) {
  .pricing-grid {
    gap: 20px;
  }
  .specialized-grid {
    gap: 20px;
  }
}

/* 5. MOBILE PHONES (<= 768px) - VERTICAL STACK & COMPACT TOGGLE */
@media (max-width: 768px) {
  .duration-switcher-wrap {
    margin-bottom: 24px;
    padding: 0 4px;
    display: flex;
    justify-content: center;
    overflow: visible;
    width: 100%;
  }

  .duration-switcher {
    display: flex;
    width: 100%;
    max-width: 370px;
    background: #F5F5F7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 !important;
    padding: 3px;
    gap: 2px;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .duration-btn {
    flex: 1 1 25%;
    padding: 7px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0 !important;
  }

  .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 0;
    overflow-x: visible;
  }

  .pricing-grid .pricing-card {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding: 28px 20px;
    border-radius: 0 !important;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .specialized-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    overflow-x: visible;
  }

  .specialized-grid .pricing-card {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding: 28px 20px;
    border-radius: 0 !important;
  }
}

@media (max-width: 360px) {
  .duration-btn {
    padding: 6px 2px;
    font-size: 0.62rem;
    letter-spacing: 0px;
  }
}
