body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    margin-bottom: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.section-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.notice-section {
    background: #020617;
    border-radius: 12px;
    padding: 16px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-title {
    font-size: 14px;
}

.notice-date {
    font-size: 12px;
    color: #9ca3af;
}

.notice-empty {
    padding: 12px 0;
    color: #9ca3af;
    text-align: center;
}

.notice-link {
    display: flex;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
}

.notice-link:hover {
    opacity: .85;
}

.notice-detail {
    background: #020617;
    border-radius: 12px;
    padding: 20px;
}

.notice-detail-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.notice-detail-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.notice-detail-content {
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 공지사항 게시판 ===== */

.page-title {
    font-size: 20px;
    margin-top: 8px;
}

.back-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #020617;
    border-radius: 12px;
    overflow: hidden;
}

.board-table thead {
    background: #020617;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.board-table th,
.board-table td {
    padding: 12px 10px;
    font-size: 14px;
}

.board-table th {
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
}

.board-table td {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.board-table tr:hover {
    background: rgba(255,255,255,.03);
}

.col-no { width: 80px; }
.col-writer { width: 120px; }
.col-date { width: 140px; }

.title-cell {
    text-align: left;
}

.title-cell a {
    color: #e5e7eb;
    text-decoration: none;
}

.title-cell a:hover {
    text-decoration: underline;
}

.empty-row {
    padding: 30px 0;
    color: #9ca3af;
    text-align: center;
}

/* ===== 페이징 ===== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination a {
    padding: 6px 10px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 6px;
}

.pagination a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.pagination a.active {
    background: #6366f1;
    color: white;
}

/* ===== 배지 ===== */

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    margin-left: 6px;
}

.badge.new {
    background: #ef4444;
    color: white;
}

.badge.pinned {
    background: #6366f1;
    color: white;
}

/* ===== 메인 공지사항 ===== */

.notice-section {
    background: #020617;
    border-radius: 14px;
    padding: 16px;
    margin-top: 20px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice-header h2 {
    font-size: 16px;
    margin: 0;
}

.notice-more {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

.notice-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-card-list li {
    border-radius: 10px;
    transition: background .2s;
}

.notice-card-list li:hover {
    background: rgba(255,255,255,.04);
}

.notice-card-list li.pinned {
    background: rgba(99,102,241,.08);
}

.notice-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

/* 아이콘 영역 */
.notice-icon {
    width: 24px;
    text-align: center;
    font-size: 14px;
}

.notice-icon .dot {
    color: #6b7280;
}

/* 본문 */
.notice-body {
    flex: 1;
}

.notice-title {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* NEW 배지 */
.badge.new {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
}

/* 빈 상태 */
.notice-empty {
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* ===== 공지 리스트 핀 아이콘 ===== */

.pin-icon {
    margin-right: 4px;
    font-size: 13px;
}

/* 제목 안에서 배지 간격 정리 */
.title-cell a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== 공지사항 상세 ===== */

.detail-header {
    margin-bottom: 12px;
}

.notice-detail-card {
    background: #020617;
    border-radius: 14px;
    padding: 24px;
}

.notice-detail-card.pinned {
    border: 1px solid rgba(99,102,241,.4);
    background: linear-gradient(
            180deg,
            rgba(99,102,241,.08),
            rgba(2,6,23,1)
    );
}

.notice-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-meta .divider {
    opacity: .5;
}

.notice-content {
    font-size: 15px;
    line-height: 1.8;
    color: #e5e7eb;
    white-space: normal;
}

.detail-footer {
    margin-top: 24px;
    text-align: center;
}

/* 버튼 재사용 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

.btn.ghost {
    border: 1px solid rgba(255,255,255,.2);
    color: #e5e7eb;
}

.btn.ghost:hover {
    background: rgba(255,255,255,.05);
}
.col-views { width: 90px; }

.notice-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-sub .sub-dot {
    opacity: .5;
}

/* ===== Error Page ===== */

.error-page {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.error-box {
    text-align: center;
    max-width: 420px;
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 12px;
}

.error-box h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

.error-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
