.pricing { grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(4, 1fr); } }

/* Mobile scroll ngang cho 4 plan */
@media (max-width: 768px) {
  .pricing {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .pricing-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-height: auto;
    padding: 20px 16px;
  }
  
  /* Ẩn scrollbar */
  .pricing::-webkit-scrollbar {
    display: none;
  }
  
  .pricing {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.pricing-card { 
  display: grid; 
  gap: 10px; 
  align-content: start;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.pricing-card--highlight { 
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(139, 92, 246, 0.6); 
  box-shadow: 
    0 8px 30px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(139, 92, 246, 0.2),
    inset 0 0 20px rgba(139, 92, 246, 0.05);
  position: relative;
  overflow: hidden;
}

/* Thêm chữ "Phổ biến" ở góc chéo */
.pricing-card--highlight::before {
  content: "Phổ biến";
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  z-index: 10;
  white-space: nowrap;
  animation: ribbon-glow 2s ease-in-out infinite alternate;
}

/* Animation cho ribbon */
@keyframes ribbon-glow {
  0% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  }
  100% {
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.6), 0 0 20px rgba(251, 191, 36, 0.4);
  }
}

/* Hiệu ứng hover cho gói Pro */
.pricing-card--highlight:hover {
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 
    0 12px 40px rgba(139, 92, 246, 0.4),
    0 0 0 2px rgba(139, 92, 246, 0.3),
    0 0 30px rgba(139, 92, 246, 0.2),
    inset 0 0 30px rgba(139, 92, 246, 0.08);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

/* Hiệu ứng glow cho viền tím */
.pricing-card--highlight::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.3));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card--highlight:hover::after {
  opacity: 1;
}
.pricing-card__price { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 8px; 
  text-align: center;
}

.pricing-card__price .original-price {
  margin-top: 8px;
  text-align: center;
  display: none; /* Ẩn mặc định (gói 6 tháng) */
}

.pricing-card__price .strikethrough {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 500;
}

.pricing-card__price .money {
  font-size: 28px;
  font-weight: 800;
  color: #fbbf24;
}

.pricing-card__price .cycle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
}


.badge--highlight {
  background: #dc2626 !important;
  color: white !important;
  font-weight: 600;
}

/* Price toggle buttons styling */
.price-toggle {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.price-toggle__btn {
  position: relative;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.price-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.price-toggle__btn.is-active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: #f59e0b;
  color: #1f2937;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.price-toggle__btn.is-active:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.pricing--detailed .pricing-card__features { margin-bottom: 12px; }
.pricing-card__features { list-style: none; padding: 0; display: grid; gap: 8px; }
.pricing-card__features li { padding-left: 24px; position: relative; }
.pricing-card__features li::before { content: "•"; position: absolute; left: 8px; color: #7ea2ff; }

/* ===== QUOTA SECTION STYLING ===== */
.pricing-card__quotas {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quota-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quota-item:last-child {
  border-bottom: none;
}

.quota-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.quota-value {
  color: #fbbf24;
  font-weight: 600;
  font-size: 14px;
}

.quota-value:contains("—") {
  color: rgba(255, 255, 255, 0.4);
}



/* ===== BUTTON RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  .pricing-card .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    white-space: normal;
    line-height: 1.4;
    min-height: 48px;
  }
  
  .pricing-card__features {
    margin-bottom: 20px;
  }
  
  .pricing-card__quotas {
    margin: 20px 0;
  }
  
  /* Đảm bảo button có đủ không gian */
  .pricing-card {
    padding-bottom: 24px;
  }
  
  /* Price toggle responsive */
  .price-toggle {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .price-toggle__btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .badge--highlight {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pricing-card .btn {
    font-size: 13px;
    padding: 12px 16px;
    min-height: 44px;
  }
  
  .quota-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  
  .quota-label {
    font-size: 12px;
  }
  
  .quota-value {
    font-size: 13px;
  }
  
  .price-toggle__btn {
    font-size: 14px;
    padding: 14px 20px;
  }
  
  .badge--highlight {
    font-size: 12px;
    margin-top: 6px;
  }
}
