/* ==========================================================================
   MEGAEDU - NÂNG CẤP VIP (VIP UPGRADE) STYLING
   ========================================================================== */

.vip-upgrade-page {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 120px);
}

.vip-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(67, 97, 238, 0.08);
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vip-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.vip-page-title .text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-page-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

/* Wallet & Redeem Box */
.vip-wallet-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.vip-wallet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.vip-balance-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2563eb;
}

.vip-redeem-input {
  border-radius: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vip-btn-redeem {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

.vip-recommended-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.vip-addon-note {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 1rem;
}

.vip-btn-buy {
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.vip-btn-buy:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Alert Notification */
.vip-alert-box {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Popup chọn gói nhỏ */
.vip-sub-modal {
  border: none;
  border-radius: 1rem;
}

.vip-sub-modal .modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.vip-sub-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.vip-sub-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vip-sub-item:hover,
.vip-sub-item:focus-visible {
  border-color: #93c5fd;
  outline: none;
}

.vip-sub-item.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #f8fbff;
}

.vip-sub-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.vip-sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.5rem 0;
}

.vip-sub-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.vip-sub-tag-count {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.vip-sub-desc {
  font-size: 0.85rem;
  color: #64748b;
  white-space: pre-line;
}

.vip-sub-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vip-sub-desc-toggle {
  font-size: 0.8rem;
  text-decoration: none;
}

.vip-sub-picked {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
}

/* Khung trang (thay .container) */
.vip-upgrade-wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Mobile */
@media (max-width: 575.98px) {
  .vip-upgrade-page {
    padding-top: 0.75rem;
    padding-bottom: 2.5rem;
  }

  .vip-page-title {
    font-size: 1.45rem;
  }

  .vip-page-subtitle {
    font-size: 0.875rem;
  }

  .vip-wallet-card {
    padding: 1rem;
  }

  .vip-wallet-icon {
    width: 40px;
    height: 40px;
  }

  .vip-balance-val {
    font-size: 1.5rem;
  }

  .mp-showcase-header {
    padding: 1.15rem 1rem 1rem;
  }

  .mp-showcase-body {
    padding: 1rem;
  }

  .mp-detail-price {
    font-size: 1.6rem;
  }

  .vip-sub-list {
    grid-template-columns: 1fr;
  }
}

/* Khung chi tiết gói (dùng lại giao diện member_pack.css) */
.vip-detail-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.vip-detail-vnd {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: #94a3b8;
}

.vip-cta-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
  text-align: center;
}

.mp-cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Pill chọn gói trên mobile: xuống dòng hết, không cuộn ngang */
.vip-upgrade-page .mp-mobile-nav-scroll {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}

.vip-upgrade-page .mp-mobile-pill {
  flex-shrink: 1;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* Gói hiện tại: nhãn nhỏ trong khung ví (27/10) */
.vip-plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
  font-size: .8rem;
}

.vip-plan-chip-label {
  color: #6b7280;
  font-weight: 600;
}

.vip-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vip-plan-chip--on {
  background: linear-gradient(135deg, #1fb5d6, #5b3fa8);
  color: #fff;
}

.vip-plan-chip--on svg {
  flex: 0 0 auto;
  color: #fde68a;
}

.vip-plan-chip-exp {
  color: #6b7280;
}

.vip-tag-owned {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: middle;
}

.vip-owned-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: .88rem;
  line-height: 1.45;
}

.vip-owned-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.vip-tag-owned--row {
  margin: 0 6px 0 0;
}
