/* 도파민클럽 - Professional Dark Theme */

/* FOUC 방지 - CSS 로드 후 표시 */
html{visibility:visible;opacity:1;}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Dark Teal Theme */
    --bg-body: #0a0f14;
    --bg-primary: #0f1419;
    --bg-secondary: #151c24;
    --bg-tertiary: #1a222c;
    --bg-hover: #1e2836;
    --bg-input: #121a22;

    /* Glassmorphism Backgrounds */
    --glass-bg: rgba(15, 20, 25, 0.7);
    --glass-bg-light: rgba(21, 28, 36, 0.6);
    --glass-bg-dark: rgba(10, 15, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);

    /* Accent Colors - Teal + Green */
    --accent-primary: #14b8a6;
    --accent-secondary: #10b981;
    --accent-dark: #0d9488;
    --accent-blue: #06b6d4;
    --accent-glow: rgba(20, 184, 166, 0.15);

    /* Neon Glow Effects */
    --neon-glow-sm: 0 0 10px rgba(20, 184, 166, 0.3);
    --neon-glow-md: 0 0 20px rgba(20, 184, 166, 0.4);
    --neon-glow-lg: 0 0 30px rgba(20, 184, 166, 0.5), 0 0 60px rgba(20, 184, 166, 0.2);
    --neon-text-glow: 0 0 10px rgba(20, 184, 166, 0.8), 0 0 20px rgba(20, 184, 166, 0.5);
    --neon-border: 1px solid rgba(20, 184, 166, 0.3);

    /* Status Colors */
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* Text Colors */
    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #e2e8f0;
    --text-muted: #64748b;
    --text-gray: #94a3b8;
    --text-dark: #475569;

    /* Border */
    --border-dark: #1e293b;
    --border-light: #334155;

    /* Shadows - Softer for glassmorphism */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius - Larger for glassmorphism */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    opacity: 1 !important;
    visibility: visible !important;
}

a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3px 0 0;
}

.container.with-padding {
    padding: 0 var(--spacing-md);
}

/* ===== HEADER ===== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--glass-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3px 0 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    font-size: 2rem;
    filter: grayscale(0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
    text-shadow: var(--neon-text-glow);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-right .search-box {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.header-right .search-box input {
    background: var(--glass-bg-dark);
    border: none;
    border-right: none;
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    width: 280px;
    font-size: 0.9rem;
}

.header-right .search-box input::placeholder {
    color: var(--text-dark);
}

.header-right .search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.header-right .search-box button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: #0a0f14;
    padding: var(--spacing-sm) var(--spacing-lg);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.header-right .search-box button:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 4px 30px rgba(20, 184, 166, 0.15), inset 0 -1px 0 rgba(20, 184, 166, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item > a:hover,
.nav-item > a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0f14;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

/* Dropdown Menu */
.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 101;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-gray);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding-left: var(--spacing-lg);
}

/* 드롭다운 메뉴 카테고리 스타일 */
.dropdown-menu-categorized {
    min-width: 180px;
}

.dropdown-category {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-dark);
    margin: 4px 0;
}

.dropdown-highlight {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    font-weight: 600;
}

.dropdown-highlight:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

/* 모바일 HOT 메뉴 스타일 */
.hot-menu {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* 모바일 서브메뉴 스타일 */
.sub-menu-header {
    padding: 8px 24px 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sub-menu-divider {
    height: 1px;
    background: var(--border-dark);
    margin: 4px 16px;
}

/* NEW 배지 */
.new-badge {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: new-badge-pulse 2s infinite;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

/* 드롭다운 메뉴 내 NEW 배지 */
.dropdown-menu .new-badge,
.sub-menu .new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

@keyframes new-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* 햄버거 버튼은 열렸을 때 숨김 (내부 닫기 버튼 사용) */
.mobile-menu-btn.open {
    opacity: 0;
    pointer-events: none;
}

/* 모바일 네비게이션 오버레이 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

/* 모바일 사이드 네비게이션 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1002;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-dark);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-user {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
}

.mobile-login-btn, .mobile-register-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-login-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.mobile-register-btn {
    background: var(--bg-tertiary);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.mobile-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 모바일 프로필 영역 */
.mobile-user-profile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.mobile-user-avatar {
    flex-shrink: 0;
}

.mobile-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.mobile-avatar-default {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.mobile-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
}

.mobile-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-primary);
}

.mobile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-avatar-text {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-rank-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.mobile-admin-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 4px;
    font-weight: 600;
}

.mobile-user-rank {
    font-size: 12px;
    color: var(--accent-primary);
    margin-top: 2px;
}

.mobile-user-points {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mobile-user-stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

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

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

.mobile-stat-item .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.mobile-stat-item .stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: var(--neon-text-glow);
    display: flex;
    align-items: baseline;
}

.mobile-stat-item .stat-unit {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-left: 1px;
}

.mobile-user-quick-links .mobile-logout-btn {
    background: var(--danger-color, #dc3545) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.mobile-user-quick-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-dark);
}

.mobile-user-quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
}

.mobile-user-quick-links a:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.mobile-user-quick-links .quick-icon {
    font-size: 14px;
}

.mobile-nav-search {
    display: flex;
    padding: 12px 20px;
    gap: 8px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
}

.mobile-nav-search input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.mobile-nav-search button {
    padding: 10px 16px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid var(--border-dark);
}

.mobile-nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.mobile-nav-menu > li > a:hover {
    background: var(--bg-hover);
}

.mobile-nav-menu .arrow {
    color: var(--text-gray);
    transition: transform 0.3s;
}

.mobile-nav-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-primary);
}

.mobile-nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px 12px 36px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    border-top: 1px solid var(--border-dark);
}

.mobile-nav-menu .sub-menu li a:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

/* ===== MAIN LAYOUT ===== */
.main-content {
    padding: 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: var(--spacing-lg);
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}


.widget-header {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.widget-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.widget-menu {
    list-style: none;
}

.widget-menu li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    color: var(--text-gray);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.widget-menu li:last-child a {
    border-bottom: none;
}

.widget-menu li a:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    padding-left: var(--spacing-lg);
}

.menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-dark);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list .rank {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    color: #000;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.widget-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.empty-item {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ===== CONTENT AREA ===== */
.content-area {
    min-width: 0;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    margin-bottom: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.banner-slider-container {
    position: relative;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    transition: transform var(--transition-normal);
}

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

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.banner-prev { left: var(--spacing-md); }
.banner-next { right: var(--spacing-md); }

.banner-nav:hover {
    background: var(--accent-primary);
    color: #000;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--glass-bg);
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--glass-border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.banner-dots .dot.active,
.banner-dots .dot:hover {
    background: var(--accent-primary);
    transform: scale(1.2);
}

/* ===== NOTICE BANNER ===== */
.notice-banner {
    display: flex;
    align-items: stretch;
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border-light);
}

.banner-label {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0f14;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.banner-content {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.banner-content a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    animation: marquee 30s linear infinite, shimmer 1s ease-in-out infinite;
    padding-left: 100%;
}

.banner-content a:hover {
    animation-play-state: paused;
    color: var(--accent-primary);
}

@keyframes shimmer {
    0%, 100% {
        color: var(--text-primary);
        text-shadow: 0 0 5px rgba(20, 184, 166, 0.3);
    }
    50% {
        color: var(--accent-primary);
        text-shadow: 0 0 15px rgba(20, 184, 166, 0.8), 0 0 30px rgba(20, 184, 166, 0.4);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 100vw));
    }
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    text-align: center;
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: var(--spacing-xs);
}

/* ===== BOARD BOX ===== */
.board-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 14px var(--spacing-md);
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.board-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.board-header h3 a {
    color: var(--accent-primary);
    text-shadow: var(--neon-text-glow);
}

.more-link {
    font-size: 0.8rem;
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.more-link:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

.board-list {
    list-style: none;
}

.board-list li {
    border-bottom: 1px solid var(--border-dark);
}

.board-list li:last-child {
    border-bottom: none;
}

.board-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.board-list li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.board-list .post-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: var(--spacing-md);
    font-weight: 400;
}

.board-list .post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ===== RECENT SCAMS ===== */
.recent-scams {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.section-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.btn-report {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--danger);
    color: #fff;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-report:hover {
    background: var(--danger-dark);
    color: #fff;
    transform: translateY(-1px);
}

.scam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.scam-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.scam-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--neon-glow-sm);
}

.scam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.scam-type {
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.scam-type.danger {
    background: var(--danger);
    color: #fff;
}

.scam-type.warning {
    background: var(--warning);
    color: #000;
}

.scam-date {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.scam-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scam-url {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scam-damage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-dark);
}

.damage-label {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.damage-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--danger);
}

.empty-scam {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-dark);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-dark);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer .container {
    padding: 0 3px 0 0;
}

.footer-notice {
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0f14;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #0a0f14;
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border-light);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px var(--spacing-md);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15), var(--neon-glow-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-hint {
    margin-top: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-dark);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
    min-height: 60vh;
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.auth-header h1 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.auth-body {
    padding: var(--spacing-xl);
}

.auth-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-dark);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    flex-shrink: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: var(--spacing-lg) 0;
    background: var(--bg-primary);
}

/* 게시글 보기 페이지 - 사이드바와 상단 정렬 */
.page-content.view-page {
    padding-top: var(--spacing-md);
}

/* ===== BOARD CONTAINER ===== */
.board-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}

.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
}

.board-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.board-info strong {
    color: var(--text-primary);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    padding: 14px var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    text-align: center;
    border-bottom: 2px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
}

.board-table th:last-child {
    border-right: none;
}

.board-table th.col-title {
    text-align: left;
}

.board-table td {
    padding: 14px var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    text-align: center;
}

.board-table td:last-child {
    border-right: none;
}

.board-table tr:hover td {
    background: var(--bg-hover);
}

.board-table .empty-cell {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.board-table .col-date {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.board-table .col-num {
    text-align: center;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 500;
}

.board-table .col-views {
    text-align: center;
    color: var(--accent-blue);
    font-weight: 500;
}

.board-table .col-author {
    vertical-align: middle;
    text-align: center;
    color: var(--accent-primary);
    font-weight: 500;
    white-space: nowrap;
    min-width: 150px;
}

.board-table .title-cell {
    max-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-table .title-cell .title-text {
    display: inline;
    color: var(--text-primary);
    font-weight: 500;
}

.board-table .title-cell .title-text:hover {
    color: var(--accent-primary);
}

.board-table .title-cell .mobile-author {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
}

.pagination button,
.pagination a {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pagination button:hover,
.pagination a:hover {
    background: var(--glass-bg-light);
    color: var(--accent-primary);
    border-color: rgba(20, 184, 166, 0.3);
}

.pagination button.active,
.pagination a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0f14;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.board-search {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
}

.board-search select,
.board-search input {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.9rem;
}

.board-search input {
    width: 240px;
}

/* ===== WRITE FORM ===== */
.write-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-header {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--accent-primary);
}

.form-header h2 {
    font-size: 1rem;
    color: var(--accent-primary);
}

.form-body {
    padding: var(--spacing-xl);
}

.form-body textarea {
    min-height: 250px;
    resize: vertical;
}

/* ===== VIEW POST ===== */
.view-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.view-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
}

.view-header h1 {
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 600;
}

.view-meta {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.view-content {
    padding: var(--spacing-lg);
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.view-actions {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-dark);
}

/* ===== COMMENTS ===== */
.comments-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.comments-header {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.comment-list {
    list-style: none;
}

.comment-item {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
}

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

.comment-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-primary);
}

.comment-date {
    color: var(--text-dark);
}

.comment-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    resize: none;
    margin-bottom: var(--spacing-md);
}

.comment-form-row {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.comment-form-row input {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    width: 150px;
}

/* ===== REPORT DETAIL ===== */
.report-detail-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.report-detail-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
}

.report-detail-header h1 {
    font-size: 1.3rem;
    margin: var(--spacing-sm) 0;
}

.report-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.report-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.report-badge.danger {
    background: var(--danger);
    color: #fff;
}

.report-detail-body {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.info-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    color: var(--text-light);
}

.info-item .damage-amount {
    color: var(--danger);
    font-weight: 700;
}

.description-section {
    margin-bottom: var(--spacing-xl);
}

.description-section h3 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-dark);
}

.description-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.images-section h3 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-dark);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-item img:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.report-detail-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-dark);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablet / Small Desktop */
@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 220px 1fr 280px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    .scam-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 햄버거 메뉴 전환 */
@media (max-width: 1024px) {
    /* 헤더 검색 숨김 (사이트 헤더만) */
    .header > .container > .header-right {
        display: none !important;
    }

    .search-box {
        display: none !important;
    }

    /* 햄버거 메뉴 표시 */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header .container {
        position: relative;
    }

    .header .logo {
        margin: 0 auto;
        padding: 0 50px;
    }

    /* 모바일 사이드 메뉴 표시 */
    .mobile-nav {
        display: block;
    }

    /* 데스크탑 네비게이션 숨김 */
    .desktop-nav {
        display: none;
    }

    /* 모바일 메뉴 사용자 정보 개선 (1024px부터 적용) */
    .mobile-nav-user {
        flex-direction: column;
        gap: 12px;
    }

    .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;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* 모바일 전체 패딩 최소화 */
    .container {
        padding: 0 3px 0 0;
    }

    /* 헤더 모바일 */
    .header {
        padding: 12px 0;
    }

    .header .container {
        padding: 0 3px 0 0;
        justify-content: center;
    }

    .header .logo {
        flex: none;
        text-align: center;
    }

    .header .logo-title {
        font-size: 18px;
    }

    .header .logo-sub {
        display: none;
    }

    /* 페이지 헤더/컨텐츠 모바일 */
    .page-header {
        padding: 8px 0;
    }

    .breadcrumb {
        display: none;
    }

    /* 메인 레이아웃 1컬럼 */
    .main-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* 사이드바 숨김 */
    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    /* 통계 2x2 그리드 */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-box {
        padding: var(--spacing-md);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* 공지 배너 */
    .notice-banner {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* 스캠 그리드 */
    .scam-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* 게시판 박스 */
    .board-box {
        margin-bottom: var(--spacing-md);
    }

    /* 배너 크기 조정 */
    .header-banner-item img,
    .footer-banner-item img {
        height: 80px;
    }

    /* 푸터 간소화 */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-links {
        justify-content: center;
    }

    .scam-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-toolbar {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

    .board-search {
        flex-direction: column;
        padding: var(--spacing-sm) 0;
    }

    .board-search input {
        width: 100%;
    }

    /* 모바일 게시판 테이블 */
    .board-table .col-num,
    .board-table .col-author,
    .board-table .col-date,
    .board-table .col-views,
    .board-table thead {
        display: none;
    }

    .board-table {
        border: none;
    }

    .board-table tr {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid var(--border-dark);
    }

    .board-table td {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
    }

    .board-table .title-cell {
        max-width: 100%;
        white-space: normal;
    }

    .board-table .title-cell .title-text {
        display: block;
        font-size: 0.95rem;
        color: var(--text-primary);
        margin-bottom: var(--spacing-xs);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .board-table .title-cell .notice-badge {
        margin-bottom: 4px;
    }

    .board-table .title-cell .mobile-author {
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: 4px;
    }

    /* 스포츠분석 게시판 - 모바일에서 제목 줄바꿈 허용 */
    .board-table.board-sports .title-cell .title-text {
        white-space: normal !important;
        word-break: keep-all;
        line-height: 1.4;
        overflow: visible;
        text-overflow: unset;
    }

    .form-actions {
        flex-direction: column;
    }

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

    .view-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* 모바일 게시글 보기 가독성 개선 */
    .view-container {
        padding: 0;
    }

    .view-header {
        padding: var(--spacing-md);
    }

    .view-header h1 {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .view-meta {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .view-content {
        padding: var(--spacing-md);
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .view-actions {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .view-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .view-actions-right {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .view-actions-right .btn {
        width: 100%;
    }

    /* 모바일 댓글 영역 768px - 데스크탑 레이아웃 유지, 크기만 축소 */
    .comments-section {
        margin-top: var(--spacing-md);
    }

    .comments-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .comment-item {
        padding: 12px 10px;
    }

    .comment-row {
        gap: 10px;
    }

    .comment-avatar,
    .comment-avatar-img {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

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

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

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

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

    .btn-comment-action {
        font-size: 11px;
        padding: 2px 6px;
    }

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

    /* 댓글 입력 폼 */
    .comment-form {
        padding: var(--spacing-md);
    }

    .comment-form-row-input {
        gap: 10px;
    }

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

    .comment-input-wrapper textarea {
        min-height: 80px;
        font-size: 16px;
        padding: 12px;
    }

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

    .reply-form {
        padding: 12px;
    }

    .reply-form textarea {
        min-height: 60px;
        font-size: 14px;
    }

    .comment-form-row {
        flex-direction: column;
    }

    .comment-form-row input {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-box {
        justify-content: center;
    }

    .banner-slide img {
        height: 150px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--accent-primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-dark); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

.flex-1 { flex: 1; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-primary);
    color: #000;
}

/* ===== GLOBAL PAGE LAYOUT (with right sidebar) ===== */
.main-wrapper {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
    background: var(--bg-primary);
}

.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: var(--bg-secondary);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-dark);
    min-height: 160px;
    position: relative;
    overflow: visible;
    z-index: 100;
}

.user-info-time {
    padding: 8px 15px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
}

.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: #0a0f14;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

.btn-login-small:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.4);
    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: #0a0f14;
    box-shadow: 0 0 20px rgba(20, 184, 166, 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(20, 184, 166, 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, #ef4444, #dc2626);
    cursor: pointer;
    transition: all 0.2s;
}

a.user-rank.admin:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    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, #2d3748);
    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: #ef4444;
    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: 11px;
    color: var(--text-muted);
}

.sidebar-stat-item .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: var(--neon-text-glow);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

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

/* 사이드바 레벨 프로그레스 바 */
.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), #6366f1);
    border-radius: 7px;
    transition: width 0.3s ease;
}

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

.progress-text-small {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

/* 포인트바 포인트 표시 (항상 표시) */
.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;
    gap: 4px;
    padding: 8px 5px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-dark);
    white-space: nowrap;
}

.user-info-links a {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
}

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

.user-info-links .divider {
    font-size: 10px;
    color: var(--border-dark);
}

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

.unread-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    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: #ef4444;
    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: #ef4444;
}

.notification-icon.type-inquiry_reply {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.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: #0a0f14;
    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(20, 184, 166, 0.4);
}

/* Right Sidebar Chat Widget */
.global-right-sidebar .chat-widget {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid rgba(20, 184, 166, 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(20, 184, 166, 0.15), rgba(20, 184, 166, 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(255,255,255,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: 16px;
    height: 16px;
    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: #7c3aed;
    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: #a78bfa;
    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: #0a0f14;
    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(20, 184, 166, 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: #0a0f14;
    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(20, 184, 166, 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(20, 184, 166, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-mention:hover {
    background: rgba(20, 184, 166, 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: #fff;
    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: 140px;
    object-fit: fill;
    display: block;
}

.global-right-sidebar .side-banner-placeholder {
    height: 140px;
    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: #0a0f14;
    border: none;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
    cursor: pointer;
    z-index: 1100;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.mobile-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(20, 184, 166, 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);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    border-top: 1px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.5), 0 -5px 30px rgba(20, 184, 166, 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(20, 184, 166, 0.2);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(16, 185, 129, 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(20, 184, 166, 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: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mobile-chat-body .chat-message .chat-admin-badge {
    background: #7c3aed;
    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: #a78bfa;
    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: #0a0f14;
    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(20, 184, 166, 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: #fff;
    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: #1a1a2e;
}

.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: #1a1a2e;
}

.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);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(20, 184, 166, 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-inquiry_reply {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
}

.notification-toast.type-inquiry_reply .notification-toast-title {
    color: #3b82f6;
}

.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: #8b5cf6;
    font-weight: 600;
}

.notification-toast.type-attendance .notification-toast-title {
    color: #8b5cf6;
}

.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(20, 184, 166, 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);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(20, 184, 166, 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 #10b981;
}

.global-toast.success .global-toast-icon {
    color: #10b981;
}

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

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

.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 #8b5cf6;
    padding: 10px 14px;
    cursor: pointer;
}

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

.global-toast.attendance .global-toast-icon {
    color: #8b5cf6;
    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;
    }

    /* 모바일 메뉴 사용자 정보 개선 */
    .mobile-nav-user {
        flex-direction: column;
        gap: 12px;
    }

    .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: 10px 12px;
    }

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

    .post-date {
        font-size: 11px;
        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: 8px;
    }

    .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: rgba(20, 184, 166, 0.08) !important;
}

.notice-row:hover {
    background: rgba(20, 184, 166, 0.15) !important;
}

.notice-badge {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0f14;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

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

/* 잠금 게시글 내용 숨김 */
.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: #ef4444;
    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: #ef4444;
}

.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(20, 184, 166, 0.2), rgba(16, 185, 129, 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(255, 255, 255, 0.05);
}

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

.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;
    }
}
