/*
  회원페이지 v2 안쪽 화면 (나의 페이지·입금·출금·이벤트·공지사항·고객센터·쪽지·베팅내역)
  틀: views/Pages/rf2-pages.ejs, 동작: /ui/js/rf2-pages.js. reference-home-v2.css 뒤에 불러옴
*/
html body #rf2Pages{width:min(var(--rf2-w),calc(100% - 32px));margin:0 auto;padding:26px 0 80px;color:var(--rf2-text)}
html body #rf2Pages[hidden],html body #rf2Pages [hidden]{display:none!important}
html body .rf2-chip.rf2-chip-on{color:#5eeaff!important;background:rgba(0,212,255,.08);border-color:rgba(0,212,255,.45);box-shadow:inset 3px 0 0 var(--rf2-cyan)}
html body.rf2-page-open .rf2-chip-my:not(.rf2-chip-on){color:var(--rf2-muted)!important;background:rgba(255,255,255,.02);border-color:var(--rf2-line)}
html body.rf2-page-open .reference-primary a:first-child{color:var(--rf2-muted)!important}
html body.rf2-page-open .reference-primary a:first-child:after{display:none}

.rf2p-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.rf2p-head h1{margin:0;font-size:32px;font-weight:900;line-height:1.2;color:#fff;letter-spacing:-.5px}
.rf2p-head p{margin:8px 0 0;color:var(--rf2-muted);font-size:15px}
.rf2p-card{background:linear-gradient(180deg,#111a2c 0%,#0b1220 100%);border:1px solid rgba(0,212,255,.16);border-radius:18px;padding:22px;margin:0 0 18px;box-shadow:0 14px 34px rgba(0,0,0,.28)}
.rf2p-card h2{margin:0 0 16px;padding:0 0 14px;font-size:18px;font-weight:800;color:#5eeaff;border-bottom:1px solid rgba(255,255,255,.08)}
.rf2p-cardhead{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid rgba(0,212,255,.18)}
.rf2p-cardhead h2{margin:0;padding:0;border:0}
.rf2p-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.rf2p-grid2 .rf2p-card{margin:0}
.rf2p-grid-form{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}

/* 나의 페이지 */
.rf2p-bigname{display:block;margin:4px 0 14px;font-size:32px;font-weight:900;color:#fff;letter-spacing:-.5px}
.rf2p-dl{display:grid;grid-template-columns:120px 1fr;margin:0}
.rf2p-dl dt,.rf2p-dl dd{margin:0;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px}
.rf2p-dl dt{color:var(--rf2-muted);font-weight:500}
.rf2p-dl dd{color:#fff;font-weight:700;word-break:break-all}
.rf2p-money2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}
.rf2p-money-col{grid-template-columns:1fr}
.rf2p-moneybox{padding:14px 16px;border-radius:12px;background:#0a101c;border:1px solid rgba(0,212,255,.22)}
.rf2p-moneybox small{display:block;color:var(--rf2-muted);font-size:13px;margin-bottom:6px}
.rf2p-moneybox b{font-size:22px;font-weight:900;color:#5eeaff}
.rf2p-moneybox.rf2p-gold{border-color:rgba(255,196,0,.28)}
.rf2p-moneybox.rf2p-gold b{color:#ffd966}
.rf2p-rows{margin:0 0 16px;border:1px solid rgba(255,255,255,.07);border-radius:12px;overflow:hidden}
.rf2p-rows>div{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px}
.rf2p-rows>div:last-child{border-bottom:0}
.rf2p-rows dt{margin:0;color:var(--rf2-muted);font-weight:500}
.rf2p-rows dd{margin:0;color:#fff;font-weight:800}
.rf2p-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.rf2p-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin-top:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px}
.rf2p-link b{display:block;color:#fff;font-size:15px;font-weight:800}
.rf2p-link span{display:block;margin-top:4px;color:var(--rf2-muted);font-size:13px}

/* 버튼 / 입력 */
.rf2p-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 20px;border-radius:10px;border:1px solid transparent;font-size:15px;font-weight:800;font-family:inherit;cursor:pointer;white-space:nowrap;transition:filter .15s,border-color .15s,background .15s}
.rf2p-btn .material-icons{font-size:18px}
.rf2p-btn-line{color:#5eeaff;background:rgba(0,212,255,.08);border-color:rgba(0,212,255,.35)}
.rf2p-btn-line:hover{background:rgba(0,212,255,.16);border-color:var(--rf2-cyan)}
.rf2p-btn-main{width:100%;height:52px;margin-top:20px;color:#041018;background:linear-gradient(135deg,#5eeaff,#00b8e6);box-shadow:0 8px 22px rgba(0,212,255,.3)}
.rf2p-btn-main:hover{filter:brightness(1.08)}
.rf2p-btn-auto{width:auto;min-width:132px;height:44px;margin-top:14px}
.rf2p-btn-sm{height:38px;padding:0 16px;font-size:14px}
.rf2p-right{text-align:right}
.rf2p-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);color:#cdd6e4;cursor:pointer}
.rf2p-icon .material-icons{font-size:18px}
.rf2p-label{display:block;margin:16px 0 8px;color:#cdd6e4;font-size:13px;font-weight:700}
html body #rf2Pages .rf2p-input{width:100%;height:44px;padding:0 14px;margin:0;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:#141c2c;background-image:none;color:#fff;font-size:15px;font-family:inherit;outline:none;box-sizing:border-box;box-shadow:none;transition:border-color .15s}
html body #rf2Pages .rf2p-input::placeholder{color:#6f7d92}
html body #rf2Pages .rf2p-input:focus{border-color:var(--rf2-cyan)}
html body #rf2Pages .rf2p-input:disabled{color:#a9b6c9;background:#0e1524}
html body #rf2Pages .rf2p-textarea{height:160px;padding:12px 14px;resize:vertical;line-height:1.5}
html body #rf2Pages .rf2p-input[type=date]{color-scheme:dark}
.rf2p-amount{position:relative}
html body #rf2Pages .rf2p-amount .rf2p-input{padding-right:44px;font-size:18px;font-weight:800;height:52px}
.rf2p-amount span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--rf2-muted);font-weight:700}
.rf2p-quick{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:10px}
.rf2p-quick button{height:38px;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#141c2c;color:#cdd6e4;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer}
.rf2p-quick button:hover{border-color:var(--rf2-cyan);color:#5eeaff}
.rf2p-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;padding:5px;border-radius:12px;background:#0a101c;border:1px solid rgba(255,255,255,.08)}
.rf2p-seg button{height:42px;border:0;border-radius:9px;background:transparent;color:var(--rf2-muted);font-size:15px;font-weight:800;font-family:inherit;cursor:pointer}
.rf2p-seg button.active{color:#041018;background:linear-gradient(135deg,#5eeaff,#00b8e6)}
.rf2p-method{margin-bottom:6px}
.rf2p-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rf2p-note{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:rgba(0,212,255,.06);border:1px solid rgba(0,212,255,.2);color:#cfe9f2;font-size:14px;line-height:1.5}
.rf2p-side h2:not(:first-child){margin-top:22px}
.rf2p-guide{margin:0;padding:0 0 0 18px;color:#a9b6c9;font-size:14px;line-height:1.7}

/* 검색 / 탭 / 목록 */
.rf2p-search{display:flex;gap:8px;align-items:center}
.rf2p-searchbox{position:relative;width:280px;max-width:60vw}
html body #rf2Pages .rf2p-searchbox .rf2p-input{padding-right:40px}
.rf2p-searchbox .material-icons{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:20px;color:#8b98ad;pointer-events:none}
.rf2p-tabs{display:flex;gap:22px;margin:0 0 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.rf2p-tabs button{position:relative;padding:10px 2px 14px;border:0;background:none;color:var(--rf2-muted);font-size:15px;font-weight:800;font-family:inherit;cursor:pointer}
.rf2p-tabs button.active{color:#5eeaff}
.rf2p-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;background:var(--rf2-cyan);box-shadow:0 0 10px rgba(0,212,255,.6)}
.rf2p-list{border:1px solid rgba(0,212,255,.2);border-radius:16px;background:linear-gradient(180deg,#111a2c 0%,#0b1220 100%);overflow:hidden}
.rf2p-list-plain{border:0;background:none;border-radius:0}
.rf2p-empty{padding:38px 16px;text-align:center;color:#a9b6c9;font-size:16px}
.rf2p-item{border-bottom:1px solid rgba(255,255,255,.06)}
.rf2p-item:last-child{border-bottom:0}
.rf2p-item-head{display:flex;align-items:center;gap:14px;width:100%;padding:16px 20px;border:0;background:none;color:#fff;text-align:left;cursor:pointer;font-family:inherit}
.rf2p-item-head:hover{background:rgba(0,212,255,.04)}
.rf2p-item-head b{flex:1 1 auto;font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf2p-item-head span{flex:0 0 auto;color:var(--rf2-muted);font-size:13px}
.rf2p-item-head .material-icons{flex:0 0 auto;font-size:20px;color:#8b98ad;transition:transform .2s}
.rf2p-item.open .rf2p-item-head .material-icons{transform:rotate(180deg)}
.rf2p-item.unread .rf2p-item-head b{color:#5eeaff}
.rf2p-new{display:inline-block;margin-right:8px;padding:2px 7px;border-radius:5px;background:#e11d1d;color:#fff;font-size:11px;font-style:normal;font-weight:900;vertical-align:1px}
.rf2p-item-body{padding:4px 20px 20px;color:#cdd6e4;font-size:14px;line-height:1.7;word-break:break-word}
.rf2p-qa{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.rf2p-qa:last-child{border-bottom:0}
.rf2p-qa-top{display:flex;align-items:center;gap:10px;color:var(--rf2-muted);font-size:13px;margin-bottom:8px}
.rf2p-badge{padding:3px 9px;border-radius:999px;font-size:12px;font-weight:800}
.rf2p-badge.done{background:rgba(0,212,255,.12);color:#5eeaff}
.rf2p-badge.wait{background:rgba(255,196,0,.12);color:#ffd966}
.rf2p-q{margin:0;color:#fff;font-size:15px;line-height:1.6}
.rf2p-a{margin:10px 0 0;padding:12px 14px;border-radius:10px;background:rgba(0,212,255,.06);border-left:3px solid var(--rf2-cyan);color:#cfe9f2;font-size:14px;line-height:1.6}

/* 베팅내역 */
.rf2p-filter{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.rf2p-filter label{display:block;margin:0}
.rf2p-filter small{display:block;margin:0 0 6px;color:var(--rf2-muted);font-size:12px;font-weight:700}
html body #rf2Pages .rf2p-filter .rf2p-input{width:150px;height:42px}
html body #rf2Pages .rf2p-filter #rf2HistQ{width:196px}
.rf2p-filter .rf2p-btn{height:42px}
.rf2p-sum3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 14px}
.rf2p-sum3>div{padding:16px 18px;border-radius:12px;background:#0d1524;border:1px solid rgba(0,212,255,.2)}
.rf2p-sum3 small{display:block;margin-bottom:8px;color:var(--rf2-muted);font-size:13px;font-weight:700}
.rf2p-sum3 b{font-size:20px;font-weight:900;color:#fff}
.rf2p-sum3 b.minus{color:#ff8a8a}
.rf2p-sum3 b.plus{color:#5eeaff}
.rf2p-tablewrap{border:1px solid rgba(0,212,255,.2);border-radius:16px;overflow:auto;background:#0b1220}
.rf2p-table{width:100%;border-collapse:collapse;min-width:860px;margin:0}
.rf2p-table th{padding:15px 14px;background:#0f2233;color:#5eeaff;font-size:13px;font-weight:800;text-align:left;white-space:nowrap;border:0;border-bottom:1px solid rgba(0,212,255,.25)}
.rf2p-table td{padding:15px 14px;color:#dbe3ef;font-size:14px;border:0;border-bottom:1px solid rgba(255,255,255,.06);white-space:nowrap}
.rf2p-table tr:last-child td{border-bottom:0}
.rf2p-table tbody tr:hover td{background:rgba(0,212,255,.035)}
.rf2p-table .r{text-align:right}
.rf2p-table td.win{color:#5eeaff;font-weight:800}
.rf2p-table td.rf2p-td-empty{text-align:center;padding:38px 14px;color:#a9b6c9}
.rf2p-pager{display:flex;justify-content:center;gap:6px;margin-top:16px}
.rf2p-pager button{min-width:36px;height:36px;padding:0 8px;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#141c2c;color:#cdd6e4;font-weight:700;font-family:inherit;cursor:pointer}
.rf2p-pager button.active{background:var(--rf2-cyan);border-color:var(--rf2-cyan);color:#041018}

@media(max-width:991px){
  .rf2p-grid2,.rf2p-grid-form{grid-template-columns:1fr}
  .rf2p-head h1{font-size:26px}
}
@media(max-width:560px){
  html body #rf2Pages{padding:18px 0 110px}
  .rf2p-card{padding:16px;border-radius:14px}
  .rf2p-head h1{font-size:22px}
  .rf2p-head p{font-size:13px}
  .rf2p-bigname{font-size:24px}
  .rf2p-dl{grid-template-columns:92px 1fr}
  .rf2p-quick{grid-template-columns:repeat(3,1fr)}
  .rf2p-sum3{grid-template-columns:1fr}
  .rf2p-search{width:100%}
  .rf2p-searchbox{flex:1;width:auto;max-width:none}
  .rf2p-filter{width:100%}
  .rf2p-filter label{flex:1 1 44%}
  html body #rf2Pages .rf2p-filter .rf2p-input,html body #rf2Pages .rf2p-filter #rf2HistQ{width:100%}
  .rf2p-filter .rf2p-btn{flex:1 1 100%}
  .rf2p-item-head{padding:14px}
  .rf2p-item-head span{display:none}
  .rf2p-moneybox b{font-size:18px}
}
/* 예전 스타일이 textarea 높이를 줄여 놓음 */
html body #rf2Pages textarea.rf2p-input.rf2p-textarea{height:160px!important;min-height:160px!important;max-height:none!important;padding:12px 14px!important}

/* ── 입금 / 출금 (참고 화면 형식: 방식 탭 → 안내 → 요청 → 내역) ── */
.rf2p-method{margin:0 0 16px;padding:5px;border-radius:14px;border:1px solid rgba(0,212,255,.2);background:#0b1220}
.rf2p-method button{height:46px;display:flex;align-items:center;justify-content:center;gap:8px}
.rf2p-method button i{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.08);font-style:normal;font-size:12px}
.rf2p-method button.active i{background:rgba(4,16,24,.18)}
.rf2p-info h2{border:0;padding:0;margin:0 0 12px}
.rf2p-info p{margin:0 0 12px;color:#e3eaf4;font-size:14px;line-height:1.6}
.rf2p-info p:last-child{margin-bottom:0}
.rf2p-req h2{border-bottom-color:rgba(0,212,255,.18)}
.rf2p-label em{font-style:normal;color:#5eeaff}
.rf2p-type{max-width:420px}
.rf2p-fieldset{margin:18px 0 0;padding:14px 14px 16px;border:1px solid rgba(0,212,255,.16);border-radius:12px}
.rf2p-fieldset>.rf2p-label:first-child{margin-top:0}
.rf2p-fieldset .rf2p-label+.rf2p-label{margin-top:10px;color:#a9b6c9;font-size:12px}
.rf2p-fieldset .rf2p-sub{margin:12px 0 6px;color:#a9b6c9;font-size:12px;font-weight:700;display:block}
.rf2p-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rf2p-quick button{min-width:56px;padding:0 14px}
.rf2p-quick button.reset{color:#ff8a8a;border-color:rgba(255,120,120,.3)}
.rf2p-hint{margin:16px 0 0;padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:10px;color:#a9b6c9;font-size:13px}
.rf2p-hint:before{content:"•";color:#5eeaff;margin-right:8px}
.rf2p-small{margin:8px 0 0;color:#a9b6c9;font-size:13px}
.rf2p-small.ok{color:#5eeaff}
.rf2p-small.bad{color:#ff8a8a}
.rf2p-btnrow{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.rf2p-btnrow .rf2p-btn{height:48px;min-width:140px}
.rf2p-btnrow .rf2p-btn-main{width:auto;margin:0}
.rf2p-btn-ghost{color:#e3eaf4;background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.14)}
.rf2p-btn-ghost:hover{border-color:rgba(255,255,255,.3)}
.rf2p-pair{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px}
.rf2p-usdt{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 14px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:#232d3f;color:#fff;font-weight:800}
.rf2p-usdt b{flex:1;text-align:center;font-size:16px}
.rf2p-usdt small{font-size:12px;font-weight:900}
.rf2p-inline{display:grid;grid-template-columns:1fr auto;gap:10px}
.rf2p-ell{max-width:240px;overflow:hidden;text-overflow:ellipsis}
.rf2p-tag{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid rgba(0,212,255,.4);color:#ffd966;background:rgba(0,212,255,.08)}
.rf2p-tag.req{color:#e3eaf4;border-color:rgba(120,150,255,.5);background:rgba(90,110,220,.14)}
.rf2p-state{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(255,255,255,.1);color:#e3eaf4}
.rf2p-state.wait{background:rgba(255,196,0,.14);color:#ffd966}
.rf2p-state.cancel{background:rgba(255,120,120,.14);color:#ff8a8a}
.rf2p-histnote{margin:-6px 0 12px;color:#a9b6c9;font-size:13px}
.rf2p-card .rf2p-tablewrap{border-radius:10px;border-color:rgba(255,255,255,.06)}
.rf2p-card .rf2p-table th{background:#141d2e;color:#e3eaf4;border-bottom-color:rgba(255,255,255,.08)}
.fin-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:16px;color:#e3eaf4;font-size:14px}
.fin-pager button{height:38px;padding:0 20px;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#141c2c;color:#cdd6e4;font-weight:700;font-family:inherit;cursor:pointer}
.fin-pager button:disabled{opacity:.45;cursor:default}
@media(max-width:560px){
  .rf2p-pair,.rf2p-inline{grid-template-columns:1fr}
  .rf2p-btnrow .rf2p-btn{flex:1 1 0;min-width:0}
  .rf2p-method button{font-size:14px}
}
.rf2p-tg{color:#7fb6ff!important;font-weight:800;text-decoration:none;border-bottom:1px dashed #7fb6ff}
.rf2p-event-banner{display:block;max-width:100%;border-radius:10px;margin:0 0 14px}
