/* 홍보기 - 자동 글쓰기 도구 */

/* 스크롤 공지 */
.notice-bar {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.notice-bar-inner {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding-left: 100%;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.notice-bar-inner.neon {
    text-shadow: none;
}
/* Google Fonts는 HTML에서 비동기 로드 — 여기서 @import 제거 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f172a;
    --bg2: #1e293b;
    --bg3: #334155;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --green: #22c55e;
    --green-hover: #16a34a;
    --red: #ef4444;
    --red-hover: #dc2626;
    --yellow: #eab308;
    --border: #475569;
    --radius: 12px;
}


/* 헤더 제목 빛나는 효과 OFF */
body.no-header-glow .header h1 a {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--primary) !important;
    animation: none !important;
    filter: none !important;
}


/* 제작문의 버튼 */
.btn-contact {
    background: linear-gradient(135deg, #0088cc, #006fa3);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all .2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,136,204,0.3);
}
.btn-contact:hover {
    background: linear-gradient(135deg, #0099dd, #0088cc);
    box-shadow: 0 4px 14px rgba(0,136,204,0.5);
    transform: translateY(-1px);
}


body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* 헤더 */
.header {
    background: rgba(30,41,59,0.95);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, #a855f7 70%, transparent 100%);
    opacity: 0.5;
}

.header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.header h1 span {
    color: var(--text2);
    font-weight: 400;
    font-size: 14px;
    margin-left: 8px;
}

.header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-nav a {
    color: var(--text2);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all .2s;
    white-space: nowrap;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--text);
    background: var(--bg3);
}

/* 사용자 헤더 유저 영역 */
.header-nav .auth-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

/* 모바일 햄버거 메뉴 */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }
.nav-dropdown { display: none; }

/* 공개 페이지 모바일 메뉴 */
.user-nav-toggle { display: none; }
.user-nav-toggle-btn { display: none; cursor: pointer; background: none; border: 1px solid var(--border); color: var(--text); font-size: 18px; padding: 4px 10px; border-radius: 8px; }
.user-nav-dropdown { display: none; }

@media (max-width: 640px) {
    .header { padding: 10px 14px; }
    .header h1 { font-size: 16px; }
    .header-nav:not(.admin-nav) > a:not(.btn-contact),
    .header-nav:not(.admin-nav) > .auth-user-info > a,
    .header-nav:not(.admin-nav) > .auth-user-info > span:first-child { display: none; }
    .header-nav:not(.admin-nav) .user-nav-toggle-btn { display: block; }
    .header-nav:not(.admin-nav) .user-nav-toggle:checked ~ .user-nav-dropdown {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 14px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 8px;
        gap: 4px;
        min-width: 140px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        z-index: 200;
    }
    .user-nav-dropdown a {
        color: var(--text2) !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        border-radius: 6px !important;
        text-decoration: none;
        display: block;
        background: none !important;
        box-shadow: none !important;
    }
    .user-nav-dropdown a:hover { background: var(--bg3) !important; color: var(--text) !important; }
    .user-nav-dropdown .btn-contact { background: linear-gradient(135deg, #0088cc, #006fa3) !important; color: #fff !important; text-align: center; }
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== 메인 배경 이미지 영역 ===== */
.main-bg-area {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.main-bg-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    z-index: 0;
}
.main-bg-area > .container {
    position: relative;
    z-index: 1;
}

/* ===== 메인 페이지 (사용자) ===== */
.hero {
    text-align: center;
    padding: 60px 20px 20px;
}

.hero h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 네온 타이틀 */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 6px #fff,
            0 0 14px #fff,
            0 0 30px #a855f7,
            0 0 60px #a855f7,
            0 0 90px #a855f7,
            0 0 120px #7c3aed;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 2px #fff,
            0 0 8px #60a5fa,
            0 0 16px rgba(96,165,250,0.4);
    }
    50% {
        text-shadow:
            0 0 2px #fff,
            0 0 10px #a78bfa,
            0 0 20px rgba(167,139,250,0.4);
    }
}

/* ===== 히어로 네온 타이틀: 흰→파랑→보라→핑크→노랑 흐르는 그라디언트 ===== */
@keyframes neonFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}
@keyframes neonGlow {
    0%   { filter: drop-shadow(0 0 6px #818cf8) drop-shadow(0 0 20px #f472b6); }
    33%  { filter: drop-shadow(0 0 14px #67e8f9) drop-shadow(0 0 32px #818cf8); }
    66%  { filter: drop-shadow(0 0 10px #f472b6) drop-shadow(0 0 26px #facc15); }
    100% { filter: drop-shadow(0 0 6px #818cf8) drop-shadow(0 0 20px #f472b6); }
}
@keyframes underlineFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.neon-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    margin-bottom: 14px !important;
    background: linear-gradient(90deg,
        #fff 0%, #67e8f9 12%, #818cf8 28%,
        #f472b6 48%, #facc15 65%, #a78bfa 80%, #fff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonFlow 3s linear infinite, neonGlow 2.5s ease-in-out infinite;
    position: relative;
    display: block;
}
/* 반짝이는 밑줄 */
.neon-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%, #67e8f9 20%, #818cf8 40%,
        #f472b6 60%, #facc15 80%, transparent 100%);
    background-size: 200% auto;
    animation: underlineFlow 1.8s linear infinite;
    border-radius: 2px;
}

/* ===== 헤더 사이트명: 시안→인디고→민트 (다른 색상·속도) ===== */
@keyframes headerFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}
@keyframes headerGlow {
    0%   { filter: drop-shadow(0 0 3px #38bdf8); }
    50%  { filter: drop-shadow(0 0 8px #818cf8) drop-shadow(0 0 14px #34d399); }
    100% { filter: drop-shadow(0 0 3px #38bdf8); }
}
.header h1 a {
    background: linear-gradient(90deg,
        #38bdf8 0%, #818cf8 30%, #34d399 55%, #38bdf8 80%, #818cf8 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: headerFlow 6s linear infinite, headerGlow 3.5s ease-in-out infinite;
    display: inline-block;
}

/* ===== 스파클 파티클 ===== */
.sparkle-particle {
    position: absolute;
    pointer-events: none;
    line-height: 1;
    animation: sparkleFade var(--dur, 1.2s) ease-out forwards;
    z-index: 5;
    -webkit-text-fill-color: initial;
}
@keyframes sparkleFade {
    0%   { opacity: 0; transform: scale(0.3) translateY(0); }
    25%  { opacity: 1; transform: scale(1.2) translateY(-5px); }
    75%  { opacity: 0.7; }
    100% { opacity: 0; transform: scale(0.5) translateY(-16px); }
}

/* 네온 박스 */
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 8px #60a5fa, 0 0 20px #60a5fa, 0 0 40px #3b82f6, inset 0 0 10px rgba(96,165,250,0.05); border-color: #60a5fa; }
    50%       { box-shadow: 0 0 12px #a78bfa, 0 0 30px #a78bfa, 0 0 60px #7c3aed, inset 0 0 14px rgba(167,139,250,0.08); border-color: #a78bfa; }
}

.neon-box {
    display: block;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    background: rgba(15,23,42,0.85);
    border: 1.5px solid #60a5fa;
    border-radius: 16px;
    padding: 22px 28px;
    margin: 0 auto 10px;
    animation: borderGlow 2.5s ease-in-out infinite;
    text-align: center;
}

.neon-box-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 12px;
    text-shadow: 0 0 8px #60a5fa;
}

/* 네온 인풋 */
@keyframes inputGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(96,165,250,0.5), 0 0 14px rgba(96,165,250,0.2); border-color: rgba(96,165,250,0.6); }
    50%       { box-shadow: 0 0 10px rgba(167,139,250,0.6), 0 0 20px rgba(167,139,250,0.25); border-color: rgba(167,139,250,0.7); }
}

.neon-input {
    width: 100% !important;
    max-width: 280px !important;
    padding: 12px 18px !important;
    background: rgba(15,23,42,0.9) !important;
    border: 1.5px solid rgba(96,165,250,0.6) !important;
    border-radius: 10px !important;
    color: #e0e7ff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-align-last: center !important;
    font-family: inherit !important;
    outline: none !important;
    animation: inputGlow 2.5s ease-in-out infinite;
    transition: box-shadow .2s;
    display: block;
    margin: 0 auto;
}
select.neon-input option {
    text-align: center;
    background: #1e293b;
    color: #e0e7ff;
    padding: 8px 12px;
}

.neon-input::placeholder {
    color: #64748b !important;
}

/* ===== 커스텀 서버 드롭다운 (검색 가능) ===== */
.neon-dropdown {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}
.neon-dd-trigger {
    width: 100%;
    padding: 12px 40px 12px 18px;
    background: rgba(15,23,42,0.9);
    border: 1.5px solid rgba(96,165,250,0.6);
    border-radius: 10px;
    color: #e0e7ff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: inputGlow 3s ease-in-out infinite;
    transition: all .2s;
    box-sizing: border-box;
}
.neon-dd-trigger:hover {
    border-color: rgba(167,139,250,0.9);
}
.neon-dd-label {
    text-align: center;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.neon-dd-caret {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #93c5fd;
    font-size: 14px;
    transition: transform .2s;
    pointer-events: none;
}
.neon-dropdown.open .neon-dd-caret {
    transform: translateY(-50%) rotate(180deg);
}
.neon-dd-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 100%;
    min-width: 260px;
    background: rgba(15,23,42,0.98);
    border: 1.5px solid rgba(96,165,250,0.6);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(96,165,250,0.25);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
    overflow: hidden;
}
.neon-dropdown.open .neon-dd-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.neon-dd-search {
    padding: 10px 10px 8px;
    border-bottom: 1px solid rgba(96,165,250,0.2);
}
.neon-dd-search input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(30,41,59,0.8);
    border: 1px solid rgba(96,165,250,0.35);
    border-radius: 8px;
    color: #e0e7ff;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}
.neon-dd-search input:focus {
    border-color: rgba(167,139,250,0.8);
}
.neon-dd-search input::placeholder {
    color: #64748b;
}
.neon-dd-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}
.neon-dd-list::-webkit-scrollbar {
    width: 6px;
}
.neon-dd-list::-webkit-scrollbar-thumb {
    background: rgba(96,165,250,0.4);
    border-radius: 3px;
}
.neon-dd-item {
    padding: 10px 16px;
    color: #e0e7ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.neon-dd-item:hover,
.neon-dd-item.focused {
    background: rgba(96,165,250,0.18);
}
.neon-dd-item.selected {
    background: rgba(167,139,250,0.25);
    color: #fff;
}
.neon-dd-empty {
    padding: 20px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.neon-input:focus {
    box-shadow: 0 0 0 2px rgba(96,165,250,0.3), 0 0 20px rgba(96,165,250,0.5), 0 0 40px rgba(96,165,250,0.25) !important;
    border-color: #60a5fa !important;
    animation: none;
}

/* 네온 버튼 */
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 8px #3b82f6, 0 0 20px rgba(59,130,246,0.4); }
    50%       { box-shadow: 0 0 12px #6366f1, 0 0 30px rgba(99,102,241,0.5); }
}

.neon-btn {
    animation: btnGlow 2.5s ease-in-out infinite !important;
}

.hero p {
    color: var(--text2);
    font-size: 16px;
    margin-bottom: 40px;
}

/* 카운터 */
@keyframes counterGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34,197,94,0.15), 0 0 60px rgba(34,197,94,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
        border-color: rgba(34,197,94,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(34,197,94,0.25), 0 0 80px rgba(34,197,94,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
        border-color: rgba(34,197,94,0.5);
    }
}

@keyframes numberPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.counter-box {
    background: linear-gradient(160deg, rgba(30,41,59,0.95), rgba(15,23,42,0.95));
    border-radius: 24px;
    padding: 40px 40px 32px;
    margin-bottom: 40px;
    border: 1.5px solid rgba(34,197,94,0.3);
    position: relative;
    overflow: hidden;
    animation: counterGlow 3s ease-in-out infinite;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.counter-number {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #4ade80, #22c55e, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(34,197,94,0.5));
    display: inline-block;
}

.counter-number.pop {
    animation: numberPop 0.3s ease-out;
}

.counter-label {
    color: #86efac;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(34,197,94,0.4);
}

/* Start/Stop 버튼 */
.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 60px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all .3s;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #059669);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.btn-start.running {
    background: linear-gradient(135deg, var(--red), #b91c1c);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-start.running:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-start:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-start .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
}

/* 상태 표시 */
.status-bar {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.status-bar.active {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.status-bar.paused {
    display: block;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--yellow);
}

.status-elapsed {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.status-elapsed strong {
    font-size: 22px;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    margin-left: 4px;
}

.status-countdown {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.status-countdown strong {
    font-size: 20px;
    color: #22c55e;
    font-family: 'Courier New', monospace;
}
.status-main {
    font-size: 13px;
    opacity: 0.85;
}

/* 홍보 진행 정보 패널 */
.promo-info-panel {
    margin-top: 18px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
}
.promo-info-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.promo-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.promo-info-row:last-child { margin-bottom: 0; }
.promo-info-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.promo-info-label {
    color: var(--text2);
    flex-shrink: 0;
    min-width: 80px;
}
.promo-info-value {
    color: var(--text);
    font-weight: 600;
    flex: 1;
}
.promo-info-value .highlight {
    color: var(--green);
}
.promo-reward-list {
    margin-top: 12px;
}
.promo-reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    border-left: 3px solid var(--primary);
    transition: all 0.2s;
}
.promo-reward-item.achieved {
    border-left-color: var(--green);
    background: rgba(34, 197, 94, 0.08);
}
.promo-reward-item .reward-every {
    color: var(--primary);
    font-weight: 700;
    min-width: 70px;
    font-size: 13px;
}
.promo-reward-item.achieved .reward-every {
    color: var(--green);
}
.promo-reward-item .reward-name {
    flex: 1;
    color: var(--text);
}
.promo-reward-item .reward-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.promo-reward-item .reward-badge.badge-done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}
.promo-reward-item .reward-badge.badge-next {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}
.promo-eta {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
    border-radius: 8px;
    font-size: 12px;
    color: var(--text2);
    text-align: center;
    line-height: 1.6;
}
.promo-eta strong {
    color: var(--text);
}
.promo-eta .eta-time {
    color: var(--green);
    font-weight: 700;
}

/* 최근 작성 로그 */
.log-box {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
    border: 1px solid var(--border);
    text-align: left;
    max-height: 340px;
    overflow-y: auto;
}

.log-box h3 {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 12px;
}

.log-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg3);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.log-item:last-child { border-bottom: none; }
.log-item .title { color: var(--text); }
.log-item .time { color: var(--text2); font-size: 12px; }

/* ===== 관리자 페이지 ===== */
.admin-section {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.admin-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 랭킹 */
.ranking-box {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.ranking-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--yellow);
    text-align: center;
}

/* 랭킹 진행바 */
.ranking-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin: 0 12px;
    overflow: hidden;
}
.ranking-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    transition: width 0.8s ease;
}
.ranking-item.top1 .ranking-bar { background: linear-gradient(90deg, #eab308, #f59e0b); }
.ranking-item.top2 .ranking-bar { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.ranking-item.top3 .ranking-bar { background: linear-gradient(90deg, #b45309, #d97706); }

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--bg);
    font-size: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ranking-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ranking-item.top1 {
    background: linear-gradient(135deg, rgba(234,179,8,0.2) 0%, rgba(251,191,36,0.08) 100%);
    border: 1px solid rgba(234,179,8,0.5);
    padding: 12px 14px;
    box-shadow: 0 0 20px rgba(234,179,8,0.12), 0 2px 8px rgba(0,0,0,0.3);
}
.ranking-item.top2 { background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2); }
.ranking-item.top3 { background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.2); }

.ranking-rank {
    width: 30px;
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-item.top1 .ranking-name { font-size: 15px; font-weight: 700; color: #fbbf24; }
.ranking-item.top1 .ranking-count { font-size: 17px; color: #eab308; text-shadow: 0 0 10px rgba(234,179,8,0.6); }

/* 메달 아이콘 */
.medal-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.medal-icon-lg { width: 56px; height: 56px; object-fit: contain; }
.medal-icon-sm { width: 14px; height: 14px; object-fit: contain; vertical-align: middle; }
.medal-icon-title { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 2px; }

.ranking-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}
.ranking-server {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.ranking-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.ranking-count span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text2);
    margin-left: 2px;
}

/* 랭킹 페이지네이션 */
.ranking-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ranking-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text2);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.ranking-page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ranking-page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

/* 배너 */
.banner-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    padding: 0 24px;
}

.banner-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
}

.banner-item a {
    position: absolute;
    inset: 0;
    display: block;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

@media (max-width: 480px) {
    .banner-area { gap: 10px; }
}

/* 서버 배너 섹션 - 풀와이드 */
.server-banner-section {
    margin-top: 28px;
    grid-column: 1 / -1;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .server-banner-section {
        width: auto;
        margin-left: 0;
        padding: 0;
    }
}
/* 배너 개별 D-day */
.banner-dday {
    text-align:center;
    padding:6px 8px;
    font-size:13px;
    font-weight:700;
    letter-spacing:0.3px;
    border-radius:10px 10px 0 0;
}
.server-banner-section h3 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.server-banner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 340px);
    gap: 14px;
    justify-content: center;
    align-items: stretch;
}
@media (max-width: 600px) {
    .server-banner-list { grid-template-columns: 1fr; }
}
.server-banner-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.server-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.12);
}
.server-banner-card .banner-img-wrap {
    display: block;
    width: 340px;
    height: 340px;
    overflow: hidden;
    position: relative;
    background: var(--bg3);
}
.server-banner-card .banner-img-wrap img {
    width: 340px;
    height: 340px;
    object-fit: fill;
    display: block;
}
@media (max-width: 600px) {
    .server-banner-card .banner-img-wrap,
    .server-banner-card .banner-img-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
.server-banner-card .banner-rank {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.server-banner-card .banner-posts {
    position: absolute;
    top: 5px;
    right: 6px;
    background: rgba(59,130,246,0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.server-banner-info {
    padding: 10px 12px 12px;
}
.server-banner-info .sbi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.server-banner-info .sbi-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.server-banner-info .sbi-dday {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.sbi-dday.future { background: #ef4444; color: #fff; }
.sbi-dday.today { background: #f59e0b; color: #000; }
.sbi-dday.past { background: var(--bg3); color: var(--text2); }

/* D-day 요약 바 (배너 섹션 제목 아래) */
.dday-summary-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 20px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.dday-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s;
}
.dday-summary-item:hover { transform: translateY(-2px); }
.dday-summary-item.future {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.dday-summary-item.today {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.dday-summary-item.past {
    background: var(--bg3);
    color: var(--text2);
}
.dday-summary-name {
    font-size: 13px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dday-summary-badge {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.dday-summary-item.future .dday-summary-badge,
.dday-summary-item.today .dday-summary-badge {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
    .dday-summary-bar { gap: 6px; padding: 10px; }
    .dday-summary-item { padding: 6px 12px; }
    .dday-summary-name { font-size: 12px; max-width: 80px; }
    .dday-summary-badge { font-size: 13px; }
}

.server-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.sbt {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}
.sbt-style { background: #8b5cf6; color: #fff; }
.sbt-version { background: #06b6d4; color: #fff; }
.sbt-adena-o { background: #22c55e; color: #fff; }
.sbt-adena-x { background: #ef4444; color: #fff; }
.sbt-sponsor { background: #f59e0b; color: #000; }
.sbt-f2p { background: #10b981; color: #fff; }
.sbt-group { background: #3b82f6; color: #fff; }
.sbt-bug-y { background: #ef4444; color: #fff; }
.sbt-bug-n { background: #22c55e; color: #fff; }
.sbt-trade { background: #f59e0b; color: #000; }
.sbt-coin { background: #eab308; color: #000; }
.sbt-period { background: #6366f1; color: #fff; }
/* 이지선다 O/X 공통 태그 */
.sbt-ox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}
.sbt-ox-o {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 1px 3px rgba(34,197,94,0.35);
}
.sbt-ox-x {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    box-shadow: 0 1px 3px rgba(71,85,105,0.35);
    opacity: 0.85;
}
/* 운영자 메시지 */
.owner-msg-bar {
    overflow: hidden;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    min-height: 28px;
}
.owner-msg-bar span {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.owner-msg-bar .omsg-scroll { animation: omsgMainScroll 10s linear infinite; }
.owner-msg-bar .omsg-flash { animation: omsgMainFlash 1.5s ease-in-out infinite; }
.owner-msg-bar .omsg-blink { animation: omsgMainBlink 1s step-end infinite; }
.owner-msg-bar .omsg-glow { animation: omsgMainGlow 2s ease-in-out infinite; }
.owner-msg-bar .omsg-bounce { animation: omsgMainBounce 2s ease infinite; }
@keyframes omsgMainScroll { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
@keyframes omsgMainFlash { 0%,100%{opacity:1} 50%{opacity:0;transform:scale(1.05)} }
@keyframes omsgMainBlink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes omsgMainGlow { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.6)} }
@keyframes omsgMainBounce { 0%,100%{transform:translateY(0)} 25%{transform:translateY(-5px)} 50%{transform:translateY(0)} 75%{transform:translateY(-3px)} }
@media (max-width: 480px) {
    .server-banner-card .banner-img-wrap { /* 모바일 자동 높이 */ }
    .server-banner-info { padding: 6px 8px 8px; }
    .server-banner-info .sbi-name { font-size: 12px; }
}

/* 폼 */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 버튼 */
.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-success {
    background: var(--green);
    color: #fff;
}
.btn-success:hover { background: var(--green-hover); }

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover { background: var(--red-hover); }

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text2);
    margin-top: 4px;
}

/* 테이블 */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--bg3);
}

th {
    color: var(--text2);
    font-weight: 500;
    white-space: nowrap;
}

td { color: var(--text); }

tr:hover td { background: rgba(255,255,255,0.02); }

/* 템플릿 목록 */
.template-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-item .info {
    flex: 1;
    min-width: 0;
}

.template-item .info .t-title {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-item .info .t-content {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-item .actions {
    display: flex;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.template-item .t-image {
    margin-top: 6px;
}

.template-item .t-image img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

/* 배너 카드 */
.banner-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.banner-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 10px;
}

.banner-card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
}

.banner-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-empty {
    color: var(--text2);
    font-size: 13px;
}

.banner-card-url {
    font-size: 11px;
    color: var(--primary);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 16px;
}

.banner-card-btns {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

/* 이미지 프리뷰 */
.img-preview {
    margin-top: 8px;
}

.img-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* 게시글 이미지 */
.post-image {
    margin: 16px 0;
}

.post-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* 자동 링크 */
.content a, .auto-link {
    color: #3b82f6 !important;
    text-decoration: underline;
    cursor: pointer;
}

.content a:hover, .auto-link:hover {
    color: #60a5fa !important;
}

/* 파일 입력 스타일 */
input[type="file"] {
    padding: 8px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text2);
    width: 100%;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--bg3);
    color: var(--text);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

/* ===== 게시판 ===== */
.board-list {
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.board-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--bg3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    color: inherit;
}

.board-item:hover { background: rgba(255,255,255,0.02); }
.board-item:last-child { border-bottom: none; }

.board-item .b-num {
    color: var(--text2);
    font-size: 13px;
    width: 50px;
    flex-shrink: 0;
}

.board-item .b-title {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-item .b-date {
    color: var(--text2);
    font-size: 12px;
    margin-left: 16px;
    flex-shrink: 0;
}

/* 글 상세 */
.post-detail {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}

.post-detail h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.post-detail .meta {
    color: var(--text2);
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg3);
}

.post-detail .content {
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination button {
    padding: 6px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text2);
    cursor: pointer;
    font-size: 13px;
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button:hover:not(.active) {
    border-color: var(--text2);
}

/* ===========================================
 * 실시간 수다방 (2000년대 커뮤니티 스타일)
 * =========================================== */
.livechat-wrap {
    max-width: 960px;
    margin: 20px auto 0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    font-family: "Malgun Gothic", "맑은 고딕", Dotum, sans-serif;
    font-size: 14px;
    color: #cbd5e1;
    overflow: hidden;
}
.lc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-bottom: 1px solid #334155;
    font-size: 13px;
}
.lc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lc-title {
    color: #fbbf24;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}
.lc-mynick {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.lc-mynick::before { content: "["; color: #94a3b8; font-weight: 400; }
.lc-mynick::after  { content: "]"; color: #94a3b8; font-weight: 400; }

/* 본인에게만 보이는 내 등급 정보 */
.lc-mygrade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.lc-mygrade:empty { display: none; }
.lc-mygrade-count {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
}
@media (max-width: 700px) {
    .lc-mygrade { font-size: 10px; padding: 1px 6px; }
    .lc-mygrade-count { display: none; }
}
.lc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lc-count {
    font-size: 12px;
    color: #10b981;
}
.lc-count::before { content: "● "; }
.lc-toggle {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    font-size: 12px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}
.lc-toggle:hover { background: #1e293b; }
.lc-body { }
.lc-body.collapsed { display: none; }
.lc-pinned {
    background: #422006;
    border-bottom: 1px dashed #f59e0b;
    padding: 0;
}
.lc-pin-item {
    padding: 6px 12px;
    border-bottom: 1px dotted #78350f;
    font-size: 12px;
    color: #fde68a;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.lc-pin-item:last-child { border-bottom: none; }
.lc-pin-badge {
    background: #f59e0b;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 2px;
    white-space: nowrap;
    margin-top: 1px;
}
.lc-pin-content { flex: 1; word-break: break-word; }
.lc-pin-admin-tools {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}
.lc-messages {
    height: 280px;
    overflow-y: auto;
    padding: 6px 0;
    background: #0b1120;
    font-family: "Malgun Gothic", "돋움", Dotum, sans-serif;
    scroll-behavior: smooth;
}
.lc-messages::-webkit-scrollbar { width: 8px; }
.lc-messages::-webkit-scrollbar-track { background: #0b1120; }
.lc-messages::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.lc-msg {
    display: flex;
    align-items: flex-start;
    padding: 3px 14px;
    line-height: 1.6;
    font-size: 14px;
    word-break: break-word;
}
.lc-msg:hover { background: rgba(59, 130, 246, 0.05); }
.lc-msg:hover .lc-admin-tools { display: inline-flex; }
.lc-time {
    color: #64748b;
    font-size: 12px;
    margin-right: 8px;
    white-space: nowrap;
    font-family: Consolas, "D2Coding", monospace;
    min-width: 42px;
}
.lc-nick {
    font-weight: 700;
    margin-right: 4px;
    white-space: nowrap;
}
.lc-nick::after {
    content: " |";
    color: #475569;
    font-weight: 400;
    margin-left: 2px;
}
.lc-msg-admin .lc-nick { color: #ef4444; }
.lc-msg-admin .lc-nick::before { content: "[운영자] "; color: #fbbf24; font-size: 11px; }
.lc-content {
    flex: 1;
    color: #e2e8f0;
    padding-left: 4px;
}
.lc-msg-admin .lc-content { color: #fbbf24; font-weight: 500; }
.lc-admin-tools {
    display: none;
    gap: 3px;
    margin-left: 6px;
    flex-shrink: 0;
}
.lc-admin-btn {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #475569;
    font-size: 10px;
    padding: 1px 5px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}
.lc-admin-btn:hover { background: #334155; color: #fff; }
.lc-admin-btn.lc-admin-del { color: #f87171; border-color: #991b1b; }
.lc-admin-btn.lc-admin-pin { color: #fbbf24; border-color: #78350f; }
.lc-admin-btn.lc-admin-mute { color: #a78bfa; border-color: #5b21b6; }
.lc-admin-btn.lc-admin-ban  { color: #fb7185; border-color: #9f1239; }

.lc-loading, .lc-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 12px;
}
.lc-system {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    padding: 4px 12px;
    font-style: italic;
}
.lc-input-row {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #1e293b;
    border-top: 1px solid #334155;
    gap: 6px;
}
.lc-input-nick {
    background: #0f172a;
    color: #fbbf24;
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #334155;
    font-weight: 700;
    white-space: nowrap;
    min-width: 80px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-input {
    flex: 1;
    background: #0b1120;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 7px 12px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 0;
    outline: none;
}
.lc-input:focus { border-color: #3b82f6; }
.lc-input:disabled { background: #1e293b; color: #64748b; }
.lc-send {
    background: #1d4ed8;
    color: #fff;
    border: 1px solid #1e40af;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}
.lc-send:hover { background: #2563eb; }
.lc-send:disabled { background: #334155; border-color: #334155; cursor: not-allowed; }
.lc-footer {
    padding: 5px 12px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    font-size: 10px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lc-hint::before { content: "※ "; }

/* 접기 상태 — 서버 그리드 */
.lc-server-grid {
    background: #0b1120;
    padding: 14px 16px 18px;
    animation: lcSgFadeIn 0.3s ease;
}
@keyframes lcSgFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.lc-sg-title {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #334155;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.lc-sg-title::before { content: "■ "; color: #fbbf24; }
.lc-sg-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.lc-sg-card {
    display: block;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px 14px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.15s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.lc-sg-card:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    background: #263548;
}
.lc-sg-card-name {
    font-weight: 700;
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-sg-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}
.lc-sg-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.lc-sg-tag-ver    { background: #1e40af; color: #dbeafe; }
.lc-sg-tag-style  { background: #6b21a8; color: #f3e8ff; }
.lc-sg-tag-dday   { background: rgba(250, 204, 21, 0.15); color: #fbbf24; border: 1px solid #ca8a04; }
.lc-sg-tag-dday-today { background: #fbbf24; color: #000; animation: lcSgPulse 1.2s ease-in-out infinite; }
@keyframes lcSgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.lc-sg-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 30px;
    font-size: 12px;
}
@media (max-width: 900px) {
    .lc-sg-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .lc-sg-list { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .lc-sg-card { padding: 8px 10px; }
    .lc-sg-card-name { font-size: 13px; }
}

/* 채팅창도우미 — 닉네임만 빨간색 (일반 메시지처럼 흐름) */
.lc-nick-helper {
    color: #ef4444 !important;
    font-weight: 800;
}

/* 도우미 메시지 내부의 서버명 인라인 링크 */
.lc-content a.lc-inline-link,
.lc-content a.lc-inline-link:link,
.lc-content a.lc-inline-link:visited {
    color: #fbbf24 !important;
    text-decoration: underline !important;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.25);
}
.lc-content a.lc-inline-link:hover {
    color: #fde047 !important;
}

/* (레거시) 채팅창도우미 메시지 — 빨간 박스 스타일 제거됨 */
.lc-msg-helper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 5px 10px;
    background: linear-gradient(90deg, rgba(220,38,38,0.12), rgba(220,38,38,0.04), transparent);
    border-left: 3px solid #dc2626;
    border-radius: 3px;
    font-size: 13px;
    color: #fca5a5 !important;
    animation: lcHelperFadeIn 0.4s ease;
    flex-wrap: wrap;
}
@keyframes lcHelperFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.lc-msg-helper .lc-helper-badge {
    background: #dc2626 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.lc-msg-helper .lc-helper-content {
    flex: 1;
    color: #fca5a5 !important;
    font-weight: 600;
    min-width: 0;
}
/* 브라우저 기본 파란색 링크 강제 오버라이드 */
.lc-msg-helper a,
.lc-msg-helper a:link,
.lc-msg-helper a:visited,
.lc-msg-helper a:active,
.lc-msg-helper .lc-helper-link,
.lc-msg-helper .lc-helper-link:link,
.lc-msg-helper .lc-helper-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    margin: 0 2px;
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid #dc2626;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.15s;
    font-weight: 700;
}
.lc-msg-helper a:hover,
.lc-msg-helper .lc-helper-link:hover {
    background: #dc2626 !important;
    color: #fff !important;
    transform: translateY(-1px);
    border-color: #ef4444 !important;
}
.lc-msg-helper a strong,
.lc-msg-helper .lc-helper-link strong {
    color: #fff !important;
    font-weight: 800;
}
.lc-msg-helper .lc-helper-tag {
    font-size: 11px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #fde68a !important;
    border-radius: 2px;
    font-weight: 700;
}

/* 시스템 메시지 (등급 승급 축하 등) */
.lc-msg-system {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin: 4px 10px;
    background: linear-gradient(90deg, rgba(251,191,36,0.1), rgba(251,191,36,0.02), transparent);
    border-left: 3px solid #fbbf24;
    border-radius: 3px;
    font-size: 13px;
    color: #fde68a;
    animation: lcSysFadeIn 0.4s ease;
}
@keyframes lcSysFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.lc-sys-icon {
    color: #fbbf24;
    font-size: 14px;
    animation: lcSysSparkle 1.5s ease-in-out infinite;
}
@keyframes lcSysSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}
.lc-sys-content { flex: 1; font-weight: 600; }

/* 퀵 액션 바 (오늘 오픈 서버 알림 버튼) */
.lc-quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    background: #0b1120;
    border-bottom: 1px dashed #334155;
    flex-wrap: wrap;
}
.lc-qa-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: 1px solid #991b1b;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.lc-qa-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.lc-qa-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.lc-qa-hint {
    font-size: 10px;
    color: #64748b;
    font-style: italic;
}

/* 레전드 ★ 아이콘 특수 효과 (닉 색상과 별도로 표시) */
.lc-grade-legend-glow {
    color: #fbbf24 !important;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
    animation: lcLegendPulse 1.8s ease-in-out infinite;
}
@keyframes lcLegendPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 등급별 닉네임 색상 (툴팁/설명용으로만 유지) */
.lc-grade-newbie  { color: #94a3b8; }        /* 회색 */
.lc-grade-normal  { color: #e2e8f0; }        /* 흰색 */
.lc-grade-active  { color: #34d399; }        /* 초록 */
.lc-grade-regular { color: #60a5fa; }        /* 파랑 */
.lc-grade-legend  {
    color: #fbbf24;                           /* 금색 */
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}
.lc-grade-icon {
    margin-right: 2px;
    font-size: 11px;
}

/* 타이핑 인디케이터 */
.lc-typing {
    padding: 3px 14px;
    background: #0b1120;
    border-top: 1px dashed #334155;
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    animation: lcTypingFade 1.2s ease-in-out infinite;
}
.lc-typing::before { content: "● "; color: #10b981; }
@keyframes lcTypingFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 구 해시 기반 색상 (호환성) */
.lc-nick-c1 { color: #60a5fa; }
.lc-nick-c2 { color: #34d399; }
.lc-nick-c3 { color: #fbbf24; }
.lc-nick-c4 { color: #f472b6; }
.lc-nick-c5 { color: #a78bfa; }
.lc-nick-c6 { color: #22d3ee; }
.lc-nick-c7 { color: #fb923c; }
.lc-nick-c8 { color: #facc15; }

@media (max-width: 600px) {
    .livechat-wrap { margin: 14px 8px 0; }
    .lc-messages { height: 240px; }
    .lc-input-nick { min-width: 60px; max-width: 90px; font-size: 10px; }
    .lc-input { font-size: 12px; }
    .lc-send { padding: 5px 12px; }
    .lc-time { min-width: 34px; font-size: 10px; }
    .lc-msg { font-size: 12px; }
}

/* 스크린리더/SEO 전용 — 시각적으로는 숨김 */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 배너 필터 모달 */
.bf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.bf-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 92%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.bf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}
.bf-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}
.bf-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text2);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.bf-close:hover { color: var(--red); }
.bf-body {
    padding: 16px 20px;
}
.bf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bf-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 3px;
}
.bf-group select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    appearance: auto;
}
.bf-group select:focus {
    border-color: var(--primary);
    outline: none;
}
.bf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
}
.bf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bf-btn-reset {
    background: var(--bg3);
    color: var(--text2);
}
.bf-btn-reset:hover { background: var(--border); }
.bf-btn-apply {
    background: #64748b;
    color: #fff;
    flex: 1;
}
.bf-btn-apply:hover { background: #475569; }

/* 알림 토스트 — 로그인 버튼 영역과 겹치지 않도록 충분히 아래로 */
.toast {
    position: fixed;
    top: 110px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn .3s ease;
    max-width: 360px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.toast.success {
    background: var(--green);
    color: #fff;
}

.toast.error {
    background: var(--red);
    color: #fff;
}

.toast.info {
    background: #2563eb;
    color: #fff;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 로딩 스피너 */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 빈 상태 */
.empty {
    text-align: center;
    padding: 40px;
    color: var(--text2);
    font-size: 14px;
}

/* 모달 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--bg2);
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

/* 펄스 애니메이션 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 태그 (post.html, tag.html) ===== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
}
.tag-badge:hover { background: rgba(59,130,246,0.22); }

/* 태그 클라우드 */
.tag-cloud-box {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.tag-cloud-box h3 { font-size: 15px; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    padding: 5px 14px;
    background: var(--bg3);
    border-radius: 20px;
    color: var(--text2);
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
}
.tag-item:hover, .tag-item.active {
    background: rgba(59,130,246,0.15);
    border-color: var(--primary);
    color: var(--primary);
}
.tag-item span { font-size: 11px; opacity: 0.7; margin-left: 3px; }

/* ===== 댓글 (post.html) ===== */
.comment-section {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
    border: 1px solid var(--border);
}
.comment-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.comment-item {
    padding: 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}
.comment-writer { font-weight: 600; color: var(--primary); }
.comment-date { color: var(--text2); }
.comment-content { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.comment-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bg3);
}

/* ===== 관련글 (post.html) ===== */
.related-posts {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border);
}
.related-posts h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.related-list { display: flex; flex-direction: column; gap: 6px; }
.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.related-item:hover { border-color: var(--primary); }
.related-title { font-size: 13px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-meta  { font-size: 12px; color: var(--text2); margin-left: 12px; flex-shrink: 0; }

/* ===== 좋아요 + 공유 버튼 ===== */
.post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text2);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.like-btn:hover { border-color: #f472b6; color: #f472b6; }
.like-btn.liked { background: rgba(244,114,182,0.1); border-color: #f472b6; color: #f472b6; }
.like-btn .heart { font-size: 16px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text2);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    text-decoration: none;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 인기글 ===== */
.hot-posts-box {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}
.hot-posts-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s, transform 0.15s;
}
.hot-item:hover {
    background: rgba(255,255,255,0.04);
    transform: translateX(3px);
}
.hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--bg3);
    color: var(--text2);
}
.hot-rank.r1 { background: #eab308; color: #000; }
.hot-rank.r2 { background: #94a3b8; color: #000; }
.hot-rank.r3 { background: #b45309; color: #fff; }
.hot-title {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-hits {
    font-size: 11px;
    color: var(--text2);
    flex-shrink: 0;
}

/* 활성 유저 뱃지 */
.active-users-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #86efac;
    margin-bottom: 16px;
}
.active-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: activePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes activePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== 방문자 차트 (admin) ===== */
.visit-chart-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}
.visit-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 140px;
    min-width: max-content;
}
.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
    gap: 2px;
}
.chart-uv-num {
    font-size: 9px;
    color: var(--text2);
    height: 14px;
    display: flex;
    align-items: flex-end;
}
.chart-bar {
    width: 100%;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    cursor: default;
    transition: background .15s;
}
.chart-bar:hover { background: #60a5fa; }
.chart-date {
    font-size: 9px;
    color: var(--text2);
    margin-top: 4px;
    white-space: nowrap;
}
.visit-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.visit-summary span {
    font-size: 13px;
    color: var(--text2);
}
.visit-summary strong { color: var(--primary); margin-left: 4px; }

/* 반응형 그리드 헬퍼 */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.grid-3col-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero h2 { font-size: 24px; }
    .neon-title { font-size: 26px !important; letter-spacing: 0.5px; }
    .neon-box { padding: 18px 20px; }
    .neon-input { max-width: 220px !important; }
    .counter-number { font-size: 48px; }
    .btn-start { padding: 14px 40px; font-size: 16px; }
    .container { padding: 16px; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .template-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-item .actions {
        margin-left: 0;
        margin-top: 10px;
    }

    .board-item .b-num { display: none; }

    /* admin 그리드 */
    .grid-2col {
        grid-template-columns: 1fr;
    }
    .grid-3col-form {
        grid-template-columns: 1fr;
    }
    .grid-3col-form .btn {
        width: 100%;
    }

    /* 파츠 탭 버튼 */
    .parts-tab-wrap {
        flex-wrap: wrap;
    }

    /* 댓글 폼 */
    .comment-form-top {
        flex-direction: column;
    }
    .comment-form-top input {
        width: 100%;
    }
    .comment-form-bottom {
        flex-direction: column;
    }
    .comment-form-bottom button {
        width: 100%;
    }

    /* 게시판 검색 영역 */
    .gnb-head {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .board-search {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .board-search input {
        flex: 1;
        width: auto !important;
    }

    /* 포스트 액션 버튼 */
    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    /* 헤더 모바일 */
    .header {
        padding: 10px 12px;
    }
    .header h1 {
        font-size: 13px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-nav { gap: 3px; flex-shrink: 0; position: relative; }
    /* 모바일에서 일반 페이지는 링크 숨김 */
    .header-nav a { display: none; }
    .header-nav a[href="guide.html"] { display: inline-block !important; font-size: 12px; padding: 5px 10px; }
    /* 관리자 페이지 모바일 드롭다운 */
    .header-nav.admin-nav > a { display: none; }
    .header-nav.admin-nav .nav-toggle-btn {
        display: block;
        background: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font-size: 20px;
        padding: 4px 10px;
        cursor: pointer;
        line-height: 1;
    }
    .header-nav.admin-nav .nav-toggle:checked ~ .nav-dropdown { display: flex; }
    .header-nav.admin-nav .nav-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 8px;
        flex-direction: column;
        gap: 2px;
        min-width: 140px;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .header-nav.admin-nav .nav-dropdown a {
        display: block !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 8px;
        white-space: nowrap;
    }

    .container { padding: 12px; }
    .neon-title { font-size: 22px !important; }
    .counter-box { padding: 28px 20px 22px; }
    .counter-number { font-size: 56px; }
    .hero { padding: 36px 14px 14px; }
    .btn-start { padding: 13px 32px; font-size: 15px; }

    /* 관리자 섹션 패딩 */
    .admin-section { padding: 14px !important; }

    /* stats 1열 */
    .stats-grid { grid-template-columns: 1fr 1fr; }

    /* 테이블 래퍼 */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* 파츠 탭 */
    .parts-tab-wrap { gap: 4px; }
    .parts-tab-wrap .btn { font-size: 12px; padding: 5px 8px; }
}

/* ===== 홍보 통계 바 ===== */
@keyframes statBarPulse {
    0%, 100% {
        border-color: rgba(59,130,246,0.25);
        box-shadow: 0 0 0 rgba(59,130,246,0);
    }
    50% {
        border-color: rgba(59,130,246,0.5);
        box-shadow: 0 0 18px rgba(59,130,246,0.12);
    }
}
@keyframes shimmerSweep {
    0%   { transform: translateX(-260%); }
    60%, 100% { transform: translateX(420%); }
}
@keyframes statNumPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); color: #4ade80; }
    100% { transform: scale(1); }
}
@keyframes livePing {
    0%   { transform: scale(1); opacity: 1; }
    70%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.post-stats-bar {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.85));
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 50px;
    padding: 10px 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    animation: statBarPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.post-stats-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

/* LIVE 도트 */
.post-stat-live {
    position: relative;
    width: 8px; height: 8px;
    margin-right: 10px;
    flex-shrink: 0;
}
.post-stat-live-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: block;
}
.post-stat-live-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: livePing 1.8s ease-out infinite;
    will-change: transform, opacity;
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text2);
}
.post-stat-icon { font-size: 15px; }
.post-stat-label { font-size: 11px; color: var(--text2); letter-spacing: 0.3px; }
.post-stat-num {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
    min-width: 3ch;
    text-align: right;
}
.post-stat-item:first-of-type .post-stat-num { color: #60a5fa; }
.post-stat-item:last-of-type  .post-stat-num { color: #fbbf24; }
.post-stat-unit { font-size: 11px; color: var(--text2); }

.stat-pop { animation: statNumPop 0.4s ease-out forwards; }

/* ===== D-Day 카운터 ===== */
@keyframes ddayGlow {
    0%, 100% { text-shadow: 0 0 8px currentColor, 0 0 20px currentColor; }
    50%       { text-shadow: 0 0 16px currentColor, 0 0 40px currentColor, 0 0 60px currentColor; }
}
#heroDday {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 6px;
    flex-wrap: wrap;
}
.dday-badge {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    animation: ddayGlow 2s ease-in-out infinite;
    line-height: 1;
}
.dday-future { color: #38bdf8; }  /* 하늘 */
.dday-today  { color: #facc15; }  /* 골드 */
.dday-past   { color: #4ade80; }  /* 그린 */
.dday-desc {
    font-size: 13px;
    color: var(--text2);
    letter-spacing: 0.3px;
}

.post-stat-divider {
    width: 1px; height: 22px;
    background: rgba(255,255,255,0.1);
    margin: 0 18px;
}


/* ===== 보상 교환 신청 버튼 ===== */
.btn-exchange {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px 16px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    min-width: 280px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.btn-exchange::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 60%);
    border-radius: 14px;
    pointer-events: none;
}
.btn-exchange:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.45);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15), 0 2px 12px rgba(0,0,0,0.3);
}
.btn-exchange:active { transform: translateY(0); }
.btn-exchange-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-exchange-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.btn-exchange-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.btn-exchange-main {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}
.btn-exchange-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}
.btn-exchange-arrow {
    font-size: 18px;
    color: #475569;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.btn-exchange:hover .btn-exchange-arrow {
    transform: translateX(3px);
    color: #3b82f6;
}

/* ===== 처리완료 알림 팝업 ===== */
@keyframes popupIn {
    0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.reward-popup-box {
    background: linear-gradient(160deg, #1e293b, #0f172a);
    border: 1px solid rgba(234,179,8,0.5);
    border-radius: 20px;
    padding: 40px 32px 32px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
    box-shadow: 0 0 40px rgba(234,179,8,0.2), 0 20px 60px rgba(0,0,0,0.5);
}
.reward-popup-icon {
    font-size: 56px;
    margin-bottom: 14px;
    display: block;
    animation: numberPop 0.5s ease 0.2s both;
}
.reward-popup-title {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(234,179,8,0.5);
}
.reward-popup-msg {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 24px;
}
.reward-popup-close {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.reward-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234,179,8,0.4);
}
/* 성향 탭 */
.style-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: -1px;
    flex-wrap: wrap;
}
.style-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.style-tab:hover {
    background: var(--bg3);
    color: var(--text);
}
.style-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 그누보드 스타일 게시판 - 다크 테마 */
.gnb-board {
    background: var(--bg2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.gnb-head {
    padding: 10px 15px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}

.gnb-info {
    font-size: 12px;
    color: var(--text2);
}

/* 테이블 */
.gnb-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--primary);
}

.gnb-table thead th {
    background: rgba(255,255,255,0.03);
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}

.gnb-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .15s;
}

.gnb-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.018);
}

.gnb-table tbody tr:hover td {
    background: rgba(59,130,246,0.09) !important;
}

.gnb-table tbody tr:hover .td-title a {
    color: var(--primary);
    text-decoration: underline;
}

.gnb-table tbody td {
    padding: 9px 8px;
    font-size: 13px;
    color: var(--text2);
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 컬럼별 너비 */
.th-num, .td-num { width: 60px; }
.th-writer, .td-writer { width: 100px; }
.th-date, .td-date { width: 70px; }
.th-hit, .td-hit { width: 55px; }

.td-num {
    color: var(--text2);
    font-size: 12px;
}

.td-title {
    text-align: left !important;
    padding-left: 14px !important;
}

.td-title a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.td-title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.td-writer {
    font-size: 12px;
}

.td-date {
    font-size: 12px;
}

.td-hit {
    font-size: 12px;
}

/* 페이지네이션 */
.gnb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 14px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
}

.gnb-pagination a,
.gnb-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
}

.gnb-pagination .pg-num {
    color: var(--text2);
    background: var(--bg);
    border: 1px solid var(--border);
}

.gnb-pagination .pg-num:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.gnb-pagination .pg-current {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.gnb-pagination .pg-prev,
.gnb-pagination .pg-next {
    color: var(--text2);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 11px;
}

.gnb-pagination .pg-prev:hover,
.gnb-pagination .pg-next:hover {
    border-color: var(--text2);
    color: var(--text);
}

.gnb-pagination .pg-group-btn {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.gnb-pagination .pg-group-btn:hover {
    opacity: 0.8;
}

/* 댓글 수 뱃지 */
.cmt-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    margin-left: 3px;
    vertical-align: baseline;
}

/* 검색 취소 버튼 */
.search-cancel {
    color: var(--primary);
    font-size: 11px;
    margin-left: 8px;
    text-decoration: none;
    opacity: 0.8;
}
.search-cancel:hover { opacity: 1; text-decoration: underline; }

/* 반응형 */
@media (max-width: 600px) {
    .th-hit, .td-hit { display: none; }
    .th-num, .td-num { width: 40px; }
    .th-writer, .td-writer { width: 70px; }
    .td-title a { font-size: 12px; }
    .gnb-table thead th { font-size: 12px; padding: 8px 4px; }
    .gnb-table tbody td { padding: 8px 4px; }
    .style-tab { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 400px) {
    .th-writer, .td-writer { display: none; }
    .th-num, .td-num { width: 34px; font-size: 11px; }
    .td-title { padding-left: 8px !important; }
    .td-title a { font-size: 11px; }
    .th-date, .td-date { width: 52px; font-size: 11px; }
    .gnb-pagination { gap: 1px; flex-wrap: wrap; padding: 10px 4px; }
    .gnb-pagination a, .gnb-pagination strong { min-width: 24px; height: 24px; font-size: 11px; }
}

/* ===== 1위~3위 배너 왕관/메달 이펙트 ===== */
.server-banner-card.banner-rank-1 {
    border: 2px solid #eab308;
    box-shadow: 0 0 15px rgba(234,179,8,0.3), 0 0 30px rgba(234,179,8,0.15);
    animation: golden-glow 2s ease-in-out infinite;
}
.server-banner-card.banner-rank-2 {
    border: 2px solid #94a3b8;
    box-shadow: 0 0 10px rgba(148,163,184,0.25);
}
.server-banner-card.banner-rank-3 {
    border: 2px solid #b45309;
    box-shadow: 0 0 10px rgba(180,83,9,0.25);
}
@keyframes golden-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(234,179,8,0.3), 0 0 30px rgba(234,179,8,0.15); }
    50% { box-shadow: 0 0 25px rgba(234,179,8,0.5), 0 0 50px rgba(234,179,8,0.25); }
}

/* ===== 순위 변동 표시 ===== */
.rank-change {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}
.rank-up { color: #22c55e; background: rgba(34,197,94,0.15); }
.rank-down { color: #ef4444; background: rgba(239,68,68,0.15); }
.rank-same { color: #94a3b8; background: rgba(148,163,184,0.1); }
.rank-new { color: #3b82f6; background: rgba(59,130,246,0.15); }

/* ===== 유저 등급 배지 ===== */
.user-grade-badge {
    display: inline-block;
    font-size: 13px;
    margin-right: 3px;
    vertical-align: middle;
}
.user-grade-badge.grade-legend { filter: drop-shadow(0 0 4px rgba(234,179,8,0.7)); }
.user-grade-badge.grade-diamond { filter: drop-shadow(0 0 3px rgba(59,130,246,0.6)); }
.user-grade-badge.grade-gold { filter: drop-shadow(0 0 2px rgba(234,179,8,0.5)); }

/* ===== 연속 홍보 스트릭 ===== */
.streak-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #f97316;
    background: rgba(249,115,22,0.12);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ===== 오늘의 홍보왕 (MVP) ===== */
.mvp-bar-wrap {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 16px;
}
.mvp-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,207,77,0.15);
    background: linear-gradient(180deg, rgba(17,34,61,0.92), rgba(8,17,31,0.92));
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 40px rgba(255,191,0,0.05);
}
.mvp-hero::before {
    content:"";
    position:absolute;
    top:-60%;left:50%;transform:translateX(-50%);
    width:400px;height:400px;border-radius:50%;
    background:radial-gradient(circle,rgba(255,210,90,0.10) 0%,transparent 70%);
    pointer-events:none;
}
.mvp-topbar {
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    margin-bottom:12px;position:relative;z-index:1;
}
.mvp-topbar h3 { margin:0;font-size:16px;letter-spacing:-0.02em;color:var(--text); }
.mvp-topbar small { color:#ffd978;font-weight:800;font-size:11px; }
.mvp-topbar .mvp-reset-tag {
    padding:5px 10px;border-radius:999px;
    border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.03);
    color:#bfd5ff;font-size:11px;white-space:nowrap;
}

/* 챔피언 (1위) 컴팩트 */
.mvp-champ {
    position:relative;z-index:1;
    display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;
    border-radius:22px;padding:32px 28px;
    background:
        radial-gradient(ellipse at 30% 20%,rgba(255,210,90,0.12) 0%,transparent 50%),
        radial-gradient(ellipse at 80% 80%,rgba(90,163,255,0.08) 0%,transparent 50%),
        linear-gradient(135deg,rgba(255,203,76,0.08),rgba(10,20,38,0.95) 50%,rgba(90,163,255,0.05) 100%);
    border:2px solid rgba(255,208,96,0.50);
    box-shadow:0 0 40px rgba(255,196,0,0.18),0 0 80px rgba(255,196,0,0.06),inset 0 1px 0 rgba(255,255,255,0.10);
    margin-bottom:10px;
    min-height:180px;
    animation:champGlow 3s ease-in-out infinite;
}
@keyframes champGlow {
    0%,100% { box-shadow:0 0 40px rgba(255,196,0,0.18),0 0 80px rgba(255,196,0,0.06); }
    50% { box-shadow:0 0 50px rgba(255,196,0,0.25),0 0 100px rgba(255,196,0,0.10); }
}
/* MVP 실시간 숫자 변동 */
@keyframes mvpScorePop {
    0% { transform:scale(1);color:inherit; }
    30% { transform:scale(1.2);color:#5bf2a5; }
    100% { transform:scale(1);color:inherit; }
}
.mvp-score-pop { animation:mvpScorePop .5s ease; }
.mvp-champ::after {
    content:"";position:absolute;top:-1px;left:20%;right:20%;height:2px;
    background:linear-gradient(90deg,transparent,rgba(255,208,96,0.6),transparent);
    border-radius:2px;
}
.mvp-champ-left { display:flex;align-items:flex-start;gap:16px; }
.mvp-champ-crown { flex-shrink:0;line-height:1;filter:drop-shadow(0 0 10px rgba(255,200,0,0.35)); }
.mvp-champ-info { flex:1;min-width:0; }
.mvp-champ-tag {
    display:inline-flex;align-items:center;gap:5px;width:fit-content;
    padding:5px 12px;border-radius:999px;margin-bottom:8px;
    background:rgba(255,208,96,0.10);border:1px solid rgba(255,208,96,0.25);
    color:#ffe8aa;font-weight:800;font-size:11px;
}
.mvp-champ-name { font-size:32px;font-weight:900;letter-spacing:-0.04em;color:#fff;text-shadow:0 0 20px rgba(255,200,0,0.10); }
.mvp-champ-meta { font-size:13px;color:#b8c9e0;margin-top:4px; }
.mvp-champ-pills { display:flex;flex-wrap:wrap;gap:6px;margin-top:10px; }
.mvp-champ-pills .mvp-pill {
    padding:5px 11px;border-radius:999px;font-size:11px;font-weight:700;
    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);color:#dce9ff;
}
.mvp-pill.gold { color:#ffe598;border-color:rgba(255,207,77,0.25);background:rgba(255,207,77,0.10); }
.mvp-pill.success { color:#96ffd1;border-color:rgba(91,242,165,0.20);background:rgba(91,242,165,0.10); }
.mvp-champ-right { text-align:center; }
.mvp-champ-score {
    font-size:64px;font-weight:900;letter-spacing:-0.05em;line-height:0.9;
    color:#fff2bf;text-shadow:0 0 14px rgba(255,198,0,0.30),0 0 40px rgba(255,198,0,0.12);
}
.mvp-champ-score span { display:block;font-size:12px;color:#93a7c7;font-weight:500;letter-spacing:0.05em;margin-top:6px; }

/* 2~5위 그리드 */
.mvp-sub-grid {
    display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px;
}
.mvp-rank-card {
    position:relative;overflow:hidden;
    border-radius:12px;padding:10px 12px;
    background:linear-gradient(180deg,rgba(11,22,40,0.95),rgba(6,13,25,0.98));
    border:1px solid rgba(255,255,255,0.07);
    transition:transform .2s,border-color .2s,box-shadow .2s;
}
.mvp-rank-card:hover { transform:translateY(-2px); }
.mvp-rank-card.silver {
    background:linear-gradient(180deg,rgba(192,216,255,0.10),rgba(7,15,28,0.96));
    border-color:rgba(192,216,255,0.30);
    box-shadow:0 0 18px rgba(192,216,255,0.06);
}
.mvp-rank-card.silver:hover { border-color:rgba(192,216,255,0.45); }
.mvp-rank-card.silver .mvp-rc-score { color:#c0d8ff; }
.mvp-rank-card.bronze {
    background:linear-gradient(180deg,rgba(255,159,115,0.10),rgba(7,15,28,0.96));
    border-color:rgba(255,159,115,0.28);
    box-shadow:0 0 18px rgba(255,159,115,0.05);
}
.mvp-rank-card.bronze:hover { border-color:rgba(255,159,115,0.40); }
.mvp-rank-card.bronze .mvp-rc-score { color:#ffb899; }
.mvp-rank-card.chase {
    background:linear-gradient(180deg,rgba(91,242,165,0.08),rgba(7,15,28,0.96));
    border-color:rgba(91,242,165,0.22);
    box-shadow:0 0 14px rgba(91,242,165,0.04);
}
.mvp-rank-card.chase:hover { border-color:rgba(91,242,165,0.35); }
.mvp-rank-card.chase .mvp-rc-score { color:#8ef5c5; }
/* 5위 기본 */
.mvp-rank-card:not(.silver):not(.bronze):not(.chase) {
    background:linear-gradient(180deg,rgba(15,25,42,0.95),rgba(6,13,25,0.98));
    border-color:rgba(255,255,255,0.06);
}
.mvp-rank-card:not(.silver):not(.bronze):not(.chase):hover { border-color:rgba(255,255,255,0.14); }
.mvp-rc-top { display:flex;align-items:center;justify-content:space-between;margin-bottom:6px; }
.mvp-rc-no {
    width:24px;height:24px;display:grid;place-items:center;border-radius:50%;
    font-weight:900;font-size:12px;background:rgba(255,255,255,0.07);color:#e3edff;
}
.mvp-rc-badge {
    font-size:9px;font-weight:800;padding:3px 7px;border-radius:999px;
    background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);color:#d8e5ff;
}
.mvp-rc-name { font-size:15px;font-weight:800;letter-spacing:-0.03em;margin-bottom:2px;color:var(--text); }
.mvp-rc-meta { font-size:10px;color:#93a7c7;margin-bottom:6px; }
.mvp-rc-bottom { display:flex;align-items:flex-end;justify-content:space-between; }
.mvp-rc-score { font-size:24px;font-weight:900;letter-spacing:-0.04em;color:#dff0ff; }
.mvp-rc-delta { text-align:right;font-size:10px;color:#93a7c7; }
.mvp-rc-delta strong { display:block;font-size:12px;margin-top:1px; }
.mvp-rc-delta .up { color:#5bf2a5; }
.mvp-rc-delta .down { color:#ff6b6b; }
.mvp-rc-delta .same { color:#93a7c7; }

/* 6위~ 리스트 */
.mvp-list-panel {
    border-radius:12px;border:1px solid rgba(255,255,255,0.06);
    background:linear-gradient(180deg,rgba(8,18,34,0.96),rgba(5,11,21,0.98));
    overflow:hidden;
}
.mvp-panel-head {
    display:flex;align-items:center;justify-content:space-between;
    padding:8px 14px;border-bottom:1px solid rgba(255,255,255,0.06);
    background:rgba(255,255,255,0.02);cursor:pointer;
}
.mvp-panel-head h4 { margin:0;font-size:13px;letter-spacing:-0.02em;color:var(--text); }
.mvp-panel-head span { color:#93a7c7;font-size:11px; }
.mvp-list-row {
    display:grid;grid-template-columns:40px 1fr 70px;gap:8px;align-items:center;
    padding:7px 14px;border-top:1px solid rgba(255,255,255,0.04);font-size:12px;
}
.mvp-list-row:hover { background:rgba(255,255,255,0.02); }
.mvp-sm-rank {
    width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
    background:rgba(255,255,255,0.06);color:#d5e5ff;font-weight:900;font-size:11px;
}
.mvp-list-name { font-weight:700;font-size:13px;color:var(--text); }
.mvp-list-sub { font-size:10px;color:#93a7c7; }
.mvp-list-cnt { font-weight:800;color:#5aa3ff;text-align:right;font-size:12px; }


@media (max-width: 768px) {
    .mvp-bar-wrap { padding:0 10px;margin-bottom:14px; }
    .mvp-hero { padding:12px; }
    .mvp-champ { padding:20px 16px;min-height:140px;grid-template-columns:1fr auto; }
    .mvp-champ-crown { font-size:36px; }
    .mvp-champ-name { font-size:22px; }
    .mvp-champ-score { font-size:44px; }
    .mvp-sub-grid { grid-template-columns:repeat(2,1fr);gap:6px; }
    .mvp-rc-name { font-size:13px; }
    .mvp-rc-score { font-size:20px; }
}
@media (max-width: 480px) {
    .mvp-sub-grid { grid-template-columns:1fr 1fr; }
    .mvp-champ-pills .mvp-pill { font-size:9px; }
    .mvp-topbar { flex-direction:column;align-items:flex-start;gap:4px; }
}

/* 랭킹 페이지네이션 */
.ranking-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}
.ranking-page-btn {
    padding: 4px 10px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text2);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.ranking-page-btn:hover { background: var(--primary); color: #fff; }
.ranking-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 개인 대시보드 카드 ===== */
.my-dashboard-wrap {
    max-width: 1100px;
    margin: 22px auto 0;
    padding: 0 16px;
}
.my-dashboard {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}
.my-dashboard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}
.my-dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.my-dash-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text);
}
.my-dash-title strong {
    font-size: 17px;
    font-weight: 700;
}
.my-dash-server {
    font-size: 11px;
    background: var(--bg3);
    color: var(--text2);
    padding: 3px 8px;
    border-radius: 10px;
}
.my-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f1a00;
    font-weight: 700;
}
.my-streak {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
    animation: streakPulse 2.2s ease-in-out infinite;
}
@keyframes streakPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239,68,68,0.35); }
    50%      { box-shadow: 0 2px 14px rgba(239,68,68,0.6); }
}
.my-streak-none {
    font-size: 12px;
    color: var(--text2);
    padding: 6px 12px;
    border: 1px dashed var(--border);
    border-radius: 20px;
}
.my-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.my-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.my-stat:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.my-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.my-stat-lbl {
    font-size: 11px;
    color: var(--text2);
    letter-spacing: .5px;
}
.my-progress-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.my-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 8px;
}
.my-progress-label strong {
    font-size: 18px;
    color: #10b981;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.my-progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.my-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 6px;
    transition: width .6s ease-out;
    position: relative;
    overflow: hidden;
}
.my-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: progressShine 2s linear infinite;
}
@keyframes progressShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.my-progress-sub {
    font-size: 11px;
    color: var(--text2);
    margin-top: 6px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 모바일 */
@media (max-width: 600px) {
    .my-dashboard { padding: 16px 14px; border-radius: 14px; }
    .my-dash-head { margin-bottom: 14px; padding-bottom: 10px; }
    .my-dash-title strong { font-size: 15px; }
    .my-dash-stats { gap: 8px; }
    .my-stat { padding: 12px 6px; }
    .my-stat-num { font-size: 22px; }
    .my-stat-lbl { font-size: 10px; }
    .my-streak { padding: 5px 10px; font-size: 11px; }
}
