/* RNDPASS(구독) 페이지 보강 스타일 — 포팅된 ported/hashpass.css 위에 얹는 오버라이드/추가 */

.hashpass-wrapper {
    background-image: url("/img/pass/background.svg");
}
@media (max-width: 767px) {
    .hashpass-wrapper {
        background-image: url("/img/pass/background_m.svg");
        background-attachment: scroll;
    }
}
.hashpass-hero__sub-title {
    width: 360px;
    max-width: 80vw;
    height: auto;
}

/* 보상 카테고리 탭 */
.pass-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 24px;
}
.pass-category__item {
    padding: 6px 16px;
    border: 1px solid #7ab5f9;
    border-radius: 999px;
    background: #fff;
    color: #1a72c2;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s ease;
}
.pass-category__item:hover,
.pass-category__item.is-active {
    background: #4a8cfd;
    border-color: #4a8cfd;
    color: #fff;
}
@media (max-width: 767px) {
    .pass-category {
        gap: 6px;
        margin-bottom: 16px;
    }
    .pass-category__item {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* 패스 카드 혜택 요약·추가 버튼 */
.pass-card__benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #525252;
    font-size: 11px;
    line-height: 1.45;
    word-break: keep-all;
}
.pass-card__benefits li {
    position: relative;
    padding-left: 10px;
}
.pass-card__benefits li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7b91ff;
}
@media (max-width: 767px) {
    .pass-card__benefits {
        font-size: 10px;
    }
}
.pass-card__attend {
    border-color: #4a8cfd;
    background: #4a8cfd;
    color: #fff;
    font-weight: 700;
}
.pass-card__attend:hover:not(:disabled),
.pass-card__attend:focus-visible:not(:disabled) {
    border-color: #2f6fe0;
    background: #2f6fe0;
    color: #fff;
}
.pass-card__claim {
    border-color: #ffb400;
    background: #fff6d8;
    color: #9a6400;
    font-weight: 700;
}
.pass-card__claim:hover:not(:disabled),
.pass-card__claim:focus-visible:not(:disabled) {
    border-color: #e5a200;
    background: #ffe9a8;
    color: #7a4f00;
}
.pass-card__extend {
    border-color: #2ca45d;
    color: #168047;
}
.pass-card__scheduled {
    margin: 0;
    color: #168047 !important;
    font-size: 11px;
}
.pass-card__actions .cart-button:disabled {
    cursor: default;
}
.pass-card__actions .cart-button.is-applied:disabled {
    opacity: 1;
}

/* 출석 섹션 요약줄 */
.attendance-summary {
    width: 100%;
    margin: 0 0 16px;
    color: #1a72c2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}
.attendance-summary:empty {
    display: none;
}
.attendance-summary small {
    display: block;
    color: #525252;
    font-size: 12px;
    font-weight: 400;
}
@media (max-width: 767px) {
    .attendance-summary {
        margin-bottom: 8px;
        font-size: 12px;
    }
    .attendance-summary small {
        font-size: 10px;
    }
}

/* 출석 카드: 오늘(출석 가능)·놓친 날(보충) 액션 라벨 */
.attendance-action--bottom {
    top: auto;
    bottom: 40px;
    transform: translate(-50%, 0);
}
@media (max-width: 767px) {
    .attendance-action--bottom {
        bottom: 30px;
    }
}
.attendance-card__content--pending,
.attendance-card__content--locked {
    background: linear-gradient(180deg, #ffffff 0%, #f1f4fb 100%);
}
.attendance-card__content--pending .attendance-card__reward,
.attendance-card__content--locked .attendance-card__reward {
    opacity: 0.55;
    filter: grayscale(0.4);
}
.attendance-card__lock {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.attendance-state--makeup {
    color: #526bea;
}

/* 구매 모달 */
.pass-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Pretendard Variable", "Pretendard", "Segoe UI", sans-serif;
}
.pass-modal[hidden] {
    display: none;
}
.pass-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.pass-modal__box {
    position: relative;
    width: 360px;
    max-width: calc(100% - 32px);
    padding: 28px 24px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.pass-modal__box h3 {
    margin: 0 0 12px;
    color: #1a72c2;
    font-size: 20px;
    font-weight: 800;
}
.pass-modal__desc {
    margin: 0 0 8px;
    color: #383838;
    font-size: 14px;
    line-height: 1.5;
}
.pass-modal__price {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef4ff;
    color: #1a72c2;
    font-size: 14px;
}
.pass-modal__price strong {
    font-size: 20px;
}
.pass-modal__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #d5deef;
    border-radius: 10px;
    color: #383838;
    font-size: 14px;
    cursor: pointer;
}
.pass-modal__option:has(input:checked) {
    border-color: #4a8cfd;
    background: #f3f7ff;
}
.pass-modal__option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4a8cfd;
}
.pass-modal__option small {
    color: #7a7a7a;
    font-size: 12px;
}
.pass-modal__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.pass-modal__actions button {
    flex: 1;
    padding: 12px;
    border: 1px solid #686868;
    border-radius: 999px;
    background: #fff;
    color: #383838;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.pass-modal__actions .pass-modal__ok {
    border-color: #4a8cfd;
    background: #4a8cfd;
    color: #fff;
}
.pass-modal__actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
