﻿/* ============================================================
   COMMON.CSS - 통합 공통 스타일
   통합: reset.css + common.css + assets/style.css (유틸/컴포넌트)
         + assets/menu.css
   ============================================================ */

/* === FONTS === */
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap');

/* ============================================================
   1. RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    line-height: 1.2;
    font-family: 'Pretendard';
    font-weight: 400;
    letter-spacing: 0.01em;
}
body {
    color: #231815;
    line-height: 1.2;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { display: block; }
a { text-decoration: none !important; color: initial; }
button { outline: none; border: none; appearance: none; box-shadow: none; background-color: transparent; font-family: 'Pretendard' !important; }

/* ============================================================
   2. UTILITY CLASSES
   ============================================================ */
.container { margin: 0 auto; max-width: 415px; padding: 15px; position: relative; }

.text_black { color: #000 !important; }
.text_white { color: #fff !important; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.text-center  { text-align: center !important; }
.text-left    { text-align: left !important; }
.text-right   { text-align: right !important; }
.justify-center { justify-content: center !important; }
.justify-right  { justify-content: right !important; }
.icon_img { width: 32px; height: 32px; }

.w-100p { width: 100% !important; }
.w-75p  { width: 75% !important; }
.w-70p  { width: 70% !important; }
.w-65p  { width: 65% !important; }
.w-50p  { width: 50% !important; }
.w-30p  { width: 30% !important; }
.w-25p  { width: 25% !important; }
.w-20p  { width: 20% !important; }
.w-10p  { width: 10% !important; }

.mb-0  { margin-bottom: 0px !important; }
.mb-5  { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-25 { margin-bottom: 25px !important; }
.mb-30 { margin-bottom: 30px !important; }

.ml-0  { margin-left: 0px !important; }
.ml-5  { margin-left: 5px !important; }
.ml-10 { margin-left: 10px !important; }
.ml-15 { margin-left: 15px !important; }
.ml-20 { margin-left: 20px !important; }
.ml-25 { margin-left: 25px !important; }
.ml-30 { margin-left: 30px !important; }

.mr-0  { margin-right: 0px !important; }
.mr-5  { margin-right: 5px !important; }
.mr-10 { margin-right: 10px !important; }
.mr-15 { margin-right: 15px !important; }
.mr-20 { margin-right: 20px !important; }
.mr-25 { margin-right: 25px !important; }
.mr-30 { margin-right: 30px !important; }

.mt-0  { margin-top: 0px !important; }
.mt-5  { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-25 { margin-top: 25px !important; }
.mt-30 { margin-top: 30px !important; }

.bg_img { position: fixed; left: 0; right: 0; top: 0; z-index: -1; width: 100%; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
p, span, a, button {
    margin: 0;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}
.en { }

.cont-box .tit,
.pri_tit {
    display: block;
    text-align: left;
    margin: 30px 0 24px;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.cont-box .tit span,
.pri_tit span { color: #fff; }

.login,
.bigwrap { background-color: #000; }

#wrap {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}
.bigwrap {
    position: relative;
    z-index: 1;
    background-image: url("/mall/my/img/wrapbg.png");
    background-size: cover;
    background-repeat: no-repeat;
}
#wrap .inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 15px 40px;
    min-height: 100vh;
}
#wrap.has-fix-btn .inner { padding-bottom: 90px; }
#wrap .biginner { padding-top: 0px !important; }
.nopadDiv {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.nopadDiv .header {
    padding-left: 15px;
    padding-right: 15px;
}
.contentinner {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.section-h3 {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 8px;
}
.section-h3:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 2px;
    height: 14px;
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    background: linear-gradient(180deg, #26ADFE 0%, #AB28FD 100%);
}

/* ============================================================
   4. HEADER (.header 클래스 전용 - my-header 와 분리)
   ============================================================ */
header.header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
header.header .h-tit {
    text-align: center;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    display: block;
    padding-top: 7px;
}
header.header .h-tit em { color: #fff; }
header.header .h-bg {
    position: absolute;
    top: 15px;
    right: 33px;
    width: 32px;
}
header.header .mh_logo_box { text-align: center; width: 100%; margin-top: 18px; }
header.header .mh_logo_box .h_share_btn { text-align: center; border: 0; background: #000; position: absolute; left: 15px; top: 17px; padding: 7px 10px; border-radius: 7px; }
header.header .mh_logo_box .h_share_btn img { height: 24px; width: 24px; }
header.header .mh_logo_box .h_prev_btn { border: 0; background: #fff0; position: absolute; left: 15px; top: 15px; }
header.header .mh_logo_box .h_prev_btn img { height: 40px; width: 40px; }
header.header .mh_logo_box h1 { font-size: 1.3em; color: #fff; }

.header .eventlink { width: 121px; }
.header .myicon    { width: 26px; }
.header .headinfo {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: -5px;
}
.header .headinfo a { display: block; height: 26px; }
.header .headinfo .iddiv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 26px;
    background: linear-gradient(90deg, #FFFD04 -2.56%, #FEBF07 102.95%);
    border: 1px solid #FBF74E;
    border-radius: 5px;
}
.header .headinfo .iddiv span { font-weight: 600; font-size: 14px; }

/* logo */
.logo.big {
    display: flex;
    align-items: center;
    justify-items: center;
    width: 190px;
    margin: 0 auto;
}
/* back */
.btn-back a {
    position: absolute;
    top: 34px; left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px; height: 23px;
    background-color: #3F4F44;
    border-radius: 100%;
}
.btn-back i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6px; height: 13px;
}

/* ============================================================
   5. FORMS - 신규 디자인
   ============================================================ */
input {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    outline: none;
    border: none;
    font-size: 0.975rem;
    width: 100%;
    color: #d9d9d9;
}
input::placeholder { font-size: 0.975rem; font-weight: 400; color: #7A7B7F; }
input.wht { background-color: #fff; }

.priboinBox {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px !important;
    border: 1px solid rgb(255 191 0 / 64%);
    font-size: 0.975rem;
    font-weight: 400;
    padding-left: 12px;
}
.priboinBox p {
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.975rem !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
}

select {
    width: 100%;
    height: 46px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px !important;
    border: 1px solid rgba(105, 105, 184, 0.64);
    font-size: 14px !important;
    font-weight: 400;
    padding: 0 12px;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('../src/ico/downarrow.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
select:focus { outline: none !important; border: 1px solid rgba(105, 105, 184, 0.64) !important; }
select option { background-color: #000; }

.selectDiv { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   6. FORMS - 레거시 박스 (input_box1~11, select_box1~3)
   ============================================================ */
.warning_info { font-weight: 100; color: #f83b3b; letter-spacing: -1px; font-size: 0.8em; }

.select_box1 { text-align: left; margin-bottom: 30px; }
.select_box1 select { width: 100%; box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); border-radius: 10px; border: 0; padding: 10px 20px; font-size: 1em; }
.select_box1 select option { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: #404142; }
.select_box2 div { display: flex; align-items: center; background: #303841; padding: 10px; border-radius: 30px; margin-bottom: 15px; }
.select_box2 label { display: block; margin: 10px; }
.select_box2 div select { width: 100%; background: #fff0; border-radius: 10px; border: 0; padding: 0 10px; font-size: 1em; }
.select_box2 div select option { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: #404142; }
.select_box3 div { display: flex; align-items: center; background: linear-gradient(338.22deg, #ffffff4d 7.17%, rgba(255,255,255,0) 67.75%), linear-gradient(0deg, rgba(226,152,150,0.6), rgba(226,152,150,0.6)); padding: 10px; border-radius: 20px; margin-bottom: 15px; }
.select_box3 label { display: block; margin: 10px; }
.select_box3 div select { width: 100%; background: #fff0; border-radius: 0; border: 0; padding: 0 5px; font-size: 0.9em; }
.select_box3 div select option { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: #e2989699; }

.input_box1 { text-align: left; margin-bottom: 30px; }
.input_box1 label { display: block; margin: 10px; }
.input_box1 small { margin-left: 10px; color: #ddd; }
.input_box1 div { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); border-radius: 10px; padding: 4px 10px; align-items: center; display: flex; }
.input_box1 div input { width: 100%; background: #fff0; border: 0; padding: 10px; font-size: 1em; }
.input_box1 div input:focus { outline: none; }

.input_box2 { text-align: left; margin-bottom: 30px; }
.input_box2 label { display: block; margin: 10px; }
.input_box2 small { margin-left: 10px; color: #ddd; }
.input_box2 div { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: #303841; border-radius: 25px; padding: 4px 10px; align-items: center; display: flex; }
.input_box2 div input { width: 90%; background: #fff0; border: 0; padding: 10px; font-size: 1em; }
.input_box2 div input:focus { outline: none; }

.input_box3 { text-align: left; margin-bottom: 30px; }
.input_box3 label { display: block; margin: 10px; }
.input_box3 small { margin-left: 10px; color: #ddd; }
.input_box3 div { align-items: center; display: flex; justify-content: space-between; }
.input_box3 div input { width: 60%; box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); border-radius: 10px; border: 0; padding: 10px; font-size: 1em; }
.input_box3 div input:focus { outline: none; }
.input_box3 div button { width: 27%; }

.input_box4 { display: flex; text-align: left; margin-bottom: 30px; background: linear-gradient(338.22deg,#ffffff4d 7.17%,rgba(255,255,255,0) 67.75%),linear-gradient(0deg,rgba(226,152,150,0.6),rgba(226,152,150,0.6)); box-shadow: 0 -11px 20px 0 #FFFFFF26 inset,-4px 4px 20px 0 #9e9e9e70; backdrop-filter: blur(4px); border-radius: 16px; padding: 10px; }
.input_box4 img { width: 45px; height: 45px; }
.input_box4 label { display: block; margin: 0 10px; font-size: 0.9em; }
.input_box4 input { width: 100%; background: #fff0; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box4 input:focus { outline: none; }

.input_box5 { display: flex; margin-bottom: 30px; }
.input_box5 > div { display: flex; text-align: left; background: linear-gradient(338.22deg,#ffffff4d 7.17%,rgba(255,255,255,0) 67.75%),linear-gradient(0deg,rgba(226,152,150,0.6),rgba(226,152,150,0.6)); box-shadow: 0 -11px 20px 0 #FFFFFF26 inset,-4px 4px 20px 0 #9e9e9e70; backdrop-filter: blur(4px); border-radius: 16px; padding: 10px; width: 73%; }
.input_box5 > div img { width: 45px; height: 45px; }
.input_box5 > div label { display: block; margin: 0 10px; font-size: 0.9em; width: 65%; }
.input_box5 > div input { background: #fff0; width: 95%; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box5 > div input:focus { outline: none; }

.input_box7 > div { display: flex; align-items: center; background: #303841; padding: 10px; border-radius: 30px; margin-bottom: 15px; }
.input_box7 > div input { width: 100%; background: #fff0; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box7 > div input:focus { outline: none; }

.input_box8 > div { display: flex; align-items: center; background: #303841; padding: 10px; border-radius: 30px; margin-bottom: 15px; }
.input_box8 > div input { width: 70%; background: #fff0; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box8 > div input:focus { outline: none; }
.input_box8 .search_btn { background: #fff0; border: 0; width: 34px; height: 34px; }
.input_box8 .search_btn img { display: block; width: 100%; height: 100%; }

.input_box9 { display: flex; align-items: center; background: #303841; padding: 10px; border-radius: 30px; margin-bottom: 15px; }
.input_box9 > div { display: flex; justify-content: space-between; margin-left: 12px; }
.input_box9 > div label { font-size: 0.9em; }
.input_box9 > div input { width: 60%; background: #fff0; border: 0; padding: 0 10px; font-size: 0.9em; text-align: right; }
.input_box9 > div input:focus { outline: none; }

.input_box10 { display: flex; text-align: left; margin-bottom: 30px; background: #2c2e2f; backdrop-filter: blur(4px); border-radius: 16px; padding: 10px; }
.input_box10 img { width: 45px; height: 45px; }
.input_box10 label { display: block; margin: 0 10px; font-size: 0.9em; }
.input_box10 input { width: 100%; background: #fff0; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box10 input:focus { outline: none; }

.input_box11 { display: flex; margin-bottom: 30px; }
.input_box11 > div { display: flex; text-align: left; background: #2c2e2f; backdrop-filter: blur(4px); border-radius: 16px; padding: 10px; width: 73%; }
.input_box11 > div img { width: 45px; height: 45px; }
.input_box11 > div label { display: block; margin: 0 10px; font-size: 0.9em; width: 65%; }
.input_box11 > div input { background: #fff0; width: 95%; border: 0; padding: 0 10px; font-size: 0.9em; }
.input_box11 > div input:focus { outline: none; }

.user_amount_box { display: flex; align-items: center; background: #303841; padding: 10px; border-radius: 30px; justify-content: space-between; margin-bottom: 20px; }
.user_amount_box .left_area { align-items: center; display: flex; }
.user_amount_box .left_area span { margin-left: 10px; }
.user_amount_box .right_area small { font-size: 0.5em; }

.user_amount_box2 { display: flex; align-items: center; background: linear-gradient(338.22deg,#ffffff4d 7.17%,rgba(255,255,255,0) 67.75%),linear-gradient(0deg,rgba(226,152,150,0.6),rgba(226,152,150,0.6)); padding: 10px; border-radius: 30px; justify-content: space-between; margin-bottom: 20px; }
.user_amount_box2 .left_area { align-items: center; display: flex; }
.user_amount_box2 .left_area span { margin-left: 10px; }
.user_amount_box2 .right_area small { font-size: 0.5em; }

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-box button,
.btn-box a,
.btn-box form,
.btn-box p {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 8px;
    font-size: 14px;
    background-color: #424652;
}
.btn-box form { background-color: transparent !important; }

.bg-navy { background-color: #547792; color: #fff; }
.bg-blue { background-color: #A27B5C; color: #fff; }
.bg-red  { background-color: #e60012; color: #fff; }

.confibtn {
    color: #fff;
    background: linear-gradient(90deg, #ffde2f -9.92%, #a16c08 108.84%) !important;
}
.bluegribtn {
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #ffde2f -9.92%, #a16c08 108.84%);
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.basic_btn  { font-size: 1em; padding: 10px; border: 0; box-shadow: 0 3px 5px 0 #00000066, 0 1px 0 0 #fffFFF4D inset; background: #8176E3; border-radius: 20px; }
.blank_btn  { border: 0; padding: 10px; background: #fff0; }
.cencel_btn { font-size: 1em; padding: 10px; border: 0; box-shadow: 0 3px 5px 0 #00000066, 0 1px 0 0 #fffFFF4D inset; background: #EBBF2C; border-radius: 20px; }

.tab_link_div { display: flex; align-items: center; gap: 6px; }
.tab_link_div a { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; border-radius: 6px; background-color: #171717; color: #7A7B7F; font-size: 1rem; letter-spacing: -0.5px; }
.tab_link_div a.active { color: #fff; background: linear-gradient(90deg, #ffde2f -9.92%, #a16c08 108.84%); }

.tab_box1 { display: flex; justify-content: space-between; }
.tab_box1 a { padding: 10px; background: #fff; border-radius: 20px; color: #000; text-align: center; }
.tab_box1 a.tab_active { background: #303841; color: #fff; }

.btns_box1 { display: flex; flex-wrap: wrap; justify-content: space-between; text-align: center; margin-bottom: 10px; }
.btns_box1 > div { position: relative; width: calc(100% - 20px); margin: 0 10px; border: 0; padding: 20px; height: 150px; border-radius: 15px; overflow: hidden; }
.btns_box1 > div > img { background: #ffffff6e; backdrop-filter: blur(10px); border-radius: 15px; padding: 10px; margin: 20px; }
.btns_box1 > div .box_top { text-align: left; }
.btns_box1 > div .box_top img { width: 95px; border-radius: 15px; }
.btns_box1 > div .box_top span { display: block; font-size: 1em; color: #fff; }
.btns_box1 > div .box_bottom { display: flex; justify-content: space-between; margin-top: 70px; border-radius: 15px; }
.btns_box1 > div .box_bottom > div { display: flex; width: 80%; background: #fff; backdrop-filter: blur(5px); align-items: center; justify-content: right; padding: 10px; border-radius: 15px; color: #000; }
.btns_box1 > div .box_bottom > div > div { display: flex; align-items: flex-end; }
.btns_box1 > div .box_bottom > div > div span { color: #000; font-size: 0.9em; }
.btns_box1 > div .box_bottom > div > div small { color: #000; font-size: 0.6em; margin-left: 4px; }
.btns_box1 > div .box_bottom > div img { width: 20px; height: 20px; margin-left: 5px; border-radius: 15px; }
.btns_box1 > div .box_bottom .search_btn,
.btns_box1 > div .box_bottom .copy_btn { background: #fff0; border: 0; }
.btns_box1 > div .box_bottom .search_btn img,
.btns_box1 > div .box_bottom .copy_btn img { width: 30px; margin-left: 10px; border-radius: 15px; }

.percent_bar { position: absolute; width: 86%; background: #dddddd47; backdrop-filter: blur(5px); border: 1px solid #ddd; border-radius: 15px; box-shadow: 0 0 10px #fff; bottom: 60px; }
.percent_bar div { position: absolute; height: auto; width: 50%; border-radius: 25px; top: 0; bottom: 0; background: #a4dee4; z-index: -1; }
.percent_bar span { color: #000; }

/* ============================================================
   8. TYPOGRAPHY & COLORS
   ============================================================ */
.point-div { display: flex; align-items: center; gap: 2px; }
.point-color { color: #fff; }
.point-p  { font-size: 15px; background: linear-gradient(90deg, #F5C000 0%, #FA1A2F 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.point-p02{ font-size: 15px; background: linear-gradient(90deg, #DF5DFF 0%, #FA1A2F 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.usd-span { color: #D0D0DB; font-size: 10px; margin-bottom: -2px; }

.redFont    { color: #EA1552 !important; }
.greenFont  { color: #46E663 !important; }
.blueFont   { color: #88E5FF !important; }
.yellowFont { color: #FFB833 !important; }

.purple-box { background-color: #694c9c; color: #fff; border-radius: 20px; }
.blue-box   { background-color: #536ba8; color: #fff; border-radius: 20px; }

/* ============================================================
   9. SEARCH & TABLE
   ============================================================ */
.ico-search-btn {
    width: 16px; height: 16px;
    display: block;
    position: absolute;
    top: 50%; right: 20px;
    background: url('../src/ico/search-ico@2x.png') no-repeat 50% 50% / 16px 16px;
    transform: translateY(-50%);
}
.search-box { width: 100%; }
.search-box .date_wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.search-box .date { display: flex; align-items: center; gap: 4px; }
.dateinputbox { position: relative; }
.dateinputbox .dateicon { position: absolute; left: 10px; top: 47%; transform: translateY(-50%); }
.search-box .date input { background-color: rgba(0,0,0,0.66); border: 1px solid #474747; border-radius: 8px; font-size: 12px; padding: 0 28px; padding-right: 10px; height: 36px; width: 125px; }
.search-box .date > span { font-size: 12px; color: #fff; font-weight: 500; }
.search-box .text-search-btn { width: calc(100% - 262px); height: 36px; font-size: 14px; font-weight: 500; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(180deg, #FDC602 0%, #FD9A03 100%); border: 1px solid #FFF79D; }

.nodataDiv { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 80px; }
.nodataDiv p { font-size: 16px; font-weight: 500; }

.balance-table-wrap {
    margin-top: 12px;
    background-image: url("/img/tableBg.png");
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 10px 34.2px 4px rgba(255,255,255,0.20);
    border-radius: 8px;
    width: 100%;
    height: 330px;
    padding: 15px;
    overflow: hidden;
}
.balance-table-wrap .pg_wrap { display: none; }
.balance-table-wrap * { color: #fff; }
.balance-table-wrap table { width: 100%; }
.balance-table-wrap th { font-size: 13px; font-weight: 400; text-align: center; width: 33.3333%; height: 34px; color: #CCCCCE; }
.balance-table-wrap th:nth-child(1), .balance-table-wrap td:nth-child(1) { text-align: left; }
.balance-table-wrap th:nth-child(2), .balance-table-wrap td:nth-child(2) { text-align: center; }
.balance-table-wrap th:nth-child(3), .balance-table-wrap td:nth-child(3) { text-align: right; }
.balance-table-wrap td { font-size: 12px; text-align: center; width: 33.3333%; height: 30px; }
.balance-table-wrap .table-body-wrap { height: calc(100% - 26px); overflow: hidden; overflow-y: auto; }

.icon-box { display: flex; align-items: center; justify-content: center; }
.deposiltTit-ico, .deposiltTit02-ico { width: 18px; }
.coinicon  { width: 16px; }
.dateicon  { width: 14px; }

.list-wrapper ul li.navy-box { position: relative; display: flex; align-items: center; min-height: 42px; padding: 12px 90px 12px 14px; }
.list-wrapper ul li .list-tit,
.list-wrapper ul li .list-tit em,
.list-wrapper ul li .list-tit span { color: #fff; }

.pg_wrap { margin-top: 15px; text-align: center; }
.pg_current { padding: 3px 10px; border-radius: 5px; margin: 0 6px; background: #00000096; }
.pg_page    { padding: 3px 10px; background: #0000002b; border-radius: 5px; margin: 0 6px; }

.loading_page { display: block; z-index: 9999; position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: #ffffffa8; backdrop-filter: blur(10px); margin: auto; }
.loading_page img { position: fixed; left: 0; right: 0; top: 0; bottom: 0; margin: auto; }

.table_box1 { position: absolute; left: 0; right: 0; bottom: 0; top: 25%; background: #ffffff94; backdrop-filter: blur(10px); padding: 20px; border-radius: 20px 20px 0 0; }
.table_box1 .table_title { text-align: left; margin-left: 10px; margin-bottom: 15px; }
.table_box1 > div { background: #fff0; border-radius: 5px; }
.table_box1 > div table { width: 100%; border-collapse: collapse; }
.table_box1 > div table tr th { padding: 8px 10px; border-bottom: 1px solid #717171; font-size: 0.8em; color: #000; }
.table_box1 > div table tr td { padding: 5px; font-weight: 300; font-size: 0.8em; color: #000; }

.table_box2 { padding: 20px; border-radius: 20px 20px 0 0; max-height: 200px; overflow: auto; }
.table_box2 table { width: 100%; border-collapse: collapse; }
.table_box2 table tr th { padding: 8px 10px; border-bottom: 1px solid #717171; font-size: 0.8em; color: #fff; }
.table_box2 table tr td { padding: 5px; font-weight: 300; font-size: 0.8em; color: #fff; }

/* ============================================================
   10. BOTTOM NAV & MENU
   ============================================================ */
#bottom-fix-btn {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: 48px;
    z-index: 20;
    background-color: #0B0B19;
    box-shadow: 0 0 8.6px 1px rgba(255,241,49,0.92);
    border-radius: 50px;
}
#bottom-fix-btn ul { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: space-around; padding: 8px 8px 0; }
#bottom-fix-btn ul li { width: calc(100% / 6); height: 100%; }
#bottom-fix-btn ul li a { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; height: 100%; }
#bottom-fix-btn ul li i { display: flex; align-items: center; justify-content: center; height: 18px; }
#bottom-fix-btn ul li:nth-child(1) i { width: 20px; }
#bottom-fix-btn ul li:nth-child(2) i { width: 18px; }
#bottom-fix-btn ul li:nth-child(3) i { width: 19px; }
#bottom-fix-btn ul li:nth-child(4) i { width: 22px; }
#bottom-fix-btn ul li:nth-child(5) i { width: 17px; }
#bottom-fix-btn ul li span { font-size: 9px; color: #E6E6E7; }
#bottom-fix-btn ul li span em { color: #fff; }
#bottom-fix-btn ul li.active span,
#bottom-fix-btn ul li.active span em { color: #547792; }

/* 사이드 메뉴 */
#menucont { border: none; background-color: rgba(0,0,0,0.88); }
#menucont .offcanvas-body { padding-top: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 80px; }
#menucont .modalLogoDiv { display: flex; justify-content: center; margin-top: -20px; }
#menucont .modalLogo { width: 160px; }
#menucont .menulistUl { width: 90%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0; }
#menucont .menulistUl li { padding: 16px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.22); }
#menucont .menulistUl li a .bip { font-size: 1.375rem; font-weight: 500; color: #fff; text-align: center; margin-bottom: 3px; }
#menucont .menulistUl li a .smp { text-align: center; font-size: 0.75rem; color: #ffbf00; font-weight: 300; margin-bottom: 0 !important; }
.closebtn { position: absolute; right: 15px; top: 20px; }
.closebtn img { width: 15px; }
.logoutlink { display: flex; align-items: center; gap: 4px; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); }
.logoutlink .logouticon { width: 24px; }
.logoutlink span { color: #C5C7CA; font-size: 0.875rem; font-weight: 300; }

/* 햄버거 메뉴 버튼 */
.menu_btn { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: #fff0; border: 0; border-radius: 8px; z-index: 1; }
.menu_btn img { margin-top: 2px; }
header.header .menu .m_menu_box { display: none; position: fixed; top: 58px; right: 2%; width: 50%; padding: 10px; border-radius: 10px; backdrop-filter: blur(5px); z-index: 10; }
header.header .menu .m_menu_box .menu_list { font-size: 1em; box-shadow: inset 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); padding: 8px; border-radius: 5px; margin-bottom: 4px; }
header.header .menu .m_menu_box .s_menu_d { display: block; width: 100%; font-size: 1em; }
header.header .menu .m_menu_box ul { display: none; margin-top: 15px; }
header.header .menu .m_menu_box ul li { font-size: 1em !important; margin-left: 10px; }

/* ============================================================
   11. FORM ELEMENTS - CHECKS, TABS, RADIO
   ============================================================ */
.form-check { display: flex !important; align-items: center; justify-content: space-between; margin-top: 15px; }
.form-check .left { display: flex; align-items: center; gap: 9px; }
.form-check .arbtn { margin-bottom: -7px; }
.form-check-input { width: 20px !important; height: 20px !important; background-color: #080808 !important; border: 1px solid rgba(105,105,184,0.64) !important; border-radius: 6px !important; }
.form-check-input:checked { background-color: #8181F4 !important; border-color: #8181F4 !important; }
.form-check-label { color: #D0D0DB; font-size: 14px; margin-bottom: -3px !important; font-weight: 300; }
.form-check-label span { color: #8181F4; font-weight: 300; }
.info_agree_div .rightArrow { width: 8px; }
.info_agree_div .borderdiv { width: 100%; height: 1px; background: rgba(66,66,68,0.5); margin-top: 20px; }

.minitabDiv ul { display: flex; align-items: center; padding-left: 0; gap: 5px; }
.minitabDiv ul li a { display: flex; align-items: center; justify-content: center; height: 26px; border-radius: 6px; padding: 0 16px; font-size: 13px; color: #fff; background: rgba(0,13,31,0.66); }

.radio-button-group-li { padding: 0 !important; }
.radio-button-group { width: 100%; display: flex; align-items: center; gap: 6px; }
.radio-button-group input[type="radio"] { display: none; }
.radio-button-group label { position: relative; width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50px; cursor: pointer; background-color: #171717; color: #7A7B7F; }
.radio-button-group label:after { content: ""; display: block; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background-image: url("../src/ico/radeocheck-no.png"); background-size: cover; background-repeat: no-repeat; }
.radio-button-group input[type="radio"]:checked + label { background: linear-gradient(90deg, #2FCBFF -9.92%, #B826FD 108.84%) !important; color: #fff; }
.radio-button-group input[type="radio"]:checked + label:after { background-image: url("../src/ico/radeocheck-on.png"); }

/* ============================================================
   12. COMPONENTS - BOXES, CALCULATOR, CALENDAR
   ============================================================ */
.basic_box { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: #ffffff78; border-radius: 20px 20px 0 0; backdrop-filter: blur(10px); text-align: center; }

.box_type2 { display: flex; justify-content: space-between; background: linear-gradient(180deg,#2C2E2F 0%,#404142 100%); border: 0; box-shadow: 0 1px 0 0 #FFFFFF4D, 0 2px 3px 0 #00000080 inset; padding: 15px; border-radius: 10px; align-items: center; margin-bottom: 25px; }
.box_type2 .left_area { display: flex; align-items: center; }
.box_type2 .left_area span { margin-left: 15px; }
.box_type2 .right_area { font-size: 1.4em; font-weight: bold; }

.box_type1 { position: relative; background: #b3b3b3; background-size: cover; border: 0; padding: 15px; align-items: center; margin-bottom: 25px; height: 690px; }
.box_type1 .left_area { display: flex; align-items: center; }
.box_type1 .left_area div { margin-left: 15px; }
.box_type1 .main_info { position: absolute; right: 15px; top: 62px; text-align: right; }
.box_type1 .main_info > div { display: flex; justify-content: right; }
.box_type1 .main_info > div span { margin-right: 10px; font-size: 1.2em; letter-spacing: 4px; }
.box_type1 .tether_box { position: absolute; background: #F4B7A8; padding: 16px; border-radius: 20px; bottom: 20px; right: 20px; width: 80%; }
.box_type1 .tether_box img { width: 40px; }
.box_type1 .tether_box > div { text-align: right; display: flex; justify-content: space-between; align-items: center; }
.box_type1 .tether_box > div > div { display: flex; align-items: center; }
.box_type1 .tether_box > div h3 { font-size: 1.2em; color: #000; }
.box_type1 .tether_box > div span { display: block; font-size: 1em; margin-left: 10px; color: #000; }

.warnConbox { background-color: #171717; border-radius: 6px; padding: 15px 12px; }
.warnConbox ul { margin-bottom: 0 !important; }
.warnConbox ul li { font-size: 11px; color: #D0D0DB; font-weight: 300; margin-top: 10px; }
.warnConbox ul li:nth-child(1) { margin-top: 0; }

.h3div { display: flex; align-items: center; gap: 6px; }
.h3div h3 { margin-bottom: 0 !important; }
.h3div img { width: 16px; }

.calculator_box { width: 100%; padding: 20px 15px; background: rgba(0,0,0,0.66); border-bottom: 1px solid rgba(169,73,253,0.56); box-shadow: 0 4px 4px rgba(0,0,0,0.25); border-radius: 8px; }
.calculator_box .calcula_flex { display: flex; align-items: center; justify-content: space-between; }
.calculator_box .calcula_flex .tispan { font-size: 13px; font-weight: 500; color: #88858D; }
.calculator_box .calcula_flex .right span:nth-child(1) { font-size: 14px; color: #fff; font-weight: 600; }
.calculator_box .calcula_flex .right span:nth-child(2) { font-size: 12px; color: #D0D0DB; }
.calculator_box .bar { width: 100%; height: 1px; background-color: rgba(255,255,255,0.25); margin: 12px 0; }
.calculator_box .mtflex { margin-top: 10px; }

.calender-div { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 15px; }
.calender-div .todayDdate { font-size: 20px; font-weight: 600; color: #fff; }
.calender-div button img { width: 22px; height: 22px; }
.calender-div .calenderbtndiv { display: flex; align-items: center; gap: 8px; }
.calenderTable { width: 100%; table-layout: fixed; }
.calenderTable .calender-head { background-color: #191919; }
.calenderTable .calender-head > div,
.calenderTable .calender-body > div { display: flex; align-items: center; flex-wrap: wrap; }
.calenderTable .calender-head .calender-box { width: calc(100%/7); text-align: center; font-size: 12px; color: #fff; padding: 10px 0; }
.calenderTable .calender-head .calender-box.todayth { color: #00BFFF; }
.calenderTable .calender-body .calender-box { width: calc(100%/7); position: relative; height: 54px; border: 1px solid #2C2C2C; }
.calenderTable .calender-body .calender-box.redtd   { background: linear-gradient(180deg, #1C1C1C 0%, #301414 100%); }
.calenderTable .calender-body .calender-box.greentd { background: linear-gradient(180deg, #1C1C1C 0%, #113A3F 100%); }
.calenderTable .calender-body .calender-box .daySpan { position: absolute; top: 4px; left: 4px; color: #E5E5E5; font-size: 10px; }
.calenderTable .calender-body .calender-box .usdSpan { font-size: 11px; position: absolute; bottom: 4px; right: 4px; }

.prima-Modalbox { padding: 30px 0; background-image: url("/img/tableBg.png"); background-repeat: no-repeat; background-size: cover; box-shadow: inset 0 4px 35.2px 2px rgba(255,255,255,0.35); border-top-left-radius: 20px; border-top-right-radius: 20px; border-top: none !important; }
.prima-Modalbox .offcanvas-body { padding-top: 50px; }
.prima-Modalbox .offcanvas-body .btndiv { position: absolute; width: 92%; left: 50%; transform: translateX(-50%); bottom: 30px; display: flex; align-items: center; gap: 6px; }
.prima-Modalbox .offcanvas-body .btndiv button { width: 100%; height: 46px; border-radius: 6px; font-size: 16px; color: #fff; font-weight: 400; background-color: rgba(255,255,255,0.38); }
.prima-Modalbox .offcanvas-body .co_p { font-size: 20px; line-height: 30px; color: #fff; font-weight: 400; max-width: 80%; word-break: keep-all; margin: 0 auto; text-align: center; }
.choiceUdt { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 90px; }

.overdiv { overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; }
.overdiv::-webkit-scrollbar { display: none; }

/* ============================================================
   13. STAKING
   ============================================================ */
.staking_box { position: absolute; left: 0; right: 0; bottom: 0; top: 120px; padding: 30px 15px; background: none; border-radius: 20px 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; box-sizing: border-box; }
.staking_box > div { position: relative; width: 100%; border: 0; padding: 10px; border-radius: 20px; height: 180px; box-sizing: border-box; background: none; }
.staking_box > div .box_top { text-align: left; }
.staking_box > div .box_top img { width: 95px; }
.staking_box > div .box_top span { display: block; font-size: 1.2em; margin-bottom: -20px; margin-left: 10px; color: #fff; }
.staking_box > div .box_bottom { display: flex; justify-content: space-between; margin-top: 20px; align-items: center; }
.staking_box > div .box_bottom > div { display: flex; width: 80%; background: none; align-items: center; justify-content: center; padding: 10px; border-radius: 20px; text-align: center; }
.staking_box > div .box_bottom > div > div { display: flex; align-items: flex-end; }
.staking_box > div .box_bottom > div > div span { color: #fff; font-size: 1em; }
.staking_box > div .box_bottom > div > div small { color: #fff; font-size: 0.8em; margin-left: 4px; line-height: 21px; }
.staking_box > div .box_bottom > div img { width: 20px; height: 20px; margin-left: 5px; }
.staking_box > div .box_bottom .search_btn,
.staking_box > div .box_bottom .copy_btn { background: none; border: 0; }
.staking_box > div .box_bottom .search_btn img,
.staking_box > div .box_bottom .copy_btn img { width: 30px; margin-left: 3px; }

.staking_info_img { position: fixed; z-index: -1; left: 0; right: 0; top: 0; width: 100%; }
.staking_info_box { position: fixed; bottom: 0; left: 0; right: 0; background: #00000096; backdrop-filter: blur(5px); padding: 20px; border-radius: 20px 20px 0 0; }
.staking_info_box .staking_name { position: absolute; top: -50px; right: 20px; text-align: right; }
.staking_info_box .staking_name img { display: block; width: 120px; }
.staking_info_box .staking_info { background: #fff; padding: 12px 20px; border-radius: 20px; margin-bottom: 15px; }
.staking_info_box .staking_info .staking_price_num_box { display: flex; }
.staking_info_box .staking_info .staking_price_num_box > img { width: 35px; border-radius: 8px; }
.staking_info_box .staking_info .staking_price_num_box > div { margin-left: 15px; }
.staking_info_box .staking_price_box { display: flex; justify-content: space-between; }
.staking_info_box .staking_price_box > span { color: #aaa; font-weight: 100; font-size: 0.9em; align-self: flex-end; }
.staking_info_box .staking_price_box .staking_price { font-size: 2em; color: #000; }
.staking_info_box .staking_buy_info_box { background: #ffffff8c; padding: 15px; border-radius: 20px; }
.staking_info_box .staking_buy_info_box h3 { font-size: 0.8em; font-weight: 100; text-align: center; color: #000; margin-bottom: 20px; }
.staking_info_box .staking_buy_info_box .buy_info { display: flex; justify-content: space-between; margin-bottom: 15px; }
.staking_info_box .staking_buy_info_box .buy_info span { color: #696969; }
.staking_info_box .staking_buy_info_box .buy_address_box { margin: 20px 0; }
.staking_info_box .staking_buy_info_box .buy_btns { display: flex; justify-content: space-between; }

.staking_1000_type_box { display: flex; justify-content: space-between; margin-bottom: 15px; }
.staking_1000_type_box > div { display: flex; justify-content: space-between; width: 26%; background: #676767; padding: 10px; border-radius: 10px; }
.staking_1000_type_box > div span { display: block; text-align: right; font-size: 0.8em; }

.user_nft_list { overflow: auto; margin-bottom: 20px; margin-top: 20px; height: 170px; }
.user_nft_list .no_nft { margin: auto; color: #000; background: #ffffff94; backdrop-filter: blur(10px); padding: 20px; border-radius: 25px; }
.user_nft_list .nft_info_box { background: #fff; border-radius: 20px; padding: 15px; min-width: 115px; }
.user_nft_list .nft_info_box .nft_profit { display: flex; justify-content: space-between; margin: 0 25px; }
.user_nft_list .nft_info_box .nft_profit span { color: #000; font-family: 'Bungee Inline', sans-serif; -webkit-text-fill-color: #E2B017; -webkit-text-stroke: 0.5px #000; font-size: 18px; }
.user_nft_list .nft_info_box .nft_price { display: flex; margin-bottom: 0; align-items: center; place-content: center; text-align: center; }
.user_nft_list .nft_info_box .nft_price span { color: #000; font-size: 1.3em; margin-bottom: 4px; }

/* ============================================================
   14. MARKETING
   ============================================================ */
.mega_info_box { position: relative; background: linear-gradient(180deg,#2C2E2F 0%,#404142 100%); box-shadow: 0 1px 0 0 #FFFFFF4D, 0 2px 3px 0 #00000080 inset; border: 0; border-radius: 7px; padding: 20px; font-weight: 300; font-size: 0.9em; text-align: center; margin-top: 50px; }
.mega_info_box .mega_box_title { background: linear-gradient(180deg,#414344 0%,#2B2D2E 100%); box-shadow: 0 0 4px 0 #92D300; border: 2px solid #E0F97D; width: 30%; position: absolute; top: -20px; left: 0; right: 0; margin: auto; padding: 10px; border-radius: 10px; }
.mega_pay_link { display: block; margin: 50px auto; background: linear-gradient(180deg,#414344 0%,#2B2D2E 100%); box-shadow: 0 1px 0 0 #FFFFFF4D inset, 0 3px 5px 0 #00000066; border: 0; border-radius: 7px; padding: 10px; width: 50%; }

.marketing_info_box { background: #e3e3e3b0; color: #000; border-radius: 10px; border: 0; margin: 15px 0; padding: 15px; text-align: center; }
.marketing_info_box h3, .marketing_info_box span { color: #000; }
.marketing_select div { display: flex; align-items: center; box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); padding: 10px; border-radius: 20px; margin-bottom: 15px; }
.marketing_select label { display: block; margin: 10px; }
.marketing_select div select { width: 100%; background: #fff0; border-radius: 0; border: 0; padding: 0; font-size: 0.9em; }
.marketing_amount_box { display: flex; align-items: center; box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); padding: 10px; border-radius: 30px; justify-content: space-between; margin-bottom: 20px; }
.marketing_input_box { text-align: left; margin-bottom: 30px; }
.marketing_input_box label { display: block; margin: 5px; font-size: 0.9em; }
.marketing_input_box div { box-shadow: 0 1px 0 0 #fffFFF4D, 0 2px 3px 0 #00000080 inset; background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); border-radius: 20px; padding: 0 10px; align-items: center; display: flex; }
.marketing_input_box div input { width: 100%; background: #fff0; border: 0; padding: 10px; font-size: 1em; text-align: right; }
.marketing_input_box div input:focus { outline: none; }
.marketing_main_box { padding: 12px; background: #e3e3e3b0; border-radius: 15px; }
.marketing_select_box { display: flex; justify-content: space-between; text-align: center; }
.marketing_select_box > div { background: linear-gradient(180deg,#2c2e2f 0,#404142 100%); padding: 15px; border-radius: 15px; width: 38%; text-align: center; }
.marketing_select_box > div:hover,
.marketing_select_box .active { background: linear-gradient(180deg,#22bb57 0,#2b924f 100%); }
.marketing_tab_box { display: flex; justify-content: space-between; margin-bottom: 20px; }
.marketing_tab_box button { width: 35%; padding: 10px; border: 0; background: #747474; border-radius: 15px; }
.marketing_tab_box .active { background: linear-gradient(180deg,#3cae2c,#29884b); }

/* ============================================================
   15. MISC
   ============================================================ */
@media screen and (min-width: 769px) {
    .balance-table-wrap .table-body-wrap {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .balance-table-wrap .table-body-wrap::-webkit-scrollbar { display: none; }
}

/* ============================================================
   TOP-HEADER (header_top.php 전용 - my-tree-page 등 충돌 방지)
   ============================================================ */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: #0f0c08;
    background-image: linear-gradient(180deg, rgba(15,12,8,0.96) 0%, rgba(10,8,5,0.94) 100%);
    -webkit-backdrop-filter: var(--my-glass-blur);
    backdrop-filter: var(--my-glass-blur);
    border-bottom: 1px solid var(--my-border);
}
.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: var(--my-content-max);
    margin: 0 auto;
    padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-y) max(var(--my-page-pad), env(safe-area-inset-left, 0px));
}
/* ── 언어 선택 글자 잘림 수정 ── */
.my-login-lang {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 15px !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
/* ── 입력 박스 가시성 개선 ── */
.my-login-input {
  background: rgba(255,255,255,0.13) !important;
  border: 1.5px solid rgba(80,160,255,0.55) !important;
  color: #fff !important;
}
.my-login-input::placeholder {
  color: rgba(255,255,255,0.65) !important;
}
.my-login-input:focus {
  border-color: #4fa8ff !important;
  background: rgb(0 194 255 / 24%) !important;
  box-shadow: 0 0 0 3px rgba(80,160,255,0.18) !important;
}
@media (max-width: 768px) {
    .top-header-inner { padding: 15px 20px; }
}

:root {
  --my-bg: #030303;
  --my-surface: rgba(20, 16, 10, 0.82);
  --my-surface2: rgba(26, 20, 12, 0.86);
  --my-border: rgba(245, 213, 71, 0.14);
  --my-text: #e8edf7;
  --my-muted: #8b9bb8;
  --my-accent: #e8b923;
  --my-accent2: #00d4aa;
  --my-gold: #f0b429;
  --my-danger: #ff5c6c;
  --my-radius: 12px;
  --my-nav-h: 64px;
  --my-header-h: 110px;
  --my-glass-blur: blur(10px);
  --my-bg-base: #050505;
  --my-bg-mid: #04060a;
  --my-bg-deep: #05080d;
  --my-bg-fade: rgba(5, 5, 5, 0);
  --my-content-max: 480px;
  --my-page-pad: 16px;
  --my-page-pad-y: 12px;
  --my-page-pad-bottom: 16px;
  --my-sidebar-w: 0px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  background: #050505;
}
html, body { margin: 0; padding: 0; }
body.my-app {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background-color: var(--my-bg);
  background: var(--my-bg);
  color: var(--my-text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px) + var(--my-page-pad-bottom));
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}
body.my-app.no-nav {
  padding-bottom: max(var(--my-page-pad-bottom), env(safe-area-inset-bottom, 0px));
}

/* ===== Particle Network 배경 ===== */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

.my-header-lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.my-lang-select--compact {
  min-width: 58px;
  width: auto;
  height: 28px;
  padding: 0 22px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--my-muted);
  background: rgba(15, 12, 8, 0.85);
  border: 1px solid rgba(245, 213, 71, 0.2);
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23c9a227' d='M0 0l4 5 4-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  backdrop-filter: var(--my-glass-blur);
  -webkit-backdrop-filter: var(--my-glass-blur);
}
.my-lang-select--compact option {
  background: #121a2b;
  color: var(--my-text);
  font-size: 12px;
}

.my-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #0f0c08;
  background-image: linear-gradient(180deg, rgba(15, 12, 8, 0.96) 0%, rgba(10, 8, 5, 0.94) 100%);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border-bottom: 1px solid var(--my-border);
}
.my-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-y) max(var(--my-page-pad), env(safe-area-inset-left, 0px));
}
.my-logo {
  font-weight: 700;
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.04em;
  color: var(--my-accent2);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  flex-shrink: 0;
}
.my-btn-text {
  color: var(--my-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.my-coin-tabs {
  display: flex;
  gap: 8px;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: 0 var(--my-page-pad) var(--my-page-pad-y);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.my-coin-tabs::-webkit-scrollbar { display: none; }
.my-coin-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--my-surface);
  color: var(--my-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.my-coin-tab.is-active {
  background: var(--my-accent);
  color: #fff;
}
.my-rate-bar {
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: 0 var(--my-page-pad) var(--my-page-pad-y);
  font-size: 11px;
  color: var(--my-muted);
}

.my-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-bottom);
}

.my-user-card {
  background-color: rgba(20, 16, 10, 0.92);
  background: var(--my-surface);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.my-user-card-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--my-surface2);
}
.my-badge {
  background: var(--my-gold);
  color: #1a1200;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.my-promo-img {
  font-size: 12px;
  color: var(--my-muted);
}
.my-user-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px;
  text-align: center;
}
.my-user-rank strong { color: var(--my-gold); font-size: 18px; display: block; }
.my-rank-label, .my-plb-label { font-size: 11px; color: var(--my-muted); display: block; }
.my-user-plb strong { color: var(--my-accent2); font-size: 14px; display: block; }

.my-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.my-mini-table th, .my-mini-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--my-border);
  text-align: left;
}
.my-mini-table th { color: var(--my-muted); font-weight: 500; }

.my-section-title {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  margin: 0 0 12px;
}
.my-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.my-product-card {
  display: block;
  background-color: rgba(20, 16, 10, 0.92);
  background: var(--my-surface);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.my-product-card:hover, .my-product-card.is-selected {
  border-color: var(--my-accent);
}
.my-product-card strong { font-size: 18px; display: block; margin-bottom: 4px; }
.my-product-card span { font-size: 13px; color: var(--my-accent2); }

.my-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--my-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.my-btn-primary { background: var(--my-accent); color: #fff; }
.my-btn-secondary { background: var(--my-surface2); color: var(--my-text); border: 1px solid var(--my-border); }
.my-btn-outline { background: transparent; color: var(--my-muted); border: 1px solid var(--my-border); }
.my-btn + .my-btn { margin-top: 10px; }

.my-form-group { margin-bottom: 14px; }
.my-form-group label {
  display: block;
  font-size: 12px;
  color: var(--my-muted);
  margin-bottom: 6px;
}
.my-input, .my-select, .my-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--my-border);
  background: var(--my-surface);
  color: var(--my-text);
  font-size: 15px;
}
.my-textarea { min-height: 120px; resize: vertical; }

.my-plb-summary {
  background: var(--my-surface2);
  border-radius: var(--my-radius);
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}
.my-plb-summary .amount { font-size: 22px; font-weight: 700; color: var(--my-accent2); }
.my-plb-summary .sub { font-size: 13px; color: var(--my-muted); margin-top: 4px; }

.my-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.my-tabs::-webkit-scrollbar { display: none; }
.my-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--my-surface);
  color: var(--my-muted);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--my-border);
}
.my-tab.is-active {
  background: var(--my-accent);
  color: #fff;
  border-color: var(--my-accent);
}

.my-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--my-surface);
  border-radius: var(--my-radius);
  overflow: hidden;
}
.my-data-table th, .my-data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--my-border);
  text-align: left;
}
.my-data-table th { background: var(--my-surface2); color: var(--my-muted); font-weight: 500; }
.my-empty { text-align: center; padding: 40px 16px; color: var(--my-muted); }

.my-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  border-radius: var(--my-radius);
}
.my-table-wrap--mini { margin-bottom: 0; }
.my-data-table { min-width: 280px; }
.my-mini-table { min-width: 260px; }

.my-deposit-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.my-deposit-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  color: var(--my-muted);
  cursor: pointer;
  font-weight: 600;
}
.my-deposit-tab.is-active {
  border-color: var(--my-accent2);
  color: var(--my-accent2);
}
.my-deposit-panel { display: none; }
.my-deposit-panel.is-active { display: block; }

.my-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.my-modal-overlay.is-open { display: flex; }
.my-modal {
  background: var(--my-surface);
  border-radius: var(--my-radius);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--my-border);
}
.my-modal h3 { margin: 0 0 12px; font-size: 17px; }
.my-modal p { color: var(--my-muted); font-size: 14px; margin: 0 0 20px; }
.my-modal-actions { display: flex; gap: 10px; }
.my-modal-actions .my-btn { flex: 1; margin: 0; }

.my-terms-box {
  height: 220px;
  overflow-y: auto;
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--my-muted);
  margin-bottom: 12px;
}
.my-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.my-check-row input { margin-top: 3px; }
.my-check-row.is-disabled { opacity: 0.45; pointer-events: none; }

.my-wallet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.my-stat-box {
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.my-stat-box .label { font-size: 11px; color: var(--my-muted); }
.my-stat-box .value { font-size: 16px; font-weight: 700; margin-top: 4px; }

.my-menu-list { list-style: none; padding: 0; margin: 0; }
.my-menu-list li { border-bottom: 1px solid var(--my-border); }
.my-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  color: var(--my-text);
  text-decoration: none;
  font-size: 15px;
}
.my-menu-list a::after { content: '›'; color: var(--my-muted); }

.my-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(0px, calc((100% - var(--my-content-max)) / 2));
  padding-right: max(0px, calc((100% - var(--my-content-max)) / 2));
  background-color: rgba(15, 12, 8, 0.96);
  background-image: linear-gradient(180deg, rgba(15, 12, 8, 0.98) 0%, rgba(10, 8, 5, 0.96) 100%);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border-top: 1px solid var(--my-border);
  display: flex;
  z-index: 90;
}
.my-nav-item * { color: inherit; }
.my-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--my-muted);
  font-size: clamp(9px, 2.5vw, 10px);
  gap: 2px;
  min-height: 44px;
  padding: 4px 2px;
}
.my-nav-item.is-active { color: var(--my-accent2); }
.my-nav-icon { font-size: 18px; flex-shrink: 0; }
.my-nav-icon img { width: 28px; height: 28px; object-fit: contain; }
.my-nav-label { line-height: 1.2; }

.my-tree-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  background: #fff;
}

.my-login-wrap {
  max-width: 400px;
  margin: 40px auto;
  padding: 24px;
}
.my-login-wrap .my-logo {
  display: block;
  text-align: center;
  font-size: 20px;
  margin-bottom: 32px;
}

/* ===== 반응형 ===== */
@media (min-width: 360px) {
  .my-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 359px) {
  .my-user-card-body {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px;
  }
  .my-user-plb { grid-column: 1 / -1; }
  .my-user-rank strong { font-size: 16px; }
  .my-deposit-tabs { flex-direction: column; }
  .my-wallet-stats { grid-template-columns: 1fr; }
  .my-modal-overlay { padding: 12px; }
  .my-data-table { font-size: 12px; }
  .my-data-table th,
  .my-data-table td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .my-btn,
  .my-input,
  .my-select,
  .my-textarea { font-size: 16px; }
}

@media (min-width: 481px) {
  :root {
    --my-content-max: 520px;
    --my-page-pad: 20px;
    --my-page-pad-y: 16px;
  }
}

@media (min-width: 768px) {
  :root { --my-content-max: 720px; }
  .my-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .my-header,
  .my-main,
  .my-bottom-nav {
    box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.06);
  }
  .my-plb-summary .amount { font-size: 26px; }
  .my-section-title { font-size: 20px; }
}

/* ===== PC (1024px+) — 좌측 사이드바 + 넓은 콘텐츠 ===== */
@media (min-width: 1024px) {
  :root {
    --my-content-max: none;
    --my-page-pad: 10px;
    --my-page-pad-y: 10px;
    --my-sidebar-w: 220px;
    --my-nav-h: 52px;
    --my-header-h: 72px;
  }

  body.my-app:not(.no-nav) {
    padding-bottom: var(--my-page-pad-bottom);
    padding-left: var(--my-sidebar-w);
  }

  body.my-app:not(.no-nav)::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 1px 0 0 rgba(245, 213, 71, 0.08);
  }

  .my-header {
    position: sticky;
    top: 0;
    width: auto;
    max-width: none;
    margin: 0;
    border-bottom: 1px solid var(--my-border);
    box-shadow: none;
  }

  .my-header-top,
  .my-coin-tabs,
  .my-rate-bar {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .my-header-top {
    padding: 16px var(--my-page-pad) 10px var(--my-page-pad);
  }

  body.my-tree-page .my-header-top {
    padding: 1px var(--my-page-pad) 1px var(--my-page-pad);
  }

  body.my-tree-page .my-coin-tabs {
    padding: 0 var(--my-page-pad) 1px;
  }

  body.my-tree-page .my-rate-bar {
    padding: 0 var(--my-page-pad) 1px;
  }

  .my-logo { font-size: 16px; }
  .my-btn-text { font-size: 13px; }
  .my-btn-text:hover { color: var(--my-accent); }

  .my-coin-tabs { overflow: visible; }
  .my-coin-tab { max-width: 120px; }
  .my-coin-tab:hover {
    border: 1px solid rgba(245, 213, 71, 0.25);
    color: var(--my-text);
  }

  .my-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-bottom);
  }

  .my-bottom-nav {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    transform: none;
    width: var(--my-sidebar-w);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 24px 12px 20px;
    border-top: none;
    border-right: 1px solid var(--my-border);
    box-shadow: none;
  }

  .my-bottom-nav::before {
    content: 'PLBPLAN';
    display: block;
    /* padding: 8px 12px 20px; */
    padding: -2px 12px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--my-accent);
    border-bottom: 1px solid var(--my-border);
    margin-bottom: 12px;
  }

  .my-nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
  }

  .my-nav-item:hover {
    background: rgba(245, 213, 71, 0.08);
    color: var(--my-text);
  }

  .my-nav-item.is-active {
    background: rgba(232, 185, 35, 0.14);
    color: var(--my-accent);
  }

  .my-nav-icon { font-size: 16px; width: 22px; text-align: center; }

  .my-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .my-product-card { transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }

  .my-btn {
    max-width: 420px;
  }

  .my-main > form .my-btn,
  .my-main > form .my-btn-primary,
  .my-main > form .my-btn-secondary {
    max-width: none;
  }

  .my-wallet-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .my-tabs { flex-wrap: wrap; overflow: visible; }
  .my-tab:hover { color: var(--my-text); border-color: rgba(245, 213, 71, 0.35); }

  .my-menu-list a {
    padding: 18px 12px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .my-menu-list a:hover { background: rgba(245, 213, 71, 0.06); }
  .my-menu-list li { border-bottom: none; margin-bottom: 4px; }

  .my-data-table { font-size: 14px; }
  .my-data-table th,
  .my-data-table td { padding: 12px 14px; }

  .my-modal { max-width: 420px; }
}

/* ===== 대형 PC (1280px+) — 2열 레이아웃 ===== */
@media (min-width: 1280px) {
  .my-main:has(> .my-user-card) {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 12px 36px;
    align-items: start;
  }

  .my-main:has(> .my-user-card) > .my-user-card {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--my-header-h) + 16px);
    margin-bottom: 0;
  }

  .my-main:has(> .my-user-card) > *:not(.my-user-card) {
    grid-column: 2;
  }

  .my-main.my-tree-main,
  .my-main:not(:has(> .my-user-card)) {
    display: block;
  }

  .my-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .my-wallet-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1440px) {
  :root {
    --my-sidebar-w: 240px;
  }

  .my-bottom-nav { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 1024px) {
  body.my-app.no-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body.my-app { padding-bottom: calc(var(--my-nav-h) + 8px); }
  .my-login-main { padding-top: 12px; padding-bottom: 24px; }
  .my-login-brand { margin: 8px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .my-product-card,
  .my-btn,
  .my-login-submit,
  .my-login-signup-btn { transition: none; }
}

/* ===== 조직도 — 하단 1px, 차트 영역 자동 확장 ===== */
body.my-tree-page.my-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

body.my-tree-page.my-app:not(.no-nav) {
  padding-bottom: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px) + var(--my-page-pad-bottom));
}

@media (min-width: 1024px) {
  body.my-tree-page.my-app:not(.no-nav) {
    padding-bottom: var(--my-page-pad-bottom);
  }
}

body.my-tree-page .my-header {
  flex-shrink: 0;
}

body.my-tree-page .my-header-top {
  padding-top: 1px;
  padding-bottom: 1px;
}

body.my-tree-page .my-coin-tabs {
  padding-top: 0;
  padding-bottom: 1px;
}

body.my-tree-page .my-rate-bar {
  padding-bottom: 1px;
}

body.my-tree-page .my-main.my-tree-main {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-top: 1px;
  padding-bottom: 0;
  gap: 10px;
}

body.my-tree-page .my-main.my-tree-main > .my-section-title {
  flex-shrink: 0;
  margin: 0 0 1px;
}

body.my-tree-page .my-main.my-tree-main > .my-org-tabs,
body.my-tree-page .my-main.my-tree-main > .my-org-back-wrap {
  flex-shrink: 0;
}

body.my-tree-page .my-org-tabs {
  margin-bottom: 1px;
}

body.my-tree-page .my-org-back-wrap {
  margin: 0 0 1px;
}

body.my-tree-page .my-org-page {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 0 0;
}

body.my-tree-page .my-org-legend,
body.my-tree-page .my-org-bar {
  flex-shrink: 0;
  margin-bottom: 5px;
}

body.my-tree-page #oc-wrap {
  flex: 0 0 auto;
  min-height: 180px;
  height: auto;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: none;
  color-scheme: dark;
}

/* backdrop-filter 미지원 브라우저 — 불투명 배경 폴백 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .my-header {
    background: linear-gradient(180deg, #0f0c08 0%, #0a0805 100%);
  }
  .my-bottom-nav {
    background: linear-gradient(180deg, #0f0c08 0%, #0a0805 100%);
  }
  .my-user-card,
  .my-product-card {
    background: rgba(20, 16, 10, 0.98);
  }
  .my-lang-select--compact {
    background-color: rgba(15, 12, 8, 0.98);
  }
}


/* ===== 공통 배경 ===== */
body.my-login-page,
body.my-register-page {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(60, 140, 255, 0.22) 0%, var(--my-bg-fade) 55%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(20, 80, 232, 0.55) 0%, var(--my-bg-fade) 50%),
    radial-gradient(circle at 0% 50%, rgba(20, 60, 180, 0.12) 0%, var(--my-bg-fade) 40%),
    radial-gradient(circle at 100% 40%, rgba(30, 80, 200, 0.1) 0%, var(--my-bg-fade) 38%),
    linear-gradient(165deg, var(--my-bg-mid) 0%, #000000 35%, var(--my-bg-deep) 65%, var(--my-bg-base) 100%);
  min-height: 100dvh;
}

/* 로그인/비번찾기 전용: 세로 가운데 정렬 */
body.my-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 100dvh;
  overflow: hidden;
  overflow-y: auto;
}

.my-login-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.my-auth-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: max(var(--my-page-pad-y, 1px), env(safe-area-inset-top, 0px)) 1px 0 max(1px, env(safe-area-inset-left, 0px));
  max-width: none;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.my-auth-header .my-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.my-login-main {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 22px;
  background: rgba(6,10,18,0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(80,160,255,0.18);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 80px rgba(30,100,232,0.1);
  flex-direction: column;
}

.my-login-brand {
  text-align: center;
  margin: 12px 0 16px;
  filter: drop-shadow(0 8px 28px rgba(255, 200, 60, 0.25));
}

.my-login-lang-wrap {
  margin-bottom: 20px;
}

.my-login-lang {
  width: 100%;
  padding: 15px 44px 15px 16px;
  background: rgb(0 194 255 / 14%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(80, 160, 255, 0.45);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaaaaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.my-login-lang:focus {
  border-color: rgba(80, 160, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(60, 140, 255, 0.15);
}

.my-login-lang option {
  background: #2a2a2a;
  color: #fff;
}

.my-brand-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.my-brand-logo-img {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.my-login-field {
  position: relative;
  margin-bottom: 14px;
}

.my-login-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.85;
  pointer-events: none;
  line-height: 1;
}

.my-login-input {
  width: 100%;
  padding: 15px 44px 15px 46px;
  background: rgb(0 194 255 / 14%) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(80, 160, 255, 0.45);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.my-login-input:focus {
  border-color: rgba(80, 160, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(60, 140, 255, 0.15);
}

.my-login-input::placeholder { color: #777; }

.my-login-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.my-login-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1200;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe566 0%, #f5d547 35%, #e8b923 70%, #c9a020 100%);
  box-shadow:
    0 4px 24px rgba(232, 185, 35, 0.45),
    0 0 40px rgba(255, 200, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.my-login-submit:active { transform: scale(0.98); }

.my-login-signup-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(245, 213, 71, 0.45);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #f5d547;
  text-align: center;
  text-decoration: none;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.my-login-signup-btn:hover {
  border-color: rgba(80, 160, 255, 0.75);
  background: rgba(10, 18, 35, 0.65);
  box-shadow: 0 0 24px rgba(30, 100, 232, 0.2);
}

.my-login-signup-btn:active { transform: scale(0.98); }

@media (min-width: 481px) {
  .my-login-main { padding-top: max(40px, env(safe-area-inset-top, 0px)); }
}

@media (max-width: 359px) {
  .my-login-main { padding: var(--my-page-pad-y, 1px) 1px; }
  .my-login-brand { margin: 12px 0 28px; }
  .my-brand-logo-img { max-width: 160px; }
  .my-login-input { padding: 14px 40px 14px 42px; font-size: 16px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .my-login-main {
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .my-login-brand { margin: 4px 0 16px; }
  .my-brand-logo-img { max-width: 140px; }
}

/* ===== PC ===== */
@media (min-width: 1024px) {
  body.my-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .my-login-page {
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
  }

  .my-login-main {
    flex: 0 1 auto;
    max-width: 440px;
    padding: 44px 40px 48px;
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(80, 160, 255, 0.18);
    border-radius: 20px;
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.45),
      0 0 80px rgba(30, 100, 232, 0.08);
  }

  .my-login-brand { margin-top: 0; }
  .my-brand-logo-img { max-width: 170px; }

  .my-login-input { font-size: 15px; }
  .my-login-submit:hover {
    filter: brightness(1.05);
    box-shadow:
      0 6px 28px rgba(232, 185, 35, 0.5),
      0 0 48px rgba(255, 200, 60, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

@media (min-width: 1440px) {
  .my-login-page {
    margin: 0 auto;
    /* display: grid;
    grid-template-columns: 1fr 440px;
    grid-template-rows: auto 1fr; */
    gap: 48px;
    align-items: center;
    padding: 48px;
    padding-top: 64px;
  }

  .my-auth-header {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    padding: 0 0 8px;
  }

  .my-login-main {
    grid-column: 2;
    grid-row: 2;
  }


}

/* ===== forgot pw ===== */
.my-login-forgot-btn {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #f5d547;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  transition: color 0.2s;
}
.my-login-forgot-btn:hover { color: #ffe566; }
@media (max-width: 768px) {
  .my-login-forgot-btn {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1200;
    background: rgba(245,213,71,0.95);
    border-radius: 12px;
    text-shadow: none;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(232,185,35,0.35);
  }
}
.my-forgot-title {
  text-align: center; color: #fff;
  font-size: 20px; font-weight: 700;
  margin: 0 0 8px;
}
.my-forgot-desc {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px; margin: 0 0 20px;
}
.my-forgot-msg {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; margin-bottom: 16px;
  text-align: center;
}
.my-forgot-msg.ok   { background: rgba(80,200,100,0.18); color: #7ef0a0; border: 1px solid rgba(80,200,100,0.3); }
.my-forgot-msg.fail { background: rgba(255,80,80,0.18);  color: #ff9999; border: 1px solid rgba(255,80,80,0.3); }

/* ===== 모바일 (<=480px) ===== */
@media (max-width: 480px) {
  body.my-login-page {
    padding: 12px 10px;
    align-items: flex-start;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
  }
  .my-login-main {
    padding: 20px 16px 22px;
    border-radius: 14px;
  }
  .my-login-brand {
    margin: 6px 0 12px;
  }
  .my-brand-logo-img {
    max-width: 110px;
  }
  .my-login-lang-wrap {
    margin-bottom: 12px;
  }
  .my-login-lang {
    padding: 11px 40px 11px 14px;
    font-size: 14px;
    border-radius: 10px;
  }
  .my-login-field {
    margin-bottom: 10px;
  }
  .my-login-field-icon {
    font-size: 16px;
    left: 14px;
  }
  .my-login-input {
    padding: 13px 42px 13px 44px;
    font-size: 16px;
    border-radius: 10px;
  }
  .my-login-pw-toggle {
    font-size: 16px;
    right: 12px;
  }
  .my-login-submit {
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
  }
  .my-login-forgot-btn {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 16px;
  }
  .my-login-signup-btn {
    margin-top: 8px;
    padding: 13px;
    font-size: 14px;
    border-radius: 10px;
  }
  .my-forgot-title { font-size: 20px; }
  .my-forgot-desc  { font-size: 13px; }
}

/* =====================================================
   회원가입 (register)
   ===================================================== */
.my-reg-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: var(--my-content-max, 520px);
  padding: 20px 16px 12px;
  margin: 0 auto;
}
.my-reg-brand-wrap { flex: 1; }
.my-reg-brand-wrap .my-brand-logo-link { display: inline-block; line-height: 0; }
.my-reg-brand-wrap .my-brand-logo-img  { max-height: 44px; width: auto; max-width: 140px; }
.my-reg-header-icons { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.my-reg-icon-btn { color: var(--my-accent); font-size: 18px; text-decoration: none; line-height: 1; }
.my-reg-icon-user {
  width: 28px; height: 28px;
  border: 2px solid var(--my-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}

.my-reg-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--my-content-max, 520px);
  margin: 0 auto;
  padding: 24px 22px 40px;
  background: rgba(22, 16, 4, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 80px rgba(212,175,55,0.12);
}
.my-reg-title {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 600;
  color: #fff;
  margin: 8px 0 24px;
}
.my-reg-form { display: flex; flex-direction: column; gap: 16px; }
.my-reg-field { display: flex; flex-direction: column; gap: 6px; }
.my-reg-label { font-size: 14px; font-weight: 500; color: #fff; }
.my-reg-req { color: #7eb8ff; font-weight: 400; }

.my-reg-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}
.my-reg-input-light {
  background: #c8d0db;
  border: 1px solid #c8d0db;
  color: #1a1a1a;
}
.my-reg-input-light::placeholder { color: #666; }
.my-reg-input-dark {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(232,185,35,0.6);
  color: #fff;
}
.my-reg-input-dark::placeholder { color: #666; }
.my-reg-input-dark:focus {
  border-color: var(--my-accent);
  background: rgba(0,0,0,0.6);
}

.my-reg-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(232,185,35,0.6);
  color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8b923' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.my-reg-select option { background: #1a1a1a; color: #fff; }
.my-reg-select:focus { border-color: var(--my-accent); background-color: rgba(0,0,0,0.6); }

.my-reg-row { display: flex; gap: 8px; align-items: stretch; }
.my-reg-row .my-reg-input-light,
.my-reg-row .my-reg-input-dark { flex: 1; min-width: 0; }

.my-reg-btn-check {
  flex-shrink: 0;
  padding: 0 16px;
  background: var(--my-accent);
  border: none;
  border-radius: 6px;
  color: #1a1200;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.my-reg-btn-check:hover  { background: #f5d547; }
.my-reg-btn-check.is-ok  { background: #4caf50; color: #fff; }
.my-reg-btn-check.is-fail{ background: #e53935; color: #fff; }

.my-reg-pw-wrap { position: relative; }
.my-reg-pw-wrap .my-reg-input { padding-right: 44px; }
.my-reg-pw-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  opacity: 0.7; padding: 4px;
  color: #fff;
}

.my-reg-msg {
  font-size: 12px; margin: 0; min-height: 16px;
}
.my-reg-msg.ok   { color: #4caf50; }
.my-reg-msg.fail { color: #ff6b6b; }

.my-reg-hint {
  font-size: 12px; margin: 0; min-height: 16px; color: var(--my-muted);
}
.my-reg-hint.ok   { color: #7ef0a0; }
.my-reg-hint.fail { color: #ff9999; }

.my-reg-terms-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.my-reg-terms-box {
  flex: 1;
  height: 130px;
  overflow-y: auto;
  background: rgba(20,60,100,0.5);
  border: 1px solid rgba(42,96,144,0.7);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #dce8f5;
  scrollbar-width: thin;
}
.my-reg-terms-box p { margin: 0 0 8px; }
.my-reg-terms-check {
  flex-shrink: 0;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.3;
  visibility: visible;
  pointer-events: none;
  cursor: default;
  user-select: none;
  transition: opacity 0.2s;
}
.my-reg-terms-check.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.my-reg-agree-all-row {
  display: flex;
  align-items: center;
  padding: 6px 0 2px;
}
.my-reg-agree-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.my-reg-agree-all-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--my-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.my-reg-terms-agree {
  font-size: 12px; font-weight: 600;
  color: #fff; white-space: nowrap;
}
.my-reg-terms-check input {
  width: 22px; height: 22px;
  accent-color: var(--my-accent);
  cursor: pointer;
}

.my-reg-actions { display: flex; gap: 10px; margin-top: 6px; }
.my-reg-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-reg-btn-close  { background: rgba(255,255,255,0.1); color: #ccc; border: 1px solid rgba(255,255,255,0.15); }
.my-reg-btn-submit { background: var(--my-accent); color: #1a1200; }
.my-reg-btn-close:hover  { background: rgba(255,255,255,0.18); }
.my-reg-btn-submit:hover { background: #f5d547; }

/* 반응형 */
@media (max-width: 380px) {
  .my-reg-btn-check { padding: 0 10px; font-size: 12px; }
  .my-reg-terms-row { flex-direction: column; }
  .my-reg-terms-check { flex-direction: row; width: auto; justify-content: flex-start; }
}
@media (max-width: 359px) {
  .my-reg-actions { flex-direction: column; }
}

/* PC: 2컬럼 그리드 */
@media (min-width: 1024px) {
  .my-reg-header { max-width: none; padding: 20px 24px 12px; }

  .my-reg-main {
    max-width: none;
    width: auto;
    margin: 8px 24px 0;
    background: rgba(22, 16, 4, 0.70);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
  }

  .my-reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    align-items: start;
  }
  .my-reg-field--full { grid-column: 1 / -1; }
  .my-reg-actions {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .my-reg-terms-box { height: 160px; }
}

