/* ===== 리셋 & 기본 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #0a0d14;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #1a6bff;
    text-decoration: none;
}

a:hover {
    color: #4d8fff;
}

code {
    font-family: 'Space Mono', monospace;
    background: rgba(26, 107, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ===== 버튼 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    gap: 6px;
}

.btn-primary {
    background: #1a6bff;
    color: #fff;
}

.btn-primary:hover {
    background: #1558d4;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #2a2f3a;
}

.btn-outline:hover {
    background: #1a1f2e;
    color: #fff;
}

.btn-start {
    background: linear-gradient(135deg, #00c97a, #00a86b);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-start:hover {
    background: linear-gradient(135deg, #00b36e, #009960);
    color: #fff;
}

.btn-stop {
    background: linear-gradient(135deg, #ff4d6a, #e0435c);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-stop:hover {
    background: linear-gradient(135deg, #e0435c, #cc3a50);
    color: #fff;
}

.btn-danger {
    background: transparent;
    color: #ff4d6a;
    border: 1px solid #ff4d6a33;
}

.btn-danger:hover {
    background: #ff4d6a15;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ===== 알림 ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 77, 106, 0.1);
    border: 1px solid rgba(255, 77, 106, 0.3);
    color: #ff4d6a;
}

.alert-success {
    background: rgba(0, 201, 122, 0.1);
    border: 1px solid rgba(0, 201, 122, 0.3);
    color: #00c97a;
}

/* ===== 뱃지 ===== */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(0, 201, 122, 0.15);
    color: #00c97a;
}

.badge-error {
    background: rgba(255, 77, 106, 0.15);
    color: #ff4d6a;
}

.channel-type.badge {
    background: rgba(26, 107, 255, 0.15);
    color: #1a6bff;
}

/* ===== 랜딩 페이지 ===== */
.landing-page {
    overflow-x: hidden;
}

.landing-header {
    background: rgba(10, 13, 20, 0.95);
    border-bottom: 1px solid #1a1f2e;
}

.landing-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* 히어로 */
.hero {
    position: relative;
    max-width: 100%;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}
.hero > .hero-content,
.hero > .hero-visual {
    max-width: 560px;
    margin: 0 auto;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.75);
    z-index: -1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero .highlight {
    color: #1a6bff;
    text-shadow: 0 2px 12px rgba(26,107,255,0.4);
}

.hero-desc {
    font-size: 17px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.feature-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 16px;
    padding: 24px;
    width: 340px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1f2e;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.green {
    background: #00c97a;
    box-shadow: 0 0 8px rgba(0, 201, 122, 0.5);
}

.preview-title {
    font-size: 14px;
    color: #00c97a;
    font-family: 'Space Mono', monospace;
}

.preview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-line {
    padding: 10px 14px;
    background: #0d1119;
    border-radius: 8px;
    font-size: 14px;
    color: #ccc;
}

/* 기능 섹션 */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: #1a6bff33;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

/* 푸터 */
/* ===== FAQ 섹션 ===== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #1a6bff44;
}

.faq-item[open] {
    border-color: #1a6bff;
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: #1a6bff;
    font-weight: 700;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 18px;
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 푸터 리뉴얼 ===== */
.landing-footer {
    border-top: 1px solid #1a1f2e;
    padding: 40px 24px 24px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand .logo-icon {
    font-size: 24px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    font-size: 13px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a6bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1f2e;
    color: #555;
    font-size: 13px;
}

/* ===== 인증 페이지 ===== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 16px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 4px;
}

.auth-logo p {
    color: #888;
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

/* ===== 폼 공통 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0d1119;
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a6bff;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Space Mono', 'Noto Sans KR', monospace;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 16px;
    padding: 32px;
}

/* 공지 편집 2컬럼 레이아웃 */
.notice-edit-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* 텔레그램 미리보기 패널 */
.tg-preview-panel {
    min-width: 0;
    max-width: 340px;
}
.tg-preview-sticky {
    position: sticky;
    top: 24px;
}
.tg-preview-phone {
    width: 300px;
    max-height: 600px;
    overflow-y: auto;
    background: #0e1621;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1a2332;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.tg-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #517da2;
}
.tg-preview-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7bc862, #4fae4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.tg-preview-ch-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.tg-preview-body {
    padding: 16px 12px;
    min-height: 120px;
    background: #8ba59b url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%238ba59b' width='100' height='100'/%3E%3Ccircle cx='20' cy='20' r='8' fill='%2382a093' opacity='0.3'/%3E%3Ccircle cx='70' cy='50' r='12' fill='%2382a093' opacity='0.2'/%3E%3Ccircle cx='40' cy='80' r='6' fill='%2382a093' opacity='0.25'/%3E%3C/svg%3E");
}
.tg-msg {
    background: #eeffde;
    border-radius: 12px 12px 0 12px;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.tg-msg::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent transparent #eeffde;
}
.tg-msg-media img,
.tg-msg-media video {
    width: 100%;
    display: block;
}
.tg-msg-text {
    padding: 6px 10px 2px;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
    word-break: break-word;
}
.tg-msg-text b { font-weight: 700; }
.tg-msg-text i { font-style: italic; }
.tg-msg-text a { color: #2a79b5; }
.tg-msg-text code {
    background: rgba(0,0,0,0.06);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}
.tg-msg-time {
    padding: 0 8px 4px;
    text-align: right;
    font-size: 11px;
    color: #6fb35a;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}
.tg-msg-time::after {
    content: '✓✓';
    font-size: 13px;
    color: #6fb35a;
}
.tg-msg-buttons {
    padding: 2px 6px 6px;
}
.tg-btn-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.tg-inline-btn {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    background: #d4edcb;
    color: #2a79b5;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #c0deb7;
}

@media (max-width: 900px) {
    .notice-edit-layout {
        grid-template-columns: 1fr;
    }
    .tg-preview-sticky {
        position: static;
    }
}

/* 관리 버튼 깜박임 */
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,107,255,0.6); }
    50% { box-shadow: 0 0 12px 4px rgba(26,107,255,0.4); }
}
.btn-pulse {
    animation: btnPulse 1.5s ease-in-out infinite;
}

/* ===== 앱 레이아웃 ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* 봇 추가 카드 선택 */
.add-bot-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.add-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: #0d1119;
    border: 2px solid #2a2f3a;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.add-type-card:hover {
    border-color: #1a6bff;
    background: rgba(26, 107, 255, 0.05);
    transform: translateY(-2px);
}

.add-type-icon {
    font-size: 40px;
}

.add-type-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.add-type-desc {
    font-size: 11px;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.add-type-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* 대기 중 표시 */
.waiting-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-top: 20px;
    background: rgba(26, 107, 255, 0.08);
    border: 1px solid rgba(26, 107, 255, 0.2);
    border-radius: 12px;
    color: #1a6bff;
    font-size: 15px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(26, 107, 255, 0.2);
    border-top-color: #1a6bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 검색 입력 */
.search-input-wrap {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    background: #0d1119;
    border: 2px solid #2a2f3a;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #1a6bff;
}

.search-input::placeholder {
    color: #555;
}

.input-examples {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.input-examples code {
    padding: 3px 8px;
    background: #1a1f2e;
    border-radius: 4px;
    color: #1a6bff;
    font-size: 12px;
}

@media (max-width: 768px) {
    .search-input-wrap {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .add-bot-cards {
        grid-template-columns: 1fr;
    }
}

/* 감지된 채널 목록 */
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.pending-card:hover {
    border-color: #1a6bff33;
}

.pending-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pending-icon {
    font-size: 28px;
}

.pending-info h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.pending-meta {
    font-size: 12px;
    color: #666;
}

details summary {
    outline: none;
    user-select: none;
}

details summary::-webkit-details-marker {
    color: #555;
}

/* 사이드바 */
.sidebar {
    width: 260px;
    background: #0d1119;
    border-right: 1px solid #1a1f2e;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #1a1f2e;
}

.sidebar-logo .logo-icon {
    font-size: 24px;
}

.sidebar-logo .logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    min-height: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #1a1f2e;
    color: #e0e0e0;
}

.nav-item.active {
    background: rgba(26, 107, 255, 0.1);
    color: #1a6bff;
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #1a1f2e;
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.user-email {
    font-size: 12px;
    color: #666;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

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

.page-header h1 {
    font-size: 28px;
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #2a2f3a;
    color: #e0e0e0;
    font-size: 24px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== 통계 카드 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
}

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

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 13px;
    color: #888;
}

/* ===== 섹션 ===== */
.section {
    margin-bottom: 32px;
}

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

.section-header h2 {
    font-size: 20px;
    color: #fff;
}

.empty-state {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    color: #888;
}

.empty-state p {
    margin-bottom: 16px;
}

/* ===== 채널 카드 ===== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.channel-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.channel-card:hover {
    border-color: #1a6bff33;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.channel-info h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.channel-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: #00c97a;
    box-shadow: 0 0 6px rgba(0, 201, 122, 0.5);
}

.status-dot.inactive {
    background: #555;
}

.status-text {
    font-size: 12px;
}

.status-text.active {
    color: #00c97a;
}

.status-text.inactive {
    color: #888;
}

.channel-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.channel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== 로그 테이블 ===== */
.log-table-wrap {
    overflow-x: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    background: #111520;
    border-radius: 12px;
    overflow: hidden;
}

.log-table th,
.log-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #1a1f2e;
}

.log-table th {
    color: #888;
    font-weight: 500;
    font-size: 13px;
    background: #0d1119;
}

.log-table td {
    color: #ccc;
}

.log-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-time {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #888;
}

/* ===== 공지 설정 페이지 ===== */
.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #ccc;
}

/* 스케줄 타입 선택 */
.schedule-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: #0d1119;
    border: 2px solid #2a2f3a;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
}

.radio-card input:checked + .radio-card-content {
    border-color: #1a6bff;
    background: rgba(26, 107, 255, 0.08);
}

.radio-icon {
    font-size: 24px;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.radio-desc {
    font-size: 11px;
    color: #888;
}

/* 스케줄 옵션 */
.schedule-option {
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 요일 선택 */
.weekday-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.weekday-btn {
    cursor: pointer;
}

.weekday-btn input {
    display: none;
}

.weekday-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111520;
    border: 2px solid #2a2f3a;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.weekday-btn input:checked + span {
    border-color: #1a6bff;
    background: rgba(26, 107, 255, 0.15);
    color: #1a6bff;
}

/* 체크박스 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.checkbox-label:hover {
    border-color: #2a2f3a;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1a6bff;
}

.checkbox-label span {
    font-size: 14px;
    color: #e0e0e0;
}

.checkbox-label small {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* 상태 바 */
.notice-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 14px 16px;
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    font-size: 13px;
    color: #888;
}

/* 도움말 */
.help-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a1f2e;
}

.help-section h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

.help-section ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-section li {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ===== 사이드바 추가 스타일 ===== */
.nav-divider {
    height: 1px;
    background: #1a1f2e;
    margin: 12px 4px;
}

.nav-section-title {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    margin-bottom: 4px;
}

/* ===== 공지 카드 목록 ===== */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.notice-card:hover {
    border-color: #1a6bff33;
}

.notice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-schedule {
    font-size: 13px;
    color: #ccc;
}

.notice-time {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #1a6bff;
}

.notice-card-right {
    display: flex;
    gap: 6px;
}

.mini-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #1a1f2e;
    border-radius: 4px;
    color: #888;
}

.notice-card-body {
    margin-bottom: 12px;
}

.notice-card-body p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.notice-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.notice-card-meta {
    font-size: 12px;
    color: #666;
}

.notice-card-actions {
    display: flex;
    gap: 8px;
}

/* ===== 바로가기 링크 ===== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.quick-link-card:hover {
    border-color: #1a6bff;
    color: #fff;
    background: rgba(26, 107, 255, 0.05);
}

.quick-icon {
    font-size: 28px;
}

/* ===== 금지어 관리 ===== */
.inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.banned-word-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banned-word-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
}

.bw-word {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.bw-action {
    flex-shrink: 0;
}

.badge-warn {
    background: rgba(255, 168, 0, 0.15);
    color: #ffa800;
}

.badge-info {
    background: rgba(26, 107, 255, 0.15);
    color: #1a6bff;
}

.help-text {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-list li {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    padding-left: 8px;
}

.help-list li::before {
    content: '• ';
    color: #1a6bff;
}

/* ===== 환영 메시지 ===== */
.variable-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #0d1119;
    border: 1px solid #2a2f3a;
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.chip:hover {
    border-color: #1a6bff;
    color: #1a6bff;
}

.chip strong {
    color: #1a6bff;
}

.preview-box {
    margin-bottom: 20px;
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
}

.preview-label {
    padding: 8px 16px;
    background: #1a1f2e;
    font-size: 12px;
    color: #888;
}

.preview-content {
    padding: 16px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
    min-height: 60px;
}

.example-box {
    padding: 16px;
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
}

/* ===== 자동 제재 ===== */
.action-select-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #0d1119;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    flex: 1;
    min-width: 160px;
}

.flow-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a6bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.flow-arrow {
    color: #555;
    font-size: 20px;
}

/* ===== 통계 차트 ===== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.chart-card {
    background: #111520;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 24px;
}

.chart-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

/* 바 차트 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding-top: 20px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.bar-value {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #888;
}

.bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #1a6bff, #1a6bff88);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.bar-red {
    background: linear-gradient(180deg, #ff4d6a, #ff4d6a88);
}

.bar-label {
    font-size: 11px;
    color: #666;
}

/* 도넛 차트 */
.donut-chart-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.donut-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.donut-ring svg {
    transform: rotate(-90deg);
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-pct {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.donut-label {
    font-size: 12px;
    color: #888;
}

.donut-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ===== 알림 벨 & 드롭다운 ===== */
.noti-wrap {
    position: relative;
    z-index: 50;
    display: inline-block;
}

.noti-bell {
    background: #141822;
    border: 1px solid #1e2433;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding: 6px 8px;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s;
}

.noti-bell:hover {
    background: #1a1f2e;
}

.noti-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4d6a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: 'Space Mono', monospace;
}

.noti-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 300px;
    max-height: 380px;
    background: #141822;
    border: 1px solid #1e2433;
    border-radius: 12px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    margin-bottom: 8px;
}

.noti-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1e2433;
}

.noti-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.noti-readall {
    background: none;
    border: none;
    color: #1a6bff;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}

.noti-readall:hover {
    color: #4d8fff;
}

.noti-list {
    max-height: 360px;
    overflow-y: auto;
}

.noti-empty {
    padding: 40px 16px;
    text-align: center;
    color: #555;
    font-size: 13px;
}

.noti-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #1a1f2e;
}

.noti-item:hover {
    background: #1a1f2e;
}

.noti-item.noti-unread {
    background: rgba(26, 107, 255, 0.06);
    border-left: 3px solid #1a6bff;
}

.noti-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.noti-item-body {
    flex: 1;
    min-width: 0;
}

.noti-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noti-item-msg {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noti-item-time {
    font-size: 11px;
    color: #555;
    margin-top: 4px;
}

/* ===== 도배 방지 설정 ===== */
.spam-rule-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.spam-field {
    flex: 1;
    min-width: 140px;
}

.spam-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-with-unit .input-sm {
    width: 80px;
}

.input-unit {
    font-size: 13px;
    color: #888;
}

.spam-example {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(26, 107, 255, 0.06);
    border-radius: 6px;
    font-size: 12px;
    color: #aaa;
}

/* ===== 활동 로그 ===== */
.log-filter-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.log-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-filter-field label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.log-list {
    display: flex;
    flex-direction: column;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30, 36, 51, 0.5);
    gap: 12px;
    flex-wrap: wrap;
}

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

.log-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.log-action {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
}

.log-user {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(26, 107, 255, 0.1);
    color: #4d8fff;
    border-radius: 4px;
}

.log-details {
    font-size: 12px;
    color: #888;
}

.log-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.log-time {
    font-size: 12px;
    color: #666;
    font-family: 'Space Mono', monospace;
}

.log-ip {
    font-size: 11px;
    color: #555;
    font-family: 'Space Mono', monospace;
}

.log-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.log-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #1e2433;
    color: #aaa;
    font-size: 13px;
    transition: all 0.2s;
}

.log-page-btn:hover {
    border-color: rgba(26, 107, 255, 0.3);
    color: #4d8fff;
}

.log-page-btn.active {
    background: #1a6bff;
    border-color: #1a6bff;
    color: #fff;
}

@media (max-width: 600px) {
    .log-filter-form {
        flex-direction: column;
        gap: 10px;
    }
    .log-filter-field {
        width: 100%;
    }
    .log-filter-field .form-input {
        width: 100%;
    }
    .log-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 0;
    }
    .log-item-left {
        gap: 6px;
    }
    .log-action {
        font-size: 12px;
    }
    .log-details {
        font-size: 11px;
        word-break: break-all;
    }
    .log-item-right {
        gap: 8px;
    }
    .log-time {
        font-size: 11px;
    }
    .log-ip {
        font-size: 10px;
    }
    .log-pagination {
        gap: 4px;
    }
    .log-page-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ===== RSS 피드 ===== */
.rss-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rss-item {
    border: 1px solid #1e2433;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.rss-item:hover {
    border-color: rgba(26, 107, 255, 0.3);
}

.rss-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.rss-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rss-item-info strong {
    color: #e0e0e0;
}

.rss-item-actions {
    display: flex;
    gap: 6px;
}

.rss-item-url {
    font-size: 12px;
    color: #4d8fff;
    word-break: break-all;
    margin-bottom: 8px;
}

.rss-item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}
.rss-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.rss-status-badge.rss-active {
    background: rgba(0,201,122,0.12);
    color: #00c97a;
    border: 1px solid rgba(0,201,122,0.25);
}

.rss-test-result {
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 14px;
}

.rss-test-title {
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 10px;
}

.rss-test-item {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 10px;
}

/* RSS 탭 바 */
.rss-tab-bar {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}
.rss-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #8b8ba0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.rss-tab.active {
    background: rgba(26,107,255,0.15);
    color: #1a6bff;
}
.rss-tab:hover:not(.active) {
    background: rgba(255,255,255,0.06);
}

/* RSS 검색 결과 리스트 */
.rss-search-list {
    max-height: 400px;
    overflow-y: auto;
}
.rss-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.rss-search-item:hover {
    border-color: rgba(0,201,122,0.4);
    background: rgba(0,201,122,0.04);
}
.rss-search-item-left {
    flex-shrink: 0;
}
.rss-search-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.rss-search-icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(26,107,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.rss-search-item-right {
    flex: 1;
    min-width: 0;
}
.rss-search-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rss-search-desc {
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rss-search-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}
.rss-search-add {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1a6bff;
    padding: 6px 12px;
    border: 1px solid rgba(26,107,255,0.3);
    border-radius: 6px;
    white-space: nowrap;
}
.rss-search-item:hover .rss-search-add {
    background: rgba(26,107,255,0.1);
}

/* RSS 라이브 스피너 */
.rss-live-card {
    border: 1px solid rgba(0,201,122,0.2);
}
.rss-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0,201,122,0.15);
    border-top-color: #00c97a;
    border-radius: 50%;
    animation: rss-spin 1.2s linear infinite;
    flex-shrink: 0;
}
@keyframes rss-spin {
    to { transform: rotate(360deg); }
}

/* RSS 템플릿 선택 */
.rss-template-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.rss-tpl-option {
    flex: 1;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
}
.rss-tpl-option:hover {
    border-color: rgba(26,107,255,0.3);
}
.rss-tpl-option.active {
    border-color: #1a6bff;
    background: rgba(26,107,255,0.06);
}
.rss-tpl-preview strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
.rss-tpl-example {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    background: rgba(0,0,0,0.15);
    padding: 8px 10px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .rss-template-options {
        flex-direction: column;
    }
    .rss-form-grid {
        grid-template-columns: 1fr;
    }
    .rss-item-meta {
        flex-direction: column;
        gap: 4px;
    }
    .rss-tab {
        font-size: 13px;
        padding: 8px 10px;
    }
    .rss-search-add {
        display: none;
    }
    .rss-search-icon, .rss-search-icon-placeholder {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* ===== 투표/설문 ===== */
.poll-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.poll-opt-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 107, 255, 0.1);
    color: #4d8fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.poll-opt-input {
    flex: 1;
}

.poll-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.poll-checkboxes {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.poll-item {
    border: 1px solid #1e2433;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.poll-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.poll-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: #888;
}

.poll-status-active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.poll-status-closed {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.poll-type-badge, .poll-anon-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(26, 107, 255, 0.1);
    color: #4d8fff;
    margin-left: 4px;
}

.poll-date {
    font-size: 12px;
    color: #666;
}

.poll-item-question {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.poll-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.poll-opt-chip {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: #aaa;
}

.poll-item-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 600px) {
    .poll-settings-grid {
        grid-template-columns: 1fr;
    }
    .poll-checkboxes {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== 자동 응답 ===== */
.ar-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ar-btn-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.ar-item {
    border: 1px solid #1e2433;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ar-item:hover {
    border-color: rgba(26, 107, 255, 0.3);
}

.ar-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(26, 107, 255, 0.03);
    gap: 12px;
    flex-wrap: wrap;
}

.ar-item-keyword {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ar-keyword-badge {
    background: rgba(26, 107, 255, 0.15);
    color: #4d8fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.ar-match-type {
    font-size: 11px;
    color: #888;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.ar-inactive-badge {
    font-size: 11px;
    color: #f44;
    background: rgba(244,67,54,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.ar-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ar-use-count {
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

.ar-item-body {
    padding: 12px 16px;
}

.ar-reply-preview {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .ar-form-grid {
        grid-template-columns: 1fr;
    }
    .ar-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ar-btn-row {
        flex-wrap: wrap;
    }
}

/* ===== 화이트리스트 ===== */
.whitelist-add-form .wl-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.whitelist-add-form .wl-field {
    flex: 1;
}

.whitelist-add-form .wl-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 6px;
}

.whitelist-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(26, 107, 255, 0.06);
    color: #aaa;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1e2433;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(30, 36, 51, 0.5);
    color: #ccc;
}

.data-table tbody tr:hover {
    background: rgba(26, 107, 255, 0.03);
}

.btn-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: rgba(244, 67, 54, 0.25);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .whitelist-add-form .wl-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== 캡차 설정 ===== */
.captcha-type-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.radio-card {
    flex: 1;
    border: 2px solid #1e2433;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(26, 107, 255, 0.03);
}

.radio-card:hover {
    border-color: rgba(26, 107, 255, 0.3);
}

.radio-card.selected {
    border-color: #1a6bff;
    background: rgba(26, 107, 255, 0.08);
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-card-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.radio-card-content strong {
    color: #fff;
    font-size: 14px;
}

.radio-card-content small {
    color: #888;
    font-size: 12px;
}

.captcha-preview {
    background: #131824;
    border: 1px solid #1e2433;
    border-radius: 10px;
    padding: 16px;
}

.captcha-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 10px;
}

.captcha-preview-body {
    background: rgba(26, 107, 255, 0.06);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 8px;
}

.captcha-q {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-family: 'Space Mono', monospace;
}

.captcha-a {
    font-size: 14px;
    color: #4d8fff;
    margin-top: 6px;
}

.captcha-action-selector {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid #1e2433;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.radio-pill:hover {
    border-color: rgba(26, 107, 255, 0.3);
}

.radio-pill.selected {
    border-color: #1a6bff;
    background: rgba(26, 107, 255, 0.1);
    color: #4d8fff;
}

.radio-pill input[type="radio"] {
    display: none;
}

@media (max-width: 600px) {
    .captcha-type-selector {
        flex-direction: column;
    }
    .captcha-action-selector {
        flex-direction: column;
    }
    .radio-pill {
        justify-content: center;
    }
}

/* ===== 캘린더 ===== */
.cal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    min-width: 120px;
    text-align: center;
}

.cal-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-dot-daily { background: #1a6bff; }
.cal-dot-interval { background: #00c97a; }
.cal-dot-weekday { background: #ffaa00; }
.cal-dot-once { background: #ff4d6a; }

.cal-grid-wrap {
    background: #10141d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1a1f2e;
}

.cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #141822;
    border-bottom: 1px solid #1a1f2e;
}

.cal-header-cell {
    padding: 10px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

.cal-header-cell.sun { color: #ff4d6a; }
.cal-header-cell.sat { color: #1a6bff; }

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
    min-height: 100px;
    border-right: 1px solid #1a1f2e;
    border-bottom: 1px solid #1a1f2e;
    padding: 6px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell:hover {
    background: rgba(26, 107, 255, 0.05);
}

.cal-cell.cal-empty {
    background: #0c0f17;
    cursor: default;
}

.cal-cell.cal-today {
    background: rgba(26, 107, 255, 0.08);
}

.cal-cell.cal-today .cal-date {
    background: #1a6bff;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-date {
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 4px;
}

.cal-sun .cal-date { color: #ff4d6a; }
.cal-sat .cal-date { color: #4d8fff; }

.cal-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-event-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}

.cal-event-item.cal-inactive {
    opacity: 0.4;
}

.cal-event-text {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-event-more {
    font-size: 10px;
    color: #1a6bff;
    padding: 2px 4px;
}

/* 캘린더 상세 모달 */
.cal-detail-item {
    padding: 12px 14px;
    background: #0d1119;
    border-radius: 10px;
    margin-bottom: 8px;
}

.cal-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cal-detail-time {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #1a6bff;
}

.cal-detail-type {
    font-size: 12px;
    color: #888;
}

.cal-detail-channel {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
}

.cal-detail-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 캘린더 모바일 */
@media (max-width: 768px) {
    .cal-cell {
        min-height: 60px;
        padding: 4px 2px;
    }

    .cal-event-text {
        display: none;
    }

    .cal-event-item {
        padding: 1px 2px;
        justify-content: center;
    }

    .cal-event-more {
        font-size: 9px;
    }

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

    .cal-title {
        font-size: 16px;
    }
}

/* ===== 템플릿 목록 ===== */
.tpl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0d1119;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.tpl-item:hover {
    background: #141a26;
}

.tpl-item-body {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.tpl-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 2px;
}

.tpl-item-preview {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 멤버 수 라인 차트 */
.member-chart-wrap {
    background: #10141d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    overflow-x: auto;
}

.line-chart {
    min-width: 600px;
}

.member-svg {
    width: 100%;
    height: auto;
    max-height: 280px;
}

.member-svg .chart-dot {
    transition: r 0.2s;
    cursor: pointer;
}

.member-svg .chart-dot:hover {
    r: 6;
}

/* 순위 리스트 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #0d1119;
    border-radius: 8px;
}

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1f2e;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.rank-word {
    flex: 1;
    font-size: 14px;
    color: #e0e0e0;
}

.rank-count {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #ff4d6a;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* 사이드바 모바일 */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 랜딩 모바일 */
    .landing-nav {
        padding: 12px 16px;
    }
    .logo-icon {
        font-size: 22px;
    }
    .logo-text {
        font-size: 16px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 16px 40px;
        gap: 32px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-visual {
        display: none;
    }
    .features {
        padding: 40px 16px;
    }
    .features h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-card {
        padding: 18px;
        border-radius: 12px;
    }
    .feature-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .feature-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }
    .landing-footer {
        padding: 24px 16px;
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .faq-section {
        padding: 48px 16px;
    }

    .faq-section h2 {
        font-size: 24px;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-item p {
        padding: 0 16px 14px;
        font-size: 13px;
    }

    /* 통계 모바일 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    /* 채널 카드 모바일 */
    .channel-grid {
        grid-template-columns: 1fr;
    }

    /* 기능 카드 모바일 */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* 스케줄 타입 모바일 */
    .schedule-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 인증 카드 모바일 */
    .auth-container {
        max-width: 100%;
        padding: 0 16px;
    }
    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }
    .auth-card .form-input,
    .auth-card textarea,
    .auth-card select {
        font-size: 16px;
        padding: 14px 12px;
    }
    .auth-card .btn-full {
        font-size: 16px;
        padding: 14px;
    }
    .auth-logo .logo-icon {
        font-size: 40px;
    }
    .auth-logo h1 {
        font-size: 22px;
    }

    /* 폼 카드 모바일 */
    .form-card {
        padding: 20px;
    }

    /* 로그 테이블 모바일 */
    .log-content {
        max-width: 150px;
    }

    /* 페이지 헤더 */
    .page-header h1 {
        font-size: 22px;
    }

    /* 상태 바 모바일 */
    .notice-status-bar {
        flex-direction: column;
        gap: 8px;
    }

    /* 바로가기 모바일 */
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 인라인 폼 모바일 */
    .inline-form {
        flex-direction: column;
    }

    /* 차트 모바일 */
    .chart-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .chart-card {
        padding: 16px;
    }
    .chart-card h3 {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .bar-chart {
        gap: 6px;
        height: 140px;
    }
    .bar-value {
        font-size: 10px;
    }
    .bar-label {
        font-size: 9px;
    }
    .donut-ring {
        width: 100px;
        height: 100px;
    }
    .donut-pct {
        font-size: 20px;
    }
    .rank-item {
        padding: 8px 0;
    }
    .rank-word {
        font-size: 13px;
    }
    .rank-count {
        font-size: 12px;
    }
    /* 멤버 차트 모바일 */
    .member-chart-wrap {
        padding: 12px;
    }
    .line-chart {
        min-width: 0;
    }
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .section-header h2 {
        font-size: 16px;
    }
    .section h2 {
        font-size: 16px;
    }
    /* 테이블 모바일 */
    .log-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .log-table th,
    .log-table td {
        font-size: 12px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* 공지 카드 모바일 */
    .notice-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .notice-card-footer {
        flex-direction: column;
    }

    /* 자동제재 카드 모바일 */
    .action-select-cards {
        grid-template-columns: 1fr;
    }

    /* 플로우 모바일 */
    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

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

    .schedule-type-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-buttons {
        gap: 6px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ===== 토글 스위치 ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2a2d3a;
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #666;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #1a6bff;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

/* ===== 규칙 설정 아이템 ===== */
.rule-item {
    background: #12152a;
    border: 1px solid #1e2140;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.rule-info h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 6px;
}
.rule-info .help-text {
    color: #8888aa;
    font-size: 13px;
    line-height: 1.5;
}
.rule-info code {
    background: #1a1d30;
    color: #1a6bff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.rules-info {
    background: #0d1025;
    border: 1px solid #1a6bff33;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.rules-info .help-text {
    color: #8888aa;
    margin: 0;
}
.rules-info strong {
    color: #00c97a;
}
.channel-badge {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.channel-badge strong {
    color: #fff;
    font-size: 18px;
}

/* ===== 안내 박스 ===== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #0d1025;
    border: 1px solid #1a6bff33;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.info-box .info-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.info-box strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}
.info-box p {
    color: #8888aa;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.info-box p strong {
    color: #1a6bff;
    display: inline;
}

/* ===== 관리자 페이지 ===== */
.admin-user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-user-card {
    background: #12152a;
    border: 1px solid #1e2140;
    border-radius: 12px;
    padding: 16px 20px;
    transition: 0.2s;
}
.admin-user-card.disabled {
    opacity: 0.5;
    border-color: #ff4d6a33;
}
.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.admin-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.admin-user-name strong {
    color: #fff;
    font-size: 16px;
}
.admin-user-meta {
    color: #6b6b8a;
    font-size: 13px;
}
.admin-user-memo {
    color: #8888aa;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}
.admin-user-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.admin-badge {
    background: #1a6bff33 !important;
    color: #1a6bff !important;
}
.disabled-badge {
    background: #ff4d6a33 !important;
    color: #ff4d6a !important;
}
.admin-user-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #1e2140;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.detail-item label {
    color: #8888aa;
    font-size: 12px;
    font-weight: 500;
}
.detail-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.input-sm {
    background: #0a0d14;
    border: 1px solid #1e2140;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}
.input-sm:focus {
    outline: none;
    border-color: #1a6bff;
}
select.input-sm {
    cursor: pointer;
}

/* ===== 대기화면 ===== */
.pending-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}
.pending-status-card {
    text-align: center;
    background: linear-gradient(135deg, #0f1225, #151a35);
    border: 1px solid #1e2140;
    border-radius: 16px;
    padding: 40px 24px;
    margin-bottom: 20px;
}
.pending-status-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.pending-status-card h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}
.pending-status-card p {
    color: #aaa;
    font-size: 15px;
    margin-top: 4px;
}
.pending-plan-badge {
    display: inline-block;
    background: #1a6bff22;
    color: #1a6bff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}
.pending-action-card {
    background: #12152a;
    border: 1px solid #1e2140;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.pending-requested-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #00c97a11;
    border: 1px solid #00c97a33;
    border-radius: 10px;
    padding: 16px;
}
.pending-req-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.pending-requested-box strong {
    color: #00c97a;
    font-size: 15px;
}
.pending-requested-box p {
    color: #8888aa;
    font-size: 13px;
    margin-top: 4px;
}
.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* 기능 소개 */
.pending-features-card {
    background: #12152a;
    border: 1px solid #1e2140;
    border-radius: 16px;
    padding: 24px;
}
.pending-features-card h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.feature-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #0a0d14;
    border-radius: 10px;
    border: 1px solid #1e2140;
}
.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.feature-info h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}
.feature-info p {
    color: #6b6b8a;
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .pending-status-card {
        padding: 30px 16px;
    }
    .pending-status-icon {
        font-size: 40px;
    }
    .pending-status-card h1 {
        font-size: 20px;
    }
}

/* ===== 링크 미리보기 선택 ===== */
.link-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.radio-card.mini .radio-card-content {
    padding: 10px 6px;
}
.radio-card.mini .radio-icon {
    font-size: 20px;
}
.radio-card.mini .radio-label {
    font-size: 13px;
}
.radio-card.mini .radio-desc {
    font-size: 10px;
}
@media (max-width: 600px) {
    .link-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 400px) {
    .link-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== URL 버튼 행 ===== */
.url-btn-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.url-btn-row .input-sm {
    flex: 1;
}

/* 버튼 템플릿 바 */
.btn-template-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* 버튼 레이아웃 선택 */
.btn-layout-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #0a0d14;
    border: 2px solid #1e2140;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 70px;
}
.layout-option:hover {
    border-color: #1a6bff55;
}
.layout-option.selected {
    border-color: #1a6bff;
    background: #1a6bff11;
}
.layout-option input[type="radio"] {
    display: none;
}
.layout-name {
    color: #8888aa;
    font-size: 11px;
}
.layout-option.selected .layout-name {
    color: #1a6bff;
}
.layout-preview {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 50px;
}
.lp-row {
    display: flex;
    gap: 2px;
}
.lp-row span {
    flex: 1;
    height: 8px;
    background: #2a2f55;
    border-radius: 2px;
}
.layout-option.selected .lp-row span {
    background: #1a6bff66;
}

@media (max-width: 480px) {
    .url-btn-row {
        flex-wrap: wrap;
    }
    .url-btn-row .input-sm {
        flex: 1 1 100% !important;
    }
    .btn-layout-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 미리보기 배너 ===== */
.preview-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1a2550, #12152a);
    border: 1px solid #1a6bff44;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}
.preview-banner:hover {
    border-color: #1a6bff;
    background: linear-gradient(135deg, #1a2d60, #151a35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 107, 255, 0.15);
}
.preview-banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}
.preview-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.preview-banner-info strong {
    color: #fff;
    font-size: 16px;
}
.preview-banner-info span {
    color: #8888aa;
    font-size: 13px;
}
.preview-banner-arrow {
    color: #1a6bff;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .preview-banner {
        padding: 14px 16px;
    }
    .preview-banner-icon {
        font-size: 28px;
    }
    .preview-banner-info strong {
        font-size: 14px;
    }
}

/* ===== 요금제 선택 (회원가입) ===== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}
.plan-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: #0a0d14;
    border: 2px solid #1e2140;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.plan-option:hover {
    border-color: #1a6bff55;
}
.plan-option.selected {
    border-color: #1a6bff;
    background: #1a6bff11;
}
.plan-option input[type="radio"] {
    display: none;
}
.plan-option:has(input:checked) {
    border-color: #1a6bff !important;
    background: rgba(26, 107, 255, 0.15) !important;
    box-shadow: 0 0 0 2px #1a6bff;
}
.plan-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.plan-price {
    color: #1a6bff;
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 480px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 회원가입 계좌 박스 */
.reg-payment-box {
    background: #0a0d14;
    border: 1px solid #1e2140;
    border-radius: 10px;
    padding: 14px;
    margin-top: 4px;
}
.reg-payment-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1e2140;
}
.reg-payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.reg-pay-label {
    color: #6b6b8a;
    font-size: 12px;
    min-width: 40px;
}
.reg-pay-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

/* ===== 설정 섹션 / 가격 그리드 ===== */
.settings-section-title {
    color: #1a6bff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1e2140;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-item label {
    color: #8888aa;
    font-size: 12px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 이용권 카드 ===== */
.subscription-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0f1225, #151a35);
    border: 1px solid #1e2140;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 20px;
}
.sub-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sub-icon {
    font-size: 32px;
}
.sub-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sub-title {
    color: #8888aa;
    font-size: 13px;
}
.sub-expire {
    font-size: 18px;
    font-weight: 700;
}
.sub-actions {
    flex-shrink: 0;
}

/* ===== 모달 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    background: #12152a;
    border: 1px solid #1e2140;
    border-radius: 16px;
    padding: 24px;
    padding-bottom: 32px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    color: #fff;
    font-size: 18px;
}
.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-close:hover {
    color: #fff;
}

/* ===== 결제 정보 박스 ===== */
.payment-info-box {
    background: #0a0d14;
    border: 1px solid #1e2140;
    border-radius: 12px;
    padding: 16px;
}
.payment-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e2140;
}
.payment-bank,
.payment-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.payment-label {
    color: #6b6b8a;
    font-size: 13px;
    min-width: 60px;
}
.payment-value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}
.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}
.btn-full {
    width: 100%;
}

/* ===== 연장 완료 ===== */
.extend-done-box {
    text-align: center;
    padding: 30px 0;
}
.extend-done-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.extend-done-box h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}
.extend-done-box p {
    color: #8888aa;
    font-size: 14px;
}

/* ===== 연장요청 카드 ===== */
.extend-req-card {
    border-color: #ffaa0055 !important;
    background: linear-gradient(135deg, #1a1500, #12152a) !important;
}
.has-request {
    border-color: #00c97a55 !important;
    background: linear-gradient(135deg, #0a1a10, #12152a) !important;
}
.extend-badge {
    background: #ffaa0022;
    color: #ffaa00;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ===== 관리자 대시보드 추가 스타일 ===== */
.stat-alert {
    border-color: #ff4d6a !important;
    background: linear-gradient(135deg, #1a0a10, #12152a) !important;
    animation: pulse-alert 2s ease-in-out infinite;
}
@keyframes pulse-alert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); }
    50% { box-shadow: 0 0 15px rgba(255, 77, 106, 0.2); }
}
.stat-warn {
    border-color: #ffaa00 !important;
    background: linear-gradient(135deg, #1a1500, #12152a) !important;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.pending-badge {
    background: #ff4d6a22;
    color: #ff4d6a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.expired-card {
    border-color: #ffaa0033;
}
.expired-card:hover {
    border-color: #ffaa0066;
}

.approve-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.approve-form select.input-sm {
    width: auto;
    min-width: 90px;
}

@media (max-width: 768px) {
    .admin-user-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .approve-form {
        width: 100%;
        flex-wrap: wrap;
    }
    .approve-form select.input-sm {
        flex: 1;
    }
    .admin-user-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .subscription-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .sub-info {
        flex-direction: column;
    }
    .sub-actions {
        width: 100%;
    }
    .sub-actions .btn {
        width: 100%;
    }
    .modal-card {
        padding: 20px;
    }
}

/* ===== 미디어 업로드 영역 ===== */
.media-upload-area {
    margin-top: 4px;
}

.media-dropzone {
    border: 2px dashed rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(108, 92, 231, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-dropzone:hover,
.media-dropzone.dragover {
    border-color: rgba(108, 92, 231, 0.6);
    background: rgba(108, 92, 231, 0.08);
    transform: translateY(-1px);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dropzone-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.dropzone-text {
    font-size: 15px;
    font-weight: 600;
    color: #6c5ce7;
}

.dropzone-hint {
    font-size: 12px;
    color: #8888aa;
}

.dropzone-types {
    font-size: 11px;
    color: #a0a0b8;
    margin-top: 6px;
}

.media-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 12px;
    flex-wrap: wrap;
}

.media-thumb {
    max-width: 120px;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.media-file-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

.media-file-icon .file-icon {
    font-size: 28px;
}

.media-file-icon .file-name {
    font-size: 13px;
    color: #333;
    word-break: break-all;
    max-width: 200px;
}

.media-size {
    font-size: 12px;
    color: #8888aa;
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 10px;
}

.media-remove-btn {
    margin-left: auto;
}

/* ===== 진단 결과 ===== */
.diag-item {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.diag-ok {
    background: rgba(46, 213, 115, 0.06);
    border-left-color: #2ed573;
}

.diag-warn {
    background: rgba(255, 165, 2, 0.06);
    border-left-color: #ffa502;
}

.diag-error {
    background: rgba(255, 71, 87, 0.06);
    border-left-color: #ff4757;
}

.diag-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.diag-detail {
    font-size: 12px;
    color: #a0a0b8;
    line-height: 1.5;
    word-break: break-all;
}

/* ===== 멀티 채널 선택 ===== */
.channel-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.channel-select-card {
    cursor: pointer;
}

.channel-select-card input[type="checkbox"] {
    display: none;
}

.channel-select-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #0d1119;
    border: 2px solid #2a2f3a;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.channel-select-card input:checked + .channel-select-info {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.08);
}

.channel-select-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.channel-select-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.channel-select-type {
    font-size: 11px;
    color: #8888aa;
}

.channel-check-mark {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2a2f3a;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.channel-select-card input:checked + .channel-select-info .channel-check-mark {
    background: #6c5ce7;
    color: #fff;
}

.channel-select-info:hover {
    border-color: rgba(108, 92, 231, 0.4);
}

.multi-select-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-count {
    font-size: 13px;
    color: #6c5ce7;
    font-weight: 600;
    margin-left: auto;
}

@media (max-width: 768px) {
    .channel-select-grid {
        grid-template-columns: 1fr;
    }
}
