/* Layout tổng */
.vnlotto {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.vnlotto-container.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1250px;
}


/* Card */
.vnlotto__card {
  flex: 1 1 calc(33.333% - 24px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.vnlotto__card-header {
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .15)),
    var(--vnlotto-header-bg) center/cover no-repeat;
  padding: 10px 16px;
  font-weight: 700;
  text-align: left;
  height: 80px;
  color: #fff;
}

.vnlotto__card-body {
  padding: 16px;
  font-size: .95rem;
  color: #333;
}

/* Header backgrounds (có thể thay bằng ảnh /assets/img/frameX.png) */
.vnlotto__card-header-cold {
  --vnlotto-header-bg: url('../images/frame1.png');
}

.vnlotto__card-header-hot {
  --vnlotto-header-bg: url('../images/frame2.png');
}

.vnlotto__card-header-pairs {
  --vnlotto-header-bg: url('../images/frame3.png');
}

.vnlotto__card-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  opacity: 0.5;
}

.vnlotto__card-subtitle {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 28px;
}

.vnlotto__card-note {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  opacity: 0.5;
}

/* Danh sách item */
.vnlotto__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.vnlotto__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #FFF8EF;
  border-radius: 4px;
  max-width: 120px;
}

.bg-orange {
  background: #DA783D;
}

/* Vòng tròn số */
.vnlotto__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

/* Giá trị + đơn vị */
.vnlotto__value {
  font-size: 14px;
  font-weight: 800;
  color: #8e1515;
  margin-left: 16px;
}

.vnlotto__unit {
  color: #a16a6a;
  font-size: 14px;
}

.vnlotto__section {
  border-radius: var(--number-3, 8px);
  border: 1px solid var(--primary-100, #FFCECE);
  background: linear-gradient(270deg, #FFF1F1 0%, #F8F8F8 100%);
  padding: 12px 16px;
  margin-bottom: 12px;
}

/* ===== Card 3 – Panels ===== */
.vnlotto__panel {
  border-radius: 8px;
  border: 1px solid #F6C8C8;
  background: linear-gradient(180deg, #FFF6F6 0%, #FFFFFF 100%);
}

.vnlotto__panel--soft {
  margin-top: 8px;
}

.vnlotto__panel-inner {
  text-align: center;
  padding-top: 16px;
}

.vnlotto__headline {
  font-size: 16px;
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 8px;
  line-height: 24px;
}

.vnlotto__chip {
  width: 54px;
  height: 54px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #AC0B0B;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(172, 11, 11, 0.25);
}

.vnlotto__chip-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.vnlotto__muted {
  color: #1E1E1F;
  font-size: 14px;
  line-height: 20px;
}

.vnlotto__accent {
  color: #AC0B0B;
}

/* CTA dòng hồng + mũi tên */
.vnlotto__cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FCD7D7;
  border-radius: 0px 0px 8px 8px;
  padding: 8px;
  max-height: 32px;
}

.vnlotto__cta-text {
  font-size: 12px;
  line-height: 16px;
  color: #5a2b2b;
}

.vnlotto__cta-arrow {
  margin-left: auto;
  display: inline-flex;
}

/* Panel dưới: tiêu đề + chart box */
.vnlotto__panel-header {
  margin-bottom: 8px;
}

.vnlotto__panel-title {
  margin: 16px 0px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #1E1E1F;
  text-align: center;
}

.vnlotto__chartbox {
  border: 0;
  background: transparent;
  padding: 0;
  /* không padding dưới */
  max-height: 128px;
  /* bạn có thể 230–280 tuỳ layout */
  display: flex;
  align-items: flex-end;
  /* ép canvas bám đáy */
}


.vnlotto__note {
  margin-top: 8px;
  font-size: 12px;
  color: #660404;
  text-align: left;
  font-weight: 400;
}

.vnlotto__chartbox canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Tinh chỉnh spacing trong card 3 */
.vnlotto__card--pairs .vnlotto__card-body {
  padding: 16px;
}

/* Responsive nhỏ */
@media (max-width: 640px) {
  .vnlotto__headline {
    font-size: 20px;
  }

  .vnlotto__chip {
    width: 78px;
    height: 78px;
  }

  .vnlotto__chip-num {
    font-size: 28px;
  }

  .vnlotto__panel-title {
    font-size: 18px;
  }
}



/* Responsive */
@media (max-width: 1024px) {
  .vnlotto__card {
    flex: 1 1 calc(50% - 16px);
  }

  .vnlotto__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .vnlotto__card {
    flex: 1 1 100%;
  }

  .vnlotto__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .vnlotto__card-body {
    padding: 8px;
    font-size: 14px;
    color: #333;
  }
  .vnlotto__badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
  }
  .vnlotto__value {
    font-size: 12px;
    font-weight: 800;
    color: #8e1515;
    margin-left: 8px;
  }
}


@media (max-width: 640px) {
  .vnlotto__value {
    margin-left: 4px;
  }
}