/* ============================================================
   Pretendard 폰트 (한국어 최적화)
   ============================================================ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* ============================================================
   CSS 변수 (컬러 시스템)
   ============================================================ */
:root {
    --accent-color:    #2563EB;
    --accent-hover:    #1d4ed8;
    --accent-light:    #3b82f6;
    --accent-sky:      #0ea5e9;
    --accent-trans:    rgba(37, 99, 235, 0.09);
    --accent-trans-h:  rgba(37, 99, 235, 0.15);

    --bg-primary:      #ffffff;
    --bg-secondary:    #f1f5f9;
    --bg-card:         #ffffff;

    --text-primary:    #1e293b;
    --text-secondary:  #64748b;
    --text-muted:      #94a3b8;

    --border-color:    #e2e8f0;
    --border-radius:   10px;
    --border-radius-lg: 14px;

    --success:         #10b981;
    --success-bg:      rgba(16, 185, 129, 0.10);
    --danger:          #ef4444;
    --danger-bg:       rgba(239, 68, 68, 0.10);
    --warning:         #f59e0b;
    --warning-bg:      rgba(245, 158, 11, 0.10);

    --sidebar-width:   240px;
    --header-height:   56px;
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:       0 4px 14px rgba(0,0,0,0.09);
    --shadow-lg:       0 10px 28px rgba(0,0,0,0.12);
}

/* ============================================================
   기본 리셋 & 전역
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body, html {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-color); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover); text-decoration: none; outline: none; }

h1, h2, h3, h4, h5, h6 { font-family: inherit !important; }

/* ============================================================
   레이아웃 구조
   ============================================================ */
.pp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pp-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* RTL 지원 */
.pp-body.rtl .pp-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
}
.pp-body.rtl .pp-main {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

/* ============================================================
   사이드바: 로고
   ============================================================ */
.sidebar-logo {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    text-align: center;
}
.sidebar-logo-link { display: inline-block; }
.sidebar-logo img {
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
    width: auto;
}
.site-name-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* ============================================================
   사이드바: 유저 정보 (로그인)
   ============================================================ */
.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    text-align: center;
}

/* 유저명 드롭다운 버튼 */
.sidebar-user-dropdown { position: relative; margin-bottom: 12px; }

.sidebar-user-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 6px;
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--border-radius);
    transition: background 0.15s;
}
.sidebar-user-btn:hover, .sidebar-user-btn:focus {
    background: var(--accent-trans);
    outline: none;
}

.sidebar-user-icon {
    font-size: 38px;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 2px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.sidebar-user-caret {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.sidebar-user-dropdown.open .sidebar-user-caret { transform: rotate(180deg); }

/* 드롭다운 메뉴 위치 */
.sidebar-user-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    top: 100% !important;
}

.user-balance {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
}
.balance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--accent-trans);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--border-radius);
    padding: 7px 12px;
    color: var(--accent-color);
    font-size: 26px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}
.balance-btn:hover, .balance-btn:focus {
    background: var(--accent-trans-h);
    border-color: rgba(37, 99, 235, 0.3);
    outline: none;
}
.balance-btn .caret { margin-left: auto; }

.btn-charge {
    display: block;
    text-align: center;
    background: var(--accent-color);
    color: #fff !important;
    border-radius: var(--border-radius);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    letter-spacing: -0.2px;
}
.btn-charge:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* currencies 드롭다운 */
.dropdown-currencies { position: relative; width: 100%; }
.dropdown-currencies .dropdown-menu { width: 100%; min-width: auto; }

/* ============================================================
   사이드바: 비로그인
   ============================================================ */
.sidebar-guest {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #2563EB 0%, #3b82f6 100%);
    flex-shrink: 0;
}
.guest-notice {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 12px;
    font-weight: 500;
    line-height: 1.4;
}
.guest-actions { display: flex; gap: 8px; }
.btn-guest-login {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,0.18);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: var(--border-radius);
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.btn-guest-login:hover {
    background: rgba(255,255,255,0.28);
    color: #fff !important;
}
.btn-guest-signup {
    flex: 1;
    text-align: center;
    background: #fff;
    color: var(--accent-color) !important;
    border-radius: var(--border-radius);
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.15s;
}
.btn-guest-signup:hover {
    opacity: 0.88;
    color: var(--accent-color) !important;
}

/* ============================================================
   사이드바: 네비게이션 메뉴
   ============================================================ */
.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 10px 10px 0;
    margin-right: 12px;
    transition: all 0.15s;
    position: relative;
    line-height: 1.4;
}
.sidebar-item a:hover {
    background: var(--accent-trans);
    color: var(--accent-color);
}
.sidebar-item.active > a {
    background: var(--accent-trans);
    color: var(--accent-color);
    font-weight: 600;
}
.sidebar-item.active > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 0 3px 3px 0;
}
.sidebar-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}
.sidebar-item.active i { opacity: 1; }

/* ============================================================
   사이드바: 하단 계정 메뉴
   ============================================================ */
.sidebar-bottom {
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.sidebar-bottom-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.15s;
}
.sidebar-bottom-link:hover { color: var(--text-primary); }
.sidebar-bottom-link i { font-size: 14px; width: 16px; text-align: center; }

/* ============================================================
   상단 헤더 — 숨김
   ============================================================ */
.pp-header { display: none !important; }

/* ============================================================
   모바일 플로팅 햄버거 버튼
   ============================================================ */
.hamburger-float {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: 9px 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.hamburger-float span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s;
}

/* 하위 호환 - 기존 버튼 클래스 숨김 */
.hamburger-btn { display: none !important; }
.hamburger-float { display: none !important; }

/* ============================================================
   메인 콘텐츠
   ============================================================ */
.pp-content {
    flex: 1;
    padding: 24px;
}
.pp-content .container,
.pp-content .container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
}

/* ============================================================
   카드 (Bootstrap .panel + .well + custom .card)
   ============================================================ */
.panel, .card, .well {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 20px;
    overflow: hidden;
}
.panel-heading, .card-header {
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
}
.panel-body, .card-body {
    padding: 20px !important;
}
.panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.panel-default > .panel-heading { border-left: none; }

/* 서비스 설명 박스 */
.border-solid { border: 1px solid var(--border-color); }
.border-rounded { border-radius: var(--border-radius); }

/* ============================================================
   버튼
   ============================================================ */
.btn {
    border-radius: var(--border-radius) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    padding: 8px 20px;
    transition: all 0.15s ease;
    letter-spacing: -0.2px;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3) !important;
    outline: none;
}
.btn-default {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
.btn-default:hover, .btn-default:focus {
    background: var(--border-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    outline: none;
}
.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
}
.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
}
.btn-info {
    background: var(--accent-sky) !important;
    border-color: var(--accent-sky) !important;
    color: #fff !important;
}
.btn-warning {
    background: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #fff !important;
}
.btn-block { width: 100%; display: block; }
.btn-sm { padding: 5px 13px !important; font-size: 12px !important; }
.btn-lg { padding: 11px 28px !important; font-size: 15px !important; }
.btn-xs { padding: 3px 8px !important; font-size: 11px !important; }

/* ============================================================
   폼 컨트롤
   ============================================================ */
.form-control {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 9px 14px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-family: inherit !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px var(--accent-trans) !important;
    background: #fff !important;
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control[readonly] {
    background: var(--bg-secondary) !important;
    cursor: default;
    color: var(--text-secondary) !important;
}

.control-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group { margin-bottom: 18px; }

.input-group-addon {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary);
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
    font-size: 14px;
}
.input-group .form-control:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
}

select.form-control { cursor: pointer; }

/* ============================================================
   테이블
   ============================================================ */
.table { font-size: 14px; margin-bottom: 0; width: 100%; }
.table > thead > tr > th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    white-space: nowrap;
    vertical-align: middle;
}
.table > tbody > tr > td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}
.table > tbody > tr:first-child > td { border-top: none; }
.table-hover > tbody > tr:hover > td { background: var(--bg-secondary); }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: var(--bg-secondary); }
.table-responsive { border: none !important; border-radius: 0; }

/* ============================================================
   알림 (Alert)
   ============================================================ */
.alert {
    border-radius: var(--border-radius-lg) !important;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.alert-success { background: var(--success-bg) !important; color: var(--success) !important; }
.alert-danger  { background: var(--danger-bg)  !important; color: var(--danger)  !important; }
.alert-warning { background: var(--warning-bg) !important; color: var(--warning) !important; }
.alert-info    { background: var(--accent-trans) !important; color: var(--accent-color) !important; }
.alert .close { color: inherit; opacity: 0.5; font-size: 18px; }
.alert .close:hover { opacity: 1; }
.alert h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: inherit; }

/* ============================================================
   배지 & 라벨
   ============================================================ */
.badge {
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    padding: 5px 10px;
}
.label { border-radius: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; }
.label-success { background: var(--success) !important; }
.label-danger  { background: var(--danger)  !important; }
.label-warning { background: var(--warning) !important; }
.label-default { background: var(--text-muted) !important; }
.label-info, .label-primary { background: var(--accent-color) !important; }

/* ============================================================
   페이지네이션
   ============================================================ */
.pagination { border-radius: var(--border-radius) !important; }
.pagination > li > a, .pagination > li > span {
    color: var(--accent-color);
    border-color: var(--border-color);
    padding: 6px 12px;
    font-size: 13px;
    transition: all 0.15s;
    font-family: inherit;
}
.pagination > li:first-child > a, .pagination > li:first-child > span {
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
}
.pagination > li:last-child > a, .pagination > li:last-child > span {
    border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
}
.pagination > .active > a, .pagination > .active > span {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}
.pagination > li > a:hover {
    background: var(--accent-trans);
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.pagination > .disabled > a { color: var(--text-muted); border-color: var(--border-color); }

/* ============================================================
   드롭다운 메뉴
   ============================================================ */
.dropdown-menu {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 6px !important;
    background: var(--bg-card) !important;
    font-size: 13px;
}
.dropdown-menu > li > a {
    padding: 8px 12px !important;
    color: var(--text-primary) !important;
    border-radius: var(--border-radius);
    transition: background 0.12s;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background: var(--accent-trans) !important;
    color: var(--accent-color) !important;
}
.dropdown-menu > .active > a {
    background: var(--accent-color) !important;
    color: #fff !important;
}
.dropdown-max-height { max-height: 240px; overflow-y: auto; }
.dropdown-divider, .divider { border-color: var(--border-color); margin: 5px 0; }

/* ============================================================
   모달
   ============================================================ */
.modal-content {
    border: none !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}
.modal-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}
.modal-title { font-weight: 600; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
}
.modal-backdrop.in { opacity: 0.35; }

/* ============================================================
   탭 (Nav Tabs)
   ============================================================ */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.nav-tabs > li > a {
    color: var(--text-secondary);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: color 0.15s;
}
.nav-tabs > li > a:hover {
    background: var(--bg-secondary);
    border-color: transparent;
    color: var(--text-primary);
}
.nav-tabs > li.active > a {
    color: var(--accent-color) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom-color: #fff !important;
    background: #fff !important;
    font-weight: 600;
}

/* ============================================================
   Tooltip / Popover
   ============================================================ */
.tooltip-inner {
    background: var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 12px;
    padding: 5px 10px;
}
.tooltip.top .tooltip-arrow { border-top-color: var(--text-primary); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--text-primary); }

/* ============================================================
   커스텀 스크롤바
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   사이드바 오버레이 (모바일)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

/* ============================================================
   반응형 (모바일)
   ============================================================ */
@media (max-width: 991px) {
    .pp-sidebar {
        transform: translateX(-100%);
        z-index: 1100;
    }
    .pp-body.rtl .pp-sidebar { transform: translateX(100%); }
    .pp-sidebar.open { transform: translateX(0) !important; }

    .pp-main { margin-left: 0 !important; margin-right: 0 !important; }
    .pp-content { padding: 16px; padding-top: 66px; }
    body { padding-bottom: 65px; }
}

@media (min-width: 992px) {
    .pp-content { padding-top: 24px; }
    .mobile-topbar { display: none !important; }
    .bottom-navigation,
    .bottom-navigation-out { display: none !important; }
}

/* ============================================================
   기타 유틸
   ============================================================ */
/* PP 시스템 필수 클래스 - 절대 변경 금지 */
.hidden { display: none !important; }

/* 텍스트 */
.text-primary-color { color: var(--accent-color) !important; }
.text-muted         { color: var(--text-muted) !important; }
.text-success       { color: var(--success) !important; }
.text-danger        { color: var(--danger) !important; }

/* row 여백 리셋 */
.row { margin-left: -12px; margin-right: -12px; }
[class*="col-"] { padding-left: 12px; padding-right: 12px; }

/* ============================================================
   neworder: 검색 인풋 아이콘 여백
   ============================================================ */
.search-input-icon { padding-left: 36px !important; }

/* ============================================================
   neworder: 플랫폼 필터 버튼
   ============================================================ */
.platform-filter-section { margin-bottom: 20px; }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    width: 100%;
}
.platform-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-trans);
}
.platform-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-trans);
}

.pf-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.pf-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.platform-btn.active .pf-name { color: var(--accent-color); }

/* 플랫폼별 아이콘 색상 */
.pf-all     { background: var(--accent-color); font-size: 12px; }
.pf-insta   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.pf-yt      { background: #FF0000; }
.pf-fb      { background: #1877F2; }
.pf-tiktok  { background: #010101; }
.pf-kakao   { background: #FEE500; color: #3C1E1E !important; font-size: 14px; }
.pf-twitter { background: #000000; }
.pf-thread  { background: #000000; color: #ffffff; font-size: 17px; font-weight: 700; line-height: 1; }
.pf-naver   { background: #03C75A; font-size: 15px; }
.pf-other   { background: #1e293b; color: #ffffff; }

.pf-result-msg {
    font-size: 12px;
    color: var(--accent-color);
    margin: 8px 0 0;
    font-weight: 500;
}

/* ============================================================
   neworder: 공지사항 패널
   ============================================================ */
.notice-panel .panel-heading .fa { margin-right: 6px; color: var(--accent-color); }

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}
.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.12s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg-secondary); }

.notice-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}
.notice-badge.new {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-title:hover { color: var(--accent-color) !important; }

.notice-date {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   neworder: 서비스 안내 아코디언
   ============================================================ */
.guide-panel .panel-heading .fa { margin-right: 6px; color: var(--accent-color); }

.guide-accordion { }

.guide-item { border-bottom: 1px solid var(--border-color); }
.guide-item:last-child { border-bottom: none; }

.guide-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    gap: 10px;
}
.guide-toggle:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}
.guide-toggle span { flex: 1; }

.guide-arrow {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.guide-arrow.rotated { transform: rotate(180deg); color: var(--accent-color); }

.guide-body {
    display: none;
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--bg-secondary);
}
.guide-body.open { display: block; }
.guide-body p { margin: 0 0 6px; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body strong { color: var(--accent-color); }

/* ============================================================
   layout: 헤더 유저 드롭다운 (마이페이지/로그아웃)
   ============================================================ */
.user-header-menu { position: relative; }

.user-hdr-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.user-hdr-btn:hover, .user-hdr-btn:focus {
    background: var(--border-color);
    outline: none;
}
.user-hdr-btn .fa { font-size: 16px; color: var(--accent-color); }
.user-hdr-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.user-hdr-btn .caret { margin-left: 2px; }

.user-header-menu .dropdown-menu { min-width: 140px; }
.user-header-menu .dropdown-menu .fa { width: 16px; margin-right: 4px; }

/* ============================================================
   layout: 사이드바 하단 사업자 정보
   ============================================================ */
.sidebar-biz-info {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    margin-top: auto;
}
.biz-line {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 4px;
    line-height: 1.5;
}
.biz-line strong { color: var(--text-secondary); font-weight: 600; }
.biz-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}
.biz-links a {
    font-size: 11px;
    color: var(--text-muted);
}
.biz-links a:hover { color: var(--accent-color); }
.biz-links span { color: var(--border-color); font-size: 11px; }
.biz-copyright {
    font-size: 10px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* ============================================================
   neworder: 배너 슬라이더
   ============================================================ */
.banner-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    background: var(--bg-secondary);
}

.banner-slider {
    position: relative;
    width: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
}
.banner-slide.active { display: block; }

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-prev:hover,
.banner-next:hover { background: rgba(0,0,0,0.6); }

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.15s;
}
.banner-dot.active { background: #fff; }

/* ============================================================
   neworder: 서버 상태 표시줄
   ============================================================ */
.server-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    font-size: 13px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.server-status-bar[data-status="warning"] {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.server-status-bar[data-status="error"] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.srv-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: srvPulse 2s infinite;
}
.server-status-bar[data-status="warning"] .srv-dot { background: #f59e0b; }
.server-status-bar[data-status="error"]   .srv-dot { background: #ef4444; animation: none; }

@keyframes srvPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.srv-text { flex: 1; font-weight: 500; }
.srv-text strong { font-weight: 700; }
.srv-time { font-size: 11px; opacity: 0.7; white-space: nowrap; }

/* 모바일 전용 서버상태 복사본 — 기본 숨김, 모바일에서만 표시 */
.server-status-mobile-only { display: none; }

/* ============================================================
   neworder: 고객 리뷰
   ============================================================ */
.review-panel .panel-heading .fa { margin-right: 6px; color: #f59e0b; }

.review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.review-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.12s;
}
.review-item:last-child { border-bottom: none; }
.review-item:hover { background: var(--bg-secondary); }

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-stars {
    display: flex;
    gap: 2px;
}
.review-stars .fa {
    font-size: 13px;
    color: #f59e0b;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   모바일 상단 바 (Mobile Top Bar)
   ============================================================ */
.mobile-topbar {
    display: none; /* PC에서는 숨김, 모바일에서 표시 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1090;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

@media (max-width: 991px) {
    .mobile-topbar { display: flex; }
}

.mobile-topbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}
.mobile-topbar-logo img {
    max-height: 30px;
    max-width: 120px;
    object-fit: contain;
    width: auto;
}
.mobile-site-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.mobile-topbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.mobile-topbar-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.mobile-topbar-balance {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.3;
}
.mobile-topbar-login-btn {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 5px 12px;
    transition: background 0.15s;
}
.mobile-topbar-login-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}
.mobile-topbar-signup-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--accent-trans);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: var(--border-radius);
    padding: 5px 12px;
    transition: background 0.15s;
}
.mobile-topbar-signup-btn:hover {
    background: var(--accent-trans-h);
    color: var(--accent-color);
}

/* ============================================================
   모바일 하단 네비게이션 (Bottom Navigation)
   ============================================================ */
.bottom-navigation,
.bottom-navigation-out {
    display: none; /* PC에서는 숨김 */
}

@media (max-width: 991px) {
    .bottom-navigation {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
        z-index: 1110;
        padding: 0;
        gap: 0;
    }

    .bottom-navigation-out {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
        z-index: 1110;
        padding: 0;
        gap: 0;
    }

    .bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 9px 0 8px;
        font-size: 10px;
        font-weight: 500;
        font-family: inherit;
        line-height: 1;
        color: var(--text-muted);
        text-decoration: none;
        background: none;
        border: none;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer;
        transition: color 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-item:last-child { border-right: none; }
    .bottom-item i { font-size: 19px; }
    .bottom-item-name { white-space: nowrap; }

    .bottom-item:hover { color: var(--text-secondary); text-decoration: none; }

    .bottom-item.active {
        color: var(--accent-color);
    }
    .bottom-item.active i { color: var(--accent-color); }
    .bottom-item.active .bottom-item-name { font-weight: 700; }

    /* 서버 상태: 오른쪽 컬럼 원본은 숨기고, 배너 위 복사본만 표시 */
    .server-status-bar:not(.server-status-mobile-only) {
        display: none;
    }
    .server-status-mobile-only {
        display: flex;
    }
}

@media (min-width: 992px) {
    /* 서버 상태: 오른쪽 컬럼 원본만 표시, 모바일 복사본 숨김 */
    .server-status-mobile-only {
        display: none !important;
    }
}

/* ============================================================
   카카오톡 채널 플로팅 버튼
   ============================================================ */
.kakao-float {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 1080;
    display: block;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    transition: transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.kakao-float img {
    display: block;
    height: 72px;
    width: auto;
}
.kakao-float:hover {
    transform: translateY(-3px);
}

/* 모바일: 하단 네비 바로 위에 위치 */
@media (max-width: 991px) {
    .kakao-float {
        bottom: 75px;
        right: 14px;
    }
    .kakao-float img {
        height: 46px;
    }
}

/* ============================================================
   signin.twig — 게스트 로그인 모달 오버레이
   ============================================================ */
.guest-signin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.guest-signin-overlay.active {
    display: flex;
}
.guest-signin-box {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    position: relative;
    animation: signinSlideUp 0.22s ease;
}
@keyframes signinSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.guest-signin-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.guest-signin-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.guest-signin-header {
    text-align: center;
    margin-bottom: 24px;
}
.guest-signin-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.guest-signin-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.guest-signin-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.guest-signin-box .form-group {
    margin-bottom: 14px;
}
.guest-signin-box .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    height: 42px;
    padding: 8px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.guest-signin-box .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-trans);
    outline: none;
}
.guest-signin-box .btn-signin-submit {
    width: 100%;
    height: 44px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}
.guest-signin-box .btn-signin-submit:hover {
    background: var(--accent-hover);
}
.guest-signin-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.guest-signin-google:hover {
    background: var(--bg-secondary);
    border-color: #cbd5e1;
    color: var(--text-primary);
    text-decoration: none;
}
.guest-signin-google img {
    width: 18px;
    height: 18px;
}
.guest-signin-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.guest-signin-divider::before,
.guest-signin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.guest-signin-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
}
.guest-signin-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.guest-signin-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.guest-signin-box .signin-alert-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 8px;
    color: var(--danger);
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
/* 로그인 상태 유지 체크박스 */
.signin-remember {
    margin: 0 0 16px;
}
.signin-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}
.signin-remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-color);
    cursor: pointer;
    margin: 0;
}
.guest-locked-select {
    cursor: pointer;
    pointer-events: auto;
}
#orderGuestBtn {
    width: 100%;
    height: 44px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}
#orderGuestBtn:hover {
    background: var(--accent-hover);
}
@media (max-width: 480px) {
    .guest-signin-box {
        padding: 28px 18px 22px;
    }
}

/* ============================================================
   addfunds.twig — 잔액 충전 페이지
   ============================================================ */

/* 현재 잔액 카드 */
.addfunds-balance-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #3b82f6 100%) !important;
    border: none !important;
}
.addfunds-balance-card .panel-body {
    text-align: center;
    padding: 28px 20px !important;
}
.addfunds-balance-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.80);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.addfunds-balance-label .fa { margin-right: 5px; }
.addfunds-balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}
.addfunds-balance-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* 빠른 금액 헤더 (라벨 + 초기화 버튼) */
.quick-amount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.quick-amount-header .control-label { margin-bottom: 0; }
.quick-amount-reset {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 10px;
    font-family: inherit;
    transition: all 0.15s;
}
.quick-amount-reset:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* 빠른 금액 버튼 그리드 */
.quick-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.quick-amount-btn {
    padding: 10px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    text-align: center;
}
.quick-amount-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-trans);
    color: var(--accent-color);
}
.quick-amount-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-trans);
    color: var(--accent-color);
}

/* 실시간 충전 금액 표시 박스 */
.amount-display-box {
    background: var(--accent-trans);
    border: 1.5px solid rgba(37, 99, 235, 0.22);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    margin-bottom: 14px;
}
.amount-display-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.amount-display-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    flex-shrink: 0;
}
.amount-display-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.amount-display-input {
    background: none;
    border: none;
    outline: none;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
    text-align: right;
    font-family: inherit;
    width: 100%;
    min-width: 0;
    letter-spacing: -0.5px;
}
.amount-display-input::placeholder { color: rgba(37,99,235,0.3); font-weight: 400; }
.amount-display-unit {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* 제출 버튼 */
.addfunds-submit-btn {
    height: 46px;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 4px;
}
.addfunds-submit-btn .fa { margin-right: 6px; }

/* 충전 안내 리스트 */
.addfunds-guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.addfunds-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.addfunds-guide-item:last-child { border-bottom: none; }
.addfunds-guide-icon {
    flex-shrink: 0;
    color: var(--success);
    font-size: 14px;
    margin-top: 2px;
}

/* 충전 내역 테이블 */
.addfunds-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.addfunds-amount-cell {
    font-weight: 600;
    color: var(--accent-color);
}

/* 모바일 대응 */
@media (max-width: 576px) {
    .quick-amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .addfunds-balance-amount {
        font-size: 26px;
    }
}

/* ============================================================
   addfunds — 무통장입금 안내 모달
   ============================================================ */
.addfunds-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.addfunds-modal-overlay.active { display: flex; }

.addfunds-modal-box {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 28px;
    position: relative;
    animation: signinSlideUp 0.22s ease;
}
.addfunds-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.addfunds-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* 헤더 */
.addfunds-modal-header {
    text-align: center;
    margin-bottom: 22px;
}
.addfunds-modal-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: var(--accent-color);
}
.addfunds-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.addfunds-modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 금액 박스 */
.addfunds-modal-amount-box {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.addfunds-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}
.addfunds-modal-row + .addfunds-modal-row {
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    padding-top: 12px;
}
.addfunds-modal-row-highlight .addfunds-modal-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
}
.addfunds-modal-label {
    color: var(--text-secondary);
    font-weight: 500;
}
.addfunds-modal-label small {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.addfunds-modal-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* 계좌 박스 */
.addfunds-modal-bank-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    margin-bottom: 6px;
}
.addfunds-modal-bank-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.addfunds-modal-bank-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.addfunds-modal-bank-account {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.addfunds-modal-copy-btn {
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.addfunds-modal-copy-btn:hover { background: var(--accent-hover); }
.addfunds-modal-copy-msg {
    display: none;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    margin: 0 0 12px;
    text-align: center;
}

/* 안내 문구 */
.addfunds-modal-notice {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 12px 0 16px;
    text-align: center;
}

/* 카카오톡 버튼 */
.addfunds-modal-kakao-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #FEE500;
    color: #3C1E1E !important;
    border-radius: var(--border-radius);
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.15s;
}
.addfunds-modal-kakao-btn:hover { opacity: 0.88; }
.addfunds-modal-kakao-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .addfunds-modal-box { padding: 28px 18px 22px; }
    .addfunds-modal-bank-account { font-size: 13px; }
}

/* ============================================================
   orders.twig — 주문 관리 페이지
   ============================================================ */

/* 상단 바: 필터 탭 + 검색 */
.orders-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* 상태 필터 탭 */
.orders-status-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.orders-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.orders-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-trans);
    text-decoration: none;
}
.orders-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
}
.orders-tab.active:hover { color: #fff; }

/* 검색 폼 */
.orders-search-form { flex-shrink: 0; }
.orders-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.orders-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.orders-search-input {
    padding-left: 34px !important;
    width: 200px;
    height: 36px !important;
    font-size: 13px !important;
}

/* 테이블 컬럼 */
.orders-col-service { min-width: 160px; max-width: 220px; }
.orders-col-link    { max-width: 160px; }

.orders-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.orders-date {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.orders-service-name {
    font-size: 13px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.orders-link-text {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.orders-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--bg-secondary);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
    transition: all 0.15s;
}
.orders-detail-btn:hover {
    background: var(--accent-trans);
    color: var(--accent-color);
}
.orders-charge {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

/* 상태 배지 */
.orders-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
/* pending */
.orders-status-badge.orders-status-pending    { background: var(--warning-bg); color: var(--warning); }
/* inprogress / in progress */
.orders-status-badge.orders-status-inprogress,
.orders-status-badge.orders-status-in-progress { background: var(--accent-trans); color: var(--accent-color); }
/* completed */
.orders-status-badge.orders-status-completed  { background: var(--success-bg); color: var(--success); }
/* partial */
.orders-status-badge.orders-status-partial    { background: rgba(245,158,11,0.12); color: #b45309; }
/* processing */
.orders-status-badge.orders-status-processing { background: var(--accent-trans); color: var(--accent-color); }
/* canceled / cancelled */
.orders-status-badge.orders-status-canceled,
.orders-status-badge.orders-status-cancelled  { background: var(--danger-bg); color: var(--danger); }

.orders-cancel-icon {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 5px;
    cursor: help;
}

/* 액션 버튼 */
.orders-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
}
.orders-refilling-badge,
.orders-cancel-requested {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 빈 목록 */
.orders-empty {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--text-muted);
}
.orders-empty .fa {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}
.orders-empty p {
    margin: 0;
    font-size: 14px;
}

/* 모바일 */
@media (max-width: 991px) {
    .orders-top-bar { flex-direction: column; align-items: stretch; }
    .orders-search-input { width: 100%; }
    .orders-search-form { width: 100%; }
    .orders-search-wrap { width: 100%; }
}

/* ============================================================
   Account (계정 설정)
   ============================================================ */

/* 탭 네비게이션 */
.account-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 6px;
}
.account-tab {
    flex: 1;
    text-align: center;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.18s;
}
.account-tab:hover { background: var(--bg-secondary); color: var(--text-primary); }
.account-tab.active {
    background: var(--accent-color);
    color: #fff;
}
.account-tab .fa { margin-right: 6px; }

/* 패널 그리드 */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.account-panel { margin-bottom: 0 !important; }

/* 계정 정보 행 */
.account-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.account-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.account-info-row:first-child { padding-top: 0; }
.account-info-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 14px;
    flex-shrink: 0;
}
.account-info-content { flex: 1; min-width: 0; }
.account-info-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.account-info-value { font-size: 14px; font-weight: 500; color: var(--text-primary); word-break: break-all; }
.account-change-btn {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
}

/* 2FA 배지 */
.account-badge-on, .account-badge-off {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
}
.account-badge-on { background: var(--success-bg); color: var(--success); }
.account-badge-off { background: var(--danger-bg); color: var(--danger); }

.account-2fa-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* API 키 */
.account-apikey-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.account-apikey-input { font-family: monospace; font-size: 12px; flex: 1; }
.account-apikey-copy {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}
.account-apikey-copy:hover { background: var(--accent-trans); color: var(--accent-color); border-color: var(--accent-color); }
.account-apikey-date {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* 모바일 */
@media (max-width: 767px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-tabs { flex-direction: column; }
    .account-tab { flex: none; }
}

/* ============================================================
   Blog (블로그 목록)
   ============================================================ */

/* 블로그 헤더 */
.blog-header { margin-bottom: 20px; }

/* 블로그 카드 그리드 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}
.blog-card {
    margin-bottom: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.blog-card-img-wrap { display: block; overflow: hidden; }
.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}
.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--accent-color); }
.blog-card-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 14px;
}
.blog-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: auto;
}
.blog-card-more:hover { color: var(--accent-hover); }
.blog-card-more .fa { font-size: 11px; }

@media (max-width: 767px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog Post (블로그 상세)
   ============================================================ */

.blogpost-wrap { max-width: 780px; margin: 0 auto; }
.blogpost-panel { overflow: hidden; }
.blogpost-img-wrap { overflow: hidden; }
.blogpost-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
.blogpost-body { padding: 28px 32px; }
.blogpost-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
    line-height: 1.35;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.blogpost-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
}
.blogpost-content img { max-width: 100%; border-radius: var(--border-radius); }
.blogpost-content h1, .blogpost-content h2, .blogpost-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}
.blogpost-content p { margin-bottom: 14px; }
.blogpost-back {
    margin-top: 16px;
}

@media (max-width: 767px) {
    .blogpost-body { padding: 20px 16px; }
    .blogpost-title { font-size: 20px; }
}

/* CTA 배너 */
.blogpost-cta {
    margin-top: 28px;
    margin-bottom: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #1e3a8a 0%, #2563EB 55%, #3b82f6 100%);
    overflow: hidden;
    position: relative;
}
.blogpost-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.blogpost-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
}
.blogpost-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.blogpost-cta-text {
    flex: 1;
    min-width: 0;
}
.blogpost-cta-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.blogpost-cta-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.5;
}
.blogpost-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--accent-color) !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}
.blogpost-cta-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: var(--accent-hover) !important;
    text-decoration: none;
}
.blogpost-cta-btn .fa { font-size: 12px; }

@media (max-width: 600px) {
    .blogpost-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 14px;
    }
    .blogpost-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   signup.twig — 회원가입 페이지
   ============================================================ */
.signup-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.signup-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 460px;
    padding: 40px 36px 32px;
}

/* 헤더 */
.signup-header {
    text-align: center;
    margin-bottom: 28px;
}
.signup-header-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: var(--accent-color);
}
.signup-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px;
}
.signup-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.signup-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 알림 */
.signup-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--border-radius);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.signup-alert .fa { margin-top: 1px; flex-shrink: 0; }
.signup-alert-danger  { background: var(--danger-bg);  color: var(--danger); }
.signup-alert-success { background: var(--success-bg); color: var(--success); }

/* 약관 체크박스 */
.signup-terms {
    margin-bottom: 18px;
}
.signup-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}
.signup-terms-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-color);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}
.signup-terms-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 제출 버튼 */
.signup-submit-btn {
    height: 46px;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 4px;
}
.signup-submit-btn .fa { margin-right: 6px; }

/* 구분선 */
.signup-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.signup-divider::before,
.signup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* 하단 로그인 링크 */
.signup-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}
.signup-footer a {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 4px;
}
.signup-footer a:hover { color: var(--accent-hover); text-decoration: underline; }

@media (max-width: 480px) {
    .signup-card { padding: 28px 18px 24px; }
    .signup-header h2 { font-size: 20px; }
}

/* ============================================================
   AFFILIATES
   ============================================================ */

/* 통계 카드 그리드 */
.aff-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.aff-stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow 0.18s, transform 0.18s;
}
.aff-stat-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.aff-stat-card-highlight {
    border-color: var(--success);
    flex-direction: column;
    align-items: stretch;
}
.aff-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.aff-stat-card-highlight .aff-stat-icon {
    margin-bottom: 4px;
}
.aff-stat-body { flex: 1; min-width: 0; }
.aff-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.aff-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.aff-stat-earn { color: var(--accent-color); }
.aff-stat-avail { color: var(--success); }

/* 지급 요청 버튼 */
.aff-payout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--success);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s, opacity 0.18s;
    text-decoration: none !important;
}
.aff-payout-btn:hover { background: #059669; opacity: 0.92; }

/* 추천 링크 입력 + 복사 */
.aff-link-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.aff-link-input {
    flex: 1;
    background: var(--input-bg) !important;
    color: var(--text-secondary) !important;
    font-size: 13px;
    border-radius: var(--radius-md) !important;
    cursor: text;
}
.aff-link-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}
.aff-link-copy:hover { background: var(--accent-hover); }

/* 복사 완료 메시지 */
.aff-copy-msg {
    display: none;
    font-size: 12px;
    color: var(--success);
    margin: 0 0 12px;
    font-weight: 500;
}

/* 이용 방법 스텝 */
.aff-how-to {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.aff-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.aff-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 커미션 정보 행 */
.aff-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}
.aff-info-row:last-child { border-bottom: none; }
.aff-info-label { color: var(--text-secondary); }
.aff-info-value { font-weight: 700; color: var(--text-primary); }
.aff-info-value.accent { color: var(--accent-color); }

/* 지급 내역 테이블 */
.aff-date { font-size: 13px; color: var(--text-secondary); }
.aff-amount { font-weight: 600; color: var(--text-primary); }
.aff-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.aff-status-paid    { background: rgba(16,185,129,0.12); color: #059669; }
.aff-status-pending { background: rgba(245,158,11,0.12);  color: #d97706; }
.aff-status-rejected{ background: rgba(239,68,68,0.12);   color: #dc2626; }

/* 반응형 */
@media (max-width: 991px) {
    .aff-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .aff-stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .aff-link-wrap { flex-direction: column; }
    .aff-link-copy { width: 100%; justify-content: center; }
}

/* ============================================================
   resetpassword.twig — 비밀번호 찾기
   ============================================================ */
.resetpw-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.resetpw-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 32px;
}
.resetpw-header {
    text-align: center;
    margin-bottom: 28px;
}
.resetpw-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: var(--accent-color);
}
.resetpw-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}
.resetpw-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}
.resetpw-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--border-radius);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.resetpw-alert .fa { margin-top: 1px; flex-shrink: 0; }
.resetpw-alert-danger  { background: var(--danger-bg);  color: var(--danger); }
.resetpw-alert-success { background: var(--success-bg); color: var(--success); }
.resetpw-submit-btn {
    height: 46px;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 4px;
}
.resetpw-submit-btn .fa { margin-right: 6px; }
.resetpw-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}
.resetpw-footer a {
    color: var(--text-secondary);
    transition: color 0.15s;
}
.resetpw-footer a:hover { color: var(--accent-color); }
.resetpw-footer .fa { margin-right: 4px; }

@media (max-width: 480px) {
    .resetpw-card { padding: 28px 18px 24px; }
}

/* ============================================================
   FAQ 페이지
   ============================================================ */
.faq-page {
    max-width: 100%;
    margin: 0;
    padding: 28px 20px 48px;
}
.faq-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 22px;
}

/* 탭 */
.faq-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.faq-tab-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.faq-tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.faq-tab-btn.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* 그리드 */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* FAQ 아이템 */
.faq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    width: 100%;
}
.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    background: var(--accent-trans);
}
.faq-question-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}
.faq-chevron {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s;
}
.faq-item:hover .faq-chevron {
    color: var(--accent-color);
}

/* 모달 오버레이 */
.faq-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.faq-modal-overlay.open {
    display: flex;
}

/* 모달 카드 */
.faq-modal {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 580px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: faqModalIn 0.18s ease;
}
@keyframes faqModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 카테고리 배지 */
.faq-modal-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

/* 모달 제목 */
.faq-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 18px;
    line-height: 1.4;
}

/* 모달 본문 */
.faq-modal-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 18px;
    background: var(--bg-secondary);
}
.faq-modal-body p {
    margin: 0 0 4px;
}
.faq-modal-body br {
    display: block;
    margin: 6px 0;
}

/* 닫기 버튼 */
.faq-modal-close-btn {
    width: 100%;
    height: 46px;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* 반응형 */
@media (max-width: 640px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-modal {
        padding: 24px 18px 20px;
    }
    .faq-modal-title {
        font-size: 16px;
    }
}
