: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;

    --black:#0b0b0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}



/* 스플래시 */
.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 img{
    width: 100px;
    /* border: 1px solid red; */
}

.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;}

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

.page.active {
    display: block;
}

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

.owrap.active {
    display: flex;
}

.ohero {
    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: 8px;
    margin-top: 0;
}
.ologo img{
    width:130px;
    display: block;
    margin: 12px 0;
}
.ologo em {
    color: var(--tx);
    font-style: normal;
}
.osl2 {
    font-size: 13px;
    color: var(--ts);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}
.ofeats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    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: 48px;
    height: 48px;
    background:#fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.ofico img{
    width: 40px;
}

.oftitle {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.lsec {
    padding: 0 32px 48px;
}

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

.sbtn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    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: 'Noto Sans KR', 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: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}



.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: 5px 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: 'Noto Sans KR', 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: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.stitle {
    font-size: 15px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 12px;
    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: 'Noto Sans KR', 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;
}

/* 태그카드 */
.tlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    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;
}

.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: 'Noto Sans KR', 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: 'Noto Sans KR', 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;
}
.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 {
    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: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--pr);
}
.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: 1px 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;
}
.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: 'Noto Sans KR', 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: 14px 14px 12px;
    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: var(--green);
    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;
}

.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;
}

.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: var(--green);
    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;
}

.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: var(--green);
    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 {
    width: 100%;
    border: 1.5px solid var(--bd);
    border-radius: 20px;
    padding: 11px 20px 10px 20px;
    font-size: 14px;
    font-family: 'Noto Sans KR', 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%);
    font-size: 15px;
    pointer-events: none;
}
.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: 6px 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;
}
.chip-search-btn.on {
    background: var(--pr_bg);
    border-color: var(--pr);
}

/* ── 검색 슬라이드 ── */
.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;
    gap: 8px;
}
.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;
}
.sum_right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 134px;
}
.sum_right .box{
    flex: 1;
}

.sum-box_tit{
    font-size: 12px;
    font-weight: 400;
    color: var(--pr);
}
.sum-box_cash{
    font-size: 24px;
    margin-top: 16px;
    font-weight: 700;
}
.sum-box_res{
    font-size: 16px;
    margin-top: 6px;
    font-weight: 700;
}
.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;
}

/* ㅡ 쿠폰 교환 범위 추가 ㅡ */
.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 {
    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;
}

.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;
}
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: #888;
    background: #ECECEC;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
}

.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{
    max-width: 100%;
    height: 100%;
}

.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;
    align-items: center;
    gap: 8px;
}

.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;
    margin-top: 1px;
}

.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;
}

/* ── 빈 상태 ── */
.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;
}

.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: 480px;
    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: 'Noto Sans KR', 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: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

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

/* ══════════════════════════════
   태그 등록 모달
══════════════════════════════ */
.tag-sheet {
    background: var(--card);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 390px;
    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: 'Noto Sans KR', 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: 'Noto Sans KR', 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-btns {
    display: flex;
    gap: 16px;
}

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

.cal-ok {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--pr);
    cursor: pointer;
    font-family: 'Noto Sans KR', 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.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: 'Noto Sans KR', 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: 480px;
    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: 17px;
    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-bottom: 14px;
    flex-wrap: wrap;
}
.attach-add {
    width: 72px;
    height: 72px;
    border: 1.5px 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;
}
.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 ;
}

/* ── 아바타 섹션 ── */
.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: 2.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}
.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;
}
.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;
}

/* 알림 확인페이지 */
 /* 모두 읽음 버튼 */
.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: center;
    gap: 6px;
}
.tm-price-row .tm-field-input {
    flex: 1;
}
.tm-price-unit {
    font-size: 12px;
    color: var(--ts);
    flex-shrink: 0;
}
.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;
}

@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;
    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;
}
.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;
}