/* ================================================================
   BANG GIA SECTION
================================================================ */
.bg-section {
  position: relative;
  overflow: hidden;
  padding: 104px 28px 120px;
  background: linear-gradient(180deg,
    rgba(6,9,15,0) 0%,
    #060a14 6%,
    #060a14 94%,
    rgba(6,9,15,0) 100%);
  z-index: 1;
}

/* Background fx */
.bg-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 32px);
  pointer-events: none; z-index: 0;
}
.bg-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px); z-index: 0; }
.bg-orb-1 { width: 640px; height: 640px; background: rgba(234,88,12,.06); top: -140px; right: -140px; }
.bg-orb-2 { width: 520px; height: 520px; background: rgba(14,165,233,.06); bottom: -110px; left: -110px; }

/* ── Header ── */
.bg-header {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 70px;
}
.bg-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: rgba(234,88,12,.12);
  border: 1px solid rgba(234,88,12,.28);
  border-radius: 30px;
  color: #f97316;
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(234,88,12,.1), inset 0 1px 0 rgba(255,255,255,.05);
}
.bg-header-badge i { font-size: .8rem; }

.bg-header-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -.7px;
  margin: 0 0 18px;
}
.bg-title-accent {
  background: linear-gradient(135deg, #ea580c, #f97316, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-header-sub {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 0 34px;
  letter-spacing: .15px;
}

/* Revenue tabs */
.bg-rev-tabs {
  display: inline-flex;
  gap: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 4px;
}
.bg-rev-tab {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 600;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.bg-rev-tab:hover { color: #cbd5e1; background: rgba(255,255,255,.05); }
.bg-rev-tab.active {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 3px 14px rgba(234,88,12,.4);
}

/* ================================================================
   CARDS
================================================================ */
.bg-cards {
  position: relative; z-index: 2;
  max-width: 1060px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.bg-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(13,20,38,.99), rgba(5,8,14,1));
  border: 1px solid rgba(255,255,255,.078);
  padding: 38px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}

/* Top edge color */
.bg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.bg-card-tmdt::before { background: linear-gradient(90deg, #0369a1, #38bdf8, #818cf8); }
.bg-card-thue::before { background: linear-gradient(90deg, #059669, #34d399, #fbbf24); }

/* Top row */
.bg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Icon */
.bg-card-icon-wrap {
  position: relative;
  width: 66px; height: 66px;
}
.bg-card-icon {
  position: absolute; inset: 0;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  transition: all .28s ease;
  z-index: 1;
}
.bg-card-tmdt .bg-card-icon { background: linear-gradient(145deg,#071936,#0c3461); color: #38bdf8; border: 1px solid rgba(14,165,233,.3); box-shadow: 0 4px 16px rgba(14,165,233,.2), inset 0 1px 0 rgba(56,189,248,.1); }
.bg-card-thue .bg-card-icon { background: linear-gradient(145deg,#052e1c,#065f46); color: #34d399; border: 1px solid rgba(5,150,105,.3); box-shadow: 0 4px 16px rgba(5,150,105,.2), inset 0 1px 0 rgba(52,211,153,.1); }

.bg-card-icon-ring {
  position: absolute; inset: -5px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.06);
  transition: border-color .3s ease, transform .5s ease;
}

/* Roman + tag */
.bg-card-badge-wrap { display: flex; align-items: center; gap: 8px; }
.bg-roman {
  font-size: 1.1rem; font-weight: 900;
  font-family: 'Times New Roman', serif;
  color: rgba(255,255,255,.08);
  line-height: 1;
  letter-spacing: -1px;
}
.bg-hot-tag, .bg-popular-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 30px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bg-hot-tag     { background: rgba(14,165,233,.14); color: #38bdf8; border: 1px solid rgba(14,165,233,.28); }
.bg-popular-tag { background: rgba(5,150,105,.14);  color: #34d399; border: 1px solid rgba(5,150,105,.28); }

/* Card title */
.bg-card-title {
  font-size: 1.14rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.2px;
}
.bg-card-subtitle {
  font-size: .88rem;
  color: #374151;
  margin: -12px 0 0;
  line-height: 1.6;
}

/* Price box */
.bg-price-box {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px 22px;
}
.bg-card-tmdt .bg-price-box { border-left: 3px solid rgba(14,165,233,.4); }
.bg-card-thue .bg-price-box { border-left: 3px solid rgba(5,150,105,.4); }
.bg-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
}
.bg-price-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}
.bg-card-tmdt .bg-price-num { color: #38bdf8; }
.bg-card-thue .bg-price-num { color: #34d399; }

.bg-price-unit { font-size: .88rem; font-weight: 700; color: #4b5563; }
.bg-price-unit small { font-size: .74rem; margin-left: 2px; }
.bg-price-note { font-size: .76rem; color: #374151; }

/* Feature list */
.bg-feature-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.bg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: #4b5563;
  line-height: 1.6;
  transition: color .2s;
}
.bg-feature-list li i { font-size: .72rem; margin-top: 4px; flex-shrink: 0; }
.bg-card-tmdt .bg-feature-list li i { color: #0ea5e9; }
.bg-card-thue .bg-feature-list li i { color: #059669; }

/* CTA button */
.bg-cta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: .88rem; font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .22s ease;
  margin-top: auto;
  letter-spacing: .1px;
}
.bg-cta-btn i { font-size: .74rem; transition: transform .22s ease; }
.bg-cta-btn:hover i { transform: translateX(2px); }
.bg-cta-tmdt { background: rgba(14,165,233,.1); color: #38bdf8; border-color: rgba(14,165,233,.22); }
.bg-cta-thue { background: rgba(5,150,105,.1);  color: #34d399; border-color: rgba(5,150,105,.22); }

/* Shine */
.bg-card-shine {
  position: absolute; inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-card-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity .28s ease;
}

/* ── HOVER ── */
.bg-card-tmdt:hover, .bg-card-tmdt.selected {
  transform: translateY(-6px);
  border-color: rgba(14,165,233,.3);
  box-shadow: 0 0 0 1px rgba(14,165,233,.08), 0 24px 48px rgba(0,0,0,.5), 0 0 60px rgba(14,165,233,.08);
}
.bg-card-tmdt:hover .bg-card-icon  { color: #7dd3fc; box-shadow: 0 6px 24px rgba(14,165,233,.4), 0 0 0 5px rgba(14,165,233,.08); }
.bg-card-tmdt:hover .bg-card-icon-ring { border-color: rgba(14,165,233,.2); transform: rotate(45deg); }
.bg-card-tmdt:hover .bg-card-title { color: #38bdf8; }
.bg-card-tmdt:hover .bg-feature-list li { color: #6b7280; }
.bg-card-tmdt:hover .bg-cta-tmdt   { background: linear-gradient(135deg,#0369a1,#0ea5e9); color:#fff; border-color:transparent; box-shadow:0 5px 18px rgba(14,165,233,.4); }
.bg-card-tmdt:hover .bg-card-shine::before { opacity: 1; animation: bg-sweep 1.1s ease forwards; }

.bg-card-thue:hover, .bg-card-thue.selected {
  transform: translateY(-6px);
  border-color: rgba(5,150,105,.3);
  box-shadow: 0 0 0 1px rgba(5,150,105,.08), 0 24px 48px rgba(0,0,0,.5), 0 0 60px rgba(5,150,105,.08);
}
.bg-card-thue:hover .bg-card-icon  { color: #6ee7b7; box-shadow: 0 6px 24px rgba(5,150,105,.4), 0 0 0 5px rgba(5,150,105,.08); }
.bg-card-thue:hover .bg-card-icon-ring { border-color: rgba(5,150,105,.2); transform: rotate(-45deg); }
.bg-card-thue:hover .bg-card-title { color: #34d399; }
.bg-card-thue:hover .bg-feature-list li { color: #6b7280; }
.bg-card-thue:hover .bg-cta-thue   { background: linear-gradient(135deg,#059669,#10b981); color:#fff; border-color:transparent; box-shadow:0 5px 18px rgba(5,150,105,.4); }
.bg-card-thue:hover .bg-card-shine::before { opacity: 1; animation: bg-sweep 1.1s ease forwards; }

@keyframes bg-sweep { 0% { left: -80%; } 100% { left: 120%; } }

/* ================================================================
   COMPARISON TABLE TOGGLE
================================================================ */
.bg-compare-wrap {
  position: relative; z-index: 2;
  max-width: 1060px;
  margin: 0 auto 62px;
}
.bg-compare-toggle {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: #4b5563;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  transition: all .2s ease;
  width: 100%;
}
.bg-compare-toggle:hover { color: #9ca3af; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.bg-compare-toggle i { font-size: .72rem; }

/* Table */
.bg-table-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.bg-table {
  width: 100%;
  border-collapse: collapse;
}
.bg-table thead tr {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.bg-th-stt  { width: 52px; padding: 16px 12px; text-align: center; font-size: .78rem; color: #374151; font-weight: 700; }
.bg-th-main { padding: 16px 22px; text-align: left; font-size: .86rem; font-weight: 700; color: #6b7280; }
.bg-th-price {
  padding: 14px 12px; text-align: center;
  font-size: .8rem; color: #374151;
  border-left: 1px solid rgba(255,255,255,.04);
  min-width: 116px;
}
.bg-th-price.active-col { background: rgba(234,88,12,.07); }
.bg-th-inner { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.bg-th-rev { font-weight: 700; color: #6b7280; font-size: .8rem; }

/* Body rows */
.bg-tr-group {
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: transparent;
  transition: background .18s ease;
}
.bg-tr-group:hover { background: rgba(255,255,255,.02); }
.bg-tr-group:last-child { border-bottom: none; }

.bg-td-roman {
  text-align: center;
  font-size: 1.1rem; font-weight: 900;
  font-family: 'Times New Roman', serif;
  color: rgba(255,255,255,.13);
  padding: 18px 12px;
}
.bg-td-name { padding: 18px 22px; }
.bg-pkg-name {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 700; color: #94a3b8;
}
.bg-pkg-name i { font-size: .8rem; }

.bg-td-price {
  padding: 18px 12px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: #4b5563;
  border-left: 1px solid rgba(255,255,255,.04);
  transition: all .2s ease;
}
.bg-td-price.active-col {
  background: rgba(234,88,12,.07);
  color: #f97316;
  font-size: .95rem;
}

.bg-table-note {
  padding: 14px 22px;
  font-size: .78rem;
  color: #374151;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.bg-table-note i { color: #4b5563; font-size: .74rem; }

/* ================================================================
   FOOTER CTA
================================================================ */
.bg-footer-cta {
  position: relative; z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.bg-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 48px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.bg-footer-cta-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,88,12,.5), transparent);
}
.bg-footer-cta-text h3 { font-size: 1.1rem; font-weight: 800; color: #e2e8f0; margin: 0 0 8px; }
.bg-footer-cta-text p  { font-size: .88rem; color: #374151; margin: 0; }
.bg-footer-cta-btns { display: flex; gap: 12px; flex-shrink: 0; }

.bg-btn-call, .bg-btn-quote {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: .88rem; font-weight: 700;
  text-decoration: none;
  transition: all .22s ease;
}
.bg-btn-call  { background: linear-gradient(135deg,#ea580c,#f97316); color: #fff; box-shadow: 0 4px 16px rgba(234,88,12,.35); }
.bg-btn-call:hover  { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(234,88,12,.5); color:#fff; }
.bg-btn-quote { background: rgba(255,255,255,.06); color: #94a3b8; border: 1px solid rgba(255,255,255,.1); }
.bg-btn-quote:hover { background: rgba(255,255,255,.09); color: #e2e8f0; transform: translateY(-1px); }

/* ================================================================
   DETAIL MODAL
================================================================ */
.bg-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bg-fadein .2s ease;
}
@keyframes bg-fadein { from { opacity: 0; } to { opacity: 1; } }

.bg-modal {
  position: relative;
  background: #0b1221;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 0;
  animation: bg-slideup .25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(234,88,12,.3) transparent;
}
@keyframes bg-slideup { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.bg-modal::-webkit-scrollbar { width: 4px; }
.bg-modal::-webkit-scrollbar-thumb { background: rgba(234,88,12,.3); border-radius: 2px; }

.bg-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: all .2s ease;
}
.bg-modal-close:hover { background: rgba(255,255,255,.1); color: #e2e8f0; transform: rotate(90deg); }
.bg-modal-close:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }

.bg-modal-head {
  display: flex; align-items: center; gap: 18px;
  padding: 30px 30px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bg-modal-icon {
  width: 58px; height: 58px; border-radius: 17px;
  background: linear-gradient(145deg,#0f172a,#1e293b);
  border: 1px solid rgba(234,88,12,.26);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #f97316;
  box-shadow: 0 5px 18px rgba(234,88,12,.22);
  flex-shrink: 0;
}
.bg-modal-head h3 { font-size: 1.06rem; font-weight: 800; color: #f1f5f9; margin: 0 0 6px; }
.bg-modal-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(234,88,12,.12); color: #f97316;
  border: 1px solid rgba(234,88,12,.26);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

.bg-modal-body { padding: 26px 30px 38px; }
.bg-modal-section { margin-bottom: 26px; }
.bg-modal-section:last-child { margin-bottom: 0; }
.bg-modal-section h4 {
  font-size: .92rem; font-weight: 700; color: #f97316;
  margin: 0 0 13px;
  display: flex; align-items: center; gap: 10px;
}
.bg-modal-section h4::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: linear-gradient(180deg, #ea580c, #f97316);
  border-radius: 2px;
  flex-shrink: 0;
}
.bg-modal-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bg-modal-section ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .86rem; color: #64748b; line-height: 1.65;
}
.bg-modal-section ul li i { color: #ea580c; font-size: .68rem; margin-top: 4px; flex-shrink: 0; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
  .bg-cards        { max-width: 520px; grid-template-columns: 1fr; }
  .bg-compare-wrap { max-width: 520px; }
  .bg-footer-cta   { max-width: 520px; }
}
@media (max-width: 768px) {
  .bg-footer-cta-inner { flex-direction: column; text-align: center; gap: 20px; padding: 30px 24px; }
  .bg-footer-cta-btns  { width: 100%; justify-content: center; }
  .bg-table { font-size: .76rem; }
  .bg-th-price, .bg-td-price { min-width: 74px; padding: 10px 5px; }
}
@media (max-width: 480px) {
  .bg-section { padding: 72px 16px 90px; }
  .bg-rev-tabs { flex-wrap: wrap; justify-content: center; }
  .bg-price-num { font-size: 2rem; }
  .bg-modal { max-height: 90vh; }
  .bg-modal-head { padding: 22px 22px 18px; }
  .bg-modal-body { padding: 20px 22px 30px; }
  .bg-footer-cta-inner { padding: 26px 22px; }
}
