/* ========== 찬란한 카지노 - 다크 골드 테마 ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-sidebar: #111827;
    --bg-header: #0d0d1a;
    --bg-input: #1e2a3a;
    --gold: #d4a843;
    --gold-light: #f0c040;
    --gold-dark: #c8952e;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --red: #e74c3c;
    --green: #27ae60;
    --blue: #3498db;
    --border: #2a2a4a;
    --border-gold: rgba(212,168,67,0.3);
    --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;
    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; }
.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(212,168,67,.1); color: var(--gold); }

/* ========== 사이드바 ========== */
.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: 10px;
}
.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(212,168,67,.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(212,168,67,.08); color: var(--gold); border-left-color: var(--gold); }
.sidebar-menu a.active { background: rgba(212,168,67,.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;
}

/* ========== 메인 콘텐츠 ========== */
.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(212,168,67,.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(212,168,67,.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(212,168,67,.1), rgba(212,168,67,.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(212,168,67,.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(212,168,67,.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(240,192,64,.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(240,192,64,.15); color: var(--gold-light); }
.badge-answered { background: rgba(39,174,96,.15); color: var(--green); }
.badge-unread { background: rgba(212,168,67,.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(212,168,67,.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(212,168,67,.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(212,168,67,.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(200,149,46,.25), rgba(212,168,67,.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(212,168,67,.35); }
.hl-sub.active { color: var(--gold); border-color: var(--gold); background: rgba(212,168,67,.08); }
.hl-sub-gold { border-color: rgba(212,168,67,.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(212,168,67,.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(212,168,67,.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(212,168,67,.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; }
    .header-nav { margin-left: auto; }
    .data-table { font-size: 12px; }
    .data-table thead th, .data-table tbody td { padding: 8px 6px; }
}
