:root {
    --bg: #fff;
    --bg_gr:#f1f1f1;

    --card: #FFF;
    --pr: #FF4D2E;
    --pr_bg:#fff1ef;
    --pl: #FFF0ED;
    --tx: #191919;
    --ts: #8A8A8A;
    --bd: #EBEBEB;
    --tbg: #F0EDE8;
    --green: #00C471;
    --gl: #E6FAF2;
    --blue: #3B82F6;
    --bl: #EFF6FF;

    --coin: #C99200;
    --coin_bg: #FFF6D9;

    --warn: #B23A48;

    --black:#0b0b0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar { display: none; }

/* ── 페이지 진입 깜빡임 방지: body 기본 opacity 0 → JS가 .page-ready 추가 시 페이드인 ── */
body {
    opacity: 0;
    transition: opacity 0.18s ease;
}
body.page-ready {
    opacity: 1;
}


/* 스플래시 */
.splash{
    width: 100%; height: 100vh;
    background: var(--pr);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 140px;
}
.sp_wrap p{
    color:#fff;
    opacity: 0;
    font-size: 15px;
    font-weight: 200;
    text-align: center;
    animation: fadeRise 0.5s cubic-bezier(.22, .61, .36, 1) 0.75s forwards;
}
.sp_wrap{
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sp_wrap .logo_icon{
    margin: 0 auto;
    width: 104px;
    display: block;

    opacity: 0;
    animation: fadeRise 0.6s cubic-bezier(.22, .61, .36, 1) 0.1s forwards;
}
.sp_wrap .logo_txt{
    width: 130px;
    margin: 0 auto;
    display: block;

    opacity: 0;
    animation: fadeRise 0.55s cubic-bezier(.22, .61, .36, 1) 0.45s forwards;
}
/* ── Fade & Rise 애니메이션 keyframe ── */
@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 스플래시 로고 플립 ── */
.logo_flip_wrap {
    position: relative;
    width: 130px;
    margin: 0 auto;
}
.logo_flip_wrap .logo_txt {
    margin: 0;
}
.logo_flip_wrap .logo_kor {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scaleX(0);
    animation: none;
    transform-origin: center;
}
@keyframes logo-flip-out {
    from { transform: scaleX(1); opacity: 1; }
    to   { transform: scaleX(0); opacity: 0; }
}
@keyframes logo-flip-in {
    from { transform: scaleX(0); opacity: 1; }
    to   { transform: scaleX(1); opacity: 1; }
}
.logo_en.flipping-out {
    animation: logo-flip-out 0.25s ease-in forwards;
}
.logo_kor.flipping-in {
    animation: logo-flip-in 0.25s ease-out forwards;
}


/* 위시태그 심볼로고 */
.logo {
    display: flex;
    align-items: center;
    gap: 0px;
}
.logo img {
    width: 100px;
    /* border: 1px solid red; */
}

.mk-header-logo{
    width: inherit !important;
    height: 34px ;
}
.mk-header-txt-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.mk-header-txt-wrap img{
    height: 34px !important;
}
.mk-header-txt-en {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}
.mk-header-txt-kor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scaleX(1);
    transform-origin: center;
}
.logo em {
    color: var(--tx);
    font-style: normal;
}
.hbtns {
    display: flex;
    gap: 8px;
}
.ibtn {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, .06); */
}
.ibtn.noti.has-noti{position: relative;}
.ibtn.noti.has-noti::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--pr, #ff4757);
    border-radius: 50%;
    border: 1.5px solid #fff;
}

.ibtn.noti{background: url(/assets/img/icon_noti.svg) no-repeat center center;}
.ibtn.setting{background: url(/assets/img/icon_setting.svg) no-repeat center center;}
.ibtn.shop{background: url(/assets/img/icon_shop.svg) no-repeat center center;}

.page {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 68px 20px 100px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 auto;
}
.page::-webkit-scrollbar {display: none;}

.page.active {
    display: block;
}

/* ── 탭 전환 슬라이드 트랜지션 ────────────────────────────────────────────────── 0527 */
@keyframes pageSlideInRight {
    from { transform: translateX(32px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes pageSlideInLeft {
    from { transform: translateX(-32px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes pageSlideOutLeft {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(-32px); opacity: 0; }
}
@keyframes pageSlideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(32px); opacity: 0; }
}
.page.slide-in-right  { animation: pageSlideInRight  0.15s cubic-bezier(.25,.46,.45,.94) both; }
.page.slide-in-left   { animation: pageSlideInLeft   0.15s cubic-bezier(.25,.46,.45,.94) both; }
.page.slide-out-left  { animation: pageSlideOutLeft  0.08s cubic-bezier(.55,0,1,.45) both; }
.page.slide-out-right { animation: pageSlideOutRight 0.08s cubic-bezier(.55,0,1,.45) both; }

/* ── 서브페이지 진입: 스케일+페이드인 (설정·알림 등) ───────────────────────────── */
@keyframes pageScaleFadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.scale-in { animation: pageScaleFadeIn 0.25s cubic-bezier(.25,.46,.45,.94) both; }

/* ── 카드 리스트 칩 전환 페이드 ──────────────────────────────────────────────── */
#cardList { transition: opacity 0.15s ease; }

/* ── 탭 아이콘 on 상태 페이드인 ──────────────────────────────────────────────── */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.tabi.on .tabico,
.tabi.on .tablbl {
    animation: pageFadeIn 0.5s ease both;
}
/* ──────────────────────────────────────────────────────────────────────── */


/* 온보딩 */
.owrap {
    display: none;
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    flex-direction: column;
    margin: 0 auto;
}
.owrap.active {
    display: flex;
    /* animation: bgFade 0.6s ease forwards; */
}
/* @keyframes bgFade {
    from {
        background: var(--pr);
    }
    to {
        background: #fff;
    }
} */

.owrap.active {
    display: flex;
}

.ohero {
    max-height: calc(100vh - 276px);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px 24px;
}

.osl {
    font-size: 13px;
    color: var(--ts);
    text-align: center;
    margin-bottom: 8px;
}

.ologo {
    /* font-family: 'DM Sans', sans-serif; */
    /* font-size: 42px; */
    font-weight: 600;
    color: var(--pr);
    margin-bottom: 0px;
    margin-top: 0;
}
.ologo img{
    width:110px;
    display: block;
    margin: 0;
    margin-bottom: 8px;
}
.ologo em {
    color: var(--tx);
    font-style: normal;
}
.osl2 {
    font-size: 12px;
    color: var(--ts);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.4;
}
.ofeats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 18px 16px;
    background: #f6f6f6;
    border-radius: 16px;
}
.ofrow {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ofrow.hi {
    background: var(--pl);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 -16px;
}

.ofico {
    width: 36px;
    height: 36px;
    background:#fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.ofico img{
    width: 32px;
}

.oftitle {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ofdesc {
    font-size: 12px;
    color: var(--ts);
    line-height: 1.3;
}

.lsec {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 32px 20px;
}

.ltitle {
    font-size: 12px;
    color: var(--ts);
    text-align: center;
    margin-bottom: 8px;
}
.ltitle.sns{
    margin-bottom:12px;
}

.sbtn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sbtn img { width: 20px; height: 20px; }
.sbtn.kakao { background: #FEE500; color: #191919; }
.sbtn.naver { background: #03C75A; color: white; }
.sbtn.google { background: white; color: #191919; border: 1px solid var(--bd); }
.sbtn.apple  { background: #000; color: white; }
.skbtn {
    width: 100%;
    background: none;
    border: none;
    color: var(--ts);
    font-size: 13px;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    padding: 12px;
    text-decoration: underline;
}

.sbtns {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.wwrap {
    display: none;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.wwrap.active {
    display: flex;
}

.wemoji {
    font-size: 64px;
    margin-bottom: 20px;
}

.wtitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.wdesc {
    font-size: 14px;
    color: var(--ts);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 36px;
}

.wbtn {
    background: var(--pr);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 48px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}

.wishtag-sticky{
    position: sticky;
    top: 56px;
    background:var(--bg);
    z-index: 40;
    margin: 0 -20px;
    padding: 12px 20px 4px 20px;
}
.wishtag-sticky::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
}
.page.main_view{
    padding-top: 0;
}

.ubox {
    margin-bottom: 20px;
}
.ubox p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    width: 100%;
}

.urow {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    border: 1px solid var(--black);
    padding: 6px 5px 5px 20px;
    transition: border-color .2s;
    overflow: hidden;
    background-color: #f1f1f1;
    gap: 6px;
}

.urow:focus-within {
    border-color: var(--pr);
}

.uinput {
    flex: 1;
    min-width: 0;
    border: none;
    font-size: 14px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    background: transparent;
    outline: none;
}

.uinput::placeholder {
    color: #CCC;
    font-size: 15px;
}

.url-clear-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    color: white;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.url-clear-btn::before {
    content: '✕';
}

.wtbtn {
    background: var(--pr);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.stitle {
    font-size: 15px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.smore {
    font-size: 11px;
    color: var(--ts);
    cursor: pointer;
}

.sbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sinput {
    flex: 1;
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    background: var(--card);
    outline: none;
}

.sinput:focus {
    border-color: var(--pr);
}

.sinput::placeholder {
    color: #CCC;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ts);
}

.empty-ico {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 12px; */
    /* border: 1px solid red; */
}
.empty-ico img{
    /* border: 1px solid red; */
    width: 60px;
    opacity: 0.15;
    display: block;
}
.empty-ico .ico-img{
    /* border: 1px solid red; */
    width: 100px; height: 100px;
    opacity: 1;
    display: block;
}
.empty-ico .empty-ico{
    /* border: 1px solid red; */
    width: 100px; height: 100px;
    opacity: 1;
    display: block;
}

.empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    line-height: 1.7;
}

/* 시스템 점검 안내 (쿠폰 공급사 점검 등) */
.cp-maint {
    text-align: center;
    padding: 96px 20px 60px;
}
.cp-maint-ico {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.cp-maint-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 10px;
}
.cp-maint-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.7;
}
.cp-maint-time {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.7;
    margin-top: 6px;
}

/* 태그카드 */
.tlist {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 68px;
    margin-bottom: 20px;
}

.tcard {
    background: var(--card);
    border-radius: 16px;
    padding: 14px;
    /* border: 1px solid #d8d8d8; */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* 나의 태그 - 캐시백 플래그 260511 */
.tcard .tc-nocb-badge {
    position: relative;
    margin-left: 14px;
    margin-bottom: 0;
}
.cb-badge-row .tc-nocb-badge { margin-left: 0; }

.lc-card .tc-nocb-badge{
    margin-left: 25px !important;
}

.tcard:last-child {
    margin-bottom: 0;
}

.tcard-top {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 24px;
}

.tcard-del {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #CCC;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tcard-del:hover {
    color: var(--pr);
}

.timg {
    width: 64px;
    height: 64px;
    background: var(--tbg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.tinfo {
    flex: 1;
    min-width: 0;
}

.tname {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tdate {
    font-size: 11px;
    color: var(--ts);
}

/* 쇼핑몰 행 */
.clist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.crow {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-radius: 10px;
    background: var(--bg);
    gap: 8px;
}

.crow.first {
    background: var(--pl);
}

.crow.first .cshop {
    color: var(--pr);
    font-weight: 700;
}

.crow.other {
    background: var(--bl);
}

.crow.other .cshop {
    color: var(--blue);
    font-weight: 700;
}

.crow-del {
    background: none;
    border: none;
    color: #CCC;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.crow-del:hover {
    color: var(--pr);
}

.cshop {
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 76px;
}

.nocb-flag {
    font-size: 8px;
    font-weight: 700;
    background: #888;
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.nocb-flag.other {
    background: var(--blue);
}

.crow-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cprice {
    font-size: 14px;
    font-weight: 700;
}

/* 캐시백 플래그 — 토글과 동일 사이즈 */
.cbtag-wrap {
    width: 72px;
    height: 30px;
    background: var(--pr);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15);
    line-height: 1.3;
}

.cbtag-wrap span {
    font-size: 9px;
    font-weight: 800;
    color: white;
    letter-spacing: .2px;
}

/* 구매완료 토글 */
.done-toggle-track {
    width: 72px;
    height: 30px;
    background: #E0E0E0;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background .3s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15);
    flex-shrink: 0;
}
.done-toggle-track.on {
    background: var(--green);
}
.done-toggle-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform .3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.done-toggle-track.on .done-toggle-thumb {
    transform: translateX(42px);
}
.done-toggle-label {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: #999;
    left: 24px;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .2s;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 10px;
    text-align: center;
}
.done-toggle-track.on .done-toggle-label {
    color: white;
    left: 3px;
    right: 24px;
    text-align: center;
}

/* 구매완료 토글에서 버튼으로 수정 */
.done-btn {
    font-size: 11px;
    font-weight: 700;
    color:#fff;
    background:var(--black);
    border: 1px solid var(--black);
    border-radius: 50px;
    padding: 5px 15px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Pretendard Variable', sans-serif;
}
.done-btn.done {
    color: #00C471;
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

/* 다른 사용자 구분 */
.otag-divider {
    border: none;
    border-top: 1px dashed var(--bd);
    margin: 6px 0 4px;
}

.otag-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    padding: 0 2px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    border-radius: 14px;
    padding: 0;
    width: 72px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid var(--blue);
    background: white;
    color: var(--blue);
}

.btn-add:hover {
    background: var(--bl);
}

/* 나의 쇼핑 */
.hlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hitem {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, .08);
}

.himg {
    width: 62px;
    height: 62px;
    background: var(--gl);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.hinfo {
    flex: 1;
}

.hshop {
    font-size: 11px;
    color: var(--ts);
    font-weight: 500;
    margin-bottom: 2px;
}

.hname {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.hdate {
    font-size: 11px;
    color: var(--ts);
}

.hright {
    text-align: right;
    flex-shrink: 0;
}

.hprice {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.hcb {
    font-size: 10px;
    background: var(--pr);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

.hnocb {
    font-size: 10px;
    background: #888;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

.hitem {
    position: relative;
}

.hitem-del {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #CCC;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.hitem-del:hover {
    color: var(--pr);
}

.cbtcard {
    background: linear-gradient(135deg, var(--pr), #FF8C42);
    border-radius: 20px;
    padding: 24px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(255, 77, 46, .25);
}

.cbtl {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 8px;
}

.cbta {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
}

.cbhl {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cbhi {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, .04); */
    /* box-shadow: 0px 2px 10px rgba(0, 0, 0, .08); */
    border: 1px solid #ebebeb;
}

.cbhin {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.cbhd {
    font-size: 11px;
    color: var(--ts);
}

.cbhamt {
    font-size: 15px;
    font-weight: 700;
    color: var(--pr);
    white-space: nowrap;
}

/* 마이페이지 */
.prcard {
    background: var(--card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #ebebeb;
    /* border: 1px solid var(--black); */
    /* box-shadow: 0 2px 16px rgba(0, 0, 0, .06); */
    cursor: pointer;
}
.prav {
    width: 60px;
    height: 60px;
    /* background: url(/assets/img/profile.svg)no-repeat center center ; */
    /* background: #f4f4f4; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    overflow: hidden;
}
.prav img{
    width: 100%;
}
.prname {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    cursor: pointer;
}
.prbadge {
    background: var(--pl);
    color: var(--pr);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}
.prstats {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0px;
    margin-bottom: 14px;
    border: 1px solid #ebebeb;
    border-radius: 20px;
    overflow: hidden;
    border-radius: 14px;
}
.psc {
    background: var(--card);
    border-radius: 0;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    cursor: pointer;
}
.prstats .line{
    background:#ebebeb;
    width: 1px;
    height: 100%;
}
.psv {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--black);
}
.psl {
    font-size: 11px;
    color: var(--ts);
    font-weight: 500;
}
.prinfo {
    flex: 1;
}
.prarr {
    font-size: 20px;
    color: var(--ts);
}
.mycbc {
    /* background: linear-gradient(135deg, var(--pr), #FF8C42); */
    background: #fff1ef;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color:#000;
    gap: 12px;
    /* box-shadow: 0 4px 20px rgba(255, 77, 46, .2); */
    margin-bottom: 20px;
}
.mycbl {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    opacity: .9;
    margin-bottom: 4px;
    color: var(--pr);
}
.mycba {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-top: 12px;
}
.mycbbtn {
    width: 100%;
    background: white;
    color: var(--pr);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--pr);
}
/* 260807 추가: 캐시백 포인트 옆에 럭키코인 배치 */
.mycb-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.mycb-row .mycbc {
    flex: 1;
    margin-bottom: 0;
}
.mycbc.coin {
    background: var(--coin_bg);
}
.mycbc.coin .mycbl {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--coin);
}
.mycbc.coin .mycbbtn {
    color: var(--coin);
    border-color: var(--coin);
}
.mnulist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 12px;
}
.mnut {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 8px;
    margin-top: 4px;
}
.mnui {
    background: var(--card);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    cursor: pointer;
    border: 0px solid #ebebeb;
}
.mnuico {
    width: 36px;
    height: 36px;
    background: var(--tbg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mnuico img{
    width: 36px;
    height: 36px;
}
.mnutxt {
    flex: 1;
}
.mnutitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.mnudesc {
    font-size: 11px;
    color: var(--ts);
}
.mnuarr {
    font-size: 16px;
    color: var(--ts);
}
.logoutbtn {
    width: 100%;
    background: none;
    border: 1.5px solid var(--bd);
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ts);
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    margin-top: 8px;
}
.spov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 200;
}
.spov.open {
    display: block;
}
.spanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: var(--card);
    z-index: 201;
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    padding-bottom: 40px;
}

.spanel.open {
    transform: translateX(0);
}

.sphdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--bd);
}

.sptitle {
    font-size: 17px;
    font-weight: 700;
}

.spcls {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ts);
}

.spsec {
    padding: 16px 20px 0;
}

.spst {
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 10px;
}

.spi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--bd);
}

.spi:last-child {
    border-bottom: none;
}

.spil {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spico {
    width: 34px;
    height: 34px;
    background: var(--tbg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.spit {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.spid {
    font-size: 11px;
    color: var(--ts);
}

.sparr {
    font-size: 16px;
    color: var(--ts);
}

.tgl {
    width: 44px;
    height: 26px;
    background: var(--bd);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.tgl.on {
    background: var(--pr);
}

.tgt {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.tgl.on .tgt {
    transform: translateX(18px);
}

@keyframes fu {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes sp {
    to {
        transform: rotate(360deg)
    }
}

/* ══════════════════════════════════════
   CARD LIST — #cardList 관련 CSS
   (wishtag_swipe 스타일 기준)
══════════════════════════════════════ */

/* ── 카드 ── */


.card-top {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    align-items: flex-start;
    position: relative;
}

.card-hint{
    font-size: 12px;
    font-weight: 400;
    color: #717171;
    float: right;
    position: absolute;
    bottom: 8px; right: 12px;
    animation: hint-bounce 1.2s ease 1s 1;
}

@keyframes hint-bounce {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(0); }
    60%  { transform: translateX(0px); }
    80%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.thumb {
    width: 64px;
    height: 64px;
    background: var(--tbg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ebebeb;
}
.thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    flex: 1;
    padding-right: 24px;
    min-width: 0;
}

.pname {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.pdate {
    font-size: 11px;
    color: var(--ts);
    margin-top: 3px;
}

.card-del-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #CCC;
    font-size: 18px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color .15s;

    
}

.card-del-btn:active {
    color: var(--pr);
}

/* ── ROW (스와이프 구조) ── */
.row-wrap {
    position: relative;
    height: 56px;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #fff;
}

/* 쇼핑몰명 — 절대 고정 */
.shop-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.shop-label-link {
    pointer-events: all;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-label-link:active .shop-name-text {
    color: var(--pr);
}

.shop-name-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx);
    transition: color .15s;

    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #c5c5c5;
    text-decoration-thickness: 1px;
}
.shop-name-text:hover{
    color: #999;
}

.ext-icon {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bd);
    border-radius: 3px;
    flex-shrink: 0;
}

.ext-icon svg {
    display: block;
}

/* LP 캐시백 추적 링크 표시 — 아이콘을 프라이머리 컬러로 */
.lp-link .ext-icon svg path,
.tc-shop-name.lp-link .ext-icon svg path {
    stroke: var(--pr);
}

.tag-date {
    font-size: 10px;
    color: #C0C0C0;
    margin-top: 2px;
}

/* 액션 버튼 배경 */
.row-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: 0;
    overflow: hidden;
}

.ra-buy {
    flex: 1;
    min-width: 100px;
    flex-shrink: 0;
    background: #fff;
    transition: background .4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.ra-del {
    width: 64px;
    background: var(--pr);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.ra-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    /* background-size: contain; */
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}
.ra-icon.check{background: url(/assets/img/icon_check.svg) ;}
.ra-icon.del{background: url(/assets/img/icon_delete.svg) ;}
.ra-icon.shop{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 4h1.5l1.8 8h8.4l1.5-5.5H6.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='15.5' r='1' fill='%23fff'/%3E%3Ccircle cx='13' cy='15.5' r='1' fill='%23fff'/%3E%3C/svg%3E") ;}

.ra-shop {
    width: 64px;
    background: var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.ra-label {
    font-size: 10px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* 슬라이드 패널 */
.row-slide {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 120px;
    padding-right: 14px;
    background: var(--card);
    z-index: 2;
    justify-content: flex-end;
    gap: 8px;
    touch-action: pan-y;
    user-select: none;
    will-change: transform;
}

.row-slide.snap {
    transition: transform .3s cubic-bezier(.25, .46, .45, .94);
}

.row-slide.dimmed {
    background: #F2F2F2;
}

/* 가격 */
.price-col {
    text-align: right;
}

.price {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
}

.cb-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--pr);
    border: 1.5px solid var(--pr);
    border-radius: 10px;
    padding: 2px 6px;
    margin-top: 4px;
    display: inline-block;
}

.mi-tag {
    font-size: 10px;
    font-weight: 400;
    color: #666;
    background: var(--bd);
    border-radius: 10px;
    padding: 2px 6px;
    margin-top: 4px;
    display: inline-block;
}

/* 스와이프 힌트 화살표 */
.chevrons {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    transition: opacity .15s;
}

.chevrons span {
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.chevrons span:nth-child(1) {
    color: #D8D8D8;
}

.chevrons span:nth-child(2) {
    color: #A0A0A0;
}

.row-slide.swiped .chevrons {
    opacity: 0;
}

/* 구매확정 완료 오버레이 */
.row-done {
    display: none;
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 10;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.row-done.show {
    display: flex;
    animation: fd .2s ease both;
}

.row-done-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

@keyframes fd {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* nudge 애니메이션 */
@keyframes nudge-left {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(0);
    }
    70% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}


/* ── 검색 ── */
.search-wrap {
    margin-bottom: 20px;
    position: relative;
}
.search-input {
    display: block;
    width: 100%;
    height: 40px !important;
    border: 1px solid var(--bd);
    border-radius: 20px;
    padding: 10px 20px 8px 42px;
    font-size: 14px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    background: #f5f5f5;
    outline: none;
    transition: border-color .2s;
}
.search-input:focus {
    border-color: var(--pr);
    background: #fff;
}
.search-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.5;
}
.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 14px;
    color: #CCC;
    cursor: pointer;
    display: none;
}
.search-clear.show {
    display: block;
}

.btn_search{
    display: block;
    width: 44px;
    height: 48px;
    background: url(/assets/img/icon_search.svg) center center no-repeat;
}

/* ── 칩 검색 토글 버튼 ── */
.chip-search-btn {
    flex-shrink: 0;
    padding: 4px 10px 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--bd);
    background: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .2s;
}
.chip-search-btn.on {
    background: var(--pr_bg);
    border-color: var(--pr);
}

.chip-search-btn img{
    width: 22px; height: 22px;
    opacity: 0.8;
}
.stitle-r .chip-search-btn {
    border: none;
    background: none;
    padding: 4px 6px;
    border-radius: 0;
}
.chip-search-btn.disabled {
    opacity: 0.3;
}
.stitle-r .chip-search-btn.on img {
    opacity: 1;
    filter: invert(40%) sepia(1) saturate(6) hue-rotate(340deg);
}

/* ── 검색 슬라이드 ── */
.search-slide {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.search-slide.open {
    max-height: 60px;
}
.search-slide .search-wrap {
    margin-bottom: 0;
    /* padding-bottom: 4px; */
}

/* 나의 쇼핑 스타일 */
.summary-box{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.sum_right,.sum_left{
    flex: 1;
    height: 134px;
}
.sum_right .box,
.sum_left .box{
    border-radius: 12px;
    /* border: 1px solid red; */
    background: #fff1ef;
    padding: 12px 16px;
    height: 100%;
}
.sum_right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 134px;
}
.sum_right .box{
    flex: 1;
}

.sum-box_tit{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--pr);
}
.point-ico {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}
.sum-box_cash{
    font-size: 24px;
    margin-top: 16px;
    font-weight: 700;
}
.sum-box_res{
    font-size: 16px;
    margin-top: 4px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
}
.sum_left .btn_mc{
    width: 100%;
    padding: 6px 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--pr);
    border-radius: 8px;
    color: var(--pr);
    margin-top: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* ── 럭키코인 리워드 카드 / 나의쇼핑 요약영역 (럭키코인 게임 260806) ── */
.reward-row {
    width: 100%;
    display: flex;
    gap: 8px;
    height: 134px;
}
.reward-row .box {
    flex: 1;
    border-radius: 12px;
    background: var(--pr_bg);
    padding: 12px 16px;
    height: 100%;
}
.reward-row .box .sum-box_tit {
    display: flex;
    align-items: center;
    gap: 4px;
}
.reward-row .box.luckycoin {
    background: var(--coin_bg);
}
.reward-row .box.luckycoin .sum-box_tit {
    color: var(--coin);
}
.coin-ico {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}
.reward-row .btn_mc {
    width: 100%;
    padding: 6px 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--pr);
    border-radius: 8px;
    color: var(--pr);
    margin-top: 20px;
    font-size: 12px;
    cursor: pointer;
}
.reward-row .box.luckycoin .btn_mc {
    border-color: var(--coin);
    color: var(--coin);
}

.stat-row {
    width: 100%;
    display: flex;
    gap: 8px;
}
.stat-row .box {
    flex: 1;
    border-radius: 12px;
    /* background: var(--bg_gr); */
    background: #f8f8f8;
    padding: 12px 16px;
}
.stat-row .sum-box_tit {
    color: var(--ts);
}

/* ── 쿠팡 파트너스 검색창 배너 ── */
.coupang-search-banner {
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    overflow: hidden;
}
.cp-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cp-banner-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--pr);
    /* border: 1px solid var(--pr); */
    border-radius: 12px;
    padding:4px 0;
    /* padding:4px 10px; */
}
.cp-iframe-wrap {
    height: 33px;
    overflow: hidden;
}
.cp-iframe-wrap iframe {
    width: 133.33%;
    height: 44px;
    border: none;
    transform: scale(0.75);
    transform-origin: top left;
}

/* 쿠팡 검색 자체 UI 시안 (vm-webhard-pointpay-hybrid/html/main-coupang_view_2.html 그대로 적용 — 실제 검색/제휴 이동 로직 미연결) */
.coupang_search_card {
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coupang_logo_badge {
    flex-shrink: 0;
    height: 16px;
    width: auto;
    display: block;
}
.coupang_search_box {
    flex: 1;
    min-width: 0;
    height: 34px;
    background: #f5f5f5;
    border-radius: 17px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.coupang_search_input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    font-size: 12px;
    font-family: inherit;
    color: #191919;
}
.coupang_search_input::placeholder {
    color: #999;
}
.coupang_reward_txt {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    color: #00c471;
    border-radius: 10px;
    padding: 2px 2px;
    margin-left: 8px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    transition: opacity 0.2s ease, max-width 0.2s ease, margin-left 0.2s ease, padding 0.2s ease;
}
.coupang_search_input:focus ~ .coupang_reward_txt {
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

/* ── 쿠팡 파트너스 안내 모달 (하단 시트) ── */
.cp-info-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.cp-info-dim.open {
    opacity: 1;
    pointer-events: auto;
}
.cp-info-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
}
.cp-info-dim.open .cp-info-sheet { transform: translateY(0); }
.cp-info-handle {
    width: 36px;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.cp-info-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--bd);
}
.cp-info-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.cp-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    flex-shrink: 0;
}
.cp-info-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--pr);
    background: var(--pr_bg);
    border-radius: 10px;
    padding: 3px 8px;
    flex-shrink: 0;
}
.cp-info-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--ts);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cp-info-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px 4px;
}
.cp-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.cp-info-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: var(--bl);
    border-radius: 12px;
    padding: 6px 10px;
    white-space: nowrap;
}
.cp-info-pill.green {
    color: var(--green);
    background: var(--gl);
}
.cp-info-pill.orange {
    color: #E08600;
    background: #FFF6E6;
}
.cp-info-section { margin-bottom: 16px; }
.cp-info-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
}
.cp-info-section-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pr);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.cp-info-section-ico.warn {
    background: var(--pr);
    color: #fff;
}
.cp-info-section-ico.ban {
    background: var(--pr);
    color: #fff;
}
.cp-info-list {
    font-size: 13px;
    color: var(--tx);
    line-height: 1.7;
    margin: 0;
    padding-left: 18px;
}
.cp-info-divider {
    height: 1px;
    background: var(--bd);
    margin: 14px 0;
}
.cp-info-btn-area {
    flex-shrink: 0;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--bd);
}
.cp-info-confirm-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--pr);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

/* ㅡ 쿠폰 교환 범위 추가 ㅡ */
.tl-dot.coupon { background: #FF7043; }
.legend-dot.coupon { background: #FF7043; }
.tc-coupon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    background: #FFF3F0;
    color: #E64A19;
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 10px;
}
.tc-coupon-point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line, #f0f0f0);
}
.tc-coupon-point-label {
    font-size: 12px;
    color: var(--gray3, #999);
}
.tc-coupon-point-value {
    font-size: 14px;
    font-weight: 600;
    color: #E64A19;
}
.tc-coupon-date {
    font-size: 11px;
    color: var(--gray3, #999);
    margin-top: 2px;
    text-align: right;
}

/* ── 나의 쇼핑 탭(전체/구매내역/캐시백) ── */
.tab-wrap {
    margin: 32px 0 20px 0;
    background: var(--card);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    border: 1px solid #ededed;
}
.tab-wrap.coupang{
    margin-top: 16px !important;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ts);
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s;
}
.tab.on {
    background: var(--pr);
    color: white;
}

/* ── 범례 ── */
.legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* justify-content: space-between; */
    padding: 0 16px 12px;
    margin-bottom: 12px;
    gap: 4px;
}
.item_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-dot.buy {
    background: var(--pr);
}
.legend-dot.cb {
    background: var(--green);
}
.legend-label {
    font-size: 11px;
    color: var(--ts);
}
.legend-period {
    font-size: 11px;
    color: var(--ts);
    flex-shrink: 0;
}

/* ══ 타임라인 ══ */
.timeline {
    padding: 0 20px;
}

.tl-group {
    margin-bottom: 20px;
}

.tl-date-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-date-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bd);
}

.tl-item {
    display: flex;
    gap: 12px;
}

.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 14px;
    z-index: 1;
}

.tl-dot.buy {
    background: var(--pr);
    box-shadow: 0 0 0 3px rgba(255, 77, 46, .15);
}

.tl-dot.cb {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 196, 113, .15);
}

.tl-line {
    width: 2px;
    flex: 1;
    background: var(--bd);
    margin: 4px 0;
    border-radius: 1px;
}

.tl-item:last-child .tl-line {
    display: none;
}

/* ── 구매 카드 ── */
.tl-card {
    flex: 1;
    position: relative;
    background: var(--card);
    border-radius: 14px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    border: 1px solid #ededed;
    cursor: pointer;
    transition: box-shadow .15s;
}

.tl-card:active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.tl-card.cb-card-item {
    background: var(--gl);
    box-shadow: none;
    border: 1px solid rgba(0, 196, 113, .2);
    cursor: default;
}

/* 260807 추가: 럭키코인 게임으로 적립된 캐시백 항목 - 골드 톤 구분 */
.tl-card.cb-card-item.lucky {
    background: var(--coin_bg);
    border: 1px solid rgba(201, 146, 0, .25);
}
.tl-card.cb-card-item.lucky .cb-tl-shop {
    color: #7A5900;
}
.tl-card.cb-card-item.lucky .cb-tl-desc {
    color: #8A6900;
}
.tl-card.cb-card-item.lucky .cb-tl-amount.done {
    color: var(--coin);
}
.tl-card.cb-card-item.lucky .cb-tl-status.done {
    background: rgba(201, 146, 0, .2);
    color: #7A5900;
}

.tc-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #F5F5F5;
}

.tc-shop-ico {
    width: 26px;
    height: 26px;
    background: var(--tbg);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ebebeb;
}

.tc-shop-ico img{
    max-width: 100%;
    max-height: 100%;
}

.tc-shop-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tc-shop-domain {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
a.tc-shop-name:hover { text-decoration: underline; }
a.cb-tl-shop {
    color: var(--tx);
    text-decoration: none;
}
a.cb-tl-shop:hover { text-decoration: underline; }
.tc-coupon-brand {
    font-size: 12px;
    color: var(--ts);
    margin-top: 2px;
}
a.tc-coupon-brand {
    font-size: 12px;
    color: var(--ts);
    margin-top: 2px;
    text-decoration: none;
}
a.tc-coupon-brand:hover { text-decoration: underline; }

.buy-card .card-del-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: var(--ts);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buy-card .card-del-btn:hover { color: var(--pr); }

/* 나의 쇼핑 - 캐시백 배찌 */
.tc-nocb-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--pr);
    background: var(--pl);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 0;
    align-self: flex-start;
    margin-bottom: 8px;
}

/* 상세페이지 딥링크 미지원 쇼핑몰(예: 컬리) - 조건부 캐시백 뱃지 */
.tc-nocb-badge.badge-warn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--tx);
    background: var(--bg_gr);
}
.badge-warn-ico { flex-shrink: 0; }

.tc-total {
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.tc-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 12px;
}
.tc-body.coupon{
    padding: 10px 0 12px 0;
}

.tc-thumb {
    width: 44px;
    height: 44px;
    border: 1px solid #ebebeb;
    background: var(--tbg);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}
.tc-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-info {
    flex: 1;
    min-width: 0;
}

.tc-name {
    font-size: 13px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0px;
    padding-top: 4px;
}

/* ── 캐시백 카드 ── */
.cb-tl-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    gap: 10px;
}

.cb-tl-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.cb-tl-ico {
    width: 28px;
    height: 28px;
    background: rgba(0, 196, 113, .15);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}
.cb-tl-ico img{
    max-width: 100%; height: 100%;
}

.cb-tl-shop {
    font-size: 13px;
    font-weight: 700;
    color: #085041;
}

.cb-tl-desc {
    font-size: 11px;
    color: #0F6E56;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cb-tl-right {
    text-align: right;
    flex-shrink: 0;
}

.cb-tl-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}

.cb-tl-status {
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 3px;
    display: inline-block;
}

.cb-tl-status.done {
    background: rgba(0, 196, 113, .2);
    color: #085041;
}

.cb-tl-status.pending {
    background: #F0F0F0;
    color: #888;
}

/* 260618 — 캐시백 적립취소 */
.cb-tl-status.cancel {
    background: rgba(255, 77, 46, .12);
    color: var(--pr);
}
.cb-tl-amount.cancel {
    color: var(--pr);
}
.cb-tl-desc.cancel {
    color: var(--ts);
    text-decoration: line-through;
}
.cb-cancelled {
    opacity: 0.7;
    border-color: var(--bd) !important;
}
.cb-cancelled .cb-tl-inner {
    background: #f5f5f5;
    /* border:1px solid #999; */
}

/* ── 럭키코인 내역 카드 (럭키코인 게임 260806) ── */
.tl-dot.coin {
    background: var(--coin);
    box-shadow: 0 0 0 3px rgba(201, 146, 0, .15);
}

.tl-card.coin-card-item {
    background: var(--coin_bg);
    box-shadow: none;
    border: 1px solid rgba(201, 146, 0, .2);
    cursor: default;
}

.coin-tl-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    gap: 10px;
}

.coin-tl-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.coin-tl-shop {
    font-size: 13px;
    font-weight: 700;
    color: #7A5900;
}

.coin-tl-desc {
    font-size: 11px;
    color: #8A6900;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.coin-tl-right {
    text-align: right;
    flex-shrink: 0;
}

.coin-tl-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--coin);
}

.coin-tl-status {
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 3px;
    display: inline-block;
    background: rgba(201, 146, 0, .2);
    color: #7A5900;
}

.coin-tl-status.used {
    background: #F0F0F0;
    color: #888;
}
.coin-tl-amount.used {
    color: var(--ts);
}

/* ── 럭키코인 룰렛 게임 화면 (260806) ── */
.game-roulette_coin-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--coin_bg);
    border-radius: 14px;
    margin-bottom: 20px;
}
.game-roulette_coin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--coin);
}
.game-roulette_coin-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: -0.5px;
}

.game-roulette_wheel-area {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0 28px;
}
.game-roulette_wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 24px;
    height: 34px;
    transform: translateX(-50%);
    z-index: 2;
}
.game-roulette_wheel-ring {
    width: 268px;
    height: 268px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-roulette_wheel {
    position: relative;
    width: 252px;
    height: 252px;
    border-radius: 50%;
    background-image: url('/assets/img/roulette.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 3.6s cubic-bezier(.15, .85, .35, 1);
}
.game-roulette_wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--pr);
    cursor: pointer;
    z-index: 3;
}
.game-roulette_wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    margin-left: -28px;
    transform-origin: 50% 0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--tx);
    pointer-events: none;
}

.game-roulette_spin-btn {
    width: 100%;
    padding: 15px;
    background: var(--pr);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    transition: opacity .2s;
}
.game-roulette_spin-btn:active {
    opacity: .85;
}
.game-roulette_spin-btn:disabled,
.game-roulette_spin-btn.low-balance {
    background: var(--bd);
    color: var(--ts);
    cursor: not-allowed;
}
.game-roulette_spin-sub {
    text-align: center;
    font-size: 12px;
    color: var(--ts);
    margin-top: 8px;
    margin-bottom: 28px;
}
.game-roulette_history-more {
    width: 100%;
    padding: 12px 0;
    margin-top: 4px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 12px;
    color: var(--ts);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
.game-roulette_history-more:active {
    background: var(--tbg);
}

/* ── 럭키코인 게임 결과 모달 (260806) ── */
.game-result_modal {
    text-align: center;
}
.game-result_body {
    padding: 32px 20px 20px;
}
.game-result_emoji {
    margin-bottom: 12px;
}
.game-result_emoji-img {
    width: 44px;
    height: 44px;
}
.game-result_emoji img {
    width: 40px;
    height: 40px;
}
.game-result_title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tx);
    margin-bottom: 6px;
}
.game-result_desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.5;
}
/* 260806 추가: 포춘쿠키 결과모달 - 오늘의 운세 문구 */
.game-result_fortune {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--coin_bg);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--coin);
    line-height: 1.5;
}
.game-result_modal.lose .game-result_title {
    color: var(--ts);
}

/* ── 럭키코인 게임 선택 화면 (260806) ── */
.game-select_coin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--coin_bg);
    border-radius: 14px;
}
.game-select_coin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--coin);
}
.game-select_coin-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: -0.5px;
}
.game-select_coin-hint {
    text-align: center;
    font-size: 12px;
    color: var(--ts);
    margin-top: 8px;
    margin-bottom: 20px;
}
.game-select_notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--pr_bg);
    border-radius: 10px;
}
.game-select_notice-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.game-select_notice-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.game-select_notice-text {
    font-size: 12.5px;
    color: var(--pr);
    line-height: 1.5;
}

.game-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.game-card {
    display: block;
    border: 1px solid var(--bd);
    border-radius: 16px;
    padding: 18px 20px;
    background: var(--card);
    text-decoration: none;
    transition: opacity .2s;
}
.game-card:active {
    opacity: .85;
}
.game-card.low-balance {
    opacity: .5;
}
.game-card_head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.game-card_visual {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* background: var(--tbg); */
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.game-card_visual img {
    width: 24px;
    height: 24px;
}
.game-card_head-text {
    flex: 1;
    min-width: 0;
}
.game-card_title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tx);
    margin-bottom: 4px;
}
.game-card_badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.game-card_badge.risk {
    background: var(--pr_bg);
    color: var(--pr);
}
.game-card_badge.stable {
    background: var(--gl);
    color: var(--green);
}
.game-card_desc {
    font-size: 12.5px;
    color: var(--ts);
    line-height: 1.5;
    margin-top: 10px;
}
.game-card_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bd);
}
.game-card_cost {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--coin);
}
.game-card_btn {
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--pr);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

/* ── 럭키코인 게임 선택 v2 (260811) — game-select_v2.html 전용, 기존 game-card 컴포넌트에는 영향 없도록 스코프 한정 ── */
.game-select-v2 .game-select_coin {
    background: #FAF3E2;
    border: 1px solid #F0E4C8;
}
.game-select-v2 .game-select_coin-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ts);
}
.game-select-v2 .game-select_coin-value {
    font-size: 22px;
    font-weight: 700;
}
.game-select-v2 .coin-ico {
    width: 18px;
    height: 18px;
}
.game-select-v2 .game-select_notice {
    align-items: center;
}
.game-select-v2 .game-select_notice-ico {
    margin-top: 0;
}
.game-select-v2 .game-select_notice-text {
    font-size: 13px;
    line-height: 1.5;
    color: #C2593B;
}
.game-select-v2 .game-card-list {
    gap: 12px;
}
.game-select-v2 .game-card {
    border: 1px solid var(--bd);
    box-shadow: none;
    border-radius: 16px;
    padding: 20px;
}
.game-select-v2 .game-card_visual {
    width: 56px;
    height: 56px;
    background: none;
}
.game-select-v2 .game-card_visual img {
    width: 48px;
    height: 48px;
}
.game-select-v2 .game-card_title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.game-select-v2 .game-card_badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px 4px 8px;
    border-radius: 6px;
    background: none;
}
.game-select-v2 .game-card_badge.risk {
    border: 1px solid var(--pr);
    color: var(--pr);
}
.game-select-v2 .game-card_badge.stable {
    border: 1px solid var(--green);
    color: var(--green);
}
.game-select-v2 .game-card_badge-ico {
    flex-shrink: 0;
}
.game-select-v2 .game-card_desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}
.game-select-v2 .game-card_cost {
    font-size: 14px;
    font-weight: 600;
}

/* ── 럭키코인 포춘쿠키 게임 화면 (260806) ── */
.game-fortune_coin-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--coin_bg);
    border-radius: 14px;
    margin-bottom: 20px;
}
.game-fortune_coin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--coin);
}
.game-fortune_coin-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: -0.5px;
}

.game-fortune_stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 0 28px;
}
.game-fortune_hint {
    font-size: 13px;
    font-weight: 600;
    color: var(--ts);
}

/* 260806 수정: 쿠키 6개 중 1개 선택 방식 */
.game-fortune_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}
.game-fortune_cookie {
    aspect-ratio: 1;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr_bg);
    border: 1px solid var(--pl);
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: transform .15s, opacity .2s;
}
.game-fortune_cookie-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.game-fortune_cookie:active {
    transform: scale(.94);
}
.game-fortune_cookie:disabled,
.game-fortune_cookie.low-balance {
    opacity: .4;
    cursor: not-allowed;
}
@keyframes fortune-crack-shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-8deg) scale(1.03); }
    40% { transform: rotate(8deg) scale(1.05); }
    60% { transform: rotate(-6deg) scale(1.08); }
    80% { transform: rotate(4deg) scale(1.05); }
}
.game-fortune_cookie.crack {
    animation: fortune-crack-shake .65s ease-in-out;
}

.game-fortune_crack-sub {
    text-align: center;
    font-size: 12px;
    color: var(--ts);
    margin-top: 8px;
    margin-bottom: 28px;
}

/* ── 럭키코인 스크래치 복권 게임 화면 (260806) ── */
.game-scratch_coin-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--coin_bg);
    border-radius: 14px;
    margin-bottom: 20px;
}
.game-scratch_coin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--coin);
}
.game-scratch_coin-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: -0.5px;
}

.game-scratch_stage {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}
.game-scratch_card {
    position: relative;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bd);
    background: var(--card);
}
/* 260807 추가: 쿠폰처럼 보이는 상단 스텁 + 절취선 일러스트 */
.game-scratch_card-stub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    background: var(--coin_bg);
}
.game-scratch_card-stub-ico {
    font-size: 14px;
}
.game-scratch_card-stub-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--coin);
}
.game-scratch_card-perf {
    position: relative;
    border-top: 2px dashed var(--bd);
}
.game-scratch_card-perf::before,
.game-scratch_card-perf::after {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border-radius: 50%;
    transform: translateY(-50%);
}
.game-scratch_card-perf::before {
    left: -8px;
}
.game-scratch_card-perf::after {
    right: -8px;
}
.game-scratch_card-body {
    position: relative;
    height: 150px;
}
.game-scratch_reward {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gl);
}
.game-scratch_reward-emoji {
    width: 36px;
    height: 36px;
}
.game-scratch_reward-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
}
.game-scratch_canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: pointer;
}
.game-scratch_sub {
    text-align: center;
    font-size: 12px;
    color: var(--ts);
    margin-top: 14px;
    margin-bottom: 28px;
}

/* ── 럭키코인 사다리타기 게임 화면 (260806) ── */
.game-ladder_coin-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--coin_bg);
    border-radius: 14px;
    margin-bottom: 20px;
}
.game-ladder_coin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--coin);
}
.game-ladder_coin-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: -0.5px;
}

.game-ladder_stage {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}
.game-ladder_board {
    position: relative;
}
.game-ladder_line {
    position: absolute;
    width: 2px;
    background: var(--bd);
}
.game-ladder_rung {
    position: absolute;
    height: 2px;
    background: var(--bd);
}
.game-ladder_start-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -28px;
    border-radius: 50%;
    border: none;
    background: var(--pr);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.game-ladder_start-btn:disabled,
.game-ladder_start-btn.low-balance {
    background: var(--bd);
    color: var(--ts);
    cursor: not-allowed;
}
.game-ladder_result-label {
    position: absolute;
    margin-left: -24px;
    margin-top: 10px;
    width: 48px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
}
.game-ladder_result-label.win {
    color: var(--pr);
}
.game-ladder_result-label.hit {
    color: var(--tx);
    text-decoration: underline;
}
.game-ladder_marker {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--pr);
    box-shadow: 0 0 0 4px rgba(255, 77, 46, .2);
    display: none;
}
.game-ladder_sub {
    text-align: center;
    font-size: 12px;
    color: var(--ts);
    margin-top: 8px;
    margin-bottom: 28px;
}

/* 캐시백 탭 상단 안내 문구 */
.cb-notice {
    margin: 4px 16px 8px;
    padding: 10px 14px;
    background: var(--pr_bg);
    border-radius: 8px;
}
.cb-notice-text {
    font-size: 12px;
    color: var(--pr);
    line-height: 1.5;
}

/* ── 빈 상태 ── */
.empty-wrap {
    text-align: center;
    padding: 48px 20px;
}

.empty-ico {
    font-size: 44px;
    margin-bottom: 14px;
}

.empty-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.7;
}

/* ── 럭키코인 게임 - 코인 내역 없음 (260807) ── */
.coin-history_empty {
    text-align: center;
    padding: 48px 20px;
}
.coin-history_empty-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
}
.coin-history_empty-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 6px;
}
.coin-history_empty-desc {
    font-size: 12.5px;
    color: var(--ts);
    line-height: 1.6;
}

.dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.dim.open {
    display: flex;
    animation: dimIn .2s ease both;
}

@keyframes dimIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sheet {
    background: var(--card);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 600px;
    padding: 0 0 36px;
    animation: sheetUp .28s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes sheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
    margin: 12px auto 20px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 700;
    padding: 0 20px 16px;
}

.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 20px 16px;
}

.preset-item {
    background: var(--bg);
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}

.preset-item.on {
    background: var(--pl);
    border-color: var(--pr);
}

.preset-item-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx);
}

.preset-item.on .preset-item-label {
    color: var(--pr);
}

.preset-item-range {
    font-size: 10px;
    color: var(--ts);
    margin-top: 3px;
}

.preset-item.on .preset-item-range {
    color: var(--pr);
    opacity: .8;
}

.custom-section {
    padding: 0 20px 20px;
    border-top: 1px solid #F3F3F3;
    margin-top: 4px;
}

.custom-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    margin: 14px 0 10px;
}

.custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    flex: 1;
    border: 1.5px solid var(--bd);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    background: var(--bg);
    outline: none;
    transition: border-color .2s;
}

.date-input:focus {
    border-color: var(--pr);
}

.date-sep {
    font-size: 12px;
    color: var(--ts);
    flex-shrink: 0;
}

.apply-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 16px 20px 0;
    background: var(--pr);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}

.apply-btn:active {
    opacity: .85;
}

/* ══════════════════════════════
   태그 등록 모달
══════════════════════════════ */
.tag-sheet {
    background: var(--card);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 600px;
    padding: 0 0 36px;
    animation: sheetUp .28s cubic-bezier(.25, .46, .45, .94) both;
}

.tag-body {
    padding: 0 20px 4px;
}

.tag-thumb-wrap {
    width: 72px;
    height: 72px;
    background: var(--tbg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 14px;
    border: 1px solid #ebebeb;
    overflow: hidden;
}

.tag-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.tag-name {
    font-size: 13px;
    color: var(--ts);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-shop {
    font-size: 11px;
    color: var(--ts);
    text-align: center;
    margin-bottom: 22px;
}

.tag-btns {
    display: flex;
    gap: 8px;
}

.tag-cancel {
    flex: 1;
    background: var(--bg);
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--ts);
    cursor: pointer;
}

.tag-confirm {
    flex: 2;
    background: var(--pr);
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    color: white;
    cursor: pointer;
}

.tag-confirm:active {
    opacity: .85;
}

/* 캘린더 모달 */
.cal-dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
}

.cal-dim.open {
    display: flex;
    animation: dimIn .18s ease both;
}

.cal-sheet {
    background: var(--card);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 600px;
    padding: 0 0 32px;
    animation: sheetUp .26s cubic-bezier(.25, .46, .45, .94) both;
}

.cal-handle {
    width: 36px;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
    margin: 12px auto 0;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
}

.cal-mode {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx);
}

.cal-saved-info {
    margin: 0 20px 12px;
    padding: 8px 12px;
    background: var(--tbg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ts);
}

.cal-saved-info b {
    color: var(--tx);
    font-weight: 700;
}

.cal-btns {
    display: flex;
    gap: 16px;
}

.cal-cancel {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--ts);
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
}

.cal-ok {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--pr);
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 10px;
}

.cal-nav-btn {
    background: var(--bg);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 17px;
    cursor: pointer;
    color: var(--ts);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:active {
    background: var(--bd);
}

.cal-month {
    font-size: 15px;
    font-weight: 700;
}

.cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 16px;
    margin-bottom: 2px;
}

.cal-dow-cell {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    padding: 3px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 16px;
}

.cal-day {
    text-align: center;
    padding: 9px 0;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .1s;
}

.cal-day.empty {
    cursor: default;
}

.cal-day.disabled {
    color: var(--ts);
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.cal-day.today {
    font-weight: 700;
}

.cal-day.in-range {
    background: var(--pl);
    border-radius: 0;
}

.cal-day.sel-start {
    background: var(--pr);
    color: white;
    font-weight: 700;
    border-radius: 8px 0 0 8px;
}

.cal-day.sel-end {
    background: var(--pr);
    color: white;
    font-weight: 700;
    border-radius: 0 8px 8px 0;
}

.cal-day.sel-start.sel-end {
    border-radius: 8px;
}

.cal-day:not(.empty):not(.sel-start):not(.sel-end):hover {
    background: var(--bg);
}

.cal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 0;
    padding-top: 12px;
    border-top: 1px solid #F3F3F3;
}

.cal-range-txt {
    font-size: 12px;
    color: var(--ts);
}

.cal-apply {
    background: var(--pr);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}

.cal-apply:active {
    opacity: .85;
}

/* ── 스켈레톤 로딩 ── */
.skel-card {
    background: var(--card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, .08);
    margin-bottom: 10px;
    overflow: hidden;
}
.skel-top {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
}
.skel-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
}
.skel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.skel-line {
    height: 12px;
    border-radius: 6px;
}
.skel-line.long {
    width: 70%;
}
.skel-line.mid {
    width: 40%;
}
.skel-line.short {
    width: 40%;
}
/* shimmer 애니메이션 */
.skel-ani {
    background: linear-gradient(90deg, var(--tbg) 25%, #e8e8e8 50%, var(--tbg) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}
@keyframes skelShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}
/* 로딩바 */
.skel-bar-wrap {
    flex: 1;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
    overflow: hidden;
}
.skel-bar {
    height: 100%;
    width: 0%;
    background: var(--pr);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/*  */
/* ── 서브페이지 공통 ── */
.subHeader {
    width: 100%;
    max-width: 600px;
    height: 56px;
    /* ✅ 동일하게 고정 */
    padding: 0 16px;
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}
.subHeader::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), transparent);
    pointer-events: none;
}
.back-btn {
    font-size: 22px;
    color: var(--tx);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    flex-shrink: 0;
}
/* sub-title 기준점을 subHeader로 잡으려면 */
.sub-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    text-align: center;
}
.back-placeholder {
    width: 32px;
    flex-shrink: 0;
}
.sub-wrap {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px 40px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sub-wrap::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}
/* ── 고객센터 탭 ── */
.subtabs {
    display: flex;
    margin: 0 14px 14px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.stab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ts);
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s;
}
.stab.on {
    background: var(--pr);
    color: white;
}
.cs-page {
    display: none;
}
.cs-page.on {
    display: block;
}
/* FAQ */
.faq-card {
    background: white;
    border-radius: 16px;
    margin: 0 14px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, .05); */
    overflow: hidden;
    border: 1px solid #ebebeb;
}
.faq-item {
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    gap: 10px;
}
.faq-q-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
    flex: 1;
}
.faq-arrow {
    font-size: 14px;
    color: #CCC;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-arrow.open {
    transform: rotate(90deg);
}
.faq-a {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    padding: 0 16px;
    max-height: 0;
    /* ✅ 기본 닫힌 상태 */
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-a.open {
    max-height: 200px;
    /* ✅ 충분히 큰 값 */
    padding: 0 16px 14px;
    opacity: 1;
}
/* 1:1 문의 서브탭 */
.inq-tabs {
    display: flex;
    margin: 0 14px 14px;
    border-bottom: 1.5px solid var(--bd);
}
.inq-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ts);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all .2s;
}
.inq-tab.on {
    color: var(--pr);
    border-bottom-color: var(--pr);
}
.inq-page {
    display: none;
}
.inq-page.on {
    display: block;
}
/* 문의 폼 */
.inq-form {
    padding: 0 14px;
}
.inq-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 6px;
}
.inq-input {
    width: 100%;
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    outline: none;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.inq-input:focus {
    border-color: var(--pr);
}
.inq-textarea {
    width: 100%;
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    outline: none;
    resize: none;
    height: 120px;
    margin-bottom: 14px;
    transition: border-color .2s;
}
.inq-textarea:focus {
    border-color: var(--pr);
}
.inq-submit {
    width: 100%;
    background: var(--pr);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
.inq-hint {
    font-size: 11px;
    color: #BBB;
    text-align: center;
    margin-top: 10px;
}
/* 문의 내역 */
.inq-list {
    padding: 0 14px;
}
.inq-item {
    background: white;
    border-radius: 14px;
    margin-bottom: 8px;
    padding: 14px 16px;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, .04); */
    border: 1px solid #ebebeb;
    cursor: pointer;
}
.inq-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.inq-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}
.inq-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.badge-wait {
    background: #F5F5F5;
    color: #888;
}
.badge-done {
    background: var(--gl);
    color: var(--green);
}
.inq-item-date {
    font-size: 11px;
    color: #BBB;
}
.inq-item-preview {
    font-size: 12px;
    color: var(--ts);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 사진 첨부 */
.inq-label-opt {
    font-size: 11px;
    font-weight: 400;
    color: #BBB;
    margin-left: 4px;
}
.inq-attach {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.attach-preview{
    display: flex;
    gap: 8px;
}
.attach-add {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px dashed var(--bd);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    flex-shrink: 0;
    background: var(--bg_gr);
    transition: border-color .2s;
    overflow: hidden;
}
.attach-add:active {
    border-color: var(--pr);
}
.attach-ico {
    font-size: 22px;
    color: #CCC;
    line-height: 1;
}
.attach-cnt {
    font-size: 10px;
    color: #CCC;
    font-weight: 600;
}
.attach-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    position: relative;
    flex-shrink: 0;
}
.attach-item {
    position: relative;
    flex-shrink: 0;
}
.attach-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.attach-del {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--tx);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.inq-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}
.inq-item.open .inq-detail {
    max-height: 400px;
    opacity: 1;
}
.inq-item.open .inq-item-preview {
    display: none;
    /* 열리면 미리보기 숨기기 */
}
.inq-detail-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bd);
}
.inq-detail-section.reply {
    background: var(--bg_gr);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    border-top: none;
}
.inq-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 6px;
}
.inq-detail-body {
    font-size: 13px;
    color: var(--tx);
    line-height: 1.7;
}
.inq-detail-date {
    font-size: 11px;
    color: #BBB;
    margin-top: 6px;
    text-align: right;
}

/* 회원탈퇴 모달 관련 */
.withdraw-body {
    padding: 8px 24px 20px;
    text-align: center;
}
.withdraw-ico {
    font-size: 36px;
    margin-bottom: 0px;
}
.withdraw-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
    line-height: 1.4;
}
.withdraw-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.6;
}
.withdraw-btns {
    display: flex;
    gap: 8px;
    padding: 0 20px 4px;
}
.withdraw-cancel {
    flex: 1;
    background: var(--bg_gr);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ts);
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
.withdraw-confirm {
    flex: 1;
    background: #FF4D2E;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
.withdraw-confirm:active {
    opacity: .85;
}
.withdraw-ico_img{
    width: 100px;
    height: 100px ;
}

/* 기기 푸시 권한 미허용 안내 바텀시트 */
.pushoff-body {
    padding: 4px 24px 20px;
    text-align: center;
}
.pushoff-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--pr_bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pushoff-ico img {
    width: 38px;
    height: 38px;
}
.pushoff-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
    line-height: 1.4;
}
.pushoff-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.6;
}
.pushoff-path {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: var(--bg_gr);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.5;
}
.pushoff-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 20px 0;
}
.pushoff-primary {
    width: 100%;
    background: var(--pr);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
.pushoff-primary:active {
    opacity: .85;
}
.pushoff-later {
    width: 100%;
    background: none;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ts);
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}

/* 프로필 편집 ====  */
.sub-wrap.profile-edit{
    height: calc(100vh - 123px);
    position: relative;
    overflow: hidden;
    overflow-y: scroll;
    padding: 14px 20px;
}

/* ── 아바타 섹션 ── */
.pe-avatar-section {
    display: flex;
    justify-content: center;
    padding: 24px 0 28px;
}
.pe-avatar {
    position: relative;
    width: 80px;
    height: 80px;
}
.pe-avatar .prav {
    width: 80px;
    height: 80px;
}
.pe-cam-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: #191919;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    overflow: hidden;
}
.pe-cam-btn img {
    width: 13px;
    height: 13px;
    /* filter: invert(1);  색상 반전*/
}

/* ── 필드 ── */
.pe-field {
    margin-bottom: 18px;
}
.pe-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 8px;
}
.pe-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    background: var(--card);
    outline: none;
    transition: border-color .2s;
}
.pe-input:focus {
    border-color: var(--pr);
}
.pe-input.disabled {
    background: var(--bg_gr);
    color: var(--ts);
    cursor: not-allowed;
}
.pe-hint {
    font-size: 11px;
    color: var(--ts);
    margin-top: 6px;
    padding-left: 2px;
}

/* ── 연동 계정 섹션 ── */
.pe-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 10px;
    margin-top: 8px;
}
.pe-social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}
.pe-social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 14px;
}
.pe-social-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pe-social-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}
.pe-social-ico img{
    width: 18px; height: 18px;
}
.pe-social-ico.kakao {
    background: #FEE500;
    color: #191919;
}
.pe-social-ico.naver {
    background: #03C75A;
    color: #fff;
}
.pe-social-ico.google {
    background: #fff;
    color: #4285F4;
    border: 1.5px solid var(--bd);
    font-family: serif;
}
.pe-social-ico.apple {
    background: #000;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.pe-social-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
}
.pe-social-btn {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}
.pe-social-btn.linked {
    background: var(--gl);
    color: var(--green);
}
.pe-social-btn.unlinked {
    background: var(--bg_gr);
    color: var(--ts);
}
.pe-social-btn:active {
    opacity: .7;
}
/* ── 프로필 편집 - 저장 버튼 ── */
.pe-save-btn {
    /* width: 100%; */
    padding: 15px;
    background: var(--pr);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    transition: opacity .2s;

    position: fixed;
    bottom: 20px;
    left: 14px; right: 14px;
    text-align: center;
}
.pe-save-btn:active {
    opacity: .85;
}

/* 세팅페이지 */
.mnulist.grouped {
    gap: 0;
    border: 1px solid var(--bd);
    border-radius: 14px;
    overflow: hidden;
}
.mnulist.grouped .mnui {
    border: none;
    border-bottom: 1px solid var(--bd);
    border-radius: 0;
    box-shadow: none;
}
.mnulist.grouped .mnui:last-child {
    border-bottom: none;
}

/* ─── 설정 페이지 서브 토글 ─── */
.mnui.has-sub {
    flex-wrap: wrap;
}
.mnui.has-sub > .mnuico,
.mnui.has-sub > .mnutxt,
.mnui.has-sub > .tgl {
    align-self: center;
}
.mnui-sub-wrap {
    width: 100%;
    margin-top: 10px;
    /* border-top: 1px solid var(--bd); */
    /* padding-top: 2px; */
    transition: opacity .2s;
}
.mnui-sub-wrap.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.mnui-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 10px 50px; /* 50px = 아이콘(36px) + gap(14px) */
}
/* .mnui-sub + .mnui-sub {
    border-top: 1px solid var(--bd);
} */
.mnui-sub .mnutxt {
    flex: 1;
}
.mnui-sub .mnutitle {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 2pxa;
}
.sub-toggle-text{
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 알림 확인페이지 */
 /* 모두 읽음 버튼 */
.noti-readall-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--pr);
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
    white-space: nowrap;
}
.noti-readall-btn:active {
    opacity: .6;
}

/* 그룹 */
.noti-group {margin-bottom: 0px;}
/* 이번주 */
.noti-group.week {margin-top: 20px;}

.noti-group-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 8px;
}

/* 알림 아이템 */
.noti-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    margin: 0 -20px;
    border-bottom: 1px solid var(--bd);
    position: relative;
}
.noti-item:last-child {
    border-bottom: none;
}

/* 아이콘 */
.noti-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.noti-ico.cashback { background: #ffe1dd; }
.noti-ico.tag      { background: #f6f6f6;; }
.noti-ico.benefit  { background: #ffe1dd;; }
.noti-ico img{
    width: 36px; height: 36px;
}

/* 본문 */
.noti-body {
    flex: 1;
    min-width: 0;
}
.noti-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 4px;
}
.noti-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.5;
    margin-bottom: 6px;
}
.noti-desc strong {
    color: var(--pr);
    font-weight: 700;
}
.noti-time {
    font-size: 11px;
    color: #C0C0C0;
}

/* 읽지 않음 — 배경색만 추가 */
.noti-item.unread {
    background: var(--pr_bg);
}
/* 읽지 않음 */
.noti-item.unread .noti-title {
    color: var(--tx);
}
.noti-dot {
    width: 7px;
    height: 7px;
    background: var(--pr);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.noti-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    height: 32px;
}
.noti-group-header .noti-group-label {
    margin-bottom: 0;
    /* 기존 margin 제거 */
}
.noti-item.unread {/* 안읽었을때 */
    background: var(--pr_bg);
    margin: 0 -20px;
    padding: 14px 20px;
}

/* 이용약관/개인정보처리방침 */
.terms-body {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.9;
}
.terms-body b {
    color: var(--tx);
    font-weight: 700;
}

/* ── 태그 확인 모달 ── */
.tag-modal-dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tag-modal-dim.open {
    display: flex;
    animation: dimIn .2s ease both;
}
.tag-modal {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    animation: fadeRise .25s cubic-bezier(.25, .46, .45, .94) both;
}
.tm-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.tm-header-left {
    flex: 1;
}
.tm-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    line-height: 1.4;
    margin-bottom: 4px;
}
.tm-warn {
    font-size: 11px;
    color: var(--pr);
    font-weight: 600;
}
.tm-warn span {
    display: block;
    color: #888;
    margin-top: 4px;
    font-weight: 400;
}
.tm-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--ts);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.tm-shop-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 0;
}
.tm-shop-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--tx);
    background: var(--tbg);
    border-radius: 6px;
    padding: 3px 8px;
}
.tm-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 18px 16px;
}
.tm-thumb-wrap {
    position: relative;
    flex-shrink: 0;
}
.tm-thumb {
    width: 64px;
    height: 64px;
    background: var(--tbg);
    border-radius: 12px;
    border: 1px solid var(--bd);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tm-thumb-edit {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--black);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tm-thumb-edit svg {
    width: 9px;
    height: 9px;
}
.tm-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tm-field-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 3px;
    letter-spacing: .03em;
}
.tm-field-input {
    width: 100%;
    background: #f5f5f5;
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tx);
    font-family: 'Pretendard Variable', sans-serif;
    outline: none;
    transition: border-color .2s;
}
.tm-field-input:focus {
    border-color: var(--pr);
}
.tm-field-input::placeholder {
    color: var(--ts);
    font-weight: 400;
}
.tm-price-row {
    display: flex;
    align-items: stretch;
    background: #f5f5f5;
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}
.tm-price-row:focus-within {
    border-color: var(--pr);
}
.tm-price-row .tm-field-input {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 0;
    min-width: 0;
}
.tm-price-row .tm-field-input:focus {
    border-color: transparent;
}
.tm-currency-select {
    background: transparent;
    border: none;
    border-left: 1px solid var(--bd);
    padding: 0 8px 0 10px;
    font-size: 13px;
    color: var(--ts);
    outline: none;
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
    flex-shrink: 0;
}
.tm-date-row {
    position: relative;
    cursor: pointer;
}
.tm-date-row .tm-field-input {
    padding-right: 34px;
    cursor: pointer;
}
.tm-date-ico {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('/assets/img/icon_daterange.svg') center/contain no-repeat;
    pointer-events: none;
}
.tm-btn-row {
    display: flex;
    gap: 8px;
    padding: 0 18px 18px;
}
.tm-cancel {
    flex: 1;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ts);
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
}
.tm-save {
    flex: 2;
    background: var(--black);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
}
.tm-save:active {
    opacity: .85;
}
.tm-save-shop {
    display: block;
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    background: var(--pr);
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
}
.tm-save-shop:active {
    opacity: .85;
}

.ob-slider {
    touch-action: pan-y; /* 좌우 스와이프는 JS가, 세로스크롤은 브라우저가 */
}

/* number input 화살표 제거 */
.tm-field-input[type="number"]::-webkit-outer-spin-button,
.tm-field-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tm-field-input[type="number"] {
    -moz-appearance: textfield;
}

/* 나의 쇼핑 다음 버전 : 후기 기록 관련 0408 */
.review-btn{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;border-radius:6px;padding:2px 7px;cursor:pointer;border:1px solid transparent;transition:all .15s;background:none;font-family:'Pretendard Variable',sans-serif;}
.review-btn.has{background:var(--pr_bg);color:var(--pr);border-color:rgba(255,77,46,.2);}
.review-btn.empty{background:#f5f5f5;color:#aaa;}
.review-btn svg{width:10px;height:10px;flex-shrink:0;}
.review-preview{background:#f8f8f8;border-radius:9px;padding:8px 10px;margin:0 14px 12px;}
.rp-star{font-size:11px;color:#FFB800;margin-bottom:2px;}
.rp-text{font-size:11px;color:#555;line-height:1.5;}
.rp-meta{font-size:10px;color:#bbb;margin-top:4px;}
.privacy-pill{display:inline-block;font-size:9px;font-weight:700;background:#f0f0f0;color:#888;border-radius:4px;padding:1px 5px;margin-left:4px;}
.rv-dim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;align-items:center;justify-content:center;padding:20px;}
.rv-dim.open{display:flex;animation:rvDimIn .2s ease both;}
@keyframes rvDimIn{from{opacity:0}to{opacity:1}}
.rv-modal{background:#fff;border-radius:20px;width:100%;max-width:360px;overflow:hidden;animation:rvModalIn .25s cubic-bezier(.25,.46,.45,.94) both;}
@keyframes rvModalIn{from{opacity:0;transform:scale(.93) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}
.rv-header{padding:16px 16px 12px;border-bottom:1px solid #f5f5f5;}
.rv-header-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.rv-title{font-size:15px;font-weight:700;}
.rv-close{width:26px;height:26px;background:#f2f2f2;border-radius:50%;border:none;cursor:pointer;font-size:14px;color:#888;display:flex;align-items:center;justify-content:center;}
.rv-product{display:flex;align-items:center;gap:10px;background:#f8f8f8;border-radius:10px;padding:8px 10px;}
.rv-thumb{width:40px;height:40px;background:var(--tbg);border-radius:8px;border:1px solid var(--bd);overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.rv-thumb img{max-width:100%;height:100%;object-fit:cover;}
.rv-pname{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rv-pshop{font-size:11px;color:#999;margin-top:2px;}
.rv-sec{padding:14px 16px 0;}
.rv-label{font-size:11px;font-weight:700;color:#888;margin-bottom:8px;}
.rv-stars{display:flex;gap:4px;}
.rv-star{font-size:28px;background:none;border:none;cursor:pointer;padding:0;line-height:1;color:#e0e0e0;transition:color .1s,transform .12s;}
.rv-star.on{color:#FFB800;}
.rv-star:hover{transform:scale(1.15);}
.rv-ta{width:100%;border:1.5px solid var(--bd);border-radius:12px;padding:11px 13px;font-size:13px;font-family:inherit;color:var(--tx);resize:none;height:88px;outline:none;transition:border-color .2s;margin-top:10px;}
.rv-ta:focus{border-color:var(--pr);}
.rv-ta::placeholder{color:#ccc;}
.rv-char{font-size:11px;color:#ccc;text-align:right;margin-top:4px;}
.rv-priv-row{display:flex;gap:7px;padding:14px 16px 0;}
.rv-popt{flex:1;border:1.5px solid var(--bd);border-radius:10px;padding:9px 0;text-align:center;cursor:pointer;transition:all .15s;}
.rv-popt .pico{font-size:16px;display:block;margin-bottom:3px;}
.rv-popt .plabel{font-size:11px;font-weight:700;color:#888;}
.rv-popt.on{border-color:var(--black);background:var(--black);}
.rv-popt.on .plabel{color:#fff;}
.rv-foot{display:flex;gap:8px;padding:14px 16px 18px;}
.rv-btn-cl{flex:1;background:#f5f5f5;border:none;border-radius:12px;padding:12px;font-size:13px;font-weight:700;color:#888;cursor:pointer;font-family:inherit;}
.rv-btn-sv{flex:2;background:var(--black);border:none;border-radius:12px;padding:12px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;}
.rv-btn-sv:active{opacity:.85;}
.rv-view{padding:14px 16px 0;}
.rv-view-star{font-size:20px;color:#FFB800;margin-bottom:10px;}
.rv-view-text{font-size:14px;color:var(--tx);line-height:1.7;margin-bottom:10px;}
.rv-view-meta{font-size:11px;color:#bbb;}
.rv-btn-edit{flex:2;background:var(--black);border:none;border-radius:12px;padding:12px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;}

/* 탭하여 재태그 */
.tag-ico-btn{background:none;border:none;cursor:pointer;font-size:15px;padding:2px 4px;line-height:1;flex-shrink:0;opacity:.5;transition:opacity .15s;}
.tag-ico-btn:active{opacity:1;}

/* 카카오 태그 버전 - 파싱 모달 수정 */
/* .card-edit-btn {
    position: absolute;
    top: 14px;
    right: 38px;
    background: none;
    border: none;
    color: #CCC;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color .15s;
} */
.card-edit-btn {
    position: static;
    /* absolute 해제 */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: #333;
    background: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color .15s;
}
.card-edit-btn:active {
    color: var(--pr);
}

/* 튜토리얼v2 관련 */
/* ── 슬라이드 1 : URL 태그 ── */
.illo-1 {
    background: var(--pr_bg);
}

.illo-1 .illo-url-bar {
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 50px;
    border: 1.5px solid var(--black);
    display: flex;
    align-items: center;
    padding: 9px 8px 9px 16px;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.illo-1 .url-placeholder {
    flex: 1;
    font-size: 12px;
    color: #ccc;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.illo-1 .url-tag-btn {
    background: var(--pr);
    color: #fff;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 슬라이드 2 : 정보 입력 방식 ── */
.illo-2 {
    background: #F5F0FF;
}

.illo-2 .illo-input-card {
    position: absolute;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
}

/* 상단 상품 미리보기 */
.illo-input-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    background: #FAFAFA;
}

.illo-input-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eee;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illo-input-head-info {
    flex: 1;
}

.illo-input-head-name {
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
}

.illo-input-head-shop {
    font-size: 10px;
    color: #ccc;
    margin-top: 2px;
}

/* ── 슬라이드 3 : 상품 박스 + 스와이프 ── */
.illo-3 {
    background: #F0F7FF;
}

.illo-3 .illo-product-card {
    position: absolute;
    top: 28px;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.illo-product-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
}

.illo-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--tbg);
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.illo-product-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
}

/* 스와이프 row */
.illo-swipe-row {
    position: relative;
    border-top: 1px solid #f5f5f5;
    height: 50px;
    overflow: hidden;
}

.illo-swipe-shop-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    z-index: 3;
}

.illo-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: 100px;
}

.illo-swipe-buy {
    width: 50px;
    background: var(--green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.illo-swipe-del {
    width: 50px;
    background: var(--pr);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.illo-swipe-action-ico {
    font-size: 12px;
}

.illo-swipe-action-txt {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.illo-swipe-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    padding-left: 110px;
    gap: 6px;
}

/* 스와이프 패널이 열린 상태 */
.illo-swipe-panel.swiped {
    animation: illoSwipe 0.9s cubic-bezier(.25, .46, .45, .94) 0.6s both;
}

@keyframes illoSwipe {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-30px);
    }

    55% {
        transform: translateX(-100px);
    }

    75% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(0);
    }
}

.illo-swipe-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    text-align: right;
}

.illo-swipe-cb {
    font-size: 9px;
    color: var(--pr);
    border: 1.5px solid var(--pr);
    border-radius: 8px;
    padding: 1px 5px;
    margin-top: 3px;
}

.illo-swipe-chevrons {
    display: flex;
    gap: 1px;
}

.illo-swipe-chevrons span:nth-child(1) {
    color: #D8D8D8;
    font-size: 13px;
}

.illo-swipe-chevrons span:nth-child(2) {
    color: #A0A0A0;
    font-size: 13px;
}

/* 스와이프 힌트 */
.illo-3 .illo-swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .9);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ts);
    white-space: nowrap;
    animation: swipeHint 1.4s ease-in-out infinite;
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(-50%) translateX(0);
    }

    40% {
        transform: translateX(-50%) translateX(-6px);
    }
}

/* ── 슬라이드 4 : 캐시백 ── */
.illo-4 {
    background: #E6FAF2;
}

.illo-4 .illo-cashback-card {
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00C471, #00A360);
    border-radius: 20px;
    padding: 18px;
    color: #fff;
}

.illo-cb-label {
    font-size: 11px;
    opacity: .8;
    margin-bottom: 6px;
}

.illo-cb-amount {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.illo-cb-sub {
    font-size: 11px;
    opacity: .75;
    margin-top: 4px;
}

.illo-4 .illo-history-list {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.illo-history-item {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}

.ob-slide.active .illo-history-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.ob-slide.active .illo-history-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .3s;
}

.ob-slide.active .illo-history-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .5s;
}

.illo-history-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--tx);
}

.illo-history-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
}

/* ── 슬라이드 5 : 준비완료 ── */
.illo-5 {
    background: var(--pr_bg);
    flex-direction: column;
    gap: 0;
}

.illo-5 .illo-ready-icon {
    width: 80px;
    height: 80px;
    background: var(--pr);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: iconPop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes iconPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.illo-ready-icon svg {
    width: 40px;
    height: 40px;
}

.illo-5 .illo-ready-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
}

.illo-5 .illo-ready-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.6;
}

/* ── ob-footer 이전/다음 레이아웃은 common_wish.css에 있으므로 생략 ── */

/* ── 슬라이드 1 : URL 태그 ── */
.illo-1 {
    background: var(--pr_bg);
}

.illo-1 .illo-url-bar {
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 50px;
    border: 1.5px solid var(--black);
    display: flex;
    align-items: center;
    padding: 9px 8px 9px 16px;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.illo-1 .url-placeholder {
    flex: 1;
    font-size: 12px;
    color: #ccc;
    text-align: left;
}

.illo-1 .url-tag-btn {
    background: var(--pr);
    color: #fff;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
}

/* ── 슬라이드 2 : 정보 입력 방식 ── */
.illo-2 {
    background: #F5F0FF;
}

.illo-2 .illo-input-card {
    position: absolute;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
}

/* 상단 상품 미리보기 */
.illo-input-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    background: #FAFAFA;
}

.illo-input-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eee;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illo-input-head-info {
    flex: 1;
}

.illo-input-head-name {
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
}

.illo-input-head-shop {
    font-size: 10px;
    color: #ccc;
    margin-top: 2px;
}

/* ── 슬라이드 3 : 상품 박스 + 스와이프 ── */
.illo-3 {
    background: #F0F7FF;
}

.illo-3 .illo-product-card {
    position: absolute;
    top: 28px;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.illo-product-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
}

.illo-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--tbg);
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.illo-product-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
}

/* 스와이프 row */
.illo-swipe-row {
    position: relative;
    border-top: 1px solid #f5f5f5;
    height: 50px;
    overflow: hidden;
}

.illo-swipe-shop-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    z-index: 3;
}

.illo-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: 100px;
}

.illo-swipe-buy {
    width: 50px;
    background: var(--green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.illo-swipe-del {
    width: 50px;
    background: var(--pr);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.illo-swipe-action-ico {
    font-size: 12px;
}

.illo-swipe-action-txt {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.illo-swipe-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    padding-left: 110px;
    gap: 6px;
}

/* 스와이프 패널 — JS가 do-swipe 클래스 토글로 재실행 */
.illo-swipe-panel.do-swipe {
    animation: illoSwipe 1.3s cubic-bezier(.25, .46, .45, .94) both;
}

/* 패널 이동 중 레이블 충돌 방지 — 페이드아웃 */
.illo-swipe-row:has(.illo-swipe-panel.do-swipe) .illo-swipe-shop-label {
    animation: shopLabelFade 1.3s ease both;
}
@keyframes shopLabelFade {
    0%   { opacity: 1; }
    15%  { opacity: 0; }
    80%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes illoSwipe {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-16px);
    }

    40% {
        transform: translateX(-100px);
    }

    65% {
        transform: translateX(-100px);
    }

    85% {
        transform: translateX(-6px);
    }

    100% {
        transform: translateX(0);
    }
}

.illo-swipe-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    text-align: right;
}

.illo-swipe-cb {
    font-size: 9px;
    color: var(--pr);
    border: 1.5px solid var(--pr);
    border-radius: 8px;
    padding: 1px 5px;
    margin-top: 3px;
}

.illo-swipe-chevrons {
    display: flex;
    gap: 1px;
}

.illo-swipe-chevrons span:nth-child(1) {
    color: #D8D8D8;
    font-size: 13px;
}

.illo-swipe-chevrons span:nth-child(2) {
    color: #A0A0A0;
    font-size: 13px;
}

/* 스와이프 힌트 */
.illo-3 .illo-swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .9);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ts);
    white-space: nowrap;
    animation: swipeHint 1.4s ease-in-out infinite;
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(-50%) translateX(0);
    }

    40% {
        transform: translateX(-50%) translateX(-6px);
    }
}

/* ── 슬라이드 4 : 캐시백 ── */
.illo-4 {
    background: #E6FAF2;
}

.illo-4 .illo-cashback-card {
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00C471, #00A360);
    border-radius: 20px;
    padding: 18px;
    color: #fff;
}

.illo-cb-label {
    font-size: 11px;
    opacity: .8;
    margin-bottom: 6px;
}

.illo-cb-amount {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.illo-cb-sub {
    font-size: 11px;
    opacity: .75;
    margin-top: 4px;
}

.illo-4 .illo-history-list {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.illo-history-item {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}

.ob-slide.active .illo-history-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.ob-slide.active .illo-history-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .3s;
}

.ob-slide.active .illo-history-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .5s;
}

.illo-history-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--tx);
}

.illo-history-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
}

/* ── 슬라이드 5 : 준비완료 ── */
.illo-5 {
    background: var(--pr_bg);
    flex-direction: column;
    gap: 0;
}

.illo-5 .illo-ready-icon {
    width: 80px;
    height: 80px;
    background: var(--pr);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: iconPop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes iconPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.illo-ready-icon svg {
    width: 40px;
    height: 40px;
}

.illo-5 .illo-ready-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px;
}

.illo-5 .illo-ready-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.6;
}

/* 스크린샷업로드(쇼핑몰 페이지 캡처) */
.tm-screenshot-wrap {
    margin-bottom: 6px;
}
.tm-screenshot-btn {
    width: 100%;
    padding: 11px 10px;
    border: 1px solid var(--pr);
    border-radius: 8px;
    background: #f9f9f9;
    color: var(--pr);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.tm-screenshot-btn:active {
    background: #f0f0f0;
}
.tm-ss-icon {
    font-size: 15px;
    line-height: 1;
}
.tm-or-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px;
    font-size: 11px;
    color: #bbb;
}
.tm-or-divider::before,
.tm-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ebebeb;
}

/* ── 미완성 카드 : 링크 전용 카드 (lc-card) ── */
.lc-card {
    padding: 0;
    padding-top: 14px;
    overflow: hidden;
    background: #f8f8f8;
}
.lc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px 12px;
    position: relative;
}
.lc-card .card-del-btn{
    right: 28px !important;
}
.lc-thumb {
    width: 64px;
    height: 64px;
    background: var(--tbg);
    border-radius: 8px;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.lc-thumb-ico {
    display: block;
    width: 100%;
    height: 100%;
    background: url(/assets/img/no-img.svg) center no-repeat;
    background-size: contain;
    opacity: 1;
}
.lc-info {
    flex: 1;
    min-width: 0;
}
.lc-shop {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-date {
    font-size: 11px;
    color: var(--ts);
    margin-top: 4px;
}
.lc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 12px 28px;
    border-top: 1px solid #F5F5F5;
    gap: 8px;
}
.lc-link-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 12px;
    color: var(--ts);
    cursor: pointer;
    padding: 0;
    font-family: 'Pretendard Variable', sans-serif;
}
.lc-link-btn:active {
    color: var(--pr);
}
.lc-add-btn {
    background: var(--black);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}
.lc-add-btn:active {
    opacity: .8;
}

/* 0413 정보입력 모달 수정 */
.tm-screenshot-wrap {
    padding: 12px 18px 0;
}
.tm-or-divider {
    padding: 0 18px;
}

.pname-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}
.pname-row .inline-edit-btn {
    margin-top: 2px;
}
.price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.inline-edit-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity .15s;
    flex-shrink: 0;
}
.inline-edit-btn:active {
    opacity: 1;
}
.inline-edit-btn img {
    display: block;
}
.tc-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right:24px;/* 닫기버튼 위치 고려 */
}
.tc-order-time {
    font-size: 11px;
    color: var(--ts);
    opacity: 0.7;
}
.tc-total-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.edit-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 20px;
}
.edit-field-label {
    font-size: 12px;
    color: var(--ts);
    margin-bottom: 6px;
}
.edit-field-input {
    width: 100%;
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--tx);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.edit-field-input:focus {
    border-color: var(--pr);
}
.edit-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.edit-price-unit {
    font-size: 14px;
    color: var(--tx);
    flex-shrink: 0;
}
.pname-left {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}
.inline-tag-btn {
    background: none;
    border: none;
    padding: 2px 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--pr);
    opacity: 0.7;
    transition: opacity .15s;
    flex-shrink: 0;
    margin-left: auto;
}
.inline-tag-btn:active {
    opacity: 1;
}

/* ── 웹뷰 오버레이 공통 (v3) ── */
/* 코틀린, 스위프트에서 별도 스타일 작업됨 */
.webview-dim {
    position: fixed;
    /* top: 0; */
    /* bottom: 0; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    inset: 0;
    z-index: 300;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}
.webview-dim.open {
    display: flex;
    animation: dimIn .2s ease both;
}
.webview-screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin: 0 auto;
}

/* 스크린샷 위 딤 레이어 */
.webview-screen-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* 스피너 + 라벨 래퍼 */
.webview-scan-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
}

/* 원형 스핀 로딩바 */
.webview-scan-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 77, 46, 0.25);
    border-top-color: var(--pr);
    border-radius: 50%;
    animation: scanSpin 0.9s linear infinite;
}

@keyframes scanSpin {
    to { transform: rotate(360deg); }
}

/* 딤 중앙 안내 텍스트 */
.webview-scan-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-align: center;
}

/* ── 바텀시트 빌드 오버레이 (v3_auto3) ── */
.build-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 48px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.34, 1.1, .64, 1);
    z-index: 1;
}
.build-sheet.up {
    transform: translateY(0);
}
.build-handle {
    width: 100%;
    padding: 12px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: row-resize;
}
.build-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
}
.build-card-preview {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.build-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--tbg);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.94);
}
.build-info {
    flex: 1;
    padding-top: 4px;
}
.build-line {
    height: 10px;
    background: var(--bd);
    border-radius: 5px;
    margin-bottom: 8px;
    transform-origin: left;
    transform: scaleX(0);
}
.build-line.l1 { width: 85%; }
.build-line.l2 { width: 55%; }
.build-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--pr);
    opacity: 0;
    transform: translateY(6px);
    margin-top: 4px;
}
/* ── 롱프레스 원형 인디케이터 ── */
.lp-circle {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tbg);
    flex-shrink: 0;
    transition: background .15s ease;
}
.lp-circle.pressing {
    background: var(--green);
}
.lp-circle.pressing::before,
.lp-circle.pressing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.5;
    animation: lp-pulse 0.9s ease-out infinite;
}
.lp-circle.pressing::after {
    animation-delay: 0.45s;
}
@keyframes lp-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    100% { transform: scale(3);   opacity: 0; }
}
.lp-circle.done {
    background: var(--green);
    transform: scale(1.15);
    transition: background .1s ease, transform .1s ease;
}
.row-wrap.lp-mode {
    background: #fff;
}

/* ── 롱프레스 프로그레스 바 ── */
.lp-bar-wrap {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f0f0f0;
    z-index: 10;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}
.lp-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 0 2px 2px 0;
}

.build-center-msg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}
.build-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--ts);
    text-align: center;
    margin-top: 16px;
}

/* ── 바텀시트 빌드 v5 추가 클래스 ── */
.build-caption {
    font-size: 12px;
    color: var(--ts);
    text-align: center;
    padding: 4px 0 8px;
}
.build-divider {
    border: none;
    border-top: 1px solid var(--bd);
    margin: 12px 0 0;
}
.build-confirm-label {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    margin: 24px 0 24px;
    color: var(--tx);
    line-height: 1.4;
}
.build-confirm-btns {
    display: flex;
    gap: 8px;
    padding: 0 0 8px;
}
.build-btn-yes,
.build-btn-no {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.build-btn-yes { background: var(--pr); color: #fff; }
.build-btn-no  { background: #f0f0f0; color: #333; }
.build-sheet   { touch-action: none; }

/* ── 썸네일 라이트박스 ── */
.thumb-viewer-dim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.thumb-viewer-dim.open {
    opacity: 1;
    pointer-events: auto;
}
.thumb-viewer-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    object-fit: contain;
}
.thumb-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb[data-viewable] { cursor: zoom-in; }

.webview-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.webview-loading-bar-wrap {
    width: calc(100% - 80px);
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}
.webview-loading-bar {
    height: 100%;
    width: 0;
    background: var(--pr);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
}
.webview-loading-text {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.2px;
}
.spin-on-dim {
    border-color: rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    width: 22px;
    height: 22px;
}

/* ── 카메라 뷰파인더 프레임 (v3_auto1) ── */
.cam-frame {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 28px;
    animation: camAppear .35s cubic-bezier(.34, 1.2, .64, 1) both;
}
.cam-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #fff;
    border-style: solid;
    border-width: 0;
}
.cam-corner.tl { top: 0;    left: 0;  border-top-width: 3px; border-left-width: 3px;  border-radius: 3px 0 0 0; }
.cam-corner.tr { top: 0;    right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 3px 0 0; }
.cam-corner.bl { bottom: 0; left: 0;  border-bottom-width: 3px; border-left-width: 3px;  border-radius: 0 0 0 3px; }
.cam-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 3px 0; }

/* 등장 — 퍼져있다 수렴 */
@keyframes camAppear {
    0%   { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1);    opacity: 1; }
}
/* 잠금 완료 시 */
.cam-frame.locked {
    animation: camLock .3s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes camLock {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.91); }
    100% { transform: scale(0.95); }
}
.cam-frame.locked .cam-corner {
    border-color: var(--pr);
    transition: border-color .2s ease;
}

/* ── 웹뷰 스캔 라인 오버레이 (v3_auto2) ── */
.webview-scan-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 3px;
    z-index: 1;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 77, 46, 0.4) 18%,
        var(--pr) 50%,
        rgba(255, 77, 46, 0.4) 82%,
        transparent 100%
    );
    box-shadow:
        0 0 18px 7px rgba(255, 77, 46, 0.32),
        0 0 4px 1px rgba(255, 77, 46, 0.85);
}
.scan-line::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(
        to bottom,
        rgba(255, 77, 46, 0.1),
        transparent
    );
}
.webview-scan-overlay.scanning .scan-line {
    animation: scanSweep 2s cubic-bezier(.37, 0, .63, 1) forwards;
}
@keyframes scanSweep {
    0%   { top: -6px; }
    100% { top: calc(100% + 6px); }
}

/* build-sheet 요소에 skel-ani 적용 시 background 우선순위 확보 */
.build-thumb.skel-ani,
.build-line.skel-ani {
    background: linear-gradient(90deg, var(--tbg) 25%, #e8e8e8 50%, var(--tbg) 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.2s infinite;
}

/* ── 수평 스캔 라인 (v3_auto5) ── */
.scan-line-h {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -6px;
    width: 3px;
    background: var(--pr);
    box-shadow:
        0 0 18px 7px rgba(255, 77, 46, 0.32),
        0 0 4px 1px rgba(255, 77, 46, 0.85);
}
.scan-line-h::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, rgba(255, 77, 46, 0.3), transparent);
}
.webview-scan-overlay.scanning .scan-line-h {
    animation: scanSweepH 2s cubic-bezier(.37, 0, .63, 1) forwards;
}
@keyframes scanSweepH {
    0%   { left: -6px; }
    100% { left: calc(100% + 6px); }
}

/* ── tag-analysis-overlay (v3_auto4) ── */
.tag-analysis-overlay {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    width: min(240px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.ta-browser {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}
.ta-browser-bar {
    background: #f5f5f5;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #e8e8e8;
}
.ta-dots { display: flex; gap: 4px; }
.ta-dot {
width: 6px;
height: 6px;
border-radius: 50%;
}

.ta-dot.r {
    background: #ff5f57;
}

.ta-dot.y {
    background: #febc2e;
}

.ta-dot.g {
    background: #28c840;
}

.ta-url {
    flex: 1;
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-body {
    height: 160px;
    background: #faf9f7;
    position: relative;
    overflow: hidden;
}

.ta-product {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px 12px;
    gap: 12px;
}

.ta-thumb {
    width: 64px;
    height: 64px;
    background: #f0ede8;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.ta-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ta-line {
    height: 9px;
    background: #e8e5e0;
    border-radius: 5px;
}

.ta-line.l1 {
    width: 100%;
}

.ta-line.l2 {
    width: 75%;
}

.ta-line.l3 {
    width: 50%;
}

.ta-xray {
    position: absolute;
    inset: 0;
    background: rgba(255, 77, 46, .04);
    backdrop-filter: none;
    opacity: 0;
}

.ta-tag-img,
.ta-tag-name,
.ta-tag-price,
.ta-tag-cat {
    position: absolute;
    background: #FF4D2E;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 5px;
    padding: 3px 7px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 77, 46, .35);
}

.ta-status {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.ta-progress-wrap {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.ta-progress-bar {
    height: 100%;
    background: #FF4D2E;
    width: 0%;
    border-radius: 2px;
}

/* ── 점유인증 (본인인증) ─────────────────────────────── */
.ov-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    margin-top: 20px;
    margin-bottom: 10px;
}
.ov-step-desc {
    font-size: 14px;
    color: var(--ts);
    line-height: 1.6;
    margin-bottom: 20px;
}
.ov-notice-box_wrap{
    padding: 16px 0;
    margin-bottom: 8px;
}
.ov-notice-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pr_bg);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 8px;
}
.ov-sns-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ov-sns-ico img { width: 24px; height: 24px; }
.ov-sns-ico.kakao { background: #FEE500; }
.ov-sns-ico.naver { background: #03C75A; }
.ov-sns-ico.google { background: white; color: #191919; border: 1px solid var(--bd); }
.ov-sns-ico.apple { background: #000; color: white;}

.ov-notice-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 2px;
}
.ov-notice-sub {
    font-size: 12px;
    color: var(--ts);
}
.ov-phone-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 8px;
}
.ov-phone-num {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tx);
    letter-spacing: 1px;
    margin-bottom: 32px;
}
.ov-primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--pr);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    transition: opacity .2s;
}
.ov-primary-btn:active { opacity: .85; }
.ov-primary-btn:disabled {
    background: var(--bd);
    color: var(--ts);
    cursor: not-allowed;
    opacity: 1;
}
.ov-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ov-code-input {
    width: 100%;
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    color: var(--tx);
    outline: none;
    letter-spacing: 6px;
    text-align: center;
    transition: border-color .2s;
}
.ov-code-input:focus { border-color: var(--pr); }
.ov-code-input:disabled {
    background: var(--bg_gr);
    color: var(--ts);
    cursor: not-allowed;
}
/* 점유인증번호 틀렸을 때 */
.ov-code-input.error {
    border-color: var(--pr);
    background: var(--pr_bg);
    animation: ov-shake .35s ease;
}
@keyframes ov-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-3px); }
    40%       { transform: translateX(3px); }
    60%       { transform: translateX(-1px); }
    80%       { transform: translateX(1px); }
}
.ov-code-input::placeholder {
    letter-spacing: 2px;
    font-weight: 400;
    font-size: 18px;
    color: var(--bd);
}
.ov-timer {
    font-size: 15px;
    font-weight: 700;
    color: var(--pr);
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}
.ov-resend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.ov-resend-hint {
    font-size: 12px;
    color: var(--ts);
}
.ov-resend-btn {
    background: none;
    border: none;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--tx);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.ov-resend-btn:disabled {
    color: var(--bd);
    text-decoration: none;
    cursor: not-allowed;
}
.ov-done-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 48px;
    gap: 12px;
}
.ov-done-ico {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}
.ov-done-ico img { width: 100%; height: 100%; }
.ov-done-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tx);
    text-align: center;
}
.ov-done-desc {
    font-size: 14px;
    color: var(--ts);
    text-align: center;
    line-height: 1.7;
}

/* ── 약관 동의 (phone_verify) ─────────────────────────────── */
.ov-terms-wrap {
    margin: 20px 0 18px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    overflow: hidden;
}
.ov-terms-all-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
}
.ov-terms-divider {
    height: 1px;
    background: var(--bd);
}
.ov-terms-list {
    padding: 6px 0;
}
.ov-terms-item {
    display: flex;
    align-items: center;
    padding: 9px 16px;
}
.ov-terms-chk-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.ov-terms-chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.ov-terms-chk-ico {
    width: 20px;
    height: 20px;
    border: 1px solid var(--bd);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
.ov-terms-chk:checked + .ov-terms-chk-ico {
    background: var(--pr);
    border-color: var(--pr);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5L8.5 14L15.5 6.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
.ov-terms-all-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
}
.ov-terms-text {
    font-size: 13px;
    color: var(--tx);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ov-text-sub{
    font-size: 12px;
    color:#666;
}
.ov-terms-badge-req {
    color: var(--pr);
}
.ov-terms-badge-opt {
    color: var(--ts);
}
.ov-terms-text-col {
    flex: 1;
    min-width: 0;
}
.ov-terms-text-col .ov-terms-text {
    white-space: normal;
}
.ov-text-sub {
    font-size: 11px;
    color: var(--ts);
    line-height: 1.5;
    margin-top: 3px;
}
.ov-terms-chk-label--top {
    align-items: flex-start;
}
.ov-terms-chk-label--top .ov-terms-chk-ico {
    margin-top: 2px;
}
.ov-terms-sub-row {
    display: flex;
    gap: 20px;
    padding: 4px 16px 10px 44px;
}
.ov-terms-sub-opt-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.ov-terms-sub-opt-text {
    font-size: 13px;
    color: var(--tx);
}
.ov-terms-view-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 0 0 8px;
    font-size: 12px;
    color: var(--ts);
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

/* ── 약관 내용보기 중앙 모달 ─────────────────────────────── */
.ov-terms-modal-dim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s, visibility .22s;
}
.ov-terms-modal-dim.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ov-terms-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s, transform .22s;
}
.ov-terms-modal-dim.open .ov-terms-modal {
    opacity: 1;
    transform: translateY(0);
}
.ov-terms-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0;
}
.ov-terms-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tx);
}
.ov-terms-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--ts);
    cursor: pointer;
    padding: 0;
}
.ov-terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.ov-terms-modal-body .sub-wrap{
    padding: 0 !important;
}
.ov-terms-modal-foot {
    padding: 12px 20px 20px;
    flex-shrink: 0;
}

/* 260604 */
/* 롱프레스 드래그 정렬 */
.drag-placeholder {
    background: var(--pr_bg);
    border: 1px solid var(--bd);
    border-radius: 16px;
    margin-bottom: 10px;
    opacity: 0.7;
}
.tcard.is-dragging {
    opacity: 0 !important;
}
#cardList.drag-active {
    user-select: none;
    -webkit-user-select: none;
}

/* ── 순서 편집 모드 ── */
.stitle-r {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-edit-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--ts);
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    line-height: 1;
}
.sort-edit-btn.on {
    color: var(--pr);
    font-weight: 600;
}
.drag-edit-mode .tcard {
    transition: box-shadow 0.15s;
}
.tcard .card-del-btn,
.tcard .inline-edit-btn,
.tcard .lc-link-btn,
.tcard .lc-add-btn {
    transition: opacity 0.2s;
}
.tcard .lc-footer {
    transition: opacity 0.2s;
}
.tcard .chevrons span {
    transition: opacity 0.2s;
}
.drag-edit-mode .tcard .card-del-btn,
.sort-mode-ghost .card-del-btn,
.drag-edit-mode .tcard .inline-edit-btn,
.sort-mode-ghost .inline-edit-btn,
.drag-edit-mode .tcard .lc-link-btn,
.sort-mode-ghost .lc-link-btn,
.drag-edit-mode .tcard .lc-add-btn,
.sort-mode-ghost .lc-add-btn {
    opacity: 0;
    pointer-events: none;
}
.drag-edit-mode .tcard .lc-footer,
.sort-mode-ghost .lc-footer {
    opacity: 0;
    pointer-events: none;
}
.drag-edit-mode .tcard .chevrons span,
.sort-mode-ghost .chevrons span {
    opacity: 0;
}
/* 드래그 핸들 실제 DOM 요소 — touch-action:none으로 핸들 터치 시에만 Chrome/AOS 스크롤 선점 차단 */
.drag-handle {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3' y='4' width='12' height='1.5' rx='0.75' fill='%23C0C0C0'/%3E%3Crect x='3' y='8.25' width='12' height='1.5' rx='0.75' fill='%23C0C0C0'/%3E%3Crect x='3' y='12.5' width='12' height='1.5' rx='0.75' fill='%23C0C0C0'/%3E%3C/svg%3E");
    background-color: transparent;
    background-position: right 14px center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    touch-action: none;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.drag-edit-mode .tcard .drag-handle,
.sort-mode-ghost .drag-handle {
    opacity: 1;
    pointer-events: auto;
}
.sort-mode-ghost .drag-handle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3' y='4' width='12' height='1.5' rx='0.75' fill='%23FF4D2E'/%3E%3Crect x='3' y='8.25' width='12' height='1.5' rx='0.75' fill='%23FF4D2E'/%3E%3Crect x='3' y='12.5' width='12' height='1.5' rx='0.75' fill='%23FF4D2E'/%3E%3C/svg%3E");
}

/* 강제 업데이트 모달 */
.force-update-dim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 0 32px;
}
.force-update-dim.open { display: flex; }
.force-update-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
}
.force-update-box .fu-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 20px;
}
.force-update-box .fu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 10px;
}
.force-update-box .fu-desc {
    font-size: 13px;
    color: var(--ts);
    line-height: 1.6;
    margin-bottom: 24px;
}
.force-update-box .fu-btn {
    width: 100%;
    height: 48px;
    background: var(--pr);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

/* 무한스크롤 로딩 스피너 */
.card-load-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 20px;
    gap: 7px;
}
.card-load-spinner span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pr);
    animation: cls-bounce 0.9s infinite ease-in-out;
}
.card-load-spinner span:nth-child(1) { animation-delay: 0s; }
.card-load-spinner span:nth-child(2) { animation-delay: 0.18s; }
.card-load-spinner span:nth-child(3) { animation-delay: 0.36s; }
@keyframes cls-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* ─── 캐시백 브릿지 시안 (bridge.html) ─────────────────────── */
body.bridge-open { overflow: hidden; }

/* info 모드(캐시백 i 버튼): 이동 버튼·취소 숨김, 뒤로 버튼만 노출 */
.bridge-back-only {
    display: none;
    width: 100%;
    padding: 14px;
    background: var(--pr);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.bridge-info-mode .bridge-go-btn,
.bridge-info-mode .bridge-cancel-link { display: none; }
.bridge-info-mode .bridge-back-only { display: block; }

/* 뱃지 + 안내(i) 버튼 행 */
.cb-badge-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px 0;
}
.cb-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--pr);
    background: none;
    color: var(--pr);
    cursor: pointer;
    flex-shrink: 0;
}
.cb-info-btn p{
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

/* 공통 브릿지 콘텐츠 */
.bridge-inner { padding: 20px 20px 4px; }
.bridge-shop-head {
    font-size: 15px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 16px;
}
.bridge-warn-line {
    font-size: 13px;
    font-weight: 700;
    color: var(--pr);
    line-height: 1.5;
    margin-bottom: 16px;
    animation: bridgeWarnPulse 1.1s ease-in-out 2;
}
.bridge-warn-link {
    display: block;
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--pr);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
@keyframes bridgeWarnPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.bridge-ttl {
    font-size: 17px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bridge-ttl-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--pr);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.bridge-section { margin-bottom: 16px; }
.bridge-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ts);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.bridge-notice-list {
    font-size: 13px;
    color: var(--tx);
    line-height: 1.7;
    margin: 0;
}
.bridge-divider {
    height: 1px;
    background: var(--bd);
    margin: 14px 0;
}
.bridge-btn-area { padding: 4px 20px 20px; }
.bridge-go-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--pr);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.bridge-cancel-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--ts);
    margin-top: 12px;
    cursor: pointer;
    padding-bottom: 4px;
}

/* ── 방법2: 하단 바텀시트 ── */
.bridge-sheet-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.bridge-sheet-dim.open {
    opacity: 1;
    pointer-events: auto;
}
.bridge-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 86vh;
    overflow-y: auto;
}
.bridge-sheet-dim.open .bridge-sheet { transform: translateY(0); }
.bridge-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--bd);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ── 다시 보지 않기 체크박스 ── */
.bridge-skip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 12px;
    cursor: pointer;
}
.bridge-info-mode .bridge-skip-row { display: none; }
.bridge-skip-chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bridge-skip-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid var(--bd);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.bridge-skip-box::after {
    content: '';
    display: none;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.bridge-skip-chk:checked + .bridge-skip-box {
    background: var(--pr);
    border-color: var(--pr);
}
.bridge-skip-chk:checked + .bridge-skip-box::after { display: block; }
.bridge-skip-txt {
    font-size: 13px;
    color: var(--ts);
}

/* ── 독립 브릿지 페이지 (bridge_2depth.html) ── */
.bridge-2depth-body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}
.bridge-2depth-inner {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 4px;
}
.bridge-2depth-btn-area {
    flex-shrink: 0;
    border-top: 1px solid var(--bd);
}

/* ─── ATT(앱 추적 허용) 요청 풀페이지 시안 (att.html) ─────────────────────── */
.att-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
}
.att-body {
    flex: 1;
    overflow-y: auto;
    padding: 64px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.att-icon-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--pr_bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.att-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx);
    line-height: 1.4;
    margin-bottom: 10px;
}
.att-desc {
    font-size: 14px;
    color: var(--ts);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── 시스템 ATT 권한창 목업 ── */
.att-mock-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.att-mock-dialog {
    width: min(260px, 90%);
    background: #2b2b2e;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(24px);
    animation: attSlideIn 0.5s cubic-bezier(.22, .61, .36, 1) 0.15s forwards;
}
.att-mock-text-wrap {
    padding: 18px 16px 15px;
    text-align: left;
}
.att-mock-app {
    font-size: 12.5px;
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}
.att-mock-sub {
    font-size: 11px;
    color: #99999d;
    line-height: 1.5;
}
.att-mock-btn {
    padding: 13px 0;
    text-align: center;
    font-size: 13.5px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.att-mock-btn-deny { color: #99999d; }
.att-mock-btn-allow { font-weight: 700; }
@keyframes attSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.att-benefits {
    width: 100%;
    text-align: left;
    background: var(--bg_gr);
    border-radius: 14px;
    padding: 18px;
}
.att-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--tx);
    line-height: 1.6;
}
.att-benefit-item + .att-benefit-item { margin-top: 12px; }
.att-benefit-item img {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}
.att-foot {
    flex-shrink: 0;
    padding: 4px 20px 24px;
}
.att-go-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--pr);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.att-fine-print {
    text-align: center;
    font-size: 11px;
    color: var(--ts);
    margin-top: 10px;
    line-height: 1.5;
}

/* ── 제휴 쇼핑몰 안내 페이지 (0810) ── */
.mct-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 16px;
    padding: 12px 14px;
    background: var(--pr_bg);
    border-radius: 10px;
}
.mct-notice-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.mct-notice-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mct-notice-text {
    font-size: 12.5px;
    color: var(--pr);
    line-height: 1.5;
}
.mct-notice-text.sub {
    color: var(--tx);
    opacity: .7;
    font-size: 11.5px;
}
.mct-section {
    margin-bottom: 24px;
}
.mct-section .stitle {
    font-size: 13px;
    margin-bottom: 12px;
}
.mct-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
    overflow: hidden;
    max-height: 90px;
}
.mct-section.expanded .mct-row {
    max-height: none !important;
}
.mct-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
}
.mct-card:active .mct-logo {
    opacity: .75;
}
.mct-logo {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 12px;
    border: 1px solid var(--bd);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mct-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px 12px;
    display: block;
}
.mct-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 0;
    background: none;
    border: none;
    cursor: pointer;
}
.mct-toggle-arrow {
    display: inline-block;
    font-size: 16px;
    color: var(--ts);
    transition: transform .2s;
    transform: rotate(90deg);
}
.mct-section.expanded .mct-toggle-arrow {
    transform: rotate(-90deg);
}
.mct-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--tx);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}
.mct-rate {
    font-size: 10px;
    font-weight: 700;
    color: var(--pr);
    line-height: 1.3;
}

/* ══════════════════════════════════════
   코치마크(스포트라이트) — 제휴 쇼핑몰 아이콘 최초 안내
══════════════════════════════════════ */
.coach-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.coach-overlay.open {
    display: block;
}

/* 하이라이트: box-shadow 로 자기 자신만 남기고 화면 전체를 딤 처리 */
.coach-highlight {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6);
    pointer-events: none;
    transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease;
}

.coach-tip {
    position: absolute;
    width: 220px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.coach-tip::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
}

.coach-tip-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ══════════════════════════════════════
   마이페이지 — 공지사항 목록 (nt-)
   아코디언 형식: 클릭한 항목 아래로 내용이 펼쳐짐
══════════════════════════════════════ */
.nt-list {
    display: flex;
    flex-direction: column;
}
.nt-item {
    border-bottom: 1px solid var(--bd);
}
.nt-item:last-child {
    border-bottom: none;
}
.nt-item-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 4px;
    cursor: pointer;
}
.nt-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nt-item-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.nt-badge-new {
    display: inline-block;
    background: var(--pr);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}
.nt-item-arr {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--ts);
    transition: transform .2s ease;
}
.nt-item.open .nt-item-arr {
    transform: rotate(90deg);
}
.nt-item-date {
    font-size: 12px;
    color: var(--ts);
}
/* 메인 진입 공지 팝업 - 제목 아래 등록일 (.notice-modal 은 common_wish.css) */
.notice-modal-date {
    padding: 4px 18px 0;
    font-size: 12px;
    color: var(--ts);
}
/* 모달/오버레이 열렸을 때 뒤 배경 스크롤 잠금 — 공통
   .open 감지 후 body.modal-open 부여는 common-events.js 가 담당 */
.notice-dim { touch-action: none; }
body.modal-open { overflow: hidden; }
/* 공지 팝업 높이 60vh 고정 — 본문 분량과 무관하게 항상 같은 크기
   헤더/등록일/푸터는 고정, 본문(.notice-modal-body)이 남는 높이를 채우고 내부 스크롤
   ※ common_wish.css 가 style.css 뒤에 로드되므로 동일 특이도로는 안 덮임 → 자손 선택자로 특이도 확보 */
.notice-dim .notice-modal { height: 60vh; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.notice-modal .notice-modal-body {
    height: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
    /* 개행만 유지, 공백·탭은 collapse — 관리자 붙여넣기 들여쓰기 방지 (목록 .nt-item-body-inner 와 동일 처리) */
    white-space: pre-line;
}
.nt-item-body {
    max-height: 0;
    overflow: hidden;
    /* 실제 높이(scrollHeight)로 max-height를 맞춰서 애니메이션함 — JS(toggleNotice) 참고 */
    transition: max-height .35s cubic-bezier(.25, .46, .45, .94);
}
.nt-item-body-inner {
    padding: 0 4px 18px;
    font-size: 13px;
    color: var(--tx);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: pre-line;   /* 개행만 유지, 공백·탭은 collapse — 관리자 붙여넣기 들여쓰기 방지 */
    opacity: 0;
    transition: opacity .25s ease;
}
.nt-item.open .nt-item-body-inner {
    opacity: 1;
    transition-delay: .05s;
}

.coach-tip-btn {
    width: 100%;
    background: var(--pr);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
}
