/* ── KBDMania Header ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

.top-bar {
    background: #292524; color: #fafaf9; font-size: 12px; padding: 6px 0;
    font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.3px;
}
.top-bar .inner {
    max-width: 1080px; margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #d6d3d1; text-decoration: none; transition: color 0.15s; }
.top-bar a:hover { color: #fff; }
.top-bar-links { display: flex; gap: 16px; }

.new-header {
    background: #ffffff; border-bottom: 1px solid #e5e2dc;
    position: sticky; top: 0; z-index: 100;
}
.new-header .header-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.new-header .logo {
    font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 700;
    color: #1a1916; text-decoration: none; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.new-header .logo-badge {
    display: inline-flex; align-items: center;
    background: #f5f4f1; border: 1px solid #e5e2dc; border-radius: 4px;
    padding: 2px 8px; font-size: 10px; font-weight: 500; color: #a8a29e;
    font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 1px;
}

.new-header .auth-form { display: flex; align-items: center; gap: 6px; }
.new-header .auth-form input {
    background: #fafaf9; border: 1px solid #e5e2dc; color: #1a1916;
    padding: 7px 12px; border-radius: 6px; font-size: 13px;
    font-family: 'Noto Sans KR', sans-serif; width: 130px; transition: all 0.2s;
}
.new-header .auth-form input:focus {
    outline: none; border-color: #a8a29e; box-shadow: 0 0 0 3px rgba(168,162,158,0.1);
}
.new-header .auth-form input::placeholder { color: #a8a29e; }

.new-header .btn-primary {
    background: #292524; color: #fff; border: none; padding: 7px 16px;
    border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif; transition: all 0.15s; white-space: nowrap;
}
.new-header .btn-primary:hover { background: #44403c; }

.new-header .btn-outline {
    background: #fff; color: #57534e; border: 1px solid #e5e2dc;
    padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
    cursor: pointer; font-family: 'Noto Sans KR', sans-serif; transition: all 0.15s;
    text-decoration: none;
}
.new-header .btn-outline:hover { border-color: #a8a29e; color: #1a1916; }

.new-header .user-info { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.new-header .user-nick { font-weight: 600; color: #1a1916; }
.new-header .user-point {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px;
    color: #57534e; background: #f5f4f1; padding: 4px 10px; border-radius: 4px;
}

.new-header .login-error {
    position: absolute; right: 32px; top: 68px; font-size: 12px; color: #dc2626;
    background: #fef2f2; border: 1px solid #fecaca; padding: 6px 12px;
    border-radius: 6px; display: none; z-index: 101;
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .new-header .header-inner { padding: 0 16px; height: 56px; }
    .new-header .logo { font-size: 19px; }
    .new-header .auth-form input { width: 100px; padding: 6px 10px; }
    .new-header .login-error { right: 16px; }
}

