/* Shared reference card: same shell on home, service listings and campaign pages. */
#plans-3d-stage {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
#plans-3d-stage .plan-card--reference.is-center {
  transform: none !important;
}
:is(
  .plan-card--reference,
  .telecom-landing .lp-plan-card.plan-card--reference,
  #plans-3d-stage .plan-card--reference
) {
  --card-blue: #465bed;
  --card-text: #404040;
  width: 330px !important;
  max-width: calc(100vw - 40px) !important;
  flex: 0 0 330px !important;
  height: 650px !important;
  min-height: 650px !important;
  border: 0;
  border-radius: 14px;
  color: var(--card-text);
  font-family: Arial, Helvetica, sans-serif;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .card-face-front {
  height: 650px !important;
  min-height: 650px !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px #00000012 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .card-light-streak {
  display: none;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-card-image-wrap {
  width: 100%;
  height: 238px !important;
  min-height: 238px !important;
  flex: 0 0 238px !important;
  overflow: hidden;
  border-radius: 18px 18px 0 0 !important;
  background: #f4f5f7;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-card-image {
  display: block;
  width: 100% !important;
  height: 238px !important;
  max-height: 238px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 18px 18px 0 0 !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px !important;
  gap: 8px !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-header {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-name {
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  color: var(--card-text) !important;
  text-transform: none;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .lp-card-subtitle {
  display: none;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-price-box {
  flex: 0 0 auto !important;
  min-height: 52px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.plan-price-subtext {
  min-height: 18px;
  line-height: 1.2;
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.period-average-badge {
  font-size: 11px;
  color: #64748b;
  display: inline-block;
}
.period-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 1px 7px;
  border-radius: 9999px;
  line-height: 1.3;
}
.period-gift-badge[hidden] {
  display: none !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-price-row {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px !important;
}
.plan-price-info {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  min-height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--card-blue);
  cursor: pointer;
  text-align: left;
  white-space: nowrap !important;
  flex-shrink: 0;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-price-amount {
  color: var(--card-blue) !important;
  font-size: 24px !important;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
.plan-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 1px solid #8c8c8c;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  color: #727272;
  flex-shrink: 0 !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .billing-choice {
  flex: 0 0 94px !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .billing-choice
  select {
  width: 94px !important;
  min-height: 44px !important;
  padding: 6px 4px !important;
  border: 1px solid #e2e4ea;
  border-radius: 8px;
  color: #475569;
  font-size: 14px !important;
  background: #fff;
}
.plan-speed-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 82px;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.speed-panel--ultra,
.plan-speed-panel[data-speed-tier="ultra"] {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fffbf5 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.08);
}
.plan-speed-data {
  flex: 1;
  min-width: 0;
}
.plan-speed-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}
.plan-speed-title {
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.speed-tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.speed-tier--ultra {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  animation: ultraBadgePulse 2s ease-in-out infinite alternate;
}
.speed-tier--high {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.plan-speed-values {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 13px;
  line-height: 1.3;
}
.plan-speed-values > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-direction {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
}
.plan-speed-values strong {
  color: var(--card-text);
  font-weight: 700;
}
.speed-val--ultra strong {
  color: #e11d48;
  font-weight: 800;
}
.plan-speed-gauge-wrap {
  flex: 0 0 58px;
  width: 58px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.plan-speed-gauge {
  width: 58px;
  height: 44px;
  overflow: visible;
}
.gauge-base {
  stroke: #e2e8f0;
}
.gauge-active {
  stroke-dasharray: 78.54;
  stroke-dashoffset: var(--target-dash, 48);
  animation: gaugeFillSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gauge-active--ultra {
  filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.45));
  animation: gaugeFillSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             gaugeUltraPulse 2.5s ease-in-out infinite alternate 1.2s;
}
.gauge-needle-wrap {
  transform-origin: 32px 35px;
  transform: rotate(var(--target-rot, -35deg));
  animation: needleSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.needle-wrap--ultra {
  animation: needleSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             needleUltraVibe 1s ease-in-out infinite alternate 1.2s;
}

@keyframes gaugeFillSweep {
  from {
    stroke-dashoffset: 78.54;
  }
  to {
    stroke-dashoffset: var(--target-dash, 48);
  }
}

@keyframes needleSweep {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(var(--target-rot, -35deg));
  }
}

@keyframes gaugeUltraPulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.7));
  }
}

@keyframes needleUltraVibe {
  0% {
    transform: rotate(var(--target-rot, 62deg));
  }
  50% {
    transform: rotate(calc(var(--target-rot, 62deg) + 3deg));
  }
  100% {
    transform: rotate(calc(var(--target-rot, 62deg) - 2deg));
  }
}

@keyframes ultraBadgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
.plan-benefits-scroll {
  flex: 1;
  min-height: 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  padding-right: 3px;
}
.plan-benefits-scroll::-webkit-scrollbar {
  width: 6px;
}
.plan-benefits-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 6px;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-equipment-block {
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-features {
  display: flex;
  flex-direction: column;
  gap: 7px !important;
  font-size: 13px;
  line-height: 1.65;
  overflow: visible;
  max-height: none;
  padding: 0;
  margin: 0 !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-feature-item {
  display: flex;
  gap: 10px;
  color: var(--card-text);
  padding: 0;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-feature-item::before {
  content: "";
  width: 7px;
  height: 12px;
  flex: 0 0 7px;
  margin: 3px 4px 0;
  border: solid #00bf53;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  background: none;
  border-radius: 0;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-accessories {
  display: block;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible;
  margin-top: 8px;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .accessory-options {
  overflow: visible;
  max-height: none;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .accessory-option
  input {
  accent-color: var(--card-blue);
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .accessory-total {
  max-height: none;
  overflow: visible;
  font-size: 12px;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .accessory-total:empty {
  display: none;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-card-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: auto !important;
  width: 100%;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .btn-select-plan,
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .btn-flip-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 49px;
  min-height: 49px !important;
  padding: 10px !important;
  border: 0;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .btn-select-plan {
  background: var(--card-blue) !important;
  color: #fff;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .btn-flip-trigger {
  background: #f4f4f4 !important;
  color: #4055e4 !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  button:focus-visible,
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  select:focus-visible,
.plan-benefits-scroll:focus-visible {
  outline: 3px solid #163dc0;
  outline-offset: 2px;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .btn-select-plan:hover {
  background: #3446cf !important;
}
.service-plan-grid .plan-card--reference {
  justify-self: center;
}
.telecom-landing .lp-plan-grid[data-plan-count] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 330px));
  justify-content: center;
}
.telecom-landing .lp-plan-card.plan-card--reference .plan-card-body {
  padding: 16px 20px !important;
  gap: 8px !important;
}
.telecom-landing .lp-plan-card.plan-card--reference .plan-header {
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
.telecom-landing .lp-plan-card.plan-card--reference .plan-price-box {
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
.telecom-landing .lp-plan-card.plan-card--reference .plan-equipment-block {
  flex: none !important;
  min-height: 0 !important;
  max-height: none !important;
}
.telecom-landing .lp-plan-card.plan-card--reference .plan-card-actions {
  flex: 0 0 auto !important;
  gap: 6px !important;
}
:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  )
  .plan-tag-badge {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 4px 14px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  max-width: calc(100% - 32px) !important;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0284c7 !important;
  border: 1.5px solid #38bdf8 !important;
}

@media (max-width: 767px) {
  /* Giảm độ cao thẻ trên mobile để bớt tràn màn hình */
  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) {
    width: min(310px, calc(100vw - 72px)) !important;
    flex-basis: min(310px, calc(100vw - 72px)) !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .card-face-front {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-card-3d-inner {
    height: 520px !important;
    min-height: 520px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-card-image-wrap {
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
    flex: 0 0 155px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-card-image {
    height: 155px !important;
    max-height: 155px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-card-body {
    padding: 10px 14px !important;
    gap: 6px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-name {
    font-size: 17px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-price-box {
    min-height: 38px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .plan-price-amount {
    font-size: 20px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .billing-choice {
    flex: 0 0 84px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .billing-choice select {
    width: 84px !important;
    min-height: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
    padding: 4px 6px !important;
  }

  .plan-speed-panel {
    flex: 0 0 62px !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
  }

  .plan-speed-title {
    font-size: 11px !important;
  }

  .plan-speed-values {
    font-size: 12px !important;
  }

  .plan-speed-gauge-wrap,
  .plan-speed-gauge {
    width: 46px !important;
    height: 36px !important;
    flex: 0 0 46px !important;
  }

  .plan-benefits-scroll {
    min-height: 36px !important;
    max-height: 48px !important;
  }

  .plan-features {
    gap: 4px !important;
    font-size: 12px !important;
  }

  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .btn-select-plan,
  :is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference,
    .plan-card-3d-wrapper
  ) .btn-flip-trigger {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
  }

  .telecom-landing .lp-plan-grid[data-plan-count] {
    justify-content: flex-start;
  }
  .telecom-landing .lp-plan-card.plan-card--reference {
    scroll-snap-align: center;
  }
}
@media (max-width: 359px) {
  .plan-card--reference .plan-card-body {
    padding-inline: 14px !important;
  }
  .plan-card--reference .plan-price-amount {
    font-size: 21px !important;
  }
  .plan-speed-panel {
    padding-inline: 9px;
  }
  .plan-speed-gauge {
    flex-basis: 40px;
    width: 40px;
  }
  .plan-speed-values {
    font-size: 12px;
    gap: 4px;
  }
}

@media (min-width: 768px) {
  .telecom-landing .lp-plan-grid[data-plan-count] {
    width: min(100%, calc(342px * var(--lp-columns, 3) - 12px));
    margin-inline: auto;
  }
  .service-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 330px));
    justify-content: center;
  }
}


:is(
    .plan-card--reference,
    .telecom-landing .lp-plan-card.plan-card--reference,
    #plans-3d-stage .plan-card--reference
  )
  .plan-card-image-placeholder
  .plan-card-image {
  object-fit: contain !important;
  padding: 16px;
}
