/* ===== GLOBAL PAGE LAYOUT (with right sidebar) ===== */
.main-wrapper {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
    background: #ffffff; /* 본문 백드롭 순수 흰색 (카드/칸은 유지) */
}

.main-left-content {
    flex: 7;
    min-width: 0;
    background: var(--bg-primary);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.global-right-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    align-self: flex-start;
    margin-top: var(--spacing-md);
}

/* 내 정보 위젯 */
.user-info-widget {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.14), rgba(30, 164, 89, 0.06));
    border: 1px solid rgba(30, 164, 89, 0.28);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    margin-bottom: var(--spacing-md);
    min-height: 160px;
    position: relative;
    overflow: visible;
    z-index: 100;
}

.user-info-time {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    border-bottom: 1px solid rgba(30, 164, 89, 0.18);
    text-align: center;
    letter-spacing: 0.3px;
}

.user-info-guest {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-align: center;
}

.user-info-guest p {
    margin: 0 0 15px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.btn-login-small {
    display: inline-block;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.2);
}

.btn-login-small:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 25px rgba(30, 164, 89, 0.4);
    transform: translateY(-1px);
}

.guest-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-register-small {
    display: inline-block;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    transition: all var(--transition-normal);
}

.btn-register-small:hover {
    background: rgba(30, 164, 89, 0.1);
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.2);
    transform: translateY(-1px);
}

.user-info-panel {
    display: flex;
    padding: 12px 15px 8px;
    gap: 12px;
}

.user-info-left {
    flex-shrink: 0;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    box-shadow: 0 0 20px rgba(30, 164, 89, 0.4);
}

.user-avatar-img-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.3);
}

.user-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-nickname {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-rank {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--accent-primary);
    color: white;
    border-radius: 3px;
    text-decoration: none;
}

a.user-rank.admin {
    background: linear-gradient(135deg, #e52955, #d83d44);
    cursor: pointer;
    transition: all 0.2s;
}

a.user-rank.admin:hover {
    background: linear-gradient(135deg, #f87171, #e52955);
    transform: scale(1.05);
}

.user-rank-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-level-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.user-rank-name {
    font-size: 11px;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #4a5568, #e7ecf1);
    padding: 2px 6px;
    border-radius: 3px;
}

.user-level {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.point-label {
    font-size: 12px;
    font-weight: 700;
    color: #f1c40f;
}

.point-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-points-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.user-points-link:hover {
    background: var(--bg-tertiary);
}

/* 사이드바 잔액 표시 (포인트 + TRX) */
.user-balances {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.user-balance-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.user-balance-link.points {
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.user-balance-link.points:hover {
    background: rgba(74, 144, 226, 0.25);
}

.user-balance-link.points .balance-label {
    color: #4a90e2;
    font-weight: 600;
}

.user-balance-link.points .balance-value {
    color: var(--text-primary);
    font-weight: 500;
}

.user-balance-link.trx {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-balance-link.trx:hover {
    background: rgba(239, 68, 68, 0.25);
}

.user-balance-link.trx .balance-label {
    color: #e52955;
    font-weight: 600;
}

.user-balance-link.trx .balance-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 사이드바 포인트 표시 */
.sidebar-points-display {
    padding: 8px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
}

.sidebar-points-display .points-value-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-points-display .points-value-link:hover {
    transform: scale(1.02);
}

.sidebar-points-display .points-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: var(--neon-text-glow);
}

.sidebar-points-display .points-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* 사이드바 포인트 & 쿠폰 통계 행 */
.sidebar-stats-row {
    display: flex;
    gap: 6px;
    padding: 4px 15px 8px;
    border-bottom: 1px solid var(--border-dark);
}

.sidebar-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-stat-item:hover {
    background: var(--bg-primary);
    transform: scale(1.02);
}

.sidebar-stat-item .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-stat-item .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 6px rgba(30, 164, 89, 0.55);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* #sidebar-points / #sidebar-cash-points 빛번짐(글로우) 제거 — 다른 스타일은 유지 */
#sidebar-points,
#sidebar-cash-points {
    text-shadow: none;
}

/* 회원등급명 빛번짐(글로우) 제거 — 라이트 모드만 (다크는 글로우 유지) */
[data-theme="light"] .sidebar-stat-item.member-tier .stat-value.member-tier-name {
    text-shadow: none;
}

.sidebar-stat-item .stat-unit {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* 도파민포인트 강조 (사이드바) */
.sidebar-stat-item.sidebar-stat-dopamine {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.10), rgba(168, 85, 247, 0.03));
    border: 1px solid rgba(168, 85, 247, 0.30);
}
.sidebar-stat-item.sidebar-stat-dopamine .stat-label {
    color: #1ea459;
}
.sidebar-stat-item.sidebar-stat-dopamine .stat-value {
    color: #1ea459;
}
.sidebar-stat-item.sidebar-stat-dopamine:hover {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.16), rgba(30, 164, 89, 0.06));
}

/* 캐시포인트 강조 (사이드바) — amber/gold 톤 [2026-05-22 베팅판 머지] */
.sidebar-stat-item.sidebar-stat-cash {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.30);
}
.sidebar-stat-item.sidebar-stat-cash .stat-label {
    color: #a16207;
}
.sidebar-stat-item.sidebar-stat-cash .stat-value {
    color: #a16207;
}
.sidebar-stat-item.sidebar-stat-cash:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
}

/* 포인트/회원등급 아이콘 (이미지 기반 stats-row) — 1행 1항목 풀폭 세로 스택 */
.sidebar-stats-row.sidebar-stats-row-labeled {
    flex-direction: column;
    gap: 8px;
}
.sidebar-stats-row-labeled .sidebar-stat-item {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    min-width: 0;
}
.sidebar-stats-row-labeled .point-icon,
.sidebar-stats-row-labeled .verified-badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-stats-row-labeled .sidebar-stat-item .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.sidebar-stats-row-labeled .sidebar-stat-item .stat-value {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    min-width: 0;
}

/* 회원등급 행 — 일반(틸) / 가족(골드) / 블라인드(레드) 3분기 */
.sidebar-stat-item.member-tier {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.10), rgba(30, 164, 89, 0.03));
    border: 1px solid rgba(30, 164, 89, 0.30);
}
.sidebar-stat-item.member-tier .stat-label,
.sidebar-stat-item.member-tier .stat-value.member-tier-name {
    color: #1ea459;
}
.sidebar-stat-item.member-tier:hover {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.18), rgba(30, 164, 89, 0.08));
}

/* 가족회원 — 골드/앰버 */
.sidebar-stat-item.member-tier.member-tier-family {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    border-color: rgba(245, 158, 11, 0.35);
}
.sidebar-stat-item.member-tier.member-tier-family .stat-label,
.sidebar-stat-item.member-tier.member-tier-family .stat-value.member-tier-name {
    color: #a16207;
}
.sidebar-stat-item.member-tier.member-tier-family:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.08));
}

/* 블라인드 — 레드 */
.sidebar-stat-item.member-tier.member-tier-blind {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
    border-color: rgba(239, 68, 68, 0.40);
}
.sidebar-stat-item.member-tier.member-tier-blind .stat-label,
.sidebar-stat-item.member-tier.member-tier-blind .stat-value.member-tier-name {
    color: #d83d44;
}
.sidebar-stat-item.member-tier.member-tier-blind:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.20), rgba(239, 68, 68, 0.08));
}

/* 도파민포인트 전용 슬림 행 (사이드바 stats-row 한 칸 아래) */
.sidebar-stats-row.sidebar-stats-row-slim {
    padding: 0 15px 8px;
    border-bottom: 1px solid var(--border-dark);
}
.sidebar-stats-row.sidebar-stats-row-slim .sidebar-stat-item {
    padding: 2px 8px;
    gap: 6px;
    min-height: 24px;
}
.sidebar-stats-row.sidebar-stats-row-slim .sidebar-stat-item .stat-label {
    font-size: 11px;
}
.sidebar-stats-row.sidebar-stats-row-slim .sidebar-stat-item .stat-value {
    font-size: 13px;
}

/* 사이드바 레벨 프로그레스 바 */
.sidebar-level-progress {
    padding: 8px 15px 12px;
}

.level-progress-bar-small {
    position: relative;
    height: 14px;
    background: var(--bg-tertiary);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    margin-bottom: 4px;
}

.level-progress-bar-small.max-level {
    border-color: var(--accent-primary);
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #1ea459);
    border-radius: 7px;
    transition: width 0.3s ease;
}

.level-progress-bar-small.max-level .progress-fill-small {
    background: linear-gradient(90deg, #f59e0b, #e52955);
}

.progress-text-small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    display: block;
    letter-spacing: 0.2px;
}

/* ===== 현금 전환 경험치 (베트판 동일 디자인) ===== */
.sidebar-cash-xp {
    padding: 10px 15px 16px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}
.cash-xp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: nowrap;
}
.cash-xp-label {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: #333333;
}
.cash-xp-percent {
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-primary);
    flex-shrink: 0;
    white-space: nowrap;
}
.cash-xp-bar {
    position: relative;
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    margin-bottom: 4px;
}
.cash-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #1ea459);
    border-radius: 8px;
    transition: width 0.3s ease;
    max-width: 100%;
}
.cash-xp-amount {
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.cash-xp-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.cash-xp-hint strong {
    color: var(--text-primary);
}
/* 모바일 햄버거 안에서는 적립 규칙 안내(hint) 숨김 (베트판 동일) */
.mobile-nav .sidebar-cash-xp .cash-xp-hint,
#mobile-nav-user .sidebar-cash-xp .cash-xp-hint { display: none; }
/* 좁은 폭(사이드바 축소 구간)에서 cash-xp 축소 */
@media (max-width: 1400px) {
    .sidebar-cash-xp {
        padding: 8px 12px 12px;
    }
    .cash-xp-head { font-size: 13px; }
    .cash-xp-percent { font-size: 14px; }
    .cash-xp-hint { font-size: 11px; }
}

/* 모바일 전용 현금 전환 경험치 띠 (헤더 바로 아래에 normal-flow로 노출) — 모바일에서도 숨김 처리 */
.mobile-cash-xp-bar { display: none !important; }
.mobile-level-xp-bar { display: none !important; }
@media (max-width: 1024px) {
    .mobile-cash-xp-bar,
    .mobile-level-xp-bar {
        align-items: center;
        gap: 10px;
        padding: 6px 14px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-dark);
        font-size: 12px;
        text-decoration: none;
        color: var(--text-primary);
        box-sizing: border-box;
        height: 32px;
    }
    .mobile-cash-xp-bar:hover,
    .mobile-level-xp-bar:hover { filter: brightness(1.08); }
    .mobile-cash-xp-label {
        color: var(--text-muted);
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .mobile-cash-xp-track {
        flex: 1;
        height: 10px;
        min-width: 0;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-dark);
        border-radius: 5px;
        overflow: hidden;
    }
    .mobile-cash-xp-fill {
        height: 100%;
        max-width: 100%;
        background: linear-gradient(90deg, #f59e0b, #1ea459);
        border-radius: 5px;
        transition: width 0.3s ease;
    }
    .mobile-cash-xp-percent {
        color: var(--accent-primary);
        font-weight: 700;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 36px;
        text-align: right;
    }
}

/* 포인트바 포인트 표시 (항상 표시) */
.progress-points-hover {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    z-index: 1;
}

.level-progress-bar-small {
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.user-info-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(30, 164, 89, 0.18);
    border-bottom: 1px solid rgba(30, 164, 89, 0.18);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    white-space: nowrap;
}

.user-info-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.user-info-links a:hover {
    color: var(--accent-primary);
}

.user-info-links .divider {
    font-size: 11px;
    color: rgba(203, 213, 225, 0.28);
}

.user-info-links .message-link {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e52955;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

.user-info-links .notification-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e52955;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

/* 알림 드롭다운 */
.notification-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    margin-top: 4px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    overflow-y: auto;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-dark);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-header a {
    font-size: 12px;
    font-weight: 400;
    color: var(--accent-primary);
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

.notification-item.unread {
    background: rgba(74, 144, 226, 0.05);
}

.notification-icon {
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    min-width: 36px;
    text-align: center;
}

.notification-icon.type-comment {
    background: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
}

.notification-icon.type-reply {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.notification-icon.type-like {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.notification-icon.type-point_gift {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.notification-icon.type-system {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.notification-icon.type-message {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
}

.notification-icon.type-new_post {
    background: rgba(139, 195, 74, 0.15);
    color: #8bc34a;
}

.notification-icon.type-warning {
    background: rgba(239, 68, 68, 0.15);
    color: #e52955;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 4px 0;
    word-break: break-word;
}

.notification-item.unread .notification-title {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 4px 0;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-empty,
.notification-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.user-info-guest {
    padding: 20px;
    text-align: center;
}

.user-info-guest p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.btn-login-small {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    font-size: 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-login-small:hover {
    box-shadow: 0 0 20px rgba(30, 164, 89, 0.4);
}

.guest-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-register-small {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    color: var(--accent-primary);
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-register-small:hover {
    background: rgba(30, 164, 89, 0.1);
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.2);
}

/* Right Sidebar Chat Widget */
.global-right-sidebar .chat-widget {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.global-right-sidebar .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.1) 0%, rgba(30, 164, 89, 0.05) 100%);
    border-bottom: 1px solid rgba(30, 164, 89, 0.2);
}

.global-right-sidebar .widget-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0;
    text-shadow: var(--neon-text-glow);
}

.global-right-sidebar .chat-container {
    display: flex;
    flex-direction: column;
    height: 605px;
    position: relative;
}

/* 채팅 공지사항 패널 */
.chat-notice-panel {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.15), rgba(30, 164, 89, 0.05));
    border-bottom: 1px solid var(--border-dark);
    font-size: 11px;
}
.chat-notice-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}
.chat-notice-header:hover {
    background: rgba(0,0,0,0.03);
}
.chat-notice-icon {
    font-size: 12px;
}
.chat-notice-title {
    flex: 1;
    font-weight: 600;
    color: var(--primary);
}
.chat-notice-arrow {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.chat-notice-panel.collapsed .chat-notice-arrow {
    transform: rotate(-90deg);
}
.chat-notice-content {
    padding: 0 10px 8px 27px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.2s, padding 0.2s;
}
.chat-notice-content p {
    margin: 0;
}
.chat-notice-panel.collapsed .chat-notice-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.global-right-sidebar .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-right-sidebar .chat-message {
    padding: 10px 12px;
    background: var(--glass-bg-dark);
    border-radius: var(--radius-md);
    font-size: 13px;
    border: 1px solid var(--glass-border);
}

.global-right-sidebar .chat-message .msg-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.global-right-sidebar .chat-message .chat-level-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.global-right-sidebar .chat-message .msg-nickname {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 13px;
}

.global-right-sidebar .chat-message .chat-admin-badge {
    background: #17833f;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.global-right-sidebar .chat-message .msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

.global-right-sidebar .chat-message .msg-content {
    color: var(--text-secondary);
    word-break: break-word;
    font-size: 13px;
    line-height: 1.5;
}

/* 채팅 시스템 메시지 */
.global-right-sidebar .chat-message.system-message {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 8px 0;
}

.global-right-sidebar .chat-message.system-message .system-msg-content {
    color: #1ea459;
    font-size: 12px;
    text-align: center;
}

/* 채팅 헤더 컨트롤 */
.global-right-sidebar .chat-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 채팅 초기화 버튼 */
.chat-clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s;
}

.chat-clear-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.2);
}

.global-right-sidebar .chat-login-notice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.9);
    gap: 12px;
    z-index: 10;
}

.global-right-sidebar .chat-login-notice p {
    color: var(--text-gray);
    font-size: 13px;
    text-align: center;
}

.global-right-sidebar .btn-chat-login {
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.global-right-sidebar .btn-chat-login:hover {
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.4);
}

.global-right-sidebar .chat-input-area {
    display: flex;
    padding: 8px;
    gap: 6px;
    border-top: 1px solid var(--border-dark);
}

.global-right-sidebar .chat-input-area input {
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg-dark);
    color: var(--text-light);
    font-size: 13px;
}

.global-right-sidebar .chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.global-right-sidebar .chat-input-area button {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.global-right-sidebar .chat-input-area button:hover {
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.4);
}

.global-right-sidebar .chat-input-area input:read-only {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.global-right-sidebar .chat-input-area button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 채팅 입력 wrapper */
.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input-wrapper input {
    width: 100%;
}

/* 멘션 드롭다운 */
.mention-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-bottom: 4px;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.mention-item:hover,
.mention-item.selected,
.mention-item.active {
    background: var(--bg-tertiary);
}

.mention-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.mention-nickname,
.mention-name {
    font-size: 13px;
    color: var(--text-light);
}

/* 채팅 메시지 내 멘션 하이라이트 */
.chat-mention {
    color: var(--accent-primary);
    font-weight: 500;
    background: rgba(30, 164, 89, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-mention:hover {
    background: rgba(30, 164, 89, 0.3);
}

.global-right-sidebar .chat-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-dark);
}

.global-right-sidebar .chat-status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.global-right-sidebar .chat-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: #fcfcfc;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
}

.global-right-sidebar .chat-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Side Banners in Right Sidebar */
.global-right-sidebar .side-banner-area {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: transparent;
    padding: var(--spacing-sm);
}

.global-right-sidebar .side-banner-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.global-right-sidebar .side-banner-item:hover {
    transform: scale(1.02);
}

.global-right-sidebar .side-banner-item img {
    width: 100%;
    height: 80px;
    object-fit: fill;
    display: block;
}

.global-right-sidebar .side-banner-placeholder {
    height: 80px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-dark);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.global-right-sidebar .side-banner-placeholder:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

/* Mobile Chat Button & Modal */
.mobile-chat-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    border: none;
    box-shadow: 0 4px 20px rgba(30, 164, 89, 0.3);
    cursor: pointer;
    z-index: 1100;
    font-size: 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    transition: all var(--transition-normal);
}

.mobile-chat-btn .chat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.mobile-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(30, 164, 89, 0.5);
}

.mobile-chat-btn .chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-chat-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80vh;
    background: var(--glass-bg-dark);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    border-top: 1px solid rgba(30, 164, 89, 0.3);
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.5), 0 -5px 30px rgba(30, 164, 89, 0.15);
    z-index: 2000;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.mobile-chat-modal.open {
    display: flex;
    transform: translateY(0);
}

.mobile-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(30, 164, 89, 0.2);
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.1) 0%, rgba(30, 164, 89, 0.05) 100%);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.mobile-chat-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(30, 164, 89, 0.5);
}

.chat-user-count {
    display: inline-block;
    background: var(--success);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
}

.mobile-chat-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-chat-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.mobile-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.mobile-chat-body .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-chat-body .chat-message {
    padding: 10px 12px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.mobile-chat-body .chat-message .msg-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.mobile-chat-body .chat-message .chat-level-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-chat-body .chat-message .chat-admin-badge {
    background: #17833f;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.mobile-chat-body .chat-message .msg-time {
    margin-left: auto;
}

/* 모바일 채팅 시스템 메시지 */
.mobile-chat-body .chat-message.system-message {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 10px 0;
}

.mobile-chat-body .chat-message.system-message .system-msg-content {
    color: #1ea459;
    font-size: 13px;
    text-align: center;
}

/* 모바일 채팅 초기화 버튼 */
.mobile-chat-controls .chat-clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0.7;
}

.mobile-chat-controls .chat-clear-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.2);
}

.mobile-chat-body .chat-input-area {
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-secondary);
}

.mobile-chat-body .chat-input-area input {
    padding: 12px 14px;
    font-size: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
}

.mobile-chat-body .chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.mobile-chat-body .chat-input-area button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #f5f5f5;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.mobile-chat-body .chat-input-area button:hover {
    box-shadow: 0 0 15px rgba(30, 164, 89, 0.4);
}

.mobile-chat-body .chat-input-area input:read-only {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.mobile-chat-body .chat-input-area button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.mobile-chat-body .chat-input-area button:disabled:hover {
    background: var(--bg-tertiary);
}

.mobile-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 채팅 토스트 알림 */
.chat-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: #fcfcfc;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.chat-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.chat-toast.error {
    background: rgba(244, 67, 54, 0.95);
}

.chat-toast.warning {
    background: rgba(255, 152, 0, 0.95);
}

.chat-toast-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* 모바일 채팅 오버레이 */
.mobile-chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-chat-overlay.open {
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-wrapper {
        gap: 0;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .main-left-content {
        flex: 1;
    }

    .global-right-sidebar {
        display: none;
    }

    .mobile-chat-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info-widget {
        display: none;
    }

    .desktop-chat {
        display: none;
    }
}

/* ===== Header & Footer Banners ===== */
.header-banner-area {
    background: transparent;
    padding: 0;
}

.header-banner-area .container {
    padding: 0;
}

.header-banners {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.header-banner-item {
    display: block;
    width: 20%;
}

.header-banner-item img {
    width: 100%;
    height: 90px;
    object-fit: fill;
    display: block;
    background: #f5f5f5;
}

.header-banner-placeholder {
    width: 20%;
    height: 90px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-banner-placeholder:hover {
    color: var(--accent-primary);
}

.footer-banner-area {
    background: transparent;
    padding: 0;
    margin-top: 0;
}

.footer-banner-area .container {
    padding: 0;
}

.footer-banners {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-banner-item {
    display: block;
    width: 20%;
}

.footer-banner-item img {
    width: 100%;
    height: 90px;
    object-fit: fill;
    display: block;
    background: #f5f5f5;
}

.footer-banner-placeholder {
    width: 20%;
    height: 90px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-banner-placeholder:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .header-banner-item,
    .header-banner-placeholder {
        width: 50%;
    }

    .header-banner-item img,
    .header-banner-placeholder {
        height: 60px;
        font-size: 10px;
    }

    .footer-banner-item,
    .footer-banner-placeholder {
        width: 50%;
    }

    .footer-banner-item img,
    .footer-banner-placeholder {
        height: 60px;
        font-size: 10px;
    }
}

/* ===== NOTIFICATION TOAST (실시간 알림) ===== */
.notification-toast-container {
    position: fixed;
    bottom: 100px;
    right: 40px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 380px;
}

.notification-toast {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--glass-bg-dark);
    border: 1px solid rgba(30, 164, 89, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 164, 89, 0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    width: 380px !important;
    min-width: 380px;
    flex-shrink: 0;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.type-attendance {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
    cursor: pointer;
}

.notification-toast.type-attendance:hover {
    background: rgba(139, 92, 246, 0.1);
}

.notification-toast.type-attendance .notification-toast-icon {
    color: #1ea459;
    font-weight: 600;
}

.notification-toast.type-attendance .notification-toast-title {
    color: #1ea459;
}

.notification-toast.type-lottery_jackpot {
    border-color: rgba(255, 193, 7, 0.8);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 193, 7, 0.4);
    animation: jackpot-glow 1.5s ease-in-out infinite alternate;
}

@keyframes jackpot-glow {
    from { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 193, 7, 0.3); }
    to { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 193, 7, 0.6); }
}

.notification-toast.type-lottery_jackpot .notification-toast-icon {
    color: #ffc107;
    font-weight: 700;
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.notification-toast.type-lottery_jackpot .notification-toast-title {
    color: #ffc107;
    font-weight: 700;
}

.notification-toast.type-lottery_jackpot .notification-toast-message {
    color: #ffecb3;
}

.notification-toast-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.notification-toast-content {
    flex: 1;
    min-width: 0;
}

.notification-toast-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.notification-toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.notification-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.notification-toast-close:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .notification-toast-container {
        top: auto;
        bottom: 80px;
        left: auto;
        right: 12px;
        width: auto;
        max-width: 280px;
        align-items: flex-end;
    }

    .notification-toast {
        width: auto !important;
        min-width: auto;
        max-width: 280px;
        padding: 12px 14px;
        gap: 10px;
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid rgba(30, 164, 89, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        transform: translateX(120%);
        font-size: 13px;
    }

    .notification-toast.show {
        transform: translateX(0);
    }

    .notification-toast-icon {
        font-size: 20px;
    }

    .notification-toast-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .notification-toast-message {
        font-size: 12px;
    }

    .notification-toast-close {
        font-size: 18px;
    }
}

/* ===== GLOBAL TOAST (오른쪽 하단 알림) ===== */
.global-toast-container {
    position: fixed;
    bottom: 100px;
    right: 40px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 380px;
}

.global-toast {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--glass-bg-dark);
    border: 1px solid rgba(30, 164, 89, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 164, 89, 0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    width: 380px !important;
    min-width: 380px;
    flex-shrink: 0;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.global-toast.success {
    border-left: 4px solid #6db142;
}

.global-toast.success .global-toast-icon {
    color: #1ea459;
}

.global-toast.error {
    border-left: 4px solid #e52955;
}

.global-toast.error .global-toast-icon {
    color: #e52955;
}

.global-toast.warning {
    border-left: 4px solid #f59e0b;
}

.global-toast.warning .global-toast-icon {
    color: #f59e0b;
}

.global-toast.info {
    border-left: 4px solid var(--accent-primary);
}

.global-toast.info .global-toast-icon {
    color: var(--accent-primary);
}

.global-toast.attendance {
    border-left: 4px solid #1ea459;
    padding: 10px 14px;
    cursor: pointer;
}

.global-toast.attendance:hover {
    background: rgba(139, 92, 246, 0.1);
}

.global-toast.attendance .global-toast-icon {
    color: #1ea459;
    font-size: 14px;
    font-weight: 600;
}

.global-toast.attendance .global-toast-message {
    font-size: 13px;
}

.global-toast-icon {
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.global-toast-message {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .global-toast-container {
        top: auto;
        bottom: 80px;
        left: auto;
        right: 12px;
        width: auto;
        max-width: 260px;
        align-items: flex-end;
    }

    .global-toast {
        width: auto !important;
        min-width: auto;
        max-width: 260px;
        padding: 10px 12px;
        gap: 8px;
        transform: translateX(120%);
    }

    .global-toast.show {
        transform: translateX(0);
    }

    .global-toast-icon {
        font-size: 16px;
    }

    .global-toast-message {
        font-size: 12px;
    }

    .global-toast.attendance {
        padding: 8px 12px;
    }

    .global-toast.attendance .global-toast-icon {
        font-size: 11px;
    }

    .global-toast.attendance .global-toast-message {
        font-size: 11px;
    }
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    /* 모바일 로그인/회원가입 폼 크기 확대 */
    .auth-page {
        padding: 20px 12px;
        min-height: auto;
    }

    .auth-box {
        max-width: 100%;
        width: 100%;
    }

    .auth-header {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .auth-body {
        padding: 24px 20px;
    }

    .auth-body input {
        padding: 14px;
        font-size: 16px;
    }

    .auth-body .btn {
        padding: 14px;
        font-size: 16px;
    }

    .auth-footer {
        padding: 16px 20px;
    }

    /* 모바일 메뉴 사용자 정보 — 세로 크기 1/4 축소 (768px 이하만 적용) */
    .mobile-nav-user {
        flex-direction: column;
        gap: 4px;
        padding: 4px 10px;
    }
    #mobile-nav-user .mobile-avatar { width: 38px; height: 38px; }
    #mobile-nav-user .mobile-user-name { font-size: 13px; }
    #mobile-nav-user .mobile-user-rank { font-size: 11px; }
    #mobile-nav-user .sidebar-stats-row.sidebar-stats-row-labeled .sidebar-stat-item { padding: 4px 8px; }
    #mobile-nav-user .sidebar-stats-row.sidebar-stats-row-labeled .sidebar-stat-item .stat-label,
    #mobile-nav-user .sidebar-stats-row.sidebar-stats-row-labeled .sidebar-stat-item .stat-value { font-size: 11px; }
    #mobile-nav-user .sidebar-level-progress { margin: 2px 0; }
    #mobile-nav-user .level-progress-bar-small { height: 5px; }
    #mobile-nav-user .progress-text-small { font-size: 10px; }
    #mobile-nav-user .sidebar-cash-xp { padding: 4px 0; }
    #mobile-nav-user .cash-xp-head { margin-bottom: 2px; }
    #mobile-nav-user .cash-xp-label, #mobile-nav-user .cash-xp-percent { font-size: 10px; }
    #mobile-nav-user .cash-xp-bar { height: 5px; }
    #mobile-nav-user .mobile-user-quick-links a { padding: 6px 4px; font-size: 11px; }

    .mobile-user-info {
        width: 100%;
        flex-wrap: nowrap;
    }

    .mobile-user-quick-links {
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .mobile-user-quick-links a {
        flex: 1;
        text-align: center;
        white-space: nowrap;
        padding: 8px 6px;
        font-size: 11px;
    }
}

/* ===== ADDITIONAL MOBILE FIXES ===== */
@media (max-width: 480px) {
    /* 모바일 로그인창 추가 최적화 */
    .auth-page {
        padding: 16px 8px;
    }

    .auth-header {
        padding: 20px 16px;
    }

    .auth-body {
        padding: 20px 16px;
    }

    .auth-footer {
        padding: 14px 16px;
    }

    /* 포인트 모달 모바일 최적화 */
    .modal-md {
        width: 100%;
        max-width: 100%;
        margin: 10px;
        border-radius: var(--radius-md);
    }

    .point-table th,
    .point-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .point-table th:nth-child(3),
    .point-table th:nth-child(4),
    .point-table td:nth-child(3),
    .point-table td:nth-child(4) {
        width: 60px;
    }

    /* 게시판 리스트 모바일 */
    .board-list li a {
        padding: 8px 12px;
    }

    .post-title {
        font-size: 12px;
    }

    .post-date {
        font-size: 10px;
        white-space: nowrap;
    }

    /* 페이지네이션 모바일 */
    .pagination {
        gap: 4px;
    }

    .pagination button,
    .pagination a {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }

    /* 댓글 영역 모바일 480px - 더 축소 */
    .comment-item {
        padding: 10px 8px;
    }

    .comment-row {
        gap: 8px;
    }

    .comment-avatar,
    .comment-avatar-img {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .comment-avatar.small,
    .comment-avatar-img.small {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .comment-info {
        gap: 3px;
    }

    .comment-author {
        font-size: 12px;
    }

    .comment-date {
        font-size: 10px;
    }

    .level-icon-small {
        width: 14px;
        height: 14px;
    }

    .author-badge,
    .admin-badge {
        font-size: 8px;
        padding: 1px 3px;
    }

    .comment-content {
        font-size: 13px;
    }

    .btn-comment-action {
        font-size: 10px;
        padding: 2px 4px;
    }

    .reply-list {
        margin-left: 20px;
    }

    .reply-item {
        padding: 8px 0;
    }

    /* 댓글 입력 폼 480px */
    .comment-form-row-input {
        gap: 8px;
    }

    .comment-form-row-input .comment-avatar,
    .comment-form-row-input .comment-avatar-img {
        width: 32px;
        height: 32px;
    }

    .comment-input-wrapper textarea {
        min-height: 70px;
        padding: 10px;
    }

    .comment-input-wrapper .btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .reply-form {
        padding: 0;
        margin-left: 16px;
    }

    .reply-form-actions {
        flex-direction: column;
        gap: 6px;
    }

    .reply-form-actions .btn {
        width: 100%;
    }

    /* 모달 전체화면 모바일 */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    /* 버튼 터치 영역 확대 */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }

    /* 입력 필드 터치 최적화 */
    input, select, textarea {
        min-height: 44px;
        font-size: 16px !important;
    }
}

/* ===================================
   공지사항 스타일
=================================== */
.notice-row {
    background: #ffffff !important;
}

.notice-row:hover {
    background: #f5f5f5 !important;
}

/* 번호칸 '공지' 표기 — 솔리드 초록 + 흰글씨로 시인성 강화 */
.num-notice {
    display: inline-block;
    padding: 2px 8px;
    background: #ffffff;
    color: #1ea459;
    border: 1px solid #1ea459;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
[data-theme="dark"] .num-notice {
    background: #0f1419;
    color: #14b8a6;
    border-color: #14b8a6;
}

/* 공지/이벤트 뱃지 — 메인페이지 outline 디자인으로 전역 통일 */
.notice-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ffffff;
    color: #1ea459;
    border: 1px solid #1ea459;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 8px;
    vertical-align: middle;
    white-space: nowrap;
}
.notice-badge.badge-event {
    background: #ffffff;
    color: #f59e0b;
    border-color: #f59e0b;
}

.lock-badge {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.85rem;
    vertical-align: middle;
    opacity: 0.8;
}

/* 1:1문의 답변 상태 뱃지 (확인/미확인) */
.qna-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.qna-status.qna-answered {
    background: rgba(30, 164, 89, 0.18);
    color: #1ea459;
    border: 1px solid rgba(30, 164, 89, 0.45);
}
.qna-status.qna-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.qna-status.qna-deleted {
    background: rgba(148, 163, 184, 0.15);
    color: #888888;
    border: 1px solid rgba(148, 163, 184, 0.4);
}
.qna-status.qna-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* 삭제된 게시글(soft-deleted, qna 전용) — 제목에 취소선 + 회색 */
.title-text.deleted-title {
    text-decoration: line-through;
    color: #888888 !important;
    opacity: 0.7;
}
.deleted-row {
    opacity: 0.65;
}

/* 잠금 게시글 내용 숨김 */
.locked-content-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.locked-content-notice .lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.locked-content-notice .lock-message {
    font-size: 16px;
    font-weight: 600;
    color: #e52955;
    margin-bottom: 8px;
}

.locked-content-notice .lock-reason {
    font-size: 13px;
    color: var(--text-muted);
}

.locked-notice.admin-view {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: #e52955;
}

.locked-notice.admin-view .lock-reason {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

/* ===== @멘션 자동완성 스타일 ===== */
.comment-textarea-wrapper {
    position: relative;
    width: 100%;
}

.mention-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 180px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-light);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--glass-border);
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
    background: var(--accent-glow);
}

.mention-item.active {
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.2), rgba(30, 164, 89, 0.15));
}

.mention-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.mention-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.mention-item:hover .mention-name,
.mention-item.active .mention-name {
    color: var(--accent-primary);
}

/* ========================================
   출석체크 달력 (FOUC 방지)
   ======================================== */
.attendance-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.attendance-calendar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
}

.calendar-table td {
    position: relative;
    height: 60px;
    vertical-align: top;
    padding-top: 4px;
}

.calendar-table td .day-num {
    display: block;
    font-weight: 500;
}

/* ========================================
   게시글 좋아요/싫어요 버튼 (FOUC 방지)
   ======================================== */
.reaction-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 20px;
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.reaction-link:hover {
    background: rgba(0,0,0,0.04);
}

.reaction-link.like-link.active {
    color: #e52955;
}

.reaction-link.dislike-link.active {
    color: #6b7280;
}

.reaction-link span {
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .reaction-link {
        padding: 10px 16px;
        font-size: 16px;
    }
    .reaction-link span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .reaction-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    .reaction-link span {
        font-size: 16px;
    }
}

/* 좋아요/싫어요 버튼 컨테이너 (FOUC 방지) */
.reaction-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: var(--spacing-lg, 24px) 0;
    padding: var(--spacing-lg, 24px) 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

@media (max-width: 480px) {
    .reaction-buttons {
        gap: 10px;
    }
}

/* ===== 멀티채팅방 탭 ===== */
.chat-room-tabs {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.chat-room-tabs::-webkit-scrollbar { display: none; }
.chat-room-tab {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.chat-room-tab:hover { color: var(--text-light); background: rgba(30, 164, 89, 0.05); }
.chat-room-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(30, 164, 89, 0.1);
}

/* ===== 접속자 목록 패널 ===== */
.chat-users-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.chat-users-btn:hover { opacity: 1; }
.chat-users-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg-dark);
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}
.chat-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
}
.chat-users-close {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 16px;
}
.chat-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.chat-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
}
.chat-user-item:hover { background: rgba(0,0,0,0.04); }
.chat-user-item.is-admin {
    background: rgba(124, 58, 237, 0.06);
}
.chat-user-item.is-admin:hover {
    background: rgba(124, 58, 237, 0.12);
}
.chat-user-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
.chat-user-name {
    font-size: 12px;
    color: var(--text-light);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 접속자 목록 내 관리자 박지는 작게 (채팅 메시지 박지와 동일 스타일) */
.chat-users-list .chat-admin-badge,
.chat-admin-badge-mini {
    background: #17833f;
    color: #fcfcfc;
    font-size: 9px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
    flex-shrink: 0;
}

/* ===== 귓속말 바 ===== */
.chat-whisper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 12px;
    color: #1ea459;
}
.whisper-label { font-size: 12px; }
.whisper-cancel {
    background: none;
    border: none;
    color: #1ea459;
    cursor: pointer;
    font-size: 14px;
}

/* ===== 귓속말 메시지 ===== */
.chat-message.whisper-message {
    background: rgba(139, 92, 246, 0.08);
    border-left: 2px solid #1ea459;
    padding-left: 8px;
    margin: 2px 0;
}
.whisper-label-tag {
    font-size: 10px;
    color: #1ea459;
    background: rgba(139, 92, 246, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
}
.whisper-from, .whisper-to {
    font-size: 11px;
    color: #1ea459;
}
.msg-content.whisper-content {
    color: #1ea459;
}

/* chat-container에 position relative 추가 (접속자 목록 오버레이용) */
.chat-container { position: relative; }

/* ===================================================
   도파민포인트 카드 (마이페이지 /profile/points)
   =================================================== */
.points-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.current-points-card.dopamine-points-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.04));
    border: 1px solid rgba(168, 85, 247, 0.35);
}
.current-points-card.dopamine-points-card .points-label {
    color: #1ea459;
}
.current-points-card.dopamine-points-card .points-value {
    color: #1ea459;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
}
.dopa-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 4px;
    font-size: 10px;
    color: #1ea459;
    font-weight: 600;
    vertical-align: middle;
    cursor: help;
}
.dopamine-history-card {
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.dopamine-history-card h4 {
    margin: 0 0 10px;
    color: #1ea459;
    font-size: 0.95rem;
    font-weight: 700;
}
.dopamine-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dopamine-history-table th {
    text-align: left;
    color: #888888;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.dopamine-history-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
@media (max-width: 640px) {
    .points-summary-grid { grid-template-columns: 1fr; gap: 10px; }
    .dopamine-history-table { font-size: 11px; }
    .dopamine-history-table th, .dopamine-history-table td { padding: 6px 5px; }
}

/* ===================================================
   마이페이지 도파민가족등급 상태 카드
   =================================================== */
.dopa-family-status {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(30, 164, 89, 0.08), rgba(30, 164, 89, 0.04));
    border: 1px solid rgba(30, 164, 89, 0.30);
    border-radius: 12px;
}
.dfs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.dfs-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.65));
    animation: dfsStarTwinkle 2.4s ease-in-out infinite;
}
@keyframes dfsStarTwinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.55));
    }
    50% {
        transform: scale(1.12) rotate(-5deg);
        filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95)) drop-shadow(0 0 16px rgba(251, 191, 36, 0.55));
    }
}
.dfs-title {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    color: #1ea459;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.dfs-state {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.dfs-state.active {
    background: rgba(30, 164, 89, 0.18);
    color: #1ea459;
    border: 1px solid rgba(30, 164, 89, 0.45);
}
.dfs-state.warning {
    background: rgba(245, 158, 11, 0.16);
    color: #a16207;
    border: 1px solid rgba(245, 158, 11, 0.45);
}
.dfs-state.expired {
    background: rgba(239, 68, 68, 0.16);
    color: #d83d44;
    border: 1px solid rgba(239, 68, 68, 0.45);
}
.dfs-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.dfs-stat {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dfs-stat-label {
    font-size: 12px;
    color: #888888;
    font-weight: 600;
}
.dfs-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #1ea459;
    letter-spacing: 0.3px;
}
.dfs-stat-value.warning { color: #a16207; }
.dfs-stat-value.expired { color: #d83d44; }
.dfs-notice {
    margin: 0;
    padding: 9px 12px;
    background: rgba(30, 164, 89, 0.06);
    border-left: 3px solid #1ea459;
    border-radius: 6px;
    font-size: 12.5px;
    color: #555555;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.dfs-notice-icon {
    color: #1ea459;
    font-weight: 700;
    flex-shrink: 0;
}
.dfs-notice strong {
    color: #1ea459;
    font-weight: 700;
}
@media (max-width: 640px) {
    .dopa-family-status { padding: 14px; }
    .dfs-body { gap: 8px; }
    .dfs-stat { padding: 8px 10px; }
    .dfs-stat-value { font-size: 16px; }
    .dfs-notice { font-size: 11.5px; padding: 8px 10px; }
}

/* ===================================================
   도파민가족회원 배지 (닉네임 옆 표시 — 수류탄 아이콘)
   =================================================== */
img.dopamine-badge {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin: 0 0 0 0.25em;
    vertical-align: middle;
    position: relative;
    top: -0.08em;
    object-fit: contain;
    cursor: help;
    filter: drop-shadow(0 0 3px rgba(250, 204, 21, 0.65));
    animation: dopaPulse 2.4s ease-in-out infinite;
    user-select: none;
    line-height: 1;
}
/* 관리자 페이지의 컴팩트 테이블에서는 행 높이를 안 늘리도록 작게 표시 */
body.admin-body img.dopamine-badge {
    width: 14px;
    height: 14px;
    margin-left: 3px;
    vertical-align: middle;
    animation: none;
    filter: none;
}
@keyframes dopaPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(250, 204, 21, 0.55)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.85)); }
}

/* ===================================================
   계급 제한 게시판 안내 배너 (현금 전환 이벤트 — 중사 이상)
   =================================================== */
.rank-notice-banner {
    margin-bottom: var(--spacing-md);
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(30, 164, 89, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.rank-notice-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #1ea459 100%);
}

/* ===== 현금 전환 이벤트 작성 자격 (미니멀) ===== */
.cash-eligibility {
    margin-bottom: var(--spacing-md);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555555;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
}
.cash-eligibility-line,
.cash-eligibility-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.cash-eligibility .ce-label {
    color: #888888;
    font-size: 12px;
}
.cash-eligibility .ce-rank-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}
.cash-eligibility .ce-rank-img.sm {
    width: 16px;
    height: 16px;
}
.cash-eligibility .ce-rank-name {
    color: #a16207;
    font-weight: 700;
}
.cash-eligibility .ce-sep {
    color: #888888;
    font-size: 12px;
}
.cash-eligibility .ce-xp {
    color: #5a5a5a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.cash-eligibility .ce-user-state {
    font-size: 12px;
    color: #888888;
}
.cash-eligibility .ce-user-state.ok { color: #1ea459; }
.cash-eligibility .ce-user-state.locked { color: #f87171; }
.cash-eligibility .ce-user-state.guest { color: #888888; }
@media (max-width: 640px) {
    .cash-eligibility {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
/* 계급 카드 (이미지 + 라벨) */
.rank-notice-banner .rn-rank-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 10px;
}
.rank-notice-banner .rn-rank-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.rank-notice-banner .rn-rank-img.sm {
    width: 22px;
    height: 22px;
}
.rank-notice-banner .rn-rank-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.rank-notice-banner .rn-rank-label {
    font-size: 0.7rem;
    color: #888888;
    font-weight: 500;
}
.rank-notice-banner .rn-rank-card .rn-rank-name {
    font-size: 0.95rem;
    color: #a16207;
    font-weight: 700;
}
.rank-notice-banner .rn-body {
    flex: 1 1 auto;
    min-width: 0;
}
.rank-notice-banner .rn-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a16207;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}
.rank-notice-banner .rn-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #555555);
    line-height: 1.45;
}
.rank-notice-banner .rn-status {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    min-width: 160px;
    white-space: nowrap;
}
.rank-notice-banner .rn-status.ok {
    background: rgba(30, 164, 89, 0.15);
    color: #1ea459;
    border: 1px solid rgba(30, 164, 89, 0.45);
}
.rank-notice-banner .rn-status.locked {
    background: rgba(239, 68, 68, 0.12);
    color: #d83d44;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.rank-notice-banner .rn-status.admin {
    background: rgba(139, 92, 246, 0.15);
    color: #1ea459;
    border: 1px solid rgba(139, 92, 246, 0.45);
}
.rank-notice-banner .rn-status.guest {
    background: rgba(100, 116, 139, 0.15);
    color: #888888;
    border: 1px solid rgba(100, 116, 139, 0.4);
}
.rank-notice-banner .rn-status .rn-status-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
}
.rank-notice-banner .rn-status .rn-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}
.rank-notice-banner .rn-status .rn-status-main {
    font-size: 0.92rem;
    font-weight: 700;
}
.rank-notice-banner .rn-progress {
    margin-top: 6px;
    height: 5px;
    border-radius: 99px;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}
.rank-notice-banner .rn-progress .rn-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #1ea459 100%);
    border-radius: 99px;
    transition: width 0.3s ease;
}
@media (max-width: 640px) {
    .rank-notice-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }
    .rank-notice-banner .rn-status { min-width: 0; }
}

