/* Nút VIP trên Header */
.header-vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0b0d14 !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-vip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  color: #000 !important;
}

.header-vip-btn i {
  color: #0b0d14;
  font-size: 0.9rem;
}

.vip-page-content {
  padding: 24px 0 70px 0;
  flex: 1;
}

/* Breadcrumb */
.vip-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.vip-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.vip-breadcrumb a:hover {
  color: #fbbf24;
}

.vip-breadcrumb span {
  color: var(--text-dim);
}

.vip-breadcrumb .current {
  color: #fbbf24;
  font-weight: 600;
}

/* 1. HERO SHOWCASE HOÀNG GIA (GOLDEN HERO) */
.vip-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 50%, rgba(139, 92, 246, 0.14) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  margin-bottom: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(12px);
}

.vip-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.vip-crown-badge {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #000;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
  animation: crownFloat 3s ease-in-out infinite alternate;
}

@keyframes crownFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-8px) rotate(2deg); }
}

.vip-main-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.vip-main-title span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.vip-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-vip-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0b0d14;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transition: all var(--transition-fast);
}

.btn-vip-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

.btn-vip-plans-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-vip-plans-scroll:hover {
  border-color: #fbbf24;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

/* 2. KHỐI 4 ĐẶC QUYỀN VIP VƯỢT TRỘI (VIP PERKS GRID) */
.vip-perks-section {
  margin-bottom: 54px;
}

.vip-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.vip-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.vip-section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.vip-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.vip-perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.vip-perk-card:hover {
  transform: translateY(-6px);
  border-color: #fbbf24;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

.vip-perk-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: all var(--transition-fast);
}

.vip-perk-card.ad-free .vip-perk-icon-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.vip-perk-card.download .vip-perk-icon-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.vip-perk-card.speed-4k .vip-perk-icon-box {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06b6d4;
}

.vip-perk-card.anti-lag .vip-perk-icon-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.vip-perk-card:hover .vip-perk-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.vip-perk-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.vip-perk-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3. BẢNG CÁC GÓI CƯỚC VIP (PRICING GRID) */
.vip-pricing-section {
  margin-bottom: 54px;
}

.vip-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: #fbbf24;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Gói Nổi Bật (Tiên Đế) */
.pricing-card.popular {
  border: 2px solid #fbbf24;
  background: linear-gradient(145deg, rgba(30, 36, 58, 0.9), rgba(18, 22, 36, 0.95));
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.35);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-6px);
}

.pricing-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pricing-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-card.popular .pricing-plan-name {
  color: #fbbf24;
}

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

.pricing-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.pricing-card.popular .pricing-amount {
  color: #fbbf24;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pricing-savings-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

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

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-feature-item i {
  color: #fbbf24;
  margin-top: 3px;
  font-size: 0.85rem;
}

.btn-choose-plan {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-choose-plan:hover {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: #fbbf24;
  color: #0b0d14;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.pricing-card.popular .btn-choose-plan {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: #fbbf24;
  color: #0b0d14;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.pricing-card.popular .btn-choose-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

/* 4. BẢNG SO SÁNH QUYỀN LỢI (COMPARISON TABLE) */
.vip-comparison-section {
  margin-bottom: 54px;
}

.vip-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.vip-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.vip-table th,
.vip-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
}

.vip-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.vip-table th.col-vip {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.vip-table tr:last-child td {
  border-bottom: none;
}

.vip-table td {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.vip-table td.col-vip {
  color: var(--text-main);
  font-weight: 600;
  background: rgba(245, 158, 11, 0.03);
}

.vip-table td i.fa-circle-check {
  color: #10b981;
  font-size: 1.1rem;
}

.vip-table td i.fa-circle-xmark {
  color: #64748b;
  font-size: 1.1rem;
}

/* 5. MODAL THANH TOÁN QUÉT MÃ QR */
.vip-payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vip-payment-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.vip-payment-modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.25);
  padding: 30px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.vip-payment-modal-overlay.active .vip-payment-modal-card {
  transform: translateY(0) scale(1);
}

.vip-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.vip-modal-close:hover {
  background: #ef4444;
  color: #fff;
}

.payment-plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0b0d14;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.payment-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.payment-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 18px;
}

/* Khung ảnh QR Code */
.payment-qr-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.payment-qr-img {
  width: 190px;
  height: 190px;
  display: block;
}

.payment-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.payment-detail-row strong {
  color: var(--text-main);
}

.btn-confirm-vip-paid {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0b0d14;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transition: all var(--transition-fast);
}

.btn-confirm-vip-paid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

/* =========================================================
   ĐỒNG BỘ CHẾ ĐỘ BAN NGÀY (LIGHT MODE) CHO TRANG VIP
   ========================================================= */
body.theme-light .vip-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.06) 50%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.theme-light .vip-perk-card,
body.theme-light .pricing-card,
body.theme-light .vip-table-container,
body.theme-light .vip-payment-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.theme-light .pricing-card.popular {
  background: #ffffff;
  border-color: #f59e0b;
}

body.theme-light .pricing-amount,
body.theme-light .pricing-plan-name,
body.theme-light .payment-title {
  color: #0f172a;
}

body.theme-light .btn-choose-plan {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

body.theme-light .vip-table th {
  background: #f8fafc;
  color: #0f172a;
}

body.theme-light .vip-table td {
  color: #475569;
}

body.theme-light .payment-details-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 992px) {
  .vip-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vip-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .vip-hero-banner {
    padding: 30px 18px;
  }

  .vip-main-title {
    font-size: 1.65rem;
  }

  .vip-hero-desc {
    font-size: 0.9rem;
  }

  .vip-perks-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vip-pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vip-table th,
  .vip-table td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
}
