/* ==========================================================================
   100B Agency — Components: header, buttons, cards, panels, tables
   ========================================================================== */

/* --- Header / navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(8 47 133 / 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.site-header__logo {
  flex: none;
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link,
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.82);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav__link:hover,
.nav__toggle:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.nav__toggle[aria-expanded="true"],
.nav__toggle.is-active {
  color: var(--gold-400);
}

.nav__caret {
  font-size: 0.75em;
  line-height: 1;
  transition: transform 0.2s;
}

.nav__toggle[aria-expanded="true"] .nav__caret {
  transform: rotate(180deg);
}

.nav__cta {
  margin-left: 10px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  background: var(--gold-400);
  box-shadow: 0 8px 22px rgb(255 198 59 / 0.35);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(255 198 59 / 0.5);
}

.nav__item {
  position: relative;
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  width: 270px;
  padding-top: 10px;
}

.nav__menu-inner {
  overflow: hidden;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgb(6 20 54 / 0.32);
  animation: slide-down 0.22s ease both;
}

.nav__menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.15s;
}

.nav__menu-item:last-child {
  border-bottom: 0;
}

.nav__menu-item:hover {
  background: var(--surface-soft);
}

.nav__menu-item--featured {
  background: #fffbef;
}

.nav__menu-item--featured:hover {
  background: var(--surface-cream);
}

.nav__menu-name {
  font-size: 0.87rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.nav__menu-price {
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--r-sm);
  border: 1px solid rgb(255 255 255 / 0.25);
  color: #fff;
  place-items: center;
}

.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}

.nav__burger span::before {
  transform: translateY(-6px);
}

.nav__burger span::after {
  transform: translateY(4px);
}

.nav__burger[aria-expanded="true"] span {
  background: transparent;
}

.nav__burger[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.nav__burger[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__burger {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: #082f85;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 20px 40px rgb(6 20 54 / 0.4);
    animation: slide-down 0.2s ease both;
  }

  .nav[hidden] {
    display: none !important;
  }

  .nav__link,
  .nav__toggle {
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 0.95rem;
    border-radius: var(--r-sm);
  }

  .nav__cta {
    margin: 10px 0 0;
    text-align: center;
    justify-content: center;
  }

  .nav__menu {
    position: static;
    width: 100%;
    padding-top: 4px;
  }

  .nav__menu-inner {
    box-shadow: none;
  }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s,
    background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--gold {
  color: var(--navy-900);
  background: var(--gold-400);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  color: var(--navy-900);
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgb(255 198 59 / 0.5);
}

.btn--glass {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1.5px solid rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--glass:hover {
  background: #fff;
  color: var(--blue-800);
  border-color: #fff;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--lg {
  padding: 20px 42px;
  font-size: 1.12rem;
  font-weight: 900;
  border-radius: var(--r-lg);
}

.btn--pulse {
  animation: pulse-ring 2.6s ease-in-out infinite;
}

.btn--sm {
  padding: 11px 16px;
  font-size: 0.78rem;
  border-radius: 11px;
}

/* Outline buttons, tô theo màu gói qua --accent */
.btn--outline {
  color: var(--accent, var(--blue-500));
  border: 2px solid var(--accent-border, var(--border-blue));
  background: transparent;
}

.btn--outline:hover {
  color: #fff;
  background: var(--accent, var(--blue-500));
  border-color: var(--accent, var(--blue-500));
}

.btn--solid {
  color: #fff;
  background: var(--accent, var(--blue-500));
}

.btn--solid:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn--link {
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent, var(--blue-500));
  background: transparent;
}

.btn--link:hover {
  opacity: 0.65;
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-card);
  background: #fff;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.btn-close:hover {
  background: var(--surface-soft);
  color: var(--ink-strong);
}

.btn-close--on-dark {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.btn-close--on-dark:hover {
  background: rgb(255 255 255 / 0.26);
  color: #fff;
}

/* --- Card primitives ------------------------------------------------------ */
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.card__topline {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent, var(--blue-500)), var(--accent-2, var(--blue-300)));
}

.card--dark {
  background: linear-gradient(168deg, #123ea8, #08234f);
  color: #fff;
  box-shadow: var(--shadow-dark);
}

.card--dark:hover {
  box-shadow: 0 46px 88px rgb(8 35 79 / 0.5);
}

.card--featured {
  transform: translateY(-14px);
}

.card--featured:hover {
  transform: translateY(-22px);
}

.card__badge {
  flex: none;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--gold-400);
  color: var(--navy-900);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.card__glow {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 198 59 / 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Price block */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 20px;
}

.price__value {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue-800);
}

.price__unit {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.price__note {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* Ghi chú "chưa gồm add-on" xuống dòng riêng thay vì chen vào cụm giá. */
.price__warn {
  flex-basis: 100%;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-400);
}

.card--dark .price__value {
  color: #fff;
}

.card--dark .price__unit {
  color: #a9bee4;
}

.card--dark .price__note {
  color: #8199c8;
}

.card--dark .price__warn {
  color: var(--gold-400);
}

.card__meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.card__tagline {
  display: inline-flex;
  width: fit-content;
  margin: 14px 0 22px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--tagline-bg, var(--surface-soft));
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tagline-color, #3e5686);
}

.card--dark .card__tagline {
  background: rgb(255 255 255 / 0.1);
  color: #cbdaf5;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  margin: 0 0 24px;
  font-size: var(--fs-body);
  color: var(--ink-body);
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.feature-list__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface-teal);
  color: var(--teal-400);
  font-size: 0.68rem;
  font-weight: 900;
}

.feature-list--compact li {
  gap: 8px;
  font-size: 0.82rem;
}

.feature-list--compact .feature-list__icon {
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  font-size: 0.85rem;
}

.card--dark .feature-list {
  color: #e1e9f8;
}

.card--dark .feature-list__icon {
  background: rgb(34 195 224 / 0.22);
  color: var(--cyan-500);
}

.card--dark .feature-list--compact .feature-list__icon {
  background: none;
  color: var(--cyan-500);
}

.icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--surface-blue);
  color: var(--blue-500);
  font-size: 1.25rem;
  font-weight: 900;
}

/* --- Comparison table ----------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  font-size: var(--fs-body);
  color: var(--ink-body);
}

.compare thead tr {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  color: #fff;
}

.compare th {
  padding: 20px 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.compare th:first-child {
  width: 34%;
  padding-inline: 26px;
  text-align: left;
  font-weight: 800;
}

.compare th:not(:first-child) {
  width: 22%;
}

.compare th.is-highlight {
  background: rgb(255 255 255 / 0.12);
}

.compare tbody tr {
  border-top: 1px solid var(--line);
}

.compare td {
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
}

.compare td:first-child {
  padding-inline: 26px;
  text-align: left;
}

.compare tr.is-price td {
  font-weight: 800;
}

.compare .is-highlight {
  background: var(--surface-soft);
}

.compare tr.is-price .is-highlight {
  font-weight: 900;
  color: var(--blue-800);
}

.compare .yes {
  color: var(--teal-400);
  font-weight: 800;
}

.compare .no {
  color: var(--ink-disabled);
}

.compare .note {
  font-size: 0.8rem;
  color: #5a6b8c;
}

.compare .note--soft {
  color: var(--ink-soft);
}

/* --- Detail panels -------------------------------------------------------- */
.detail-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-panel);
  animation: slide-down 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.detail-panel__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.detail-panel__aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: linear-gradient(160deg, var(--blue-800), #08234f);
  color: #fff;
}

.detail-panel__aside .glow-blob {
  top: -50px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgb(255 198 59 / 0.3), transparent 70%);
}

.detail-panel__tag {
  position: relative;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.detail-panel__title {
  position: relative;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.detail-panel__price {
  position: relative;
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.14);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.detail-panel__cta {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
}

.detail-panel__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
}

.detail-block__label {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-500);
}

.detail-block__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-block__list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.detail-block__list .feature-list__icon {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
}

@media (max-width: 780px) {
  .detail-panel__grid {
    grid-template-columns: 1fr;
  }

  .detail-panel__body {
    padding: 30px 22px;
  }

  .detail-panel__aside {
    padding: 28px 24px;
  }

  .detail-panel__cta {
    padding-top: 20px;
  }
}

/* Rich panel (Livestream / Affiliate) */
.rich-panel__header {
  position: relative;
  overflow: hidden;
  padding: 44px 44px 40px;
  color: #fff;
}

.rich-panel__header--live {
  background: linear-gradient(135deg, #08234f, #0f3f8c 55%, var(--cyan-600));
}

.rich-panel__header--aff {
  background: linear-gradient(135deg, #08234f, #0f3f8c 55%, var(--blue-500));
}

.rich-panel__header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.12), transparent 70%);
}

.rich-panel__kicker {
  position: relative;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #7fe3f0;
}

.rich-panel__header--aff .rich-panel__kicker {
  color: #9fc2ff;
}

.rich-panel__title {
  position: relative;
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.rich-panel__sub {
  position: relative;
  margin-bottom: 22px;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.9);
}

.rich-panel__flow {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--navy-900);
}

.rich-panel__flow--live {
  background: linear-gradient(90deg, #19d3c5, #1e9de0);
}

.rich-panel__flow--aff {
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
}

.rich-panel__body {
  padding: 36px 44px 40px;
}

.rich-panel__h {
  margin: 32px 0 18px;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--ink-strong);
}

.rich-panel__h:first-child {
  margin-top: 0;
}

@media (max-width: 780px) {
  .rich-panel__header {
    padding: 32px 22px;
  }

  .rich-panel__body {
    padding: 28px 22px 32px;
  }

  .rich-panel__flow {
    padding: 13px 20px;
    font-size: 0.84rem;
  }
}

/* Tier cards (Ví Livestream) */
.tier-card {
  overflow: hidden;
  border: 1px solid var(--line-card);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgb(11 63 196 / 0.07);
}

.tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--tier-head, var(--blue-500));
  color: #fff;
}

.tier-card__name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.tier-card__deposit {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.92);
}

.tier-card__body {
  padding: 20px 22px;
}

.tier-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 18px;
}

.tier-stats dt {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.tier-stats dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink-strong);
}

.tier-stats dd.is-accent {
  color: var(--tier-accent, var(--blue-500));
}

.tier-card__divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.tier-card__terms {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-body);
}

.tier-card__gift {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--tier-gift-bg, var(--surface-soft));
  color: var(--tier-gift-color, var(--ink-body));
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

/* Info tiles */
.info-tile {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--tile-bg, var(--surface-blue));
}

.info-tile__title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--ink-strong);
}

.info-tile__value {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--tile-color, var(--blue-500));
}

.info-tile__value b {
  font-size: 1.35rem;
}

.info-tile__text {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.info-tile__big {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tile-color, var(--blue-500));
}

.note-dark {
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: #08234f;
  color: #fff;
}

.note-dark__label {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7fe3f0;
}

.note-dark__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 32px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.88);
}

.note-dark__grid li {
  display: flex;
  gap: 10px;
}

.note-dark__grid li::before {
  content: "•";
  color: var(--gold-400);
  font-weight: 900;
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid var(--line-blue);
  border-left: 5px solid var(--gold-400);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.callout__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-cream);
  color: var(--gold-500);
  font-size: 1.1rem;
  font-weight: 900;
}

.callout p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-body);
}
