/* ========== 피노키오 - Gold Theme ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-sidebar: #0d0d0d;
    --bg-header: #0a0a0a;
    --bg-input: #1a1a1a;
    --gold: #FF6B00;
    --gold-light: #FF8C2A;
    --gold-dark: #CC5500;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --red: #e74c3c;
    --green: #27ae60;
    --blue: #3498db;
    --border: #252525;
    --border-gold: rgba(255,107,0,0.25);
    --sidebar-width: 220px;
    --header-height: 60px;
    --info-height: 36px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ========== 스크롤바 ========== */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ========== 상단 정보바 ========== */
.info-bar {
    height: var(--info-height);
    background: linear-gradient(90deg, #0a0a15, #12122a);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-secondary);
    gap: 8px;
}
.info-bar .user-money { color: var(--gold); font-weight: 700; }
.info-bar a { color: var(--text-secondary); font-size: 12px; padding: 2px 8px; }
.info-bar a:hover { color: var(--gold); }
.info-bar .sep { color: var(--border); margin: 0 2px; }

/* ========== 헤더 ========== */
.header {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-logo img { height: 36px; }
.header-logo { margin-right: 20px; }

.header-notice {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    height: 30px;
    position: relative;
    margin-right: 20px;
}
.header-notice .scroll-text {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    position: absolute;
    animation: scrollNotice 20s linear infinite;
}
@keyframes scrollNotice {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.header-nav { display:flex; align-items:center; gap:6px; flex-shrink: 0; position: relative; z-index: 5; margin-left: auto; }
.header-nav .nav-btn {
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    transition: all .2s;
    white-space: nowrap;
}
.header-nav .nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.header-nav .nav-btn.gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
}
.header-nav .nav-btn.gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

/* MY페이지 드롭다운 */
.mypage-wrap { position: relative; }
.mypage-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    min-width: 240px;
    padding: 16px;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.mypage-dropdown.active { display: block; }
.mypage-dropdown .mp-user { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mypage-dropdown .mp-user .lv { color: var(--gold); font-size: 12px; margin-right: 6px; }
.mypage-dropdown .mp-info { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; font-size:13px; }
.mypage-dropdown .mp-info span { display:flex; justify-content:space-between; }
.mypage-dropdown .mp-info .val { color: var(--gold); font-weight: 700; }
.mypage-dropdown .mp-links { display:flex; flex-direction:column; gap:4px; border-top:1px solid var(--border); padding-top:12px; }
.mypage-dropdown .mp-links a { display:block; padding:8px 12px; font-size:13px; color:var(--text-secondary); border-radius:4px; transition:all .2s; }
.mypage-dropdown .mp-links a:hover { background: rgba(255,107,0,.1); color: var(--gold); }

/* ========== 헤더 위 공지 마퀴 ========== */
.top-notice {
    height: var(--info-height);
    background: linear-gradient(90deg, #0a0a15, #12122a);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 101;
}
.top-notice .scroll-text {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    position: absolute;
    animation: scrollNotice 25s linear infinite;
}

/* 헤더 게임 검색창 */
.header-search {
    flex: 1 1 0;
    max-width: 520px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin: 0 24px;
    padding: 0 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}
.header-search:focus-within {
    border-color: var(--gold, #f59e0b);
    background: rgba(255,107,0,.06);
}
.header-search .hs-icon { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.header-search:focus-within .hs-icon { color: var(--gold, #f59e0b); }
.header-search .hs-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-family: inherit;
    padding: 0;
}
.header-search .hs-input::placeholder { color: var(--text-muted); }
.header-search .hs-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-dark, #d97706), var(--gold, #f59e0b));
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s, filter .12s;
}
.header-search .hs-btn:hover { transform: translateX(1px); filter: brightness(1.08); }

/* ========== 사이드바 ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: calc(var(--header-height) + var(--info-height));
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 90;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}
.sidebar > .sidebar-menu { flex: 1 1 auto; }

/* 사이드바 브랜드(로고) */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.sidebar-brand .sb-logo-img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 사이드바 텔레그램 고객센터 카드 */
.sidebar-cs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 12px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34,158,217,.18), rgba(34,158,217,.08));
    border: 1px solid rgba(34,158,217,.35);
    color: var(--text-primary, #fff);
    transition: transform .15s, box-shadow .15s, filter .15s;
    flex-shrink: 0;
}
.sidebar-cs:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -10px rgba(34,158,217,.6);
    filter: brightness(1.08);
}
.sidebar-cs .cs-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #229ED9, #1a82b4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -4px rgba(34,158,217,.7);
}
.sidebar-cs .cs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.sidebar-cs .cs-title { font-size: 12.5px; font-weight: 700; color: #fff; }
.sidebar-cs .cs-sub   { font-size: 10.5px; color: var(--text-secondary, #b8b8b8); }
.sidebar-cs .cs-id    { font-size: 11px; font-weight: 700; color: #4eb8e8; margin-top: 1px; letter-spacing: .2px; }
.sidebar-user {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.sidebar-user .su-name { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sidebar-user .su-name .lv { color: var(--gold); font-size: 11px; background: rgba(255,107,0,.15); padding: 2px 6px; border-radius: 3px; margin-right: 6px; }
.sidebar-user .su-info { font-size: 12px; color: var(--text-secondary); display:flex; flex-direction:column; gap:4px; }
.sidebar-user .su-info .val { color: var(--gold); font-weight: 600; float: right; }

.sidebar-menu { list-style: none; }
.sidebar-menu .menu-group { padding: 6px 16px; font-size: 10px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; margin-top: 8px; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.sidebar-menu a:hover { background: rgba(255,107,0,.08); color: var(--gold); border-left-color: var(--gold); }
.sidebar-menu a.active { background: rgba(255,107,0,.12); color: var(--gold); border-left-color: var(--gold); font-weight: 600; }
.sidebar-menu a .icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-menu .badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* 사이드바 회원 액션 — 로그인/회원가입 버튼 강조 */
.sidebar-menu a.sb-auth {
    margin: 6px 12px;
    padding: 11px 14px;
    border-radius: 8px;
    border-left: none;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: transform .12s, filter .12s;
}
.sidebar-menu a.sb-auth:hover { border-left: none; transform: translateY(-1px); filter: brightness(1.1); }
.sidebar-menu a.sb-login {
    background: linear-gradient(135deg, var(--gold-dark, #d97706), var(--gold, #f59e0b));
    color: #1a1a1a;
}
.sidebar-menu a.sb-login .icon { color: #1a1a1a; }
.sidebar-menu a.sb-register {
    background: rgba(255,255,255,.04);
    color: var(--gold, #f59e0b);
    border: 1px solid rgba(255,107,0,.3);
}
.sidebar-menu a.sb-register .icon { color: var(--gold, #f59e0b); }

/* ========== 메인 콘텐츠 ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height) - var(--info-height));
    padding: 20px;
}

/* ========== 배너 슬라이더 ========== */
.banner-slider {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #111;
}
.banner-slider .slides {
    display: flex;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.banner-slider .slides img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}
/* 드래그 중 부드러운 전환 억제 */
.banner-slider.dragging .slides { transition: none; }

/* 화살표 버튼 */
.banner-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    border: none;
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    z-index: 10;
}
.banner-slider:hover .banner-arrow { opacity: 1; }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: all .3s;
    border: 1px solid rgba(255,255,255,.2);
}
.banner-dots .dot.active {
    background: var(--gold);
    transform: scale(1.35);
    border-color: var(--gold);
}

/* ========== 섹션 타이틀 ========== */
.section-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--gold);
    color: var(--text-primary);
    letter-spacing: 1px;
}
.section-title.blue { border-left-color: var(--blue); }

/* ========== 벤더 그리드 (카지노/슬롯) ========== */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}
.vendor-grid.img-grid {
    grid-template-columns: repeat(7, 1fr);
}
.vendor-card {
    background: linear-gradient(145deg, var(--bg-card), #1a2540);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.vendor-card.has-img {
    padding: 0;
    background: #0a0a14;
    border-radius: 12px;
    border: 2px solid transparent;
}
.vendor-card.has-img .vc-img {
    width: 100%;
    aspect-ratio: 1/1.15;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
}
.vendor-card.has-img .vc-img img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform .3s;
}
.vendor-card.has-img:hover .vc-img img {
    transform: scale(1.05);
}
.vendor-card.has-img .vc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #111, #1a1a2e);
}
.vendor-card.has-img .vc-label {
    padding: 10px 6px 12px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10,10,20,.9), #0a0a14);
}
.vendor-card.has-img .vc-label .vc-name {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}
.vendor-card.has-img .vc-label .vc-sub {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.vendor-card.has-img::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color .25s;
    z-index: 2;
    pointer-events: none;
}
.vendor-card.has-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255,107,0,.2);
}
.vendor-card.has-img:hover::before {
    border-color: var(--gold);
}

.vendor-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    opacity: 0;
    transition: opacity .25s;
}
.vendor-card:not(.has-img):hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,0,.15); }
.vendor-card:not(.has-img):hover::before { opacity: 1; }
.vendor-card:not(.has-img) .vc-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.vendor-card:not(.has-img) .vc-sub { font-size: 10px; color: var(--text-muted); }
.vendor-card .vc-icon { font-size: 28px; margin-bottom: 8px; }

@media (max-width: 1200px) {
    .vendor-grid.img-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .vendor-grid.img-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .vendor-grid.img-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== 공지/이벤트 하단 ========== */
.intro-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.board-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.board-box .bb-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}
.board-box .bb-title .more { font-size: 11px; color: var(--text-muted); cursor: pointer; }
.board-box .bb-title .more:hover { color: var(--gold); }
.board-box ul { list-style: none; }
.board-box ul li {
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.03);
}
.board-box ul li:hover { color: var(--gold); }
.board-box ul li .date { font-size: 11px; color: var(--text-muted); }

/* ========== 페이지 공통 ========== */
.page-header {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-header .icon { color: var(--gold); font-size: 24px; }

/* ========== 카드 컴포넌트 ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--gold);
}

/* ========== 폼 요소 ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ========== 버튼 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c0392b; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2980b9; }
.btn-dark { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* 빠른금액 버튼 */
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-amounts .qa-btn {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    font-family: inherit;
}
.quick-amounts .qa-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ========== 입금 계좌 정보 ========== */
.account-info {
    background: linear-gradient(135deg, rgba(255,107,0,.1), rgba(255,107,0,.05));
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.account-info .ai-row { display: flex; padding: 4px 0; font-size: 14px; }
.account-info .ai-label { color: var(--text-muted); width: 80px; }
.account-info .ai-value { color: var(--gold); font-weight: 700; }

/* ========== 탭 ========== */
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tabs .tab {
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    font-weight: 500;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.tabs .tab:hover { color: var(--text-secondary); }
.tabs .tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }

/* ========== 기간 필터 ========== */
.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.date-filter .df-btn {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all .2s;
    font-family: inherit;
}
.date-filter .df-btn:hover, .date-filter .df-btn.active { border-color: var(--gold); color: var(--gold); }
.date-filter input[type="date"] {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
}
.date-filter .tilde { color: var(--text-muted); }

/* ========== 테이블 ========== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    background: rgba(255,107,0,.08);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text-secondary);
}
.data-table tbody tr:hover { background: rgba(255,107,0,.04); }
.data-table .text-center { text-align: center; }
.data-table .text-right { text-align: right; }

/* ========== 배지 ========== */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-pending { background: rgba(255,140,42,.15); color: var(--gold-light); }
.badge-approved { background: rgba(39,174,96,.15); color: var(--green); }
.badge-rejected { background: rgba(231,76,60,.15); color: var(--red); }
.badge-waiting { background: rgba(255,140,42,.15); color: var(--gold-light); }
.badge-answered { background: rgba(39,174,96,.15); color: var(--green); }
.badge-unread { background: rgba(255,107,0,.15); color: var(--gold); }
.badge-read { background: rgba(107,114,128,.15); color: var(--text-muted); }
.badge-win { background: rgba(39,174,96,.15); color: var(--green); }
.badge-lose { background: rgba(231,76,60,.15); color: var(--red); }
.badge-draw { background: rgba(107,114,128,.15); color: var(--text-muted); }

/* ========== 합계 바 ========== */
.summary-bar {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: rgba(255,107,0,.06);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    margin-top: 16px;
    font-size: 13px;
}
.summary-bar .sb-item span { color: var(--gold); font-weight: 700; }

/* ========== 페이지네이션 ========== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ========== 모달 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color .2s;
}
.modal-close:hover { color: var(--red); }
.modal-title {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 24px;
    color: var(--gold);
}
.modal-logo { text-align: center; margin-bottom: 20px; }
.modal-logo img { height: 40px; }

/* ========== 문의 상세 / 쪽지 상세 ========== */
.detail-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.detail-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.detail-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.detail-header .meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }
.detail-body { padding: 20px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); min-height: 100px; white-space: pre-wrap; }
.detail-answer {
    background: rgba(255,107,0,.05);
    border-top: 1px solid var(--border-gold);
    padding: 16px 20px;
}
.detail-answer .ans-label { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.detail-answer .ans-body { font-size: 14px; line-height: 1.8; color: var(--text-secondary); white-space: pre-wrap; }
.detail-answer .ans-date { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.detail-footer { padding: 16px 20px; border-top: 1px solid var(--border); text-align: center; }

/* ========== 빈 상태 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .3; }
.empty-state p { font-size: 14px; }

/* ========== 체크박스 커스텀 ========== */
.chk-custom { display:none; }
.chk-custom + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s;
    font-size: 11px;
    color: transparent;
}
.chk-custom:checked + label {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* ========== 푸터 ========== */
.footer {
    margin-left: var(--sidebar-width);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}
.footer strong { color: var(--gold); }

/* ========== 로그인 전 헤더 ========== */
.header-auth { display: flex; gap: 8px; align-items: center; }

/* ========== 유틸리티 ========== */
.text-gold { color: var(--gold) !important; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-bold { font-weight: 700 !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ========== HonorLink 게임 목록 ========== */
.hl-game-toolbar {
    margin-bottom: 16px;
}
.hl-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.hl-tab {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--sidebar-bg, #16213e);
    color: var(--text-muted, #aaa);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255,107,0,.2);
    text-decoration: none;
    transition: all .2s;
}
.hl-tab:hover { border-color: var(--gold); color: var(--gold); }
.hl-tab.active {
    background: linear-gradient(135deg, rgba(204,85,0,.25), rgba(255,107,0,.15));
    color: var(--gold);
    border-color: var(--gold);
}
.hl-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.hl-sub {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}
.hl-sub:hover { color: var(--gold); border-color: rgba(255,107,0,.35); }
.hl-sub.active { color: var(--gold); border-color: var(--gold); background: rgba(255,107,0,.08); }
.hl-sub-gold { border-color: rgba(255,107,0,.5) !important; color: var(--gold) !important; }

.hl-vendor-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hl-vpill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-muted);
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}
.hl-vpill:hover { color: var(--gold); border-color: rgba(255,107,0,.4); }
.hl-vpill.active {
    color: #1a1a2e;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-color: transparent;
}

.hl-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.hl-game-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(22,33,62,.85);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hl-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,107,0,.45);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.hl-game-img {
    aspect-ratio: 1;
    background: #0f0f1a;
    position: relative;
    overflow: hidden;
}
.hl-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hl-game-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 28px;
    opacity: .5;
}
.hl-game-meta {
    padding: 10px 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hl-game-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hl-game-type {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .hl-game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hl-vendor-strip { max-height: 120px; overflow-y: auto; }
}

/* ========== 모바일 하단 탭바 ========== */
.mobile-tabbar {
    display: none;
}
.mobile-drawer { display: none; }
.mobile-drawer-overlay { display: none; }

@media (max-width: 768px) {
    /* 하단 탭바 */
    .mobile-tabbar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 58px;
        background: var(--bg-sidebar);
        border-top: 1px solid var(--border);
        z-index: 200;
        box-shadow: 0 -2px 12px rgba(0,0,0,.4);
    }
    .mtab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text3);
        font-size: 10px;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: color .2s;
    }
    .mtab i { font-size: 18px; }
    .mtab.active, .mtab:hover { color: var(--gold); }
    .mtab.active i { color: var(--gold); }

    /* 드로어 */
    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: var(--bg-sidebar);
        z-index: 300;
        transition: right .3s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
    }
    .mobile-drawer.open { right: 0; }
    .mobile-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.6);
        z-index: 299;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
    .mobile-drawer-overlay.open { opacity: 1; pointer-events: all; }

    .mobile-drawer-inner { padding-bottom: 20px; }
    .md-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
        font-weight: 700;
        color: var(--text1);
    }
    .md-header button {
        background: none; border: none; color: var(--text2);
        font-size: 20px; cursor: pointer; padding: 4px;
    }
    .md-user {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
    }
    .md-user .lv { color: var(--gold); font-size: 11px; margin-right: 6px; }
    .md-user strong { font-size: 15px; color: var(--text1); }
    .md-balance { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--text2); }
    .md-balance b { color: var(--gold); margin-left: 6px; }
    .md-menu { list-style: none; padding: 8px 0; margin: 0; }
    .md-group {
        padding: 10px 20px 4px;
        font-size: 10px;
        font-weight: 700;
        color: var(--text3);
        letter-spacing: 1px;
    }
    .md-menu li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: var(--text2);
        font-size: 14px;
        text-decoration: none;
        transition: background .15s, color .15s;
    }
    .md-menu li a:hover, .md-menu li a.active {
        background: rgba(255,107,0,.08);
        color: var(--gold);
    }
    .md-menu li a i { width: 18px; text-align: center; color: var(--gold-dark); }

    /* 하단 탭 여백 */
    .main-content { padding-bottom: 70px; }
    .footer { padding-bottom: 70px; margin-left: 0; }

    /* 기존 */
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .info-bar { display: none; }
    .vendor-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .intro-board { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .header-notice { display: none; }
    .top-notice { display: none; }
    .header-search { display: none; }
    .header-nav { margin-left: auto; }
    .data-table { font-size: 12px; }
    .data-table thead th, .data-table tbody td { padding: 8px 6px; }
}

/* ──────────────────────────────────────────────────────────
   메인 히어로 영역 (배너 + 우측 액션 카드)
   ────────────────────────────────────────────────────────── */
.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 14px;
    margin-bottom: 18px;
}

/* 좌측 시네마틱 배너 슬라이더 (translateX carousel 방식 — JS와 호환) */
.banner-slider.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0d10;
    box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,107,0,.08) inset;
}
.banner-slider.hero-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.banner-slider.hero-slider.dragging .slides { transition: none; }
.banner-slider.hero-slider .slides img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-overlay-grad {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 80% at 20% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%),
        linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%);
}
.hero-nav {
    position: absolute; top: 50%;
    width: 38px; height: 38px;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, transform .2s;
    z-index: 3;
}
.hero-nav:hover { background: var(--gold, #f59e0b); color: #1a1a1a; }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }

.hero-progress {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px;
    z-index: 3;
}
.hero-progress .hp-bar {
    width: 28px; height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.hero-progress .hp-bar i {
    display: block; height: 100%; width: 0;
    background: var(--gold, #f59e0b);
    transition: width .25s ease;
}
.hero-progress .hp-bar.active i { width: 100%; }

/* 우측 액션 카드 스택 */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.ha-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f1f24, #16161a);
    border: 1px solid rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ha-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
    border-color: rgba(255,255,255,.12);
}
.ha-card .ha-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    font-size: 20px;
    color: #fff;
}
.ha-card .ha-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.ha-card .ha-label {
    font-size: 15px; font-weight: 700; line-height: 1.2;
}
.ha-card .ha-sub {
    font-size: 11px; opacity: .8; line-height: 1.2;
}
.ha-card .ha-arrow {
    font-size: 14px;
    opacity: .6;
    transition: transform .15s ease, opacity .15s ease;
}
.ha-card:hover .ha-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.ha-baccarat {
    background: linear-gradient(135deg, #ff8a00, #d97706);
    border-color: rgba(255,255,255,.15);
}
.ha-baccarat .ha-icon { background: rgba(0,0,0,.18); color: #fff; }
.ha-baccarat .ha-sub { color: rgba(255,255,255,.85); }

.ha-slot {
    background: linear-gradient(135deg, #6d28d9, #ec4899);
    border-color: rgba(255,255,255,.15);
}
.ha-slot .ha-icon { background: rgba(0,0,0,.18); color: #fff; }
.ha-slot .ha-sub { color: rgba(255,255,255,.85); }

.ha-event {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: rgba(255,255,255,.15);
}
.ha-event .ha-icon { background: rgba(0,0,0,.18); color: #fff; }
.ha-event .ha-sub { color: rgba(255,255,255,.85); }

/* ──────────────────────────────────────────────────────────
   라이브 윈 티커 (가로 무한 스크롤)
   ────────────────────────────────────────────────────────── */
.winners-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #1a1a1f, #131318);
    border: 1px solid rgba(255,107,0,.18);
    overflow: hidden;
}
.winners-ticker .wt-label {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    background: var(--gold, #f59e0b);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.winners-ticker .wt-track {
    flex: 1 1 auto;
    display: flex;
    gap: 28px;
    white-space: nowrap;
    animation: wtScroll 60s linear infinite;
    will-change: transform;
}
.winners-ticker:hover .wt-track { animation-play-state: paused; }
.winners-ticker .wt-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text, #d4d4d8);
}
.winners-ticker .wt-item strong {
    color: #fff; font-weight: 700;
}
.winners-ticker .wt-item .wt-game {
    color: var(--text-muted, #9ca3af);
}
.winners-ticker .wt-item em {
    color: var(--gold, #f59e0b);
    font-style: normal; font-weight: 800;
}

@keyframes wtScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 모바일 — 히어로 영역 세로 정렬 */
@media (max-width: 900px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .banner-slider.hero-slider { aspect-ratio: 16 / 9; border-radius: 12px; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .hero-actions .ha-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        padding: 12px;
    }
    .hero-actions .ha-card .ha-label { font-size: 13px; }
    .hero-actions .ha-card .ha-sub { font-size: 10px; }
    .winners-ticker { padding: 8px 10px; gap: 8px; }
    .winners-ticker .wt-label { font-size: 11px; padding: 4px 8px; }
    .winners-ticker .wt-item { font-size: 12px; }
}
@media (max-width: 560px) {
    .hero-actions .ha-card {
        flex: 1 1 100%;
    }
}

/* ──────────────────────────────────────────────────────────
   인증 모달 (스플릿 레이아웃: 좌 프로모 / 우 폼)
   ────────────────────────────────────────────────────────── */
.modal-overlay.auth-overlay {
    z-index: 2000;
    padding: 20px;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
}
.auth-modal {
    position: relative;
    display: grid;
    grid-template-columns: 360px 1fr;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(245,180,0,.3) inset;
    color: #2a2419;
    animation: authPop .25s ease;
}
@keyframes authPop {
    from { transform: scale(.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.auth-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 4;
    transition: background .2s, transform .2s;
}
.auth-close:hover { background: var(--red, #ef4444); transform: rotate(90deg); }

/* 좌측 프로모 영역 */
.auth-promo {
    position: relative;
    overflow: hidden;
    background: #0d0d10;
    min-height: 480px;
}
.auth-promo-img {
    position: absolute; inset: 0;
    background-image: url('/assets/img/login-promo-day.png');
    background-size: cover;
    background-position: center top;
    transform: scale(1.02);
    transition: transform 1.2s ease;
}
.auth-modal.auth-night .auth-promo-img {
    background-image: url('/assets/img/login-promo-night.png');
}
.auth-modal:hover .auth-promo-img { transform: scale(1.06); }
.auth-promo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}

/* 우측 폼 영역 */
.auth-body {
    padding: 38px 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    background: #ffffff;
}
.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-bottom: 4px;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #8c8275;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.auth-tab:hover { color: #2a2419; }
.auth-tab.active {
    color: #d99a00;
    border-bottom-color: #f5b400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form-compact { gap: 10px; }
.auth-form-compact .form-group { margin-bottom: 0; }
.auth-form-compact .form-group label {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 4px;
    display: block;
}
.auth-form-compact .form-control {
    padding: 9px 12px;
    font-size: 13px;
}
/* 로그인/가입 모달 내 일반 폼 입력 — 화이트 테마 */
.auth-body .form-control {
    background: #fbf7ee;
    border: 1px solid #e7dcc4;
    color: #2a2419;
}
.auth-body .form-control::placeholder { color: #b3a994; }
.auth-body .form-control:focus { border-color: #f5b400; background: #fff; }
.auth-body .form-group label { color: #6b6151; }

.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .auth-input-icon {
    position: absolute;
    top: 50%; left: 14px;
    transform: translateY(-50%);
    color: #b3a994;
    font-size: 14px;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: #fbf7ee;
    border: 1px solid #e7dcc4;
    border-radius: 10px;
    color: #2a2419;
    font-size: 14px;
    transition: border-color .15s, background .15s;
}
.auth-input::placeholder { color: #b3a994; }
.auth-input:focus {
    outline: none;
    border-color: #f5b400;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,180,0,.16);
}
.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-captcha-img {
    height: 48px;
    width: 122px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #e7dcc4;
    background: #1a1610;
    cursor: pointer;
    object-fit: cover;
    user-select: none;
}
.auth-captcha-img:hover { border-color: #f5b400; }
.auth-eye {
    position: absolute;
    top: 50%; right: 8px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9a8f7e;
    width: 32px; height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.auth-eye:hover { color: #2a2419; background: rgba(0,0,0,.05); }

.auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.auth-link-row a {
    color: var(--red, #ef4444);
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.auth-link-row a:hover { text-decoration: underline; }

.auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #ffd84d, #f5a800);
    color: #3a2a00;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s, filter .12s, box-shadow .12s;
    box-shadow: 0 6px 20px rgba(245,180,0,.3);
}
.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 26px rgba(245,180,0,.42);
}
.auth-submit:active { transform: translateY(0); }

.auth-divider {
    position: relative;
    text-align: center;
    margin: 4px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,.1);
}
.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 11px;
    color: #9a8f7e;
}

.auth-terms {
    text-align: center;
    color: #8c8275;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}
.auth-terms a { color: #d99a00; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(36,158,224,.12);
    color: #38bdf8;
    border: 1px solid rgba(56,189,248,.35);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.auth-tg-btn i { font-size: 16px; }
.auth-tg-btn:hover {
    background: rgba(36,158,224,.2);
    transform: translateY(-1px);
}

/* 회원가입 등 폼이 길어질 때 스크롤 */
.auth-body::-webkit-scrollbar { width: 6px; }
.auth-body::-webkit-scrollbar-track { background: transparent; }
.auth-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

/* 모바일 — 단일 컬럼, 프로모 위쪽으로 */
@media (max-width: 720px) {
    .auth-modal {
        grid-template-columns: 1fr;
        max-width: 460px;
        max-height: calc(100vh - 20px);
    }
    .auth-promo {
        min-height: 140px;
        max-height: 160px;
    }
    .auth-body {
        padding: 22px 20px 24px;
        max-height: calc(100vh - 180px);
    }
    .auth-close {
        top: 10px; right: 10px;
        width: 32px; height: 32px;
        font-size: 14px;
    }
}

/* ============================================================
   유저 신청/게시판 페이지 — 화이트 배경 + 옐로우 강조 테마
   (충전신청·환전신청·공지사항·문의하기·쪽지·마이페이지)
   body.user-sheet 한정 → forest 헤더/로비/게임 페이지에는 영향 없음
   ============================================================ */
body.user-sheet {
    --bg-card: #ffffff;
    --bg-input: #fffaf0;
    --bg-secondary: #fffdf7;
    --text-primary: #2c2519;
    --text-secondary: #6b6151;
    --text-muted: #a99d88;
    --border: #ece1c6;
    --gold: #E0A500;
    --gold-light: #FFC93C;
    --gold-dark: #C28E00;
    --border-gold: rgba(224,165,0,.55);
}

/* 콘텐츠 영역 전체를 화이트 시트로 (forest 다크 배경 가리기) */
body.user-sheet .main-content {
    background: #fbf7ee !important;
    color: var(--text-primary);
    padding: 26px clamp(14px, 4vw, 48px) 72px !important;
    min-height: calc(100vh - var(--forest-header-h, 70px));
}

/* 페이지 헤더 — 진한 글자 + 옐로우 강조 라인 */
body.user-sheet .page-header {
    color: var(--text-primary);
    border-bottom: 2px solid var(--gold);
}
body.user-sheet .page-header .icon { color: var(--gold); }

/* 카드 / 상세 박스 — 순백 패널 + 부드러운 그림자 */
body.user-sheet .card,
body.user-sheet .detail-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(70,55,10,.08);
}
body.user-sheet .card-title {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
}

/* 강조 버튼 — 선명한 노란색 */
body.user-sheet .btn-gold {
    background: linear-gradient(135deg, #ffcf33, #f5a800);
    color: #3a2a00;
}
body.user-sheet .btn-gold:hover {
    background: linear-gradient(135deg, #ffd84d, #ffba1a);
}

/* 탭 — 활성 탭 노란색 강조 */
body.user-sheet .tabs { border-bottom: 2px solid var(--border); }
body.user-sheet .tabs .tab.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

/* 테이블 — 헤더 옐로우 틴트 + 밝은 구분선 */
body.user-sheet .data-table thead th {
    background: rgba(224,165,0,.12);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}
body.user-sheet .data-table tbody td { border-bottom: 1px solid #f1ebda; }
body.user-sheet .data-table tbody tr:hover { background: rgba(224,165,0,.06); }

/* 계좌정보 박스 — 옐로우 틴트 */
body.user-sheet .account-info {
    background: linear-gradient(135deg, rgba(224,165,0,.14), rgba(224,165,0,.06));
    border-color: var(--border-gold);
}

/* 선택형 버튼(입출금 방식/보너스) 활성 — 옐로우 */
body.user-sheet .method-btn.active,
body.user-sheet .bonus-option:has(input[type="radio"]:checked) {
    background: rgba(224,165,0,.12);
}

/* 페이지네이션 활성 글자 대비 */
body.user-sheet .pagination .active { color: #3a2a00; }

/* ============================================================
   신청/게시판 팝업 모달 + iframe 임베드 모드
   ============================================================ */
.sheet-modal { position: fixed; inset: 0; z-index: 4000; display: none; }
.sheet-modal.open { display: block; }
.sheet-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(18,10,28,.62);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.sheet-modal-panel {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(940px, 94vw); height: min(88vh, 940px);
    display: flex; flex-direction: column;
    background: #fff; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(224,165,0,.45);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    animation: sheetPop .18s ease-out;
}
@keyframes sheetPop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.sheet-modal-head {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; font-size: 16px; font-weight: 900; color: #3a2a00;
    background: linear-gradient(135deg, #ffd84d, #f5a800);
}
.sheet-modal-close {
    width: 32px; height: 32px; border: none; border-radius: 9px; cursor: pointer;
    font-size: 22px; line-height: 1; font-weight: 700; color: #3a2a00;
    background: rgba(0,0,0,.12);
}
.sheet-modal-close:hover { background: rgba(0,0,0,.22); }
.sheet-modal-body { flex: 1; min-height: 0; background: #fbf7ee; }
.sheet-modal-body iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
    .sheet-modal-panel { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* iframe 임베드 모드 — 크롬 제거, 본문만 표시 */
body.embed-mode.forest-user-body { background: #fff !important; }
body.embed-mode .page-header { display: none; }
body.embed-mode .main-content {
    min-height: 0 !important;
    padding: 18px 20px 28px !important;
    background: #fbf7ee !important;
}

/* iframe 내부에서 열렸을 때(임베드 파라미터가 없는 내부 이동 포함) 크롬 숨김 안전망 */
html.framed body.forest-user-body { background: #fff !important; }
html.framed .info-bar,
html.framed .top-notice,
html.framed .forest-header,
html.framed .forest-drawer,
html.framed .footer,
html.framed .sidebar,
html.framed .mobile-tabbar,
html.framed .mobile-drawer,
html.framed .mobile-drawer-overlay,
html.framed #urgentMsgOverlay { display: none !important; }
html.framed .page-header { display: none; }
html.framed .main-content {
    margin-left: 0 !important;
    min-height: 0 !important;
    padding: 18px 20px 28px !important;
    background: #fbf7ee !important;
}
