/* 콘텐츠 양에 따라 자동 높이 조정이 필요한 페이지용 */
.container.auto-height {
    min-height: auto;
}
.page-title { font-size: 18px; font-weight: bold; color: #333; }
.badge-empty {
    text-align: center;
    padding: 40px 0;
    color: #888;
}

/************ header *************/
.header{
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #EAF0F8;
    padding: 0 20px;
    z-index: 999;
}
.header.white{
    background: #fff;
}
.header.gray{
    background: #f1f1f1;
}
.header .logo{
    line-height: 0;
}
.header .header_tit{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-size: 16px;
    font-weight: 500;
}

/************ button *************/
.bottom-fix{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}
.bottom-fix button{
    height: 56px;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
}
.button-group{
    display: flex;
    gap: 12px;
}
.button-group button{
    width: 50%;
}
.btn-secondary {
    background-color: #f1f3f5;
    color: #333;
    margin-top: 10px;
}
.btn-primary {
    background-color: #183C6E !important;
    color: #fff !important;
}
.btn-primary:disabled {
    background-color: #92A5BF !important;
}
.btn-outline {
    background: #fff !important;
    border: 1px solid #d8d8d8 !important;
}
.btn-cancel{
    background: #ddd;
    color: #292929;
}

/************ main *************/
.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 80px 20px 66px 20px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.container:has(.bottom-fix) {
    padding: 80px 20px 120px 20px;
    justify-content: flex-start;
}
.container:has(#selectModeActions.show) {
    padding: 80px 20px 190px 20px;
    justify-content: flex-start;
}
.colored {
    background: #EAF0F8;
}
.colored.gray {
    background: #F1F1F1;
}
.container.colored.gray .bottom-fix{
    background: #f1f1f1;
}
.container .badgeCard{
    margin: 0 20px;
    background: #00339F;
    background: linear-gradient(180deg, rgba(0, 51, 159, 1) 0%, rgba(31, 83, 193, 1) 100%);
    border-radius: 20px;
    box-shadow: 0 7px 10px 0 rgba(0,0,0,0.25);
    min-height: 500px;
}
.badgeCard .badgeCount{
    padding: 25px;
    color: #fff;
    font-size: 18px;
}
.badgeCard .badgeCount b{
    font-weight: 700;
}
.badgeCard .badgeImg{
    max-width: 240px;
    width: 100%;
    height: 215px;
    margin: 40px auto;
    position: relative;
    z-index: 1;
    text-align: center;
}
.badgeCard .badgeImg img{
    height: 100%;
}

.badgeCard .badgeInfo .tit{
    background: #052F89;
    color: #fff;
    text-align: center;
    padding: 20px 24px;
    font-size: 24px;
    font-weight: 700;
}
.badgeCard .badgeInfo .date{
    padding: 16px 24px 30px;
    color: #c1cce0;
    font-size: 14px;
    text-align: center;
}
.badgeCard .badgeInfo .date span{
    margin-left: 4px;
}

.badgeCard .badgeImg.nodata{
    width: 156px;
    height: 156px;
    margin: 65px auto 50px;
}
.badgeCard .badgeInfo .nodata{
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    display: block;
}

.main_btn_wrap{
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}
.main_btn_wrap button{
    width: 100%;
    height: 88px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    text-align: left;
    font-size: 16px;
    padding-left: 20px;
    box-shadow: 0 4px 7px 0 rgba(0,0,0,0.06);
    word-break: keep-all;
}

/************ settings *************/
.settingCard{
    background: #f4f4f4;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    gap: 24px;
    align-items: center;
}
.profile-icon {
    width: 100px;
    height: 100px;
    background: #E6E6E6;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-info h4 {
    font-size: 18px;
    font-weight: bold;
}
.profile-info h4 b {
    font-size: 24px;
}
.profile-info p {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
    line-height: 1;
}
.profile-info span {
    background: #D2DEEC50;
    padding: 5px 7px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-block;
}
.profile-info span strong{
    color: #0067D6;
    font-weight: 700;
}

.menu-wrap{
    margin-top: 40px;
}
.menu-wrap h5 {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    color: #696969;
}
.menu-list li {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}
.menu-wrap .menu-list + h5{
    margin-top: 40px
}
#bottomBtnArea{
    display: none;
}
#bottomBtnArea #btnResend{
    margin-top: 10px;
}

/************ login *************/
.hidden {
    display: none !important;
}
.show{
    display: block !important;
}
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 80px 20px 20px 20px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.app-container:has(.bottom-fix) {
    padding: 80px 20px 180px 20px;
}
.content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content-wrap.show{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    padding: 20px;
}
/* --- [화면 1] 랜딩 페이지 스타일 --- */
.landing-text {
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 28px;
}
.landing-image {
    width: 100%;
    max-width: 200px;
}
.btn-landing {
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.3);
}
.btn-txt{
    background: transparent;
    font-weight: 500;
    font-size: 16px;
}
/* --- [화면 2] 로그인 페이지 스타일 --- */
.btn-back {
    width: 24px;
    height: 24px;
    background: transparent;
}
.btn-back img{
    width: 100%;
}
.login_wrap{
    margin-top: 140px;
}
.login_wrap .tit {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 64px;
    width: 100%;
}
.input-group + .input-group{
    margin-top: 24px;
}
.login_wrap .label{
    color:#445875;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.login_wrap .input{
    background: #fff;
    border-radius: 10px;
    width: 100%;
    height: 48px;
    border: none;
}
.login_wrap .input:-webkit-autofill,
.login_wrap .input:-webkit-autofill:focus{
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-out 0s;
}
.login_btn{
    margin-top: 28px;
    color: #BDC4CF;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.login_btn a{
    color: #2E4667;
}
.pw_wrap{
    position: relative;
}
.pw_wrap input{
    padding-right: 44px;
}
.pw_toggle{
    position: absolute;
    right: 14px;
    bottom: 11px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
}
.pw_toggle img{
    width: 100%;
}
/* --- [화면 3] 인증번호 입력 영역 --- */
#viewEmail{
    background: #fff;
}
.content{
    padding-top: 50px;
}
.content .tit,
.terms-header .tit,
.form-header .tit{
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}
.verify-area {
    display: none; /* 초기 숨김 */
    margin-top: 20px;
}
.verify-area .label,
.input-label{
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.timer-text {
    color: #EE0404;
    font-size: 13px;
    margin-top: 12px;
    text-align: right;
}
.timer-text.expired {
    color: #ff4d4f;
}
.input-desc {
    font-size: 16px;
    color: #555;
    margin: 24px 0 40px;
}
.custom-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    font-size: 16px;
}
.custom-input::placeholder{
    color: #9d9d9d;
}
.custom-input:focus {
    border-color: #0067D6;
}

/************ join *************/
/* 약관 동의 */
.terms-header {
    text-align: center;
    margin-bottom: 30px;
}
.terms-header p {
    color: #666;
    font-size: 14px;
}

.terms-list {
    margin-bottom: 30px;
}
.term-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.term-item + .term-item{
    margin-top: 16px;
}
.term-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.term-content {
    flex: 1;
}
.term-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
.term-info{
    display: flex;
    font-size: 13px;
    color: #707070;
    gap: 6px;
    align-items: flex-start;
}
.term-info img{
    flex: 1;
    margin-top: 2px;
}


.term-checkbox{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.term-check{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d6d6d6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.term-check::after{
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #cfcfcf;
    border-bottom: 2px solid #cfcfcf;
    transform: rotate(-45deg);
    margin-top: -2px;
}
.term-checkbox:checked + .term-check{
    background: #163b73;
    border-color: #163b73;
}
.term-checkbox:checked + .term-check::after{
    border-color: #fff;
}

/* 정보 입력 */
#joinForm,
#pwResetForm,
#verifySection{
    margin: 30px 0;
}
.custom-input.error {
    border-color: #EE0404;
}
.custom-input[readonly] {
    background-color: #f5f5f5;
    color: #666;
}
.error-message {
    color: #EE0404;
    font-size: 13px;
    margin-top: 10px;
    display: none;
    line-height: 1.4;
}
.error-message.show {
    display: block;
}
.info-txt{
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}
#joinForm .pw_toggle,
#pwResetForm .pw_toggle{
    bottom: auto;
    top: 40px;
}

/* 라디오 버튼 */
.radio-group {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}
.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}
.radio-group{
    display: flex;
    align-items: center;
    gap: 56px;
}
.radio input[type="radio"]{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d4d4d4;   /* 기본 회색 테두리 */
    background: #fff;
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
    transition: border-color .2s, background-color .2s;
    padding: 0;
}
.radio input[type="radio"]::after{
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .2s;
}
.radio input[type="radio"]:checked{
    background: #183C6E;
    border-color: #183C6E;
}
.radio input[type="radio"]:checked::after{
    transform: scale(1);
}


/************ popup *************/
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.popup-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1001;
    padding: 20px;
}
.popup-header {
    padding: 12px 0 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.popup-content {
    padding: 0 0 140px;
    max-height: calc(100vh - 180px );
    overflow-y: auto;
    font-size: 14px;
    color: #444;
}
.popup-content h3{
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    color: #444;
    margin-top: 20px;
}
.popup-content h3:first-child{
    margin-top: 0;
}
.popup-content p{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #444;
}
.popup-container .bottom-fix{
    padding: 20px;
}


/************ badgeList *************/
.search_wrap{
    position: relative;
}
.search_wrap .search_input{
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1px solid #668EC6;
    border-radius: 100px;
    padding: 14px 16px;
    font-size: 16px;
}
.search_wrap .search_input::placeholder{
    color: #9d9d9d;
}
.search_wrap .search_btn{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
}
.search_wrap .search_btn img{
    width: 100%;
}

.badgeListArea{
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px 2px rgba(0,0,0,0.1);
}
.badgeListArea:has(.nodata){
    border-radius: 0;
    box-shadow: none;
}
.badgeListArea .nodata{
    height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}
.badgeListArea .nodata img{
    width: 156px;
    height: 156px;
    margin: 0 auto;
}
.badgeListArea .nodata p{
    font-size: 20px;
    color: #555;
    text-align: center;
    font-weight: 500;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background:#fff ;
}
.category-header-left {
    flex: 1;
}
.category-header .category-name {
    font-size: 16px;
    font-weight: 500;
}
.category-toggle-btn {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.category-toggle-btn .toggle-icon {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.category-accordion.collapsed .category-toggle-btn .toggle-icon {
    transform: rotate(-180deg);
}
.category-accordion.collapsed .category-toggle-btn:empty::before {
    transform: rotate(-180deg);
}

.badge-item{
    position: relative;
    margin-bottom: 12px;
}
.badge-content{
    padding: 25px 20px;
    background: #F9F9F9;
    border-bottom: 1px solid #ededed;
}
.category-content .card:last-child .badge-content{
    border-bottom: none;
}
.category-content .card{
    position: relative;
}
.badge-content .top-area{
    display: flex;
    align-items: center;
    gap: 20px;
}
.badge-content .top-area .badge-img{
    width: 80px;
    height: 72px;
}
.badge-content .top-area .badge-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.badge-content .top-area .badge-info .tit{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.badge-content .top-area .badge-info .date{
    font-size: 14px;
    color: #666;
}
.badge-content .bottom-area{
    margin-top: 16px;
}
.badge-content .bottom-area .badge-desc{
    font-size: 15px;
    line-height: 1.4;
}

#selectModeActions{
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 6px 0 rgba(0,0,0,0.1);
}
#selectModeActions.show{
    display: block;
}
.badge-checkbox{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid #bbb;
    background: #fff url("../images/ic_check.svg") no-repeat top 5px center;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    position: absolute;
    top: 20px;
    left: 20px;
}
.badge-checkbox:checked{
    background: #00339F url("../images/ic_check.svg") no-repeat top 5px center;
    border: 1px solid #fff;
}
#selectModeActions .btn-txt{
    font-size: 18px;
    font-weight: 600;
    gap: 4px;
}
#selectModeActions .btn-txt .select-count{
    color: #407DFF;
    font-weight: 700;
}
#selectModeActions .btn-primary img{
    width: 24px;
    height: 24px;
    margin-right: 4px;
}
#selectModeActions .btn-close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
}


/************ badgeDetail *************/
.badgeDetail{
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #CEDEF5;
}
.badgeDetail .img{
    width: 240px;
    height: 215px;
    margin: 0 auto;
}
.badgeDetail .img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.badgeDetail h2{
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-top: 32px;
}

.detailList p{
    display: block;
    font-size: 14px;
    color: #555;
}
.detailList p strong{
    font-size: 17px;
    color: #000;
    font-weight: 500;
    margin-left: 16px;
}
.detailList p + p{
    margin-top: 24px;
}
.detailTxt{
    margin: 24px 0;
    font-size: 16px;
    color: #000;
}

.detailTable{
    background: #F8F8F8;
    border: #CEDEF5;
    margin-top: 8px;
}
.detailTable th{
    color: #464646;
    font-size: 14px;
    padding: 12px 9px;
    border: 1px solid #CEDEF5;
}
.detailTable td{
    font-size: 16px;
    font-weight: 500;
    padding: 16px 13px;
    border: 1px solid #CEDEF5;
}
.detailTable td:nth-child(2){
    width: 80px;
    text-align: right;
}
.detailTable td:nth-child(3){
    width: 70px;
    text-align: center;
}


/************ policy *************/
.policy-content {
    line-height: 1.5;
}
.policy-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
}
.policy-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #555;
}
.policy-content p {
    margin: 10px 0;
    font-size: 14px;
}
.policy-content ul {
    margin: 10px 0;
    padding-left: 20px;
}
.policy-content ul li {
    margin: 5px 0;
    font-size: 14px;
}
.effective-date {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    font-size: 13px;
}
.highlight-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.policy-content table th,
.policy-content table td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 13px;
    text-align: left;
}
.policy-content table th {
    background: #f8f9fa;
    font-weight: bold;
}


/************ intro *************/
.container:has(.intro){
    padding: 80px 0 40px;
    justify-content: flex-start;
}
.intro .logo_area{
    width: 260px;
    margin: 0 auto 20px;
}
.intro .logo_area img{
    width: 100%;
}
.intro .intro_card h3{
    font-size: 32px;
    text-align: center;
}
.intro .intro_card h3 b{
    color: #1259EE;
    font-weight: 400;
}
.intro_card{
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 40px 0 0;
    text-align: center;
}
.intro_card::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    background: #E9EEF8;
    z-index: 0;
}
.intro_card > *{
    position: relative;
    z-index: 1;
}
.intro_card img{
    width: 180px;
    margin: 40px 0 30px;
}
.intro_card h4{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}
.intro_card p{
    font-size: 16px;
}
@media screen and (max-width: 374px){
    .intro_card p br{
        display: none;
    }
}
.intro_list_wrap{
    margin-top: 50px;
    padding: 0 20px;
}
.intro_list{
    border-radius: 20px;
    padding: 32px;
    background: #F0F1FA;
    text-align: center;
}
.intro_list + .intro_list{
    margin-top: 20px;
}
.intro_list:nth-child(2){
    background: #EAF7FA;
}
.intro_list:nth-child(3){
    background: #EDF3FA;
}
.intro_list h3{
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}
.intro_list img{
    margin: 32px 0 24px;
}
.intro_list p{
    font-size: 16px;
}