.x-daily-check-in-entry {
    padding: 2rem 1rem
}

@media (max-width: 767.98px) {
    .x-daily-check-in-entry {
        padding: 1rem
    }
}

.x-daily-check-in-entry .-inner-container {
    max-width: 750px;
    margin: auto
}

.x-daily-check-in-entry .-main-content-wrapper, .x-daily-check-in-entry .-main-content-wrapper>:not(:first-child) {
    margin-top: 1rem
}

.x-daily-check-in-card {
    padding: 1rem;
    background: var(--background-image);
    border: none;
    border-radius: .5rem
}

.x-daily-check-in-card:not(:first-child) {
    margin-top: 1rem
}

.x-daily-check-in-card .-heading-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.x-daily-check-in-card .-heading-wrapper .-col-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fafafa
}

.x-daily-check-in-card .-heading-wrapper .fas {
    font-size: 1.25rem
}

.x-daily-check-in-card .-content-wrapper {
    position: relative
}

.x-daily-check-in-card .-card-title {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #fafafa
}

@media (max-width: 767.98px) {
    .x-daily-check-in-card .-card-title {
        font-size: 1.125rem
    }
}

.x-daily-check-in-card .-card-sub-title {
    margin-bottom: 0;
    font-size: 1rem;
    color: #bdbdbd
}

@media (max-width: 767.98px) {
    .x-daily-check-in-card .-card-sub-title {
        font-size: .875rem
    }
}

.x-check-in-date-counter {
    display: flex;
    align-items: center;
    gap: .375rem
}

.x-check-in-date-counter .-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 44px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fafafa;
    background: #fa855f;
    border-radius: .375rem
}

@media (max-width: 767.98px) {
    .x-check-in-date-counter .-box {
        height: 35px;
        font-size: 1rem
    }
}

.x-check-in-date-counter span {
    font-size: 1.125rem;
    color: #fafafa
}

@media (max-width: 767.98px) {
    .x-check-in-date-counter span {
        font-size: 1rem
    }
}

.x-check-in-checked-box-list {
    flex-wrap: nowrap;
    gap: .75rem;
    padding-top: 2.25rem
}

@media (max-width: 767.98px) {
    .x-check-in-checked-box-list {
        gap: .5rem;
        padding-top: 1.25rem
    }
}

.x-check-in-checked-box-list .-nav-item {
    width: 14.28571% !important
}

.x-check-in-checked-box-list .-nav-item.-is-passed {
    -webkit-filter: brightness(.5);
    filter: brightness(.5)
}

.x-check-in-checked-box-list .-nav-item.-is-passed .-bottom-wrapper {
    color: #fafafa
}

.x-check-in-checked-box-list .-nav-item.-can-apply .-bottom-wrapper {
    background: linear-gradient(0deg, #ad0f54, #ec325f)
}

.x-check-in-checked-box-list .-nav-link {
    width: 100%;
    padding: 0;
    color: #262626;
    transition: all .2s
}

.x-check-in-checked-box-list .-nav-link:not([disabled]):hover {
    -webkit-filter: saturate(1.75) !important;
    filter: saturate(1.75) !important;
}

.x-check-in-checked-box-list .-ic {
    width: 50%
}

@media (max-width: 767.98px) {
    .x-check-in-checked-box-list .-ic {
        width: 60%
    }
}

@media (max-width: 575.98px) {
    .x-check-in-checked-box-list .-ic {
        width: 70%
    }
}

.x-check-in-checked-box-list .-top-wrapper {
    border: 2px solid #e9315f;
    border-radius: 1rem 1rem 0 0;
    text-align: center
}

@media (max-width: 767.98px) {
    .x-check-in-checked-box-list .-top-wrapper {
        border-radius: .625rem .625rem 0 0
    }
}

@media (max-width: 575.98px) {
    .x-check-in-checked-box-list .-top-wrapper {
        border-radius: .375rem .375rem 0 0
    }
}

.x-check-in-checked-box-list .-top-wrapper .-ic-wrapper {
    margin-top: -15%
}

.x-check-in-checked-box-list .-top-wrapper .-text-point {
    display: block;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fdb368
}

@media (max-width: 767.98px) {
    .x-check-in-checked-box-list .-top-wrapper .-text-point {
        margin-top: .5rem;
        margin-bottom: .75rem;
        font-size: 1.25rem
    }
}

@media (max-width: 575.98px) {
    .x-check-in-checked-box-list .-top-wrapper .-text-point {
        margin-top: .25rem;
        margin-bottom: .5rem;
        font-size: 4vw
    }
}

.x-check-in-checked-box-list .-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: .9375rem;
    background: #fdb368;
    border-radius: 0 0 1rem 1rem;
    color: #fafafa
}

@media (max-width: 767.98px) {
    .x-check-in-checked-box-list .-bottom-wrapper {
        min-height: 26px;
        font-size: .875rem;
        border-radius: 0 0 .625rem .625rem
    }
}

@media (max-width: 575.98px) {
    .x-check-in-checked-box-list .-bottom-wrapper {
        min-height: 21px;
        font-size: .75rem;
        border-radius: 0 0 .375rem .375rem
    }
}

.x-check-in-collect {
    position: relative
}

.x-check-in-collect-container {
    overflow-y: hidden;
    overflow-x: auto
}

.x-check-in-collect-box-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding-left: 20% !important;
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list {
        margin-top: 1rem
    }
}

.x-check-in-collect-box-list-item {
    min-width: 25% !important
}

.x-check-in-collect-box-list-item .-btn-apply {
    text-decoration: none
}

.x-check-in-collect-box-list-item .-reward-detail {
    position: absolute;
    bottom: 2px;
    left: 50%;
    z-index: 1;
    translate: -50% 0;
    line-height: 1.3;
    color: #fafafa
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-reward-detail {
        bottom: 0;
        line-height: 1.2
    }
}

.x-check-in-collect-box-list-item .-reward-detail .-label {
    font-size: .75rem;
    font-weight: 300
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-reward-detail .-label {
        font-size: .625rem
    }
}

.x-check-in-collect-box-list-item .-reward-detail .-value {
    font-size: 1rem;
    font-weight: 600
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-reward-detail .-value {
        font-size: .875rem
    }
}

.x-check-in-collect-box-list-item .-ic-wrapper {
    position: relative;
    text-align: center;
    transition: all .2s
}

.x-check-in-collect-box-list-item .-ic {
    position: relative;
    z-index: 1;
    width: 65%
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-ic {
        width: 80%
    }
}

.x-check-in-collect-box-list-item .-ic-effect {
    position: absolute;
    top: -15%;
    left: 50%;
    width: 75%;
    max-width: unset;
    translate: -50% 0;
    -webkit-animation: x-wheel-reward-spin 6s linear infinite;
    animation: x-wheel-reward-spin 6s linear infinite
}

.x-check-in-collect-box-list-item .-pointer-wrapper {
    margin: 1.25rem 0 1rem;
    text-align: center
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-pointer-wrapper {
        margin: 1rem 0 .5rem
    }
}

.x-check-in-collect-box-list-item .-pointer-wrapper .-pointer {
    position: relative;
    width: 30px;
    height: auto;
    aspect-ratio: 1;
    margin: auto;
    border-radius: 9999px;
    background: #934161;
    border: 2px solid #722946
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-pointer-wrapper .-pointer {
        width: 20px
    }
}

.x-check-in-collect-box-list-item .-pointer-wrapper .fas {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -40%;
    font-size: .75rem
}

.x-check-in-collect-box-list-item .-label-wrapper {
    text-align: center;
    color: #737373
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item .-label-wrapper {
        font-size: .875rem
    }
}

.x-check-in-collect-box-list-item.-applied .-label-wrapper {
    color: #fafafa
}

.x-check-in-collect-box-list-item.-applied .-pointer-wrapper .-pointer {
    background: #fa855f;
    border: 2px solid #722946
}

.x-check-in-collect-box-list-item.-applied .-reward-detail {
    bottom: 16px
}

@media (max-width: 575.98px) {
    .x-check-in-collect-box-list-item.-applied .-reward-detail {
        bottom: 10px
    }
}

.x-check-in-collect-box-list-item.-applied .-reward-detail .-value {
    font-size: 1.125rem
}

.x-check-in-collect-box-list-item.-can-apply:hover .-ic-wrapper {
    -webkit-filter: drop-shadow(0 0 6px rgba(253, 179, 104, .75));
    filter: drop-shadow(0 0 6px rgba(253, 179, 104, .75))
}

.x-check-in-collect-box-list-item.-can-apply .-ic-wrapper {
    -webkit-animation: x-animate-heartbeat 1.5s ease-in-out infinite both;
    animation: x-animate-heartbeat 1.5s ease-in-out infinite both
}

.x-check-in-collect-box-list-item.-can-apply .-pointer-wrapper .-pointer {
    background: #fdb368;
    background-size: 400% 400%;
    border: 2px solid #1e1e1e;
    -webkit-animation: x-animate-move-gradient-bg 1s linear infinite;
    animation: x-animate-move-gradient-bg 1s linear infinite
}

.x-check-in-collect-box-list-item.-opening .-ic-wrapper {
    -webkit-animation: x-gift-checkpoint-opening 1s ease-out 3 both !important;
    animation: x-gift-checkpoint-opening 1s ease-out 3 both !important
}

.x-check-in-collect-box-list-item.-opened .-ic-wrapper {
    -webkit-animation: x-gift-checkpoint-opened 1s ease-out 1 both !important;
    animation: x-gift-checkpoint-opened 1s ease-out 1 both !important
}

.x-check-in-collect-progress {
    display: flex;
    align-items: center;
    position: relative;
    left: 0;
    width: 100%;
    margin-top: -75px;
    padding-bottom: 50px
}

@media (max-width: 575.98px) {
    .x-check-in-collect-progress {
        margin-top: -55px;
        padding-bottom: 25px
    }
}

.x-check-in-collect-progress .-status-text {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: calc(10% + 2px);
    max-width: calc(10% + 2px);
    padding: .375rem .125rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
    background: #fa855f;
    border-radius: .25rem;
    text-align: center
}

@media (max-width: 575.98px) {
    .x-check-in-collect-progress .-status-text {
        max-width: unset;
        font-size: .875rem
    }
}

.x-check-in-collect-progress .-progress {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 15px;
    padding: 1px 0;
    background: #381221;
    border-radius: 0 1rem 1rem 0
}

@media (max-width: 575.98px) {
    .x-check-in-collect-progress .-progress {
        height: 12px
    }
}

.x-check-in-collect-progress .-progress-bar {
    position: relative;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #ff705c, #ffa325);
    border-radius: 0 1rem 1rem 0
}

.x-check-in-collect-progress .-progress-bar:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, hsla(0, 0%, 100%, .15) 25%, transparent 0, transparent 50%, hsla(0, 0%, 100%, .15) 0, hsla(0, 0%, 100%, .15) 75%, transparent 0, transparent);
    background-size: 1rem 1rem;
    border-radius: 0 1rem 1rem 0
}

@-webkit-keyframes x-gift-checkpoint-opening {
    0%, to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%
    }

    15% {
        -webkit-transform: translateX(-15px) rotate(-6deg);
        transform: translateX(-15px) rotate(-6deg)
    }

    30% {
        -webkit-transform: translateX(7px) rotate(6deg);
        transform: translateX(7px) rotate(6deg)
    }

    45% {
        -webkit-transform: translateX(-7px) rotate(-3.6deg);
        transform: translateX(-7px) rotate(-3.6deg)
    }

    60% {
        -webkit-transform: translateX(4px) rotate(2.4deg);
        transform: translateX(4px) rotate(2.4deg)
    }

    75% {
        -webkit-transform: translateX(-3px) rotate(-1.2deg);
        transform: translateX(-3px) rotate(-1.2deg)
    }
}

@keyframes x-gift-checkpoint-opening {
    0%, to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%
    }

    15% {
        -webkit-transform: translateX(-15px) rotate(-6deg);
        transform: translateX(-15px) rotate(-6deg)
    }

    30% {
        -webkit-transform: translateX(7px) rotate(6deg);
        transform: translateX(7px) rotate(6deg)
    }

    45% {
        -webkit-transform: translateX(-7px) rotate(-3.6deg);
        transform: translateX(-7px) rotate(-3.6deg)
    }

    60% {
        -webkit-transform: translateX(4px) rotate(2.4deg);
        transform: translateX(4px) rotate(2.4deg)
    }

    75% {
        -webkit-transform: translateX(-3px) rotate(-1.2deg);
        transform: translateX(-3px) rotate(-1.2deg)
    }
}

@-webkit-keyframes x-gift-checkpoint-opened {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }

    to {
        -webkit-transform: scale(3);
        transform: scale(3);
        opacity: 0
    }
}

@keyframes x-gift-checkpoint-opened {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }

    to {
        -webkit-transform: scale(3);
        transform: scale(3);
        opacity: 0
    }
}

.x-daily-check-in-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    padding: 1rem;
    background-size: cover;
    background-position: 50%;
    border-radius: .5rem
}

@media (max-width: 767.98px) {
    .x-daily-check-in-cover {
        min-height: 90px
    }
}

@media (max-width: 575.98px) {
    .x-daily-check-in-cover {
        min-height: 80px
    }
}

.x-daily-check-in-cover .-title {
    margin-bottom: 0;
    font-size: 2rem;
    color: #fafafa
}

@media (max-width: 767.98px) {
    .x-daily-check-in-cover .-title {
        font-size: 1.125rem
    }
}

.x-daily-check-in-cover .-condition {
    margin-bottom: 0;
    font-size: 1.125rem;
    color: #fdb368
}

@media (max-width: 767.98px) {
    .x-daily-check-in-cover .-condition {
        font-size: .9375rem
    }
}

.x-daily-check-in-cover .-sub-title {
    margin-bottom: 0;
    font-size: 1.125rem;
    text-align: center;
    color: #eee
}

@media (max-width: 767.98px) {
    .x-daily-check-in-cover .-sub-title {
        font-size: .9375rem
    }
}

@media (max-width: 575.98px) {
    .x-daily-check-in-cover .-sub-title {
        font-size: .875rem
    }
}

.x-check-in-checked-box-list .-nav-link{
    color: black !important;
}


.btn {
    border-radius: 10px;
    color: #fff;
    border: none;
    padding: .5rem 1.5rem;
}
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fafafa;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 2px;
    transition: color .15s 
ease-in-out, background-color .15s 
ease-in-out, border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out;
}

/* ===== Page Wrapper ===== */
.checkin-page{
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 24px;
  color: #111;
}

/* ===== Hero / Title / Condition ===== */
.checkin-hero{
  padding: 8px 2px 14px;
}
.checkin-title{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.checkin-condition{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.checkin-condition__label{

  font-weight: 700;
  color: #ff5a6a;
  margin-bottom: 4px;
}
.checkin-condition__text{

  line-height: 1.35;
  color: #444;
}

/* ===== Card Layout ===== */
.checkin-card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #f1f1f1;
}

.checkin-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  border-bottom: 1px solid #f1f1f1;
}

.checkin-card__headLeft{
  display: flex;
  gap: 10px;
  align-items: center;
}
.checkin-card__headLeft i{
  font-size: 18px;
  color: #ff5a6a;
}

.checkin-card__title{
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.checkin-card__sub{
  font-size: 15px;
  color: #777;
  margin-top: 2px;
}

.checkin-card__body{
  padding: 12px;
}

/* ===== Counter (right) ===== */
.checkin-counter{
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  border: 1px solid #ffe2e6;
  padding: 8px 10px;
  border-radius: 999px;
}
.checkin-counter__num{
  font-size: 20px;
  font-weight: 900;
  color: #ff5a6a;
  line-height: 1;
}
.checkin-counter__unit{
  font-size: 15px;
  color: #666;
}

/* ===== Daily Grid ===== */
.checkin-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 420px){
  .checkin-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checkin-grid__item{ margin: 0; }

/* ===== Daily Item (coin) ===== */
.checkin-day{
  width: 100%;
  border-radius: 14px;
  border: 2px solid #ff5a6a;           /* กรอบแดงคล้ายรูป */
  background: #fff;
  padding: 12px 10px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(255, 90, 106, .10);
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.checkin-day:active{
  transform: scale(.98);
}

.checkin-day__coinWrap{
  display: grid;
  place-items: center;
  height: 64px;
}

.checkin-day__coin{
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.checkin-day__point{
  font-weight: 900;
  color: #ff8a00;
  margin-top: 4px;
  font-size: 14px;
}

.checkin-day__date{
  margin-top: 10px;
  background: #ffe6b8;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #7a4c00;
}

/* ===== Daily States ===== */
.checkin-day.is-today{
  border-color: #ff2f46;
  box-shadow: 0 14px 26px rgba(255,47,70,.18);
}

.checkin-day.is-past,
.checkin-day.is-future,
.checkin-day.is-passed{
  opacity: .55;
  border-color: #ffd0d6;
  box-shadow: none;
}

.checkin-day.is-passed .checkin-day__point{
  color: #666;
}

/* ปุ่ม disabled ของ browser จะทำให้สีซีดอยู่แล้ว แต่อยากคุมให้ดูเนียน */
.checkin-day:disabled{
  cursor: not-allowed;
}

/* ===== Monthly Rewards Row ===== */
.checkin-rewardRow{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 420px){
  .checkin-rewardRow{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checkin-rewardRow__item{ margin: 0; }

/* ===== Reward Item (gift box) ===== */
.checkin-reward{
  width: 100%;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  padding: 10px 10px 12px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
  position: relative;
}

.checkin-reward:active{ transform: scale(.98); }

.checkin-reward__boxWrap{
  position: relative;
  display: grid;
  place-items: center;
  height: 118px;
}

.checkin-reward__box{
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.checkin-reward__badge{
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255,255,255,.92);
  border: 1px solid #ffe2e6;
  border-radius: 12px;
  padding: 6px 8px;
  text-align: right;
  min-width: 64px;
}

.checkin-reward__badgeLabel{
  font-size: 11px;
  color: #777;
  font-weight: 700;
  line-height: 1;
}
.checkin-reward__badgeValue{
  font-size: 14px;
  color: #ff2f46;
  font-weight: 900;
  margin-top: 2px;
}

.checkin-reward__need{
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #555;
}

/* Reward states */
.checkin-reward.can-apply{
  border-color: #ff5a6a;
  box-shadow: 0 14px 26px rgba(255,90,106,.14);
}

.checkin-reward.is-passed,
.checkin-reward:disabled{
  opacity: .55;
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== Progress ===== */
.checkin-progress{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkin-progress__text{
  font-size: 15px;
  font-weight: 800;
  color: #666;
  min-width: 52px;
  text-align: right;
}
.checkin-progress__bar{
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #f2f2f2;
  overflow: hidden;
  border: 1px solid #eee;
}
.checkin-progress__fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a6a 0%, #ff9a4a 100%);
}
