@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* Reset and Container */
.rha-lp-root {
  min-height: 100vh;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #1C1917;
  background: #FFFAF2;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.rha-lp-root * {
  box-sizing: border-box;
}

.rha-lp-root a {
  color: #9A5B00;
  text-decoration: none;
}

.rha-lp-root a:hover {
  color: #6E4100;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.1fr);
  gap: 24px;
}

.rha-lp-modal-box p {
    margin-bottom: 10px;
}

/* ==========================================================================
   Section Điểm Danh Sự Kiện (3D Depth & Gamification)
   ========================================================================== */
.rha-lp-section-attendance {
  position: relative;
  background: radial-gradient(85% 75% at 50% 15%, #FFDF7E 0%, #F5C04E 50%, #E29C1F 100%);
  padding: 36px 0 44px;
  overflow: hidden;
}

.rha-lp-section-attendance::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.rha-lp-section-attendance .wrap {
  position: relative;
  z-index: 2;
}

/* Thẻ Trái: Xu Của Bạn (VIP Golden Vault) */
.rha-lp-balance-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(224, 163, 50, 0.28);
  box-shadow: 0 4px 6px -1px rgba(15, 30, 49, 0.04), 0 20px 36px -4px rgba(15, 30, 49, 0.12), inset 0 1px 0 #FFFFFF;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.the-le h4 {
    margin-bottom: 2px;
    color: #000;
}

.rha-lp-balance-card:hover {
  box-shadow: 0 8px 12px -2px rgba(15, 30, 49, 0.06), 0 24px 44px -4px rgba(15, 30, 49, 0.15), inset 0 1px 0 #FFFFFF;
}

.rha-vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A571A;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FFF7E3 0%, #FFEAB6 100%);
  border: 1px solid #F5D38A;
  border-radius: 999px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(224, 163, 50, 0.15);
}

.rha-vault-badge svg {
  color: #D98A00;
  flex-shrink: 0;
}

.rha-balance-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Đồng xu 3D mạ vàng kim */
.rha-3d-coin {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE885 0%, #F5B935 55%, #D98A00 100%);
  box-shadow: 0 6px 16px rgba(217, 138, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(138, 82, 0, 0.45);
  border: 2px solid #FFE780;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  animation: rhaCoinFloat 4s ease-in-out infinite;
}

.rha-coin-inner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 102, 0, 0.55);
  background: radial-gradient(circle at 40% 35%, #FFDF6B 0%, #F5BA36 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rha-coin-letter {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #7A4700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.rha-balance-number {
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  color: #0F1E31;
  letter-spacing: -0.02em;
}

.rha-balance-unit {
  font-size: 19px;
  font-weight: 700;
  color: #78716C;
  align-self: flex-end;
  padding-bottom: 6px;
}

/* Banner Đổi Quà Ngay (Golden VIP Pass) */
.rha-lp-gift-pass {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #FFF9ED 0%, #FFF2D6 100%);
  border: 1.5px solid #F5D38A;
  border-radius: 16px;
  padding: 5px 10px;
  color: #1C1917;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(224, 163, 50, 0.12), inset 0 1px 0 #FFFFFF;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.rha-lp-gift-pass:hover {
  transform: translateY(-2px);
  border-color: #E29C1F;
  box-shadow: 0 8px 20px rgba(224, 163, 50, 0.24);
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF4DE 100%);
}

.rha-gift-pass-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F1E31 0%, #1A3455 100%);
  color: #F2B84B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 30, 49, 0.2);
}

.rha-gift-pass-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rha-gift-pass-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F1E31;
}

.rha-gift-pass-sub {
  font-size: 12.5px;
  color: #665E54;
  line-height: 1.35;
}

.rha-gift-pass-arrow {
  flex-shrink: 0;
  color: #B57D19;
  transition: transform 0.2s ease, color 0.2s ease;
}

.rha-lp-gift-pass:hover .rha-gift-pass-arrow {
  transform: translateX(4px);
  color: #0F1E31;
}

/* Nút Tác Vụ Dưới Thẻ Trái (Lấy Xu Ngay 3D Đỏ & Thể Lệ 3D Navy) */
.rha-vault-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.rha-btn-claim-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FF3D45 0%, #ED1C24 60%, #CF1119 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 0 #9E0D13, 0 8px 16px rgba(237, 28, 36, 0.32);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0 10px;
  box-sizing: border-box;
}

.rha-btn-claim-jump:hover {
  background: linear-gradient(180deg, #FF4F56 0%, #F5242C 60%, #DC141C 100%);
  box-shadow: 0 5px 0 #9E0D13, 0 10px 20px rgba(237, 28, 36, 0.4);
  transform: translateY(-1px);
}

.rha-btn-claim-jump:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9E0D13, 0 4px 8px rgba(237, 28, 36, 0.25);
}

.rha-btn-rules-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1A3455 0%, #0F1E31 100%);
  color: #F2B84B !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 0 #070F19, 0 8px 16px rgba(15, 30, 49, 0.25);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0 10px;
  box-sizing: border-box;
}

.rha-btn-rules-navy:hover {
  background: linear-gradient(180deg, #24446D 0%, #13243A 100%);
  color: #FFD66B !important;
  box-shadow: 0 5px 0 #070F19, 0 10px 20px rgba(15, 30, 49, 0.35);
  transform: translateY(-1px);
}

.rha-btn-rules-navy:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #070F19, 0 4px 8px rgba(15, 30, 49, 0.2);
}

/* Thẻ Phải: Điểm Danh Mỗi Ngày (Gamified Attendance Board) */
.rha-attendance-main-box {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(224, 163, 50, 0.28);
  box-shadow: 0 4px 6px -1px rgba(15, 30, 49, 0.04), 0 20px 36px -4px rgba(15, 30, 49, 0.12), inset 0 1px 0 #FFFFFF;
}

.rha-attendance-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rha-attendance-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rha-tag-event {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0F1E31 0%, #1A3455 100%);
  color: #F2B84B;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(15, 30, 49, 0.2);
  align-self: flex-start;
}

.rha-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFD66B;
  box-shadow: 0 0 8px #FFD66B;
}

.rha-attendance-heading {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  color: #0F1E31;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.rha-attendance-desc {
  font-size: 14.5px;
  color: #57534E;
  margin: 0;
  line-height: 1.45;
}

.rha-streak-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rha-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFF8EC 0%, #FFF0CD 100%);
  border: 1.5px solid #F5C04E;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #63430C;
  box-shadow: 0 3px 8px rgba(245, 192, 78, 0.18);
}

.rha-streak-fire {
  font-size: 16px;
  line-height: 1;
}

.rha-streak-nums {
  color: #B25000;
  font-size: 18px;
  font-weight: 900;
}

.promo {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* Slider Chuỗi Ngày Sự Kiện (Hiển thị 7 thẻ trên Desktop & trượt ngang qua) */
.rha-days-slider-wrapper {
  position: relative;
  width: 100%;
}

.days {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 15px 2px 14px !important;
  scrollbar-width: thin;
  scrollbar-color: #F2B84B #F5F5F4;
}

.days::-webkit-scrollbar {
  height: 6px;
}

.days::-webkit-scrollbar-track {
  background: #F5F5F4;
  border-radius: 999px;
}

.days::-webkit-scrollbar-thumb {
  background: #F2B84B;
  border-radius: 999px;
}

.rha-day-item {
  flex: 0 0 calc((100% - 72px) / 7) !important;
  min-width: 95px !important;
  max-width: 155px !important;
  scroll-snap-align: start !important;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.rha-day-item:hover {
  transform: translateY(-2px);
}

.rha-slider-btn {
  position: absolute;
  top: calc(50% - 10px);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  color: #0F1E31;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.rha-slider-btn:hover {
  background: #F2B84B;
  color: #0F1E31;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(242, 184, 75, 0.4);
}

.rha-slider-btn.btn-prev {
  left: -16px;
}

.rha-slider-btn.btn-next {
  right: -16px;
}

.rha-slider-btn.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.rha-slider-btn-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #0F1E31;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.rha-slider-btn-header:hover {
  background: #F2B84B;
  color: #0F1E31;
}

.rha-slider-btn-header.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.the-le p {
    font-size: 12.5px;
    margin-bottom: 5px;
}
/* ==========================================================================
   Khung Thẻ Ngày Điểm Danh (4 Visual States With Depth)
   ========================================================================== */
.rha-day-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.rha-day-box {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.rha-day-box:hover {
  transform: translateY(-3px);
}

/* 1. Mặc định / Chưa đến (Upcoming normal days) */
.rha-day-item .rha-day-box,
.rha-day-item.is-upcoming .rha-day-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F4 100%);
  border: 1.5px solid #E7E5E4;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 #FFFFFF;
}

.rha-day-item .rha-day-amount,
.rha-day-item.is-upcoming .rha-day-amount {
  font-size: 14px;
  font-weight: 800;
  color: #57534E;
}

/* 2. Mốc Quà Tặng (Milestone Gift Box - Treasure Chest) */
.rha-day-item.is-milestone .rha-day-box {
  background: linear-gradient(180deg, #FFF9EB 0%, #FFEFC2 100%);
  border: 2px solid #F2B84B;
  box-shadow: 0 6px 16px rgba(242, 184, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rha-day-item.is-milestone:hover .rha-day-box {
  box-shadow: 0 8px 20px rgba(242, 184, 75, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rha-day-item.is-milestone .rha-day-amount {
  font-size: 14px;
  font-weight: 900;
  color: #C2410C;
}

.rha-gift-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(224, 163, 50, 0.4));
  transition: transform 0.2s ease;
}

.rha-day-item.is-milestone:hover .rha-gift-visual {
  transform: scale(1.08) rotate(-2deg);
}

.rha-milestone-badge {
  position: absolute;
  top: -11px;
  right: -6px;
  background: linear-gradient(180deg, #FF3D45 0%, #ED1C24 100%);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(237, 28, 36, 0.4);
  letter-spacing: 0.02em;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 3. Trạng thái Đã Điểm Danh (Completed Days) */
.rha-day-item.is-done .rha-day-box {
  background: linear-gradient(180deg, #FFF8EC 0%, #FFF0D6 100%);
  border: 1.5px solid #F5D59A;
  box-shadow: 0 3px 8px rgba(242, 184, 75, 0.16), inset 0 1px 0 #FFFFFF;
}

.rha-day-item.is-done .rha-day-amount {
  font-size: 14px;
  font-weight: 800;
  color: #9A5B00;
}

.rha-seal-done {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(242, 184, 75, 0.4));
}

.rha-seal-circle {
  fill: #F2B84B;
}

/* 4. HÔM NAY - Chưa Điểm Danh (Hero Focus State) */
.rha-day-item.is-today:not(.is-done) .rha-day-box {
  background: linear-gradient(180deg, #FFF5F5 0%, #FFE9EA 100%);
  border: 2px solid #ED1C24;
  /* box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.18), 0 8px 18px rgba(237, 28, 36, 0.28); */
  /* animation: rhaPulseGlow 2.2s infinite ease-in-out; */
}

.rha-day-item.is-today:not(.is-done) .rha-day-amount {
  font-size: 15px;
  font-weight: 900;
  color: #D3141C;
}

/* .rha-day-item.is-today:not(.is-done):hover .rha-day-box {
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.25), 0 10px 22px rgba(237, 28, 36, 0.35);
} */

/* 5. HÔM NAY - Đã Điểm Danh */
.rha-day-item.is-today.is-done .rha-day-box {
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid #22C55E;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.22), inset 0 1px 0 #FFFFFF;
}

.rha-day-item.is-today.is-done .rha-day-amount {
  font-size: 14px;
  font-weight: 800;
  color: #15803D;
}

/* Label ngày */
.rha-day-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rha-day-label {
  font-size: 13px;
  font-weight: 700;
  color: #78716C;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.rha-day-item.is-today:not(.is-done) .rha-day-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #D3141C;
}

.rha-day-item.is-today.is-done .rha-day-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #15803D;
}

.rha-coin-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(224, 163, 50, 0.35));
}

/* ==========================================================================
   Nút Điểm Danh Ngay 3D (Tactile High-Impact CTA) & Banner Đã Nhận
   ========================================================================== */
.rha-claim-btn-3d {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #FF3838 0%, #ED1C24 55%, #CF1119 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 0 #9E0D13, 0 12px 24px rgba(237, 28, 36, 0.35);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 16px;
  box-sizing: border-box;
}

.rha-claim-btn-3d::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(25deg);
  animation: rhaShineWave 4s infinite;
  pointer-events: none;
}

.rha-claim-btn-3d:hover {
  background: linear-gradient(180deg, #FF4B4B 0%, #F5242C 55%, #D6131B 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #9E0D13, 0 16px 28px rgba(237, 28, 36, 0.45);
}

.rha-claim-btn-3d:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #9E0D13, 0 4px 8px rgba(237, 28, 36, 0.25);
}

.rha-claim-btn-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.rha-claim-btn-sub {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.2;
}

/* Banner Đã Nhận Hôm Nay (Accomplishment State) */
.rha-claimed-status-3d {
  width: 100%;
  min-height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #86EFAC;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.08), inset 0 1px 0 #FFFFFF;
  padding: 12px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rha-claimed-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(21, 128, 61, 0.3);
}

.rha-claimed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rha-claimed-text-primary {
  font-size: 15.5px;
  font-weight: 800;
  color: #14532D;
}

.rha-claimed-text-hint {
  font-size: 12.5px;
  color: #166534;
  opacity: 0.85;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rhaPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.18), 0 6px 14px rgba(237, 28, 36, 0.24);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(237, 28, 36, 0.3), 0 10px 22px rgba(237, 28, 36, 0.4);
  }
}

@keyframes rhaShineWave {
  0% {
    left: -70%;
  }
  25%, 100% {
    left: 140%;
  }
}

@keyframes rhaCoinFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}


.rha-prod-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #8A6A2A;
  color: #F2B84B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  margin-bottom: 0;
}

.rha-prod-nav-btn:hover {
  background: #F2B84B;
  color: #0F1E31;
}

.rha-prod-nav-btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.rha-products-slider-wrapper {
  position: relative;
  width: 100%;
}

.rha-prod-float-btn {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #F2B84B;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: #0F1E31;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin-bottom: 0;
}

.rha-prod-float-btn:hover {
  background: #F2B84B;
  color: #0F1E31;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(242, 184, 75, 0.45);
}

#rha-prod-float-prev {
  left: -18px;
}

#rha-prod-float-next {
  right: -18px;
}

.rha-prod-float-btn.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.rha-prod-float-btn.is-hidden-all,
.rha-prod-nav-mobile.is-hidden-all {
  display: none !important;
}

/* Slider Sản Phẩm Đổi Xu: Desktop hiển thị tối đa 5 sản phẩm & trượt ngang */
.slots,
#san-pham .slots,
.slots.rha-products-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px !important;
  scrollbar-width: thin;
  scrollbar-color: #F2B84B rgba(255, 255, 255, 0.15);
}

#san-pham .slots::-webkit-scrollbar,
.slots.rha-products-slider::-webkit-scrollbar {
  height: 6px;
}

#san-pham .slots::-webkit-scrollbar-track,
.slots.rha-products-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

#san-pham .slots::-webkit-scrollbar-thumb,
.slots.rha-products-slider::-webkit-scrollbar-thumb {
  background: #F2B84B;
  border-radius: 999px;
}

#san-pham .rha-product-card {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  min-width: calc((100% - 64px) / 5) !important;
  max-width: calc((100% - 64px) / 5) !important;
  scroll-snap-align: start !important;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.game:hover {
  transform: translateY(-3px);
}

.game {
  transition: transform .15s ease, border-color .15s ease;
}

.cta:hover {
  background: #E0A332 !important;
}

.cta-red:hover {
  background: #D3141C !important;
}

.vrow {
  transition: background .15s ease;
}

.vrow:hover {
  background: #FFF5E0 !important;
}

.slots.rha-products-slider .rha-prod-view-btn {
    width: 30px;
    min-width: 30px !important;
    height: 30px;
    padding: 7px !important;
}
@media (max-width: 1100px) {
  #san-pham .rha-product-card {
    flex: 0 0 calc((100% - 32px) / 3) !important;
    min-width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
  }
}

@media (max-width: 960px) {
  .top, .promo {
    grid-template-columns: minmax(0, 1fr);
  }
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Chuỗi ngày sự kiện trên Tablet: Hiển thị 7 ngày */
  .days {
    gap: 8px !important;
  }
  .rha-day-item {
    flex: 0 0 calc((100% - 48px) / 7) !important;
    min-width: 65px !important;
    max-width: none !important;
    scroll-snap-align: start !important;
  }
  .rha-day-box {
    min-height: 76px !important;
    padding: 8px 3px 8px !important;
  }
  .rha-slider-btn.btn-prev {
    left: -12px;
  }
  .rha-slider-btn.btn-next {
    right: -12px;
  }
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mainnav {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 12px;
  }

  .bigtitle {
    font-size: 34px !important;
  }
  .hidesm {
    display: none !important;
  }

  /* Section Điểm Danh & Thẻ Trái trên Mobile */
  .rha-lp-section-attendance {
    padding: 24px 0 32px !important;
  }

  .rha-lp-balance-card {
    padding: 18px 14px 20px !important;
    gap: 15px !important;
    border-radius: 18px !important;
  }

  .rha-balance-number {
    font-size: 42px !important;
  }

  .rha-3d-coin {
    width: 44px !important;
    height: 44px !important;
  }

  .rha-coin-inner {
    width: 32px !important;
    height: 32px !important;
  }

  .rha-coin-letter {
    font-size: 17px !important;
  }

  .rha-lp-gift-pass {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }

  .rha-gift-pass-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .rha-gift-pass-title {
    font-size: 14.5px !important;
  }

  .rha-gift-pass-sub {
    font-size: 12px !important;
  }

  .rha-btn-claim-jump,
  .rha-btn-rules-navy {
    min-height: 42px !important;
    font-size: 12px !important;
    padding: 0 6px !important;
  }

  .rha-attendance-heading {
    font-size: 19px !important;
  }

  .rha-attendance-desc {
    font-size: 13px !important;
  }

  .rha-streak-badge {
    padding: 5px 12px !important;
    font-size: 12px !important;
  }

  .rha-streak-nums {
    font-size: 15px !important;
  }

  /* Khung thẻ điểm danh chính trên Mobile */
  .rha-attendance-main-box {
    padding: 16px 12px 18px !important;
    gap: 14px !important;
    border-radius: 18px !important;
  }

  /* Chuỗi ngày sự kiện trên Mobile: Hiển thị đúng 7 ngày, thu nhỏ kích thước vừa phải */
  .days {
    gap: 4px !important;
    padding: 6px 1px 10px !important;
    scrollbar-width: thin;
  }
  .days::-webkit-scrollbar {
    height: 3px !important;
  }
  .rha-day-item {
    flex: 0 0 calc((100% - 24px) / 7) !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 4px !important;
    scroll-snap-align: start !important;
  }
  .rha-day-box {
    min-height: 56px !important;
    height: 58px !important;
    padding: 4px 1px 4px !important;
    border-radius: 10px !important;
    gap: 2px !important;
  }
  .rha-day-amount {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }
  .rha-day-box svg {
    width: 20px !important;
    height: 20px !important;
  }
  .rha-day-box svg.rha-gift-icon {
    width: 22px !important;
    height: 20px !important;
  }
  .rha-milestone-badge {
    top: -6px !important;
    right: -2px !important;
    font-size: 7.5px !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 999px !important;
    line-height: 1.1 !important;
    box-shadow: 0 1px 3px rgba(237,28,36,0.25) !important;
  }
  .rha-day-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #78716C !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .rha-day-item.is-today .rha-day-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #D3141C !important;
  }
  .rha-day-item.is-today.is-done .rha-day-label {
    color: #15803D !important;
  }

  .rha-claim-btn-3d {
    min-height: 56px !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
  }
  .rha-claim-btn-main {
    font-size: 17px !important;
  }
  .rha-claim-btn-sub {
    font-size: 12px !important;
  }

  .rha-claimed-status-3d {
    min-height: 56px !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .rha-claimed-icon-circle {
    width: 32px !important;
    height: 32px !important;
  }
  .rha-claimed-icon-circle svg {
    width: 18px !important;
    height: 18px !important;
  }
  .rha-claimed-text-primary {
    font-size: 14px !important;
  }
  .rha-claimed-text-hint {
    display: none !important;
  }

  /* Ẩn nút mũi tên phủ trên ngày ở mobile, bật nút điều hướng trên header */
  .rha-days-slider-wrapper > .rha-slider-btn {
    /* display: none !important; */
    width: 25px;
    height: 25px;
    min-height: 25px;
    line-height: 20px;
  }
  .rha-days-slider-wrapper > .rha-slider-btn svg {
    width: 13px;
    height: 13px;
  }
  .rha-header-nav-btns {
    display: flex !important;
  }

  #kho-qua .promo img {
    right: 10px !important;
    bottom: 180px !important;
    width: 120px !important;
    height: auto !important;
  }
  /* Section Sản phẩm nổi bật trên Mobile: Slide lướt ngang 2 cột */
  .rha-featured-products-box {
    padding: 20px 14px 24px !important;
    gap: 16px !important;
    border-radius: 18px !important;
  }

  .rha-prod-section-title {
    font-size: 20px !important;
  }

  .rha-prod-nav-mobile {
    display: flex !important;
  }

  .rha-prod-float-btn {
    display: none !important;
  }

  #san-pham .slots,
  .rha-products-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding: 4px 2px 14px !important;
    scrollbar-width: thin;
    scrollbar-color: #F2B84B rgba(255, 255, 255, 0.15);
  }

  #san-pham .slots::-webkit-scrollbar,
  .rha-products-slider::-webkit-scrollbar {
    height: 4px !important;
    display: block !important;
  }

  #san-pham .slots::-webkit-scrollbar-track,
  .rha-products-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
  }

  #san-pham .slots::-webkit-scrollbar-thumb,
  .rha-products-slider::-webkit-scrollbar-thumb {
    background: #F2B84B !important;
    border-radius: 999px !important;
  }

  #san-pham .rha-product-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    min-width: calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  #san-pham .rha-prod-img-box {
    border-radius: 10px !important;
    padding: 6px !important;
  }

  #san-pham .rha-prod-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    min-height: 34px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #san-pham .rha-prod-rating {
    gap: 4px !important;
  }

  #san-pham .rha-prod-rating .rha-stars svg {
    width: 11px !important;
    height: 11px !important;
  }

  #san-pham .rha-prod-rating .rha-prod-rating-score {
    font-size: 11px !important;
  }

  #san-pham .rha-prod-regular-price {
    font-size: 11px !important;
    min-height: 14px !important;
  }

  #san-pham .rha-prod-sale-price {
    font-size: 15px !important;
  }

  #san-pham .rha-prod-view-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
  }

  #san-pham .rha-prod-view-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  #san-pham .rha-product-card .rha-add-to-cart-btn {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  #san-pham .rha-product-card .rha-add-to-cart-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  button.rha-prod-nav-btn {
    margin-bottom: 0;
  }
}

/* Modals & Alerts */
.rha-lp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 49, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.rha-lp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rha-lp-modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform .2s ease;
  font-family: inherit;
  position: relative;
}

.rha-lp-modal-overlay.active .rha-lp-modal-box {
  transform: translateY(0);
}

.rha-lp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F1E31;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  z-index: 100000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rha-lp-toast.active {
  transform: translateX(-50%) translateY(0);
}

.rha-lp-toast.success {
  border-left: 4px solid #16A34A;
}

.rha-lp-toast.error {
  border-left: 4px solid #ED1C24;
}

/* Product Cards & Layout based on Design Mockup (Image 1) */
.rha-product-card {
  text-decoration: none !important;
  background: #FFFFFF !important;
  color: #1C1917 !important;
  border-radius: 18px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  border: 1px solid #EAEAEA !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative !important;
}

.rha-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1) !important;
  border-color: #D1D5DB !important;
}

.rha-prod-img-box {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #F4F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 8px;
}

.rha-prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.rha-product-card:hover .rha-prod-img-box img {
  transform: scale(1.05);
}

.rha-prod-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 38px;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rha-prod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
}

.rha-prod-rating .rha-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rha-prod-rating .rha-stars svg {
  width: 13px;
  height: 13px;
  color: #F59E0B;
  fill: #F59E0B;
  flex-shrink: 0;
}

.rha-prod-rating .rha-prod-rating-score {
  font-size: 12px;
  font-weight: 500;
  color: #4B5563;
}

.rha-prod-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.rha-prod-price-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rha-prod-regular-price {
  font-size: 13px;
  font-weight: 600;
  color: #EF4444;
  text-decoration: line-through;
  line-height: 1.2;
  min-height: 16px;
  display: block;
}

.rha-prod-regular-price.rha-empty {
  visibility: hidden;
}

.rha-prod-sale-price {
  font-size: 18px;
  font-weight: 800;
  color: #DC2626;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rha-prod-view-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rha-product-card:hover .rha-prod-view-btn,
.rha-prod-view-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #111827;
  transform: scale(1.04);
}

.rha-product-card .rha-add-to-cart-btn {
  transition: transform 0.15s ease, background 0.15s ease;
}

.rha-product-card .rha-add-to-cart-btn:hover {
  background: #E0A332 !important;
  transform: scale(1.08);
}

.fade-in-top {
	-webkit-animation: fade-in-top 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in-top 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.fade-in-tr {
	-webkit-animation: fade-in-tr 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in-tr 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-tr {
  0% {
    -webkit-transform: translateX(50px) translateY(-50px);
            transform: translateX(50px) translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) translateY(0);
            transform: translateX(0) translateY(0);
    opacity: 1;
  }
}
@keyframes fade-in-tr {
  0% {
    -webkit-transform: translateX(50px) translateY(-50px);
            transform: translateX(50px) translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) translateY(0);
            transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes fade-in-top {
  0% {
    -webkit-transform: translateY(-50px);
            transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-in-top {
  0% {
    -webkit-transform: translateY(-50px);
            transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

/* Reward Exchange Button */
.rha-lp-redeem-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.rha-lp-redeem-btn:active {
  transform: translateY(0);
}
