/* ============================================================
   MEMBERSHIP LANDING — Impactful pricing page
   ============================================================ */
.membership-page {
  background: #060606;
  color: #eee;
  overflow-x: hidden;
  min-height: 100vh;
}
.mb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============= TOP NAV ============= */
.mb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.mb-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212,175,110,0.3);
}
.mb-brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff, #d4af6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mb-nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.mb-nav-link {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.mb-nav-link:hover { color: #fff; }
.mb-nav-cta {
  padding: 9px 20px;
  background: linear-gradient(135deg, #d4af6e, #f0c87a);
  color: #1a1400;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(212,175,110,0.2);
}
.mb-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,175,110,0.35);
}

/* ============= HERO ============= */
.mb-hero {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mb-hero.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.55;           /* tăng từ 0.18 → 0.55 cho rõ */
  pointer-events: none;
  z-index: 0;
}
.mb-hero.has-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Overlay nhẹ — chỉ tối ở mép + xung quanh text, giữa giữ trong */
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(6,6,6,0.4) 80%, rgba(6,6,6,0.85) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.2) 0%, transparent 30%, rgba(6,6,6,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.mb-hero.has-bg-image > * { position: relative; z-index: 2; }
/* Text shadow để vẫn dễ đọc trên nền ảnh */
.mb-hero.has-bg-image .mb-hero-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 4px 40px rgba(0,0,0,0.5);
}
.mb-hero.has-bg-image .mb-hero-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  color: #ddd;
}

.mb-final-cta.has-bg-image {
  position: relative;
  overflow: hidden;
}
.mb-final-cta.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.6;            /* tăng từ 0.22 → 0.6 */
  pointer-events: none;
}
.mb-final-cta.has-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0.75) 70%, rgba(6,6,6,0.9) 100%);
  pointer-events: none;
}
.mb-final-cta.has-bg-image > * { position: relative; z-index: 2; }
.mb-final-cta.has-bg-image h2 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.mb-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 350px at 30% 20%, rgba(212,175,110,0.18), transparent 60%),
    radial-gradient(ellipse 600px 300px at 70% 60%, rgba(168,85,247,0.12), transparent 60%),
    radial-gradient(ellipse 500px 250px at 50% 100%, rgba(34,211,238,0.08), transparent 60%);
  animation: heroBgFloat 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroBgFloat {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(-30px, 20px); opacity: 0.85; }
}
.mb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212,175,110,0.12);
  border: 1px solid rgba(212,175,110,0.35);
  border-radius: 100px;
  color: #f0c87a;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 11px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.mb-pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.mb-hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -2px;
  color: #fff;
  position: relative;
  z-index: 2;
}
.mb-hero-title .accent {
  background: linear-gradient(135deg, #d4af6e 0%, #f0c87a 50%, #fff5cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: accentShimmer 4s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes accentShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.mb-hero-sub {
  font-size: 18px;
  color: #aaa;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.mb-hero-stats {
  display: inline-flex;
  gap: 0;
  padding: 16px 32px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  position: relative;
  z-index: 2;
  align-items: center;
}
.mb-hero-stats > div:not(.mb-stat-divider) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.mb-stat-divider {
  width: 1px;
  height: 36px;
  padding: 0;            /* override để không bị padding parent */
  background: rgba(255,255,255,0.1);
  align-self: center;
  flex-shrink: 0;
}
.mb-hero-stats b {
  font-size: 26px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.mb-hero-stats span {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* ============= PRICING ============= */
.mb-pricing {
  padding: 60px 0 100px;
  position: relative;
}
.mb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* minmax 0 cho phép col shrink */
  gap: 14px;
  align-items: stretch;
}

/* Base card */
.mb-tier {
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), border-color 0.35s, box-shadow 0.35s;
  animation: cardSlideUp 0.6s ease-out backwards;
}
.mb-tier:nth-child(1) { animation-delay: 0.05s; }
.mb-tier:nth-child(2) { animation-delay: 0.15s; }
.mb-tier:nth-child(3) { animation-delay: 0.25s; }
.mb-tier:nth-child(4) { animation-delay: 0.35s; }
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated gradient border on hover */
.mb-tier::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--tier-color, #d4af6e), transparent 40%, transparent 60%, var(--tier-color, #d4af6e));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.mb-tier:hover::before { opacity: 0.6; }
.mb-tier:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.7);
}

/* Top color accent strip */
.mb-tier-top-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tier-color, #d4af6e);
  opacity: 0.5;
}

/* Popular tier — featured (scale nhẹ để không tràn grid) */
.mb-tier.popular {
  background:
    radial-gradient(ellipse at top, rgba(212,175,110,0.15), transparent 60%),
    linear-gradient(180deg, #1a1612, #0e0c0a);
  border: 2px solid #d4af6e;
  transform: scale(1.03);
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(212,175,110,0.3),
    0 20px 50px -15px rgba(212,175,110,0.3),
    inset 0 0 80px rgba(212,175,110,0.05);
}
.mb-tier.popular::before { display: none; }
.mb-tier.popular:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(240,200,122,0.5),
    0 30px 70px -15px rgba(212,175,110,0.45),
    inset 0 0 80px rgba(212,175,110,0.08);
}

/* Glow ring around popular tier */
.mb-tier.popular::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: radial-gradient(ellipse at center, rgba(212,175,110,0.3), transparent 70%);
  filter: blur(20px);
  z-index: -2;
  opacity: 0.6;
  animation: popularPulse 3s ease-in-out infinite;
}
@keyframes popularPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Badge */
.mb-tier-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #d4af6e, #f0c87a);
  color: #1a1400;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212,175,110,0.4);
  z-index: 3;
}

/* Tier name */
.mb-tier-name {
  font-size: 22px;
  font-weight: 800;
  margin: 12px 0 6px;
  color: var(--tier-color, #d4af6e);
  letter-spacing: -0.5px;
}
.mb-tier-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 26px;
  min-height: 40px;
  line-height: 1.55;
}

/* Price */
.mb-tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  min-width: 0;          /* cho phép shrink */
}
.mb-tier-price-num {
  font-size: 32px;       /* giảm từ 40 → 32 để chứa số 6.000.000 */
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
  /* KHÔNG overflow:hidden — sẽ cut số */
}
.mb-tier.popular .mb-tier-price-num {
  font-size: 34px;       /* popular hơi to hơn nhưng vẫn vừa */
  background: linear-gradient(135deg, #fff, #f0c87a 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Số 20.000.000 cho gói trọn đời — siêu dài, giảm thêm */
.mb-tier:last-child .mb-tier-price-num {
  font-size: 28px;
}
.mb-tier-price-unit {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.mb-tier-per-month {
  font-size: 12px;
  color: #666;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #1f1f1f;
  font-weight: 500;
}

/* CTA */
.mb-tier-cta {
  display: block;
  text-align: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.mb-tier-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tier-color, #d4af6e), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}
.mb-tier-cta:hover {
  background: var(--tier-color, #d4af6e);
  color: #1a1400;
  border-color: var(--tier-color, #d4af6e);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Popular CTA — solid gold */
.mb-tier.popular .mb-tier-cta {
  background: linear-gradient(135deg, #d4af6e, #f0c87a);
  color: #1a1400;
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 18px;
  box-shadow: 0 8px 24px rgba(212,175,110,0.3);
}
.mb-tier.popular .mb-tier-cta:hover {
  background: linear-gradient(135deg, #f0c87a, #fff5cc);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(212,175,110,0.5);
}

/* Features */
.mb-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.mb-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: #ccc;
  line-height: 1.55;
}
.mb-tier-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border-radius: 50%;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.mb-tier.popular .mb-tier-features li::before {
  background: linear-gradient(135deg, #d4af6e, #f0c87a);
  color: #1a1400;
}

/* Course count */
.mb-tier-courses-count {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #1f1f1f;
  font-size: 12px;
  color: #888;
  text-align: center;
}
.mb-tier-courses-count b {
  color: var(--tier-color, #d4af6e);
  font-weight: 800;
  font-size: 14px;
}

/* ============= COMPARE TABLE ============= */
.mb-compare {
  padding: 70px 0;
  background: linear-gradient(180deg, #060606, #0a0a0a, #060606);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mb-section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.8px;
  color: #fff;
}
.mb-compare-wrap {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mb-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.mb-compare-table th {
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  color: #ccc;
  border-bottom: 1px solid #222;
  background: #0a0a0a;
  font-size: 13px;
}
.mb-compare-table th.popular {
  color: #d4af6e;
  background: linear-gradient(180deg, rgba(212,175,110,0.1), transparent);
}
.mb-compare-table td {
  padding: 14px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 13px;
  color: #ccc;
}
.mb-compare-table td:first-child {
  text-align: left;
  color: #aaa;
}
.mb-compare-table td:not(:first-child) { text-align: center; }
.mb-compare-yes { color: #22c55e; font-weight: 800; font-size: 16px; }
.mb-compare-no { color: #333; font-size: 16px; }
.mb-compare-table tr:hover td { background: rgba(255,255,255,0.015); }
.mb-compare-table tr:last-child td { border-bottom: none; }

/* ============= FAQ ============= */
.mb-faq { padding: 70px 0; }
.mb-faq-list { max-width: 800px; margin: 0 auto; }
.mb-faq-item {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: 0.2s ease;
}
.mb-faq-item:hover { border-color: rgba(212,175,110,0.25); }
.mb-faq-item[open] {
  background: #131313;
  border-color: rgba(212,175,110,0.35);
}
.mb-faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 55px;
  color: #ddd;
  transition: color 0.18s;
}
.mb-faq-item summary::-webkit-details-marker { display: none; }
.mb-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,110,0.1);
  color: #d4af6e;
  font-weight: 400;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.25s ease;
}
.mb-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: rgba(212,175,110,0.2);
}
.mb-faq-item summary:hover { color: #d4af6e; }
.mb-faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  color: #aaa;
  line-height: 1.75;
  font-size: 14px;
}

/* ============= FINAL CTA ============= */
.mb-final-cta {
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(212,175,110,0.1), transparent 60%);
}
.mb-final-cta h2 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.15;
}
.mb-final-cta p {
  font-size: 17px;
  color: #aaa;
  margin: 0 0 32px;
}
.mb-btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, #d4af6e, #f0c87a);
  color: #1a1400;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.25s ease;
  box-shadow: 0 8px 24px rgba(212,175,110,0.25);
}
.mb-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(212,175,110,0.45);
}
.mb-btn-large { padding: 18px 44px; font-size: 17px; }

/* ============= FOOTER ============= */
.mb-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #050505;
}
.mb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #888;
}
.mb-footer-inner > div { display: flex; align-items: center; gap: 10px; }
.mb-footer-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(212,175,110,0.2);
}
.mb-footer-links {
  display: flex;
  gap: 24px;
}
.mb-footer-links a {
  color: #888;
  text-decoration: none;
  transition: 0.15s;
}
.mb-footer-links a:hover { color: #d4af6e; }

/* ============================================================
   SPARKLE + GLOW EFFECTS — sinh động hơn
   ============================================================ */

/* Sparkle particles trên popular tier */
.mb-tier.popular .mb-sparkle-1,
.mb-tier.popular .mb-sparkle-2,
.mb-tier.popular .mb-sparkle-3 {
  position: absolute;
  color: #f0c87a;
  font-size: 16px;
  pointer-events: none;
  z-index: 4;
}
.mb-tier.popular .mb-sparkle-1 {
  top: 20%; left: 8%;
  animation: sparkle1 2.5s ease-in-out infinite;
  animation-delay: 0s;
}
.mb-tier.popular .mb-sparkle-2 {
  top: 45%; right: 10%;
  font-size: 12px;
  animation: sparkle1 2.5s ease-in-out infinite;
  animation-delay: 1s;
}
.mb-tier.popular .mb-sparkle-3 {
  bottom: 30%; left: 12%;
  font-size: 14px;
  animation: sparkle1 2.5s ease-in-out infinite;
  animation-delay: 1.7s;
}
@keyframes sparkle1 {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Shimmer sweep — bỏ overflow:hidden trên số, dùng wrapper price block */
.mb-tier.popular .mb-tier-price {
  position: relative;
}
.mb-tier.popular .mb-tier-price::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: priceShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: 8px;
}
@keyframes priceShimmer {
  0% { left: -60%; }
  60%, 100% { left: 120%; }
}

/* Badge nhấp nháy + bounce nhẹ */
.mb-tier-badge {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(212,175,110,0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(212,175,110,0.7), 0 0 30px rgba(240,200,122,0.4);
  }
}

/* CTA button — flowing gradient sweep */
.mb-tier.popular .mb-tier-cta {
  background-size: 200% 100%;
  animation: ctaShimmerBg 3s ease-in-out infinite;
  position: relative;
}
@keyframes ctaShimmerBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* CTA shine sweep — overflow hidden ngắn để text không bị cut nếu dài */
.mb-tier-cta {
  position: relative;
  isolation: isolate;
}
.mb-tier-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
}
.mb-tier-cta:hover::before {
  left: 200%;
}

/* Popular tier border đổi màu liên tục */
.mb-tier.popular {
  position: relative;
  background-clip: padding-box;
}
.mb-tier.popular::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #d4af6e, #f0c87a, #fff5cc, #f0c87a, #d4af6e);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  display: block;
  z-index: 0;
}
@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Check icon nhấp nháy nhẹ */
.mb-tier-features li::before {
  animation: checkBounce 4s ease-in-out infinite;
}
.mb-tier-features li:nth-child(1)::before { animation-delay: 0s; }
.mb-tier-features li:nth-child(2)::before { animation-delay: 0.2s; }
.mb-tier-features li:nth-child(3)::before { animation-delay: 0.4s; }
.mb-tier-features li:nth-child(4)::before { animation-delay: 0.6s; }
.mb-tier-features li:nth-child(5)::before { animation-delay: 0.8s; }
.mb-tier-features li:nth-child(6)::before { animation-delay: 1.0s; }
.mb-tier-features li:nth-child(7)::before { animation-delay: 1.2s; }
.mb-tier-features li:nth-child(8)::before { animation-delay: 1.4s; }
@keyframes checkBounce {
  0%, 92%, 100% { transform: scale(1); }
  95% { transform: scale(1.3); }
}

/* Stats số nháy gold nhẹ */
.mb-hero-stats b {
  animation: statGlow 3s ease-in-out infinite;
}
.mb-hero-stats > div:nth-child(1) b { animation-delay: 0s; }
.mb-hero-stats > div:nth-child(3) b { animation-delay: 0.5s; }
.mb-hero-stats > div:nth-child(5) b { animation-delay: 1s; }
@keyframes statGlow {
  0%, 100% {
    color: #fff;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #f0c87a;
    text-shadow: 0 0 20px rgba(240,200,122,0.6);
  }
}

/* Hero title accent đổi nhịp */
.mb-hero-title .accent {
  animation: accentShimmer 3s ease-in-out infinite, accentGlow 2.5s ease-in-out infinite;
}
@keyframes accentGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 30px rgba(240,200,122,0.4)); }
}

/* Badge "PHỔ BIẾN NHẤT" tier — glow đậm */
.mb-tier.popular .mb-tier-badge {
  animation: badgePulse 1.8s ease-in-out infinite;
  background: linear-gradient(135deg, #d4af6e 0%, #f0c87a 50%, #fff5cc 100%);
  background-size: 200% 100%;
  animation: badgePulse 1.8s ease-in-out infinite, badgeBgFlow 3s linear infinite;
}
@keyframes badgeBgFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Lifetime tier — sparkle tím */
.mb-tier:last-child .mb-tier-name {
  animation: lifetimeGlow 3s ease-in-out infinite;
}
@keyframes lifetimeGlow {
  0%, 100% {
    color: #a855f7;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #c4b5fd;
    text-shadow: 0 0 20px rgba(168,85,247,0.5);
  }
}

/* Hover ring effect — pulse khi hover */
.mb-tier:hover {
  animation: cardHoverRing 1.5s ease-in-out infinite;
}
@keyframes cardHoverRing {
  0%, 100% {
    box-shadow:
      0 24px 50px -12px rgba(0,0,0,0.7),
      0 0 0 0 rgba(212,175,110,0);
  }
  50% {
    box-shadow:
      0 24px 50px -12px rgba(0,0,0,0.7),
      0 0 0 4px rgba(212,175,110,0.15);
  }
}

/* Live counter pill — trên đầu pricing grid */
.mb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.05));
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  padding: 7px 16px 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mb-live-pill #mb-live-count { color: #fff; font-size: 13px; font-weight: 800; }
.mb-live-blink {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: liveBlink 1.2s infinite;
  box-shadow: 0 0 8px rgba(239,68,68,0.6);
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Live indicator trên top — nháy đỏ */
.mb-live-indicator {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}
.mb-live-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: liveBlink 1s infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Final CTA — pulse glow */
.mb-btn-primary {
  animation: ctaFinalGlow 2.5s ease-in-out infinite;
}
@keyframes ctaFinalGlow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(212,175,110,0.25);
  }
  50% {
    box-shadow: 0 8px 24px rgba(212,175,110,0.4), 0 0 30px rgba(240,200,122,0.3);
  }
}

/* ============================================================
   PAYMENT MODAL — QR + bank info + poll
   ============================================================ */
.mb-pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: mbPayFadeIn 0.2s ease-out;
}
@keyframes mbPayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mb-pay-modal {
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: mbPaySlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mbPaySlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mb-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.mb-pay-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}
.mb-pay-title {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  padding-right: 30px;
}
.mb-pay-warn {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.mb-pay-qr-wrap {
  text-align: center;
  margin: 0 0 18px;
}
.mb-pay-qr {
  width: 220px;
  height: 220px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}
.mb-pay-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.mb-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #aaa;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mb-pay-row:last-child { border-bottom: none; }
.mb-pay-row strong { color: #fff; font-weight: 600; }
.mb-pay-tip {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #ccc;
  margin-bottom: 14px;
}
.mb-pay-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #052e16;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(34,197,94,0.25);
}
.mb-pay-confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34,197,94,0.35);
}
.mb-pay-confirm-btn:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 520px) {
  .mb-pay-modal { padding: 22px 18px 18px; }
  .mb-pay-qr { width: 180px; height: 180px; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .mb-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .mb-tier.popular { transform: none; }
  .mb-tier.popular:hover { transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .mb-nav { padding: 14px 18px; }
  .mb-brand-text { font-size: 16px; }
  .mb-nav-link { display: none; }
}
@media (max-width: 640px) {
  .mb-hero { padding: 50px 0 30px; }
  .mb-hero-title { font-size: 38px; letter-spacing: -1.2px; }
  .mb-hero-sub { font-size: 15px; }
  .mb-hero-stats {
    flex-direction: column;
    gap: 0;
    padding: 14px 24px;
  }
  .mb-hero-stats > div { padding: 10px 0; }
  .mb-stat-divider {
    width: 60%;
    height: 1px;
  }
  .mb-hero-stats b { font-size: 20px; }
  .mb-pricing { padding: 30px 0 60px; }
  .mb-pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .mb-tier { padding: 24px 22px; }
  .mb-tier-name { font-size: 20px; }
  .mb-tier-price-num { font-size: 36px; }
  .mb-section-title { font-size: 26px; }
  .mb-final-cta { padding: 50px 0; }
  .mb-final-cta h2 { font-size: 28px; }
  .mb-faq-item summary { font-size: 14px; padding: 16px 18px; padding-right: 48px; }
  .mb-container { padding: 0 16px; }
  .mb-footer-links { gap: 16px; font-size: 12px; }
}
