@charset "utf-8";

/* ==========================================================================
   GNUBOARD 5 PREMIUM MODERN DARK THEME
   Designed with Vercel / Linear / Modern Dark UI Style
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-hover: #222d42;
  --bg-input: #151d2d;
  --bg-card: #111827;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: #6366f1;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --text-highlight: #ffffff;
  
  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-hover: #4f46e5;
  --accent-glow: 0 0 20px rgba(99, 102, 241, 0.35);
  
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #38bdf8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #252e42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374461;
}

/* 초기화 & 기본 타이포그래피 */
html {
  overflow-y: scroll;
  background-color: var(--bg-main);
  color-scheme: dark;
}
body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {
  margin: 0;
  padding: 0;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--text-highlight);
  font-weight: 600;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

ul, dl, dt, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
legend {
  position: absolute;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  text-indent: -9999em;
  overflow: hidden;
}
label, input, button, select, img {
  vertical-align: middle;
  font-size: 1em;
}
input, button {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1em;
}
input[type="submit"], button {
  cursor: pointer;
}

textarea, select {
  font-family: inherit;
  font-size: 1em;
}
select {
  margin: 0;
}
p {
  margin: 0;
  padding: 0;
  word-break: break-all;
}
hr {
  display: none;
}
pre {
  overflow-x: auto;
  font-size: 0.95em;
  background: var(--bg-surface-elevated);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
}
a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-primary);
}

*, :after, :before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 폼 인풋 기본 */
input[type=text],
input[type=password],
textarea,
select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type=text]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  background: var(--bg-surface-elevated);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-sub);
}
.placeholdersjs {
  color: var(--text-sub) !important;
}

/* 레이아웃 크기 지정 */
#hd, #wrapper, #ft {
  min-width: 1200px;
}

#hd_pop,
#hd_wrapper,
#tnb .inner,
#gnb .gnb_wrap,
#container_wr,
#ft_wr {
  width: 1200px;
  margin: 0 auto;
}

/* 공통 표시 클래스 */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: block !important; } }
.mobile-only { display: block; }
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* 팝업 레이어 */
#hd_pop {
  z-index: 1000;
  position: relative;
  margin: 0 auto;
  height: 0;
}
#hd_pop h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.hd_pops {
  position: absolute;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hd_pops img {
  max-width: 100%;
}
.hd_pops_con {
  padding: 10px;
  color: var(--text-main);
}
.hd_pops_footer {
  padding: 0;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  text-align: left;
  position: relative;
  border-top: 1px solid var(--border-color);
}
.hd_pops_footer:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
.hd_pops_footer button {
  padding: 10px 14px;
  border: 0;
  color: var(--text-main);
  background: transparent;
  font-size: 0.9em;
}
.hd_pops_footer .hd_pops_reject {
  text-align: left;
}
.hd_pops_footer .hd_pops_close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.05);
}
.hd_pops_footer .hd_pops_close:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ==========================================================================
   상단 레이아웃 (헤더, TNB, 로고, 검색, GNB)
   ========================================================================== */
#hd {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
#hd_h1 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

/* 최상단 툴바 */
#tnb {
  background: #080b13;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}
#tnb:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#tnb .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

#hd_define {
  display: flex;
  align-items: center;
  gap: 8px;
}
#hd_define li {
  position: relative;
}
#hd_define li a {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
#hd_define li.active a,
#hd_define li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

#hd_qnb {
  display: flex;
  align-items: center;
  gap: 6px;
}
#hd_qnb li a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
#hd_qnb li a:hover {
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.05);
}
#hd_qnb .visit .visit-num {
  display: inline-block;
  line-height: 16px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* 메인 헤더 래퍼 (로고, 검색, 로그인) */
#hd_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

#logo {
  display: flex;
  align-items: center;
}
#logo a {
  display: inline-flex;
  align-items: center;
}
#logo img {
  max-height: 42px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* 검색창 */
.hd_sch_wr {
  flex: 1;
  max-width: 480px;
  margin: 0 40px;
  position: relative;
}
#hd_sch {
  position: relative;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  overflow: hidden;
}
#hd_sch:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
#hd_sch form {
  display: flex;
  align-items: center;
}
#hd_sch #sch_stx {
  flex: 1;
  height: 42px;
  padding: 0 18px;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 14px;
  color: var(--text-highlight);
}
#hd_sch #sch_submit {
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
#hd_sch #sch_submit:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* 상단 우측 로그인/회원가입 */
.hd_login {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd_login li {
  list-style: none;
}
.hd_login a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.hd_login a:hover {
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
}
.hd_login .tnb_admin a {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.hd_login .tnb_admin a:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   메인 메뉴 네비게이션 (GNB)
   ========================================================================== */
#gnb {
  position: relative;
  background: #0d121f;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
#gnb > h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
#gnb .gnb_wrap {
  position: relative;
}
#gnb #gnb_1dul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
#gnb .gnb_1dli {
  position: relative;
  line-height: 52px;
}
#gnb .gnb_1da {
  display: block;
  font-weight: 600;
  font-size: 15px;
  padding: 0 20px;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
}
#gnb .gnb_1dli:hover > .gnb_1da,
#gnb .gnb_1dli_on > .gnb_1da {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}
#gnb .gnb_1dli:hover > .gnb_1da:after,
#gnb .gnb_1dli_on > .gnb_1da:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px 3px 0 0;
}

/* GNB 서브메뉴 드롭다운 */
.gnb_1dli .bg {
  position: absolute;
  top: 24px;
  right: 6px;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  text-indent: -9999px;
  overflow: hidden;
}
.gnb_2dul {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 170px;
  padding-top: 6px;
  z-index: 1000;
}
.gnb_2dul .gnb_2dul_box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.gnb_2da {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.gnb_2da:hover,
.gnb_2da:focus {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.2) !important;
  padding-left: 22px;
}
.gnb_1dli_over .gnb_2dul {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 전체 메뉴 토글 버튼 & 전체 메뉴 모달 */
#gnb .gnb_mnal {
  margin-left: auto;
}
#gnb .gnb_menu_btn {
  background: var(--accent-gradient);
  color: #fff;
  width: 50px;
  height: 52px;
  border: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
#gnb .gnb_menu_btn:hover {
  opacity: 0.9;
}
#gnb_all {
  display: none;
  position: absolute;
  top: 53px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  padding: 20px;
}
#gnb_all h2 {
  font-size: 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-highlight);
}
#gnb_all .gnb_al_ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
#gnb_all .gnb_al_li {
  background: var(--bg-surface-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
#gnb_all .gnb_al_li .gnb_al_a {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}
#gnb_all .gnb_al_li li {
  line-height: 2;
}
#gnb_all .gnb_al_li li a {
  color: var(--text-muted);
  font-size: 13px;
}
#gnb_all .gnb_al_li li a:hover {
  color: #fff;
}
#gnb .gnb_close_btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
#gnb .gnb_close_btn:hover {
  color: #fff;
}
#gnb_all_bg {
  display: none;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
}
.gnb_wrap .gnb_empty {
  padding: 14px 20px;
  color: var(--text-muted);
}
.gnb_wrap .gnb_empty a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ==========================================================================
   본문 & 중간 레이아웃 (Wrapper, Container, Aside, Latest)
   ========================================================================== */
#wrapper {
  padding: 25px 0 50px;
}
#container_wr {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}
#container_wr:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}

/* 메인 본문 컨테이너 */
#container {
  flex: 1;
  min-width: 0;
  min-height: 550px;
}
#container_title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
#container_title span {
  display: inline-block;
}

/* 우측 사이드바 */
#aside {
  width: 260px;
  flex-shrink: 0;
}

/* 메인 최신글 그리드 레이아웃 */
.latest_top_wr {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}
.latest_wr {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.latest_wr:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
.lt_wr {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 280px;
}

/* ==========================================================================
   하단 레이아웃 (Footer)
   ========================================================================== */
#ft {
  background: #060911;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
}
#ft h1 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
#ft_wr {
  display: grid;
  grid-template-columns: 220px 1fr 280px 220px;
  gap: 30px;
  padding: 45px 0 35px;
  align-items: start;
}
#ft_link h2,
#ft_company h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 14px;
}
#ft_link a {
  display: block;
  color: var(--text-muted);
  line-height: 2.2;
  font-size: 13px;
  transition: color 0.2s ease;
}
#ft_link a:hover {
  color: var(--accent-primary);
}

#ft_company {
  color: var(--text-sub);
  line-height: 1.8;
}
#ft_company .ft_info {
  font-size: 12px;
}

#ft_copy {
  text-align: center;
  padding: 20px 0;
  color: var(--text-sub);
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
}
#ft_copy b {
  color: var(--text-muted);
}

/* 맨위로 이동 플로팅 버튼 */
#top_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  line-height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-align: center;
  font-size: 16px;
  z-index: 99;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
}
#top_btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--accent-glow);
  transform: translateY(-3px);
}

/* ==========================================================================
   버튼 시스템 (Modern Button Styling)
   ========================================================================== */
a.btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* 기본 버튼 (Subtle Dark) */
a.btn01, button.btn01 {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
a.btn01:hover, button.btn01:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: #fff;
}

/* 강조 버튼 (Dark Solid) */
a.btn02, button.btn02 {
  background: #252f44;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
a.btn02:hover, button.btn02:hover {
  background: #33415e;
}

/* 주요 제출 버튼 (Gradient Primary) */
.btn_submit {
  background: var(--accent-gradient);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn_submit:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

/* 닫기 및 취소 버튼 */
.btn_close, a.btn_close {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.btn_close:hover, a.btn_close:hover {
  color: #fff;
  background: var(--bg-surface-hover);
}

a.btn_cancel, button.btn_cancel {
  background: #374151;
  color: #d1d5db;
  border: 0;
  border-radius: var(--radius-sm);
}
a.btn_cancel:hover, button.btn_cancel:hover {
  background: #4b5563;
  color: #fff;
}

/* 인라인 폼 버튼 (우편번호 검색 등) */
a.btn_frmline, button.btn_frmline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
a.btn_frmline:hover, button.btn_frmline:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: #fff;
}

/* 게시판 전용 버튼 */
a.btn_b01, .btn_b01 {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 34px;
}
a.btn_b01:hover, .btn_b01:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

a.btn_b02, .btn_b02 {
  background: var(--accent-gradient);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 34px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}
a.btn_b02:hover, .btn_b02:hover {
  box-shadow: var(--accent-glow);
}

a.btn_b03, .btn_b03 {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 34px;
}
a.btn_b03:hover, .btn_b03:hover {
  background: var(--bg-surface-hover);
  color: #fff;
}

a.btn_b04, .btn_b04 {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 34px;
}
a.btn_b04:hover, .btn_b04:hover {
  color: #fff;
  border-color: var(--border-hover);
}

a.btn_admin, .btn_admin {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 34px;
}
a.btn_admin:hover, .btn_admin:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   테이블 스타일 (Tables - Dark Modern)
   ========================================================================== */
.tbl_wrap {
  margin-bottom: 20px;
}
.tbl_wrap table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.tbl_wrap caption {
  padding: 10px 0;
  font-weight: 600;
  text-align: left;
  color: var(--text-highlight);
}

.tbl_head01 thead th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.tbl_head01 tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  transition: background 0.15s ease;
}
.tbl_head01 tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.tbl_head01 tfoot th, .tbl_head01 tfoot td {
  padding: 12px 10px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.tbl_head02 thead th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
}
.tbl_head02 tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
}

/* 폼 테이블 */
.tbl_frm01 {
  margin-bottom: 25px;
}
.tbl_frm01 table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.tbl_frm01 th {
  width: 130px;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  font-size: 13px;
}
.tbl_frm01 td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.wr_content textarea,
.tbl_frm01 textarea,
.form_01 textarea,
.frm_input {
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.frm_input {
  height: 40px;
}
.full_input { width: 100%; }
.half_input { width: 49.5%; }
.twopart_input { width: 380px; margin-right: 10px; }
.tbl_frm01 textarea, .write_div textarea {
  width: 100%;
  height: 120px;
}
.tbl_frm01 .frm_info {
  display: block;
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
}
.frm_info.add_info {
  margin-top: 10px !important;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   페이징 (Pagination - Modern Dark)
   ========================================================================== */
.pg_wrap {
  clear: both;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg_page, .pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pg_page {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.pg_page:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: #fff;
}
.pg_current {
  background: var(--accent-gradient);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.pg_start, .pg_prev, .pg_next, .pg_end {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.pg_start:hover, .pg_prev:hover, .pg_next:hover, .pg_end:hover {
  background-color: var(--bg-surface-hover);
  color: #fff;
}

/* ==========================================================================
   팝업 윈도우 & 사이드뷰 & 캡챠
   ========================================================================== */
.new_win {
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}
.new_win #win_title {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--bg-surface);
  color: var(--text-highlight);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.new_win .win_ul {
  display: flex;
  gap: 8px;
  padding: 15px 20px;
  margin: 0;
}
.new_win .win_ul li {
  list-style: none;
}
.new_win .win_ul li a {
  display: block;
  padding: 6px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s ease;
}
.new_win .win_ul .selected a,
.new_win .win_ul li a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.new_win .win_desc {
  margin: 15px 20px;
  padding: 12px 18px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 13px;
}
.new_win .win_total {
  float: right;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-size: 12px;
}
.new_win .new_win_con {
  padding: 20px;
}
.new_win .win_btn {
  text-align: center;
  padding: 20px;
}

/* 사이드뷰 (Member Dropdown) */
.sv_wrap {
  position: relative;
  display: inline-block;
}
.sv_wrap .sv {
  z-index: 1000;
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  min-width: 120px;
}
.sv_wrap .sv a {
  display: block;
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.15s ease;
}
.sv_wrap .sv a:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}
.sv_member {
  color: var(--text-main);
  font-weight: 500;
}
.sv_on {
  display: block !important;
  position: absolute;
  top: 24px;
  left: 0;
}

/* 캡챠 */
#captcha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#captcha #captcha_key {
  height: 40px;
  padding: 0 10px;
  width: 100px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-highlight);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
}
#captcha #captcha_img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
#captcha_info {
  color: var(--text-sub);
  font-size: 12px;
}

/* 검색어 하이라이트 */
.sch_word {
  color: #fff;
  background: var(--color-danger);
  padding: 2px 6px;
  border-radius: 3px;
}

/* 화면낭독기 / 본문 바로가기 */
#hd_login_msg, .msg_sound_only, .sound_only {
  display: inline-block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
  border: 0 !important;
  overflow: hidden !important;
}
#skip_to_container a {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 100000;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  transition: top 0.2s ease;
}
#skip_to_container a:focus {
  top: 0;
}
