/* ==========================================================================
   NETPIX - MUA GÓI (PACKAGES / PRICING PAGE)
   Styles matching the exact pixel-perfect design in Mua Gói.png
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOP FOLDER NAVIGATION BAR
   -------------------------------------------------------------------------- */
.packages-nav-section {
  background-color: #ffffff;
  padding: 30px 0 10px;
}

.packages-folders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.packages-folder-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1f2937;
  transition: transform 0.25s ease;
}

.packages-folder-link:hover {
  transform: translateY(-6px);
}

.packages-folder-link .folder-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   2. MAIN TITLE SECTION
   -------------------------------------------------------------------------- */
.packages-title-wrap {
  text-align: center;
  padding: 30px 20px 25px;
}

.packages-main-title {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 34px;
  font-weight: 900;
  color: #ff4d2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   3. PACKAGES GRID: STRICT 1:1 ASPECT RATIO & 350x350 PIXELS
   -------------------------------------------------------------------------- */
.packages-grid-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.packages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 45px;
}

/* THIẾT KẾ CARD GÓI LINH HOẠT - HIỂN THỊ ĐẦY ĐỦ THÔNG TIN KHÔNG BỊ CẮT */
.package-card {
  width: 340px;
  min-width: 300px;
  max-width: 360px;
  min-height: 520px;
  height: auto;
  box-sizing: border-box;
  background: #ffffff;
  border: 1.5px solid #ff7b63;
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: #ff3e1d;
  box-shadow: 0 16px 36px rgba(255, 77, 46, 0.18);
}

.package-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.package-card-action {
  margin-top: 20px;
  width: 100%;
  flex-shrink: 0;
}

/* Card Header */
.card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.package-name {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.package-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-standard {
  background: #f1f5f9;
  color: #475569;
}

.badge-popular {
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fdba74;
}

.badge-hot {
  background: #fee2e2;
  color: #ef4444;
}

.badge-saving {
  background: #dcfce7;
  color: #16a34a;
}

.badge-vip {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #854d0e;
}

.badge-agency {
  background: #e0e7ff;
  color: #4338ca;
}

/* Price Box */
.package-price-wrap {
  margin: 8px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.package-price {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 26px;
  font-weight: 900;
  color: #ff4d2e;
  line-height: 1;
}

.package-period {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.package-old-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}

/* Coin Formula Box */
.package-coin-formula {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.package-coin-formula.recharge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.package-coin-formula.recharge .formula-title {
  font-weight: 700;
  color: #b45309;
  font-size: 14px;
  line-height: 1.3;
}

.package-coin-formula.recharge .formula-sub {
  font-size: 11.5px;
  color: #78350f;
  margin-top: 2px;
  line-height: 1.35;
}

.package-coin-formula.cycle {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.package-coin-formula.cycle .formula-icon {
  font-size: 24px;
  line-height: 1;
}

.package-coin-formula.cycle .formula-title {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 14px;
  line-height: 1.3;
}

.package-coin-formula.cycle .formula-sub {
  font-size: 11.5px;
  color: #475569;
  margin-top: 2px;
  line-height: 1.35;
}

/* Coin Icons */
.icon-coin {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.35));
}

.icon-coin-sm {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.icon-coin-md {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}

.icon-coin-lg {
  width: 28px;
  height: 28px;
  vertical-align: -6px;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.4));
}

.icon-coin-xl {
  width: 36px;
  height: 36px;
  vertical-align: -8px;
  filter: drop-shadow(0 3px 6px rgba(217, 119, 6, 0.45));
}

/* Features List */
.package-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-features li {
  font-size: 13.5px;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.package-features li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Purchase Button */
.btn-package-buy {
  width: 100%;
  height: 46px;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.package-card:hover .btn-package-buy,
.btn-package-buy:hover {
  background: linear-gradient(135deg, #ff4d2e 0%, #ea3829 100%);
  border-color: rgba(255, 77, 46, 0.4);
  box-shadow: 0 6px 20px rgba(255, 77, 46, 0.38);
  transform: translateY(-2px);
}

.btn-package-buy:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 77, 46, 0.2);
}

/* --------------------------------------------------------------------------
   4. MEMBER VIP INFO BOX (PINK)
   -------------------------------------------------------------------------- */
.vip-info-section {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 15px;
}

.vip-pink-box {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
  border-radius: 16px;
  padding: 26px 32px;
  border: 1px solid #fce7f3;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.05);
}

.vip-pink-title {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

.vip-pink-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.vip-pink-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vip-pink-list li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.vip-pink-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #e11d48;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

.vip-pink-list strong {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. REGISTRATION GUIDE BOX (GRAY)
   -------------------------------------------------------------------------- */
.vip-guide-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.vip-gray-box {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid #e2e8f0;
}

.vip-guide-header {
  margin-bottom: 22px;
}

.vip-guide-main-title {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}

.vip-guide-subtitle {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.vip-guide-block {
  margin-bottom: 20px;
}

.vip-guide-block:last-child {
  margin-bottom: 0;
}

.vip-guide-step-title {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.vip-guide-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 6px 0;
}

.vip-guide-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vip-guide-step-list li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

.vip-guide-step-list strong {
  color: #0f172a;
}

.vip-guide-english {
  margin-top: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-left: 3px solid #0284c7;
  border-radius: 4px;
}

.vip-guide-english p {
  font-size: 13px;
  color: #475569;
  margin: 0 0 4px 0;
  line-height: 1.5;
}

.vip-guide-english p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. VIETQR CHECKOUT MODAL
   -------------------------------------------------------------------------- */
.qr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qr-modal-backdrop.active,
.qr-modal-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.qr-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 0;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-backdrop.active .qr-modal-card,
.qr-modal-backdrop.show .qr-modal-card {
  transform: translateY(0);
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.qr-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qr-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  text-align: center;
}

.qr-modal-package-name {
  text-align: center;
  font-size: 14px;
  color: #ff4d2e;
  font-weight: 700;
  margin-bottom: 20px;
}

.qr-image-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-bank-details {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.qr-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qr-bank-row .label {
  color: #64748b;
}

.qr-bank-row .value {
  font-weight: 700;
  color: #0f172a;
}

.btn-qr-confirm {
  width: 100%;
  height: 48px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qr-confirm:hover {
  background: #059669;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .packages-folders-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .packages-main-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .packages-folders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages-folders-grid .packages-folder-link:last-child {
    grid-column: span 2;
  }

  .vip-gray-box, .vip-pink-box {
    padding: 20px;
  }
}
