/* dark.css - 다크모드 테마 (2026-04-08) */
/* [data-theme="dark"] 선택자로 :root 변수 오버라이드 */

[data-theme="dark"] {
  --primary-color: #d946ef;
  --primary-dark: #c026d3;
  --primary-light: #581c87;
  --text-color: #e4e4e7;
  --text-light: #a1a1aa;
  --border-color: #27272a;
  --background-white: #18181b;
  --new-badge-color: #e879f9;
}

/* ===== 기본 요소 ===== */
[data-theme="dark"] body {
  background: #09090b;
  color: #e4e4e7;
}

[data-theme="dark"] a {
  color: #d4d4d8;
}

/* ===== 스크롤바 ===== */
[data-theme="dark"] html::-webkit-scrollbar-track {
  background-color: #18181b;
}
[data-theme="dark"] html::-webkit-scrollbar-thumb {
  background-color: #3f3f46;
}

/* ===== 네비바 ===== */
[data-theme="dark"] .navbar {
  background-color: #18181b;
  border-bottom-color: #27272a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .navbar-logo h1 {
  color: #e4e4e7;
}

[data-theme="dark"] .menu-button {
  color: #e4e4e7;
}

[data-theme="dark"] .menu-button:hover {
  color: #d946ef;
}

/* ===== 검색 ===== */
[data-theme="dark"] .search-input {
  background-color: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] .search-input:focus {
  border-color: #d946ef;
  box-shadow: 0 0 0 2px rgba(217,70,239,0.2);
}

[data-theme="dark"] .search-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

/* ===== 드롭다운 메뉴 ===== */
[data-theme="dark"] .dropdown-menu {
  background: #1f1f23;
  border-color: #27272a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dropdown-item {
  color: #a1a1aa;
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: transparent !important;
  color: #d946ef !important;
  transform: none !important;
}

[data-theme="dark"] .dropdown-item.on {
  background: #1e1b4b;
  color: #818cf8;
}

/* ===== 유저 드롭다운 (프로필 메뉴) ===== */
[data-theme="dark"] .user-dropdown {
  background: #1f1f23;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid #27272a;
}

[data-theme="dark"] .dropdown-point {
  color: #71717a;
}

/* ===== 라벨/뱃지 ===== */
[data-theme="dark"] .label {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
}

[data-theme="dark"] .label--danger {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* ===== 네비 아이콘 ===== */
[data-theme="dark"] .nav-icon {
  fill: #d4d4d8;
  stroke: #d4d4d8;
}

[data-theme="dark"] .bell-wrap .nav-icon {
  fill: #d4d4d8;
  color: #d4d4d8;
}

/* ===== 모바일 메뉴 ===== */
[data-theme="dark"] .mobile-menu {
  background: #18181b;
  box-shadow: -5px 0 15px rgba(0,0,0,0.4);
}

[data-theme="dark"] .mobile-menu-button {
  background: #27272a;
  color: #e4e4e7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

[data-theme="dark"] .mobile-submenu {
  background: #18181b;
}

[data-theme="dark"] .mobile-submenu-item {
  color: #a1a1aa;
  border-bottom-color: #27272a;
}

[data-theme="dark"] .mobile-submenu .dropdown-item {
  color: #a1a1aa;
}

[data-theme="dark"] .mobile-submenu .dropdown-item:hover {
  background-color: transparent !important;
  color: #d946ef !important;
}

[data-theme="dark"] .mobile-submenu .dropdown-item.on {
  background: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] .mobile-search-input {
  background-color: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] .mobile-login-button {
  background: #27272a;
  border-color: #3f3f46;
  color: #d4d4d8;
}

[data-theme="dark"] .mobile-signup-button {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  color: #18181b;
}

[data-theme="dark"] .btn-close-menu {
  color: #d4d4d8;
}

/* ===== 메뉴 아이콘 (햄버거) ===== */
[data-theme="dark"] .menu-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* ===== 좌측 메뉴 ===== */
[data-theme="dark"] #left-wrap .left-title {
  border-bottom-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #left-wrap .sub-list p {
  border-bottom-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] #left-wrap .sub-list p.active {
  color: #d946ef;
}

/* ===== 본문/래퍼 ===== */
[data-theme="dark"] #wrapper {
  background: #09090b;
}

/* ===== 푸터 ===== */
[data-theme="dark"] #ft {
  background: #0f0f12;
}

[data-theme="dark"] #ft_company .links a {
  color: #71717a;
}

[data-theme="dark"] #ft_company h2 {
  color: #d946ef;
}

[data-theme="dark"] #ft_company .ft_info span {
  color: #52525b;
}

[data-theme="dark"] #top_btn {
  border-color: #3f3f46;
  color: #d4d4d8;
  background: #18181b;
}

[data-theme="dark"] #top_btn:hover {
  border-color: #d946ef;
  background: #d946ef;
  color: #fff;
}

/* ===== 게시판 테이블 ===== */
[data-theme="dark"] .tbl_wrap table {
  background: #18181b;
  border-top-color: #27272a;
  border-bottom-color: #27272a;
}

[data-theme="dark"] .tbl_head01 thead th {
  border-bottom-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] .tbl_head01 td {
  color: #a1a1aa;
  border-top-color: #27272a;
}

[data-theme="dark"] .tbl_head01 tbody tr:hover td {
  background: #1f1f23;
}

/* ===== 폼 입력 ===== */
[data-theme="dark"] .frm_input,
[data-theme="dark"] .tbl_frm01 textarea,
[data-theme="dark"] .form_01 textarea,
[data-theme="dark"] .wr_content textarea {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.2);
}

[data-theme="dark"] .tbl_frm01 td {
  border-color: #27272a;
}

/* ===== 리스트 ===== */
[data-theme="dark"] .list_01 ul {
  border-top-color: #27272a;
}

[data-theme="dark"] .list_01 li {
  border-bottom-color: #27272a;
  background: #18181b;
}

[data-theme="dark"] .list_01 li:nth-child(odd) {
  background: #1f1f23;
}

[data-theme="dark"] .list_01 li:hover {
  background: #27272a;
}

/* ===== FAQ/카드 ===== */
[data-theme="dark"] .faq-item {
  border-color: #27272a;
}

[data-theme="dark"] .faq-question {
  background-color: #18181b;
  color: #e4e4e7;
}

[data-theme="dark"] .faq-answer.active {
  border-top-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] .course-card {
  border-color: #27272a;
  background: #18181b;
}

[data-theme="dark"] .testimonial-card {
  border-color: #27272a;
  background: #18181b;
}

/* ===== 팝업 레이어 ===== */
[data-theme="dark"] .hd_pops {
  border-color: #27272a;
  background: #18181b;
}

/* ===== 버튼 ===== */
[data-theme="dark"] a.btn01,
[data-theme="dark"] button.btn01 {
  border-color: #3f3f46;
  background: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] a.btn_b03,
[data-theme="dark"] .btn_b03 {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] a.btn_b04,
[data-theme="dark"] .btn_b04 {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .btn_close {
  border-color: #3f3f46;
  background: #27272a;
  color: #e4e4e7;
}

/* ===== 메가메뉴 (비밀문서 3컬럼) ===== */
[data-theme="dark"] #mega-menu {
  background: #1f1f23;
  border-color: #27272a;
}

[data-theme="dark"] #mega-menu .mega-col {
  border-color: #27272a;
}

[data-theme="dark"] #mega-menu .mega-col-title {
  color: #e4e4e7;
}

[data-theme="dark"] #mega-menu .mega-link {
  color: #a1a1aa;
}

[data-theme="dark"] #mega-menu .mega-link:hover {
  background: transparent !important;
  color: #d946ef !important;
}

[data-theme="dark"] #mega-menu .mega-link.on {
  background: #1e1b4b;
  color: #818cf8;
}

/* ===== 멤버십 카드 ===== */
[data-theme="dark"] .mega-membership {
  background: #1a1625 !important;
  border-color: #27272a !important;
}

/* ===== 카카오톡 말풍선 ===== */
[data-theme="dark"] .kakao-bubble {
  background-color: #854d0e;
  color: #fef3c7;
}

[data-theme="dark"] .kakao-bubble:before {
  background-color: #854d0e;
}

[data-theme="dark"] .bubble-right {
  background-color: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] .bubble-right:after {
  background-color: #27272a;
}

/* ===== 드롭다운 구분선 ===== */
.dropdown-divider {
  height: 1px;
  margin: 4px 10px;
  background-color: #f0f0f0;
}

[data-theme="dark"] .dropdown-divider {
  background-color: #27272a;
}

/* ===== 다크모드 토글 버튼 (2026-04-09 ON/OFF 뱃지로 변경) ===== */
.darkmode-toggle {
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  color: #4b5563 !important;
}

.darkmode-toggle:hover {
  background-color: #f9fafb !important;
  color: #111827 !important;
}

[data-theme="dark"] .darkmode-toggle {
  color: #a1a1aa !important;
}

[data-theme="dark"] .darkmode-toggle:hover {
  background-color: #27272a !important;
  color: #a1a1aa !important;
}

/* ON/OFF 뱃지 */
.darkmode-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  /* 라이트모드 OFF 상태 */
  color: #d1d5db;
  background: #f9fafb;
}

[data-theme="dark"] .darkmode-badge {
  /* 다크모드 ON 상태 */
  color: #71717a;
  background: #27272a;
}

/* ===== 로고 다크모드 전환 ===== */
[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: inline !important;
}

/* ===== 메인 페이지 (index_is_mb) ===== */
/* 왼쪽 아이콘 섹션 텍스트 */
[data-theme="dark"] #main_top_wr > div:first-child .text {
  color: #374151 !important;
}

/* 오른쪽 프로필 섹션 전체 - 어두운 배경 */
[data-theme="dark"] #main_top_wr .main_top_rightBox {
  background: #1f1f23 !important;
}

[data-theme="dark"] .profile-wrap .name,
[data-theme="dark"] .profile-wrap .name b {
  color: #e4e4e7;
}

[data-theme="dark"] .member-level {
  color: #a1a1aa;
}

[data-theme="dark"] .profile-wrap .profile-info a {
  color: #d4d4d8;
}

[data-theme="dark"] .profile-wrap .color {
  color: #d946ef;
}

[data-theme="dark"] .profile-wrap-icon {
  color: #a1a1aa;
}

[data-theme="dark"] .profile-wrap-icon a {
  color: #a1a1aa;
}

[data-theme="dark"] .profile-wrap-icon div > i {
  color: #71717a;
}

[data-theme="dark"] .profile-wrap-icon span {
  color: #a1a1aa;
}

/* ===== 우측 퀵메뉴 (#sidebar2) ===== */
[data-theme="dark"] #sidebar2 {
  background-color: #1f1f23 !important;
  filter: drop-shadow(2px 4px 7px rgba(0,0,0,0.4));
}

[data-theme="dark"] #sidebar2 .side_menu {
  color: #a1a1aa;
  border-bottom-color: #27272a;
}

[data-theme="dark"] #sidebar2 a {
  color: #a1a1aa;
}

/* 퀵메뉴 아이콘 (인라인 color:#333 오버라이드) */
[data-theme="dark"] #sidebar2 .side_menu i {
  color: #71717a !important;
}

/* ===== 포인트 TOP10 + 버튼 ===== */
[data-theme="dark"] img[src*="plus.png"] {
  filter: invert(0.7);
}

/* 포인트 2위 이하 순위 뱃지 (인라인 background:#ebebeb) */
[data-theme="dark"] [style*="background-color:#ebebeb"] {
  background-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 포인트 1위 (검은배경 → 약간 밝게) */
[data-theme="dark"] [style*="background-color: #000;color: #fff"] {
  background-color: #27272a !important;
}

/* 포인트 닉네임/점수 */
[data-theme="dark"] #main_top_wr h6,
[data-theme="dark"] #main_top_wr p {
  color: #d4d4d8;
}

/* ===== 알림 팝업 ===== */
[data-theme="dark"] .push_list,
[data-theme="dark"] .pushmsg_popup,
[data-theme="dark"] .srd-pushmsg-wrap {
  background: #1f1f23 !important;
  border-color: #27272a !important;
  color: #d4d4d8;
}

[data-theme="dark"] .push_list li,
[data-theme="dark"] .pushmsg_popup li {
  border-color: #27272a;
  color: #d4d4d8;
}

[data-theme="dark"] .push_tab a,
[data-theme="dark"] .srd-pushmsg-tab a {
  color: #a1a1aa;
  background: #18181b;
  border-color: #27272a;
}

[data-theme="dark"] .push_tab a.active,
[data-theme="dark"] .srd-pushmsg-tab a.active {
  color: #e4e4e7;
  background: #27272a;
}

/* ===== 메인 최신글/인기글 ===== */
[data-theme="dark"] .main-top {
  background-color: #0f0f12 !important;
}

/* 최신글/인기글 섹션 제목 */
[data-theme="dark"] h2 a {
  color: #e4e4e7;
}

/* ===== 부드러운 전환 ===== */
body,
body *,
.navbar,
.dropdown-menu,
.user-dropdown,
.mobile-menu,
#wrapper,
#ft,
#left-wrap,
.tbl_wrap table,
.frm_input,
input,
textarea,
select {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ===== input focus 다크모드 ===== */
[data-theme="dark"] input[type='text']:focus,
[data-theme="dark"] input[type='password']:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  box-shadow: 0 0 5px rgba(217,70,239,0.3);
  border-color: #d946ef !important;
}

/* ===== Tailwind 클래스 다크 오버라이드 ===== */
[data-theme="dark"] .bg-white {
  background-color: #18181b !important;
}

[data-theme="dark"] .bg-blue-100 {
  background-color: rgba(99,102,241,0.2) !important;
}

[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100 {
  background-color: #27272a !important;
}

[data-theme="dark"] .bg-\[\#f9fafb\] {
  background-color: #27272a !important;
}

[data-theme="dark"] .text-gray-900 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .text-gray-800 {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .text-gray-700 {
  color: #a1a1aa !important;
}

[data-theme="dark"] .text-gray-600 {
  color: #a1a1aa !important;
}

[data-theme="dark"] .text-gray-500 {
  color: #71717a !important;
}

[data-theme="dark"] .text-gray-400 {
  color: #52525b !important;
}

[data-theme="dark"] .text-blue-700 {
  color: #a5b4fc !important;
}

[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
  border-color: #27272a !important;
}

[data-theme="dark"] .border-b {
  border-color: #27272a;
}

[data-theme="dark"] .shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .divide-gray-100 > * + * {
  border-color: #27272a !important;
}

/* ===== GNB (Tailwind 기반 네비바) ===== */
[data-theme="dark"] #gnb {
  background-color: #18181b !important;
  border-bottom: 1px solid #27272a;
}

[data-theme="dark"] #gnb h1 a span {
  color: #d946ef !important;
}

/* ===== 멤버십 카드 (purple gradient) ===== */
[data-theme="dark"] .from-purple-50,
[data-theme="dark"] .to-pink-50 {
  --tw-gradient-from: #1a1025 !important;
  --tw-gradient-to: #1a0f1e !important;
}

[data-theme="dark"] .bg-gradient-to-br {
  background: linear-gradient(to bottom right, #1a1025, #1a0f1e) !important;
}

[data-theme="dark"] .border-purple-100 {
  border-color: #3b1d5e !important;
}

/* ===== 게시판 본문 (view) ===== */
[data-theme="dark"] #bo_v_con {
  color: #d4d4d8;
}

/* ===== 회원 페이지 ===== */
[data-theme="dark"] .wrapper_member {
  background: #09090b;
}

/* ===== 공통 white bg 오버라이드 ===== */
[data-theme="dark"] .gnb_2da {
  background: #1f1f23;
  color: #a1a1aa;
}

[data-theme="dark"] a.gnb_2da:hover {
  background: #27272a;
  color: #e4e4e7;
}

/* ===== head-inline.css 메가메뉴 ===== */
[data-theme="dark"] #mega-menu {
  background: #1f1f23;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-top-color: #27272a;
}

[data-theme="dark"] #mega-menu .mega-col-title {
  color: #e4e4e7;
  border-bottom-color: #3f3f46;
}

[data-theme="dark"] #mega-menu .mega-section-label {
  color: #52525b;
}

[data-theme="dark"] #mega-menu .mega-link {
  color: #a1a1aa;
}

[data-theme="dark"] #mega-menu .mega-link:hover {
  background: transparent !important;
  color: #d946ef !important;
}

[data-theme="dark"] #mega-menu .mega-link.on {
  color: #d946ef;
  font-weight: 600;
}

/* ===== 게시판 목록 (board.css) ===== */
[data-theme="dark"] #bo_list {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_list thead th {
  background: #1f1f23;
  color: #a1a1aa;
  border-bottom-color: #27272a;
}

[data-theme="dark"] #bo_list td {
  border-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] #bo_list td a {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_list td a:hover {
  color: #e4e4e7;
}

[data-theme="dark"] #bo_list tbody tr:hover td {
  background: #1f1f23;
}

[data-theme="dark"] #bo_list .bo_notice td {
  background: #111114;
}

/* 게시판 상단 메뉴바 */
[data-theme="dark"] .top-menu-wrap {
  background: #18181b;
}

/* 게시물 보기 (view) */
[data-theme="dark"] #bo_v_title {
  color: #e4e4e7;
}

[data-theme="dark"] #bo_v_info {
  color: #71717a;
  border-color: #27272a;
}

[data-theme="dark"] #bo_v_con {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_v_file,
[data-theme="dark"] #bo_v_link {
  background: #1f1f23;
  border-color: #27272a;
}

[data-theme="dark"] #bo_v_com .media {
  border-color: #27272a;
}

/* 페이징 */
[data-theme="dark"] .pg .pg_page {
  background: #1f1f23;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .pg .pg_page:hover {
  background: #27272a;
  border-color: #52525b;
  color: #e4e4e7;
}

[data-theme="dark"] .pg a {
  color: #a1a1aa;
}

/* ===== 글쓰기 페이지 (#bo_w) ===== */
[data-theme="dark"] #bo_w {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_w .frm_input,
[data-theme="dark"] #bo_w input[type="text"],
[data-theme="dark"] #bo_w input[type="password"],
[data-theme="dark"] #bo_w input[type="email"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_w select,
[data-theme="dark"] #bo_w select[name="wr_1"],
[data-theme="dark"] #bo_w #view_level,
[data-theme="dark"] #bo_w .bo_w_select select {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_w .write_div label {
  color: #a1a1aa;
}

[data-theme="dark"] #bo_w .write_div input[type="checkbox"] {
  background: #27272a;
  border-color: #3f3f46;
}

[data-theme="dark"] #bo_w .write_div input[type="checkbox"]:checked {
  background: #d946ef;
  border-color: #d946ef;
}

/* 링크 입력 */
[data-theme="dark"] #bo_w .bo_w_link label {
  color: #52525b;
}

/* 파일 영역 */
[data-theme="dark"] #bo_w .bo_w_flie .lb_icon {
  background: #1f1f23;
  color: #52525b;
}

[data-theme="dark"] #bo_w .bo_w_flie .file_wr {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_w .bo_w_flie .frm_file::file-selector-button {
  background: #3f3f46 !important;
  border-color: #52525b !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_w .bo_w_flie .file_del {
  background: #1a0a0a;
  border-color: #7f1d1d;
}

/* 취소 버튼 */
[data-theme="dark"] #bo_w .btn_cancel {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_w .btn_cancel:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 작성완료 버튼 */
[data-theme="dark"] #bo_w .btn_submit {
  background: #d946ef !important;
  color: #fff !important;
}

/* 임시저장 버튼 */
[data-theme="dark"] #bo_w #btn_autosave {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 카테고리 라디오 영역 */
[data-theme="dark"] #bo_w .radiocate {
  background: #1f1f23;
  border-color: #27272a;
}

[data-theme="dark"] #bo_w .radiocate input[type="radio"] {
  background: #27272a;
  border-color: #3f3f46;
}

[data-theme="dark"] #bo_w .radiocate label {
  color: #a1a1aa;
}

/* 2026-04-09 에디터 영역은 다크모드에서도 라이트 유지 */

/* cheditor 툴바 */
[data-theme="dark"] .cke_top,
[data-theme="dark"] .cke_inner,
[data-theme="dark"] .cke_chrome {
  background: #27272a !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .cke_combo_text {
  color: #a1a1aa !important;
}

[data-theme="dark"] .cke_toolbox {
  background: #27272a !important;
}

/* cheditor 에디터 본문 - 흰색 유지 */
[data-theme="dark"] .cke_contents {
  background: #fff !important;
}

/* lecture 전용 필드 (진열순서/공개여부/메모) */
[data-theme="dark"] #bo_w .bo_w_fields {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #bo_w .bo_w_field_row label {
  color: #a1a1aa;
}

[data-theme="dark"] #bo_w .bo_w_field_row select {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_w .field_desc {
  color: #52525b;
}

/* ===== 로그인 (member.css) ===== */
[data-theme="dark"] #loginWrap .loginForm {
  border-color: #27272a;
  background: #18181b;
}

[data-theme="dark"] #loginWrap .loginForm input {
  background: #27272a;
  border-color: #3f3f46 !important;
  color: #e4e4e7;
}

[data-theme="dark"] #loginWrap .loginForm .loginBtn {
  background-color: #d946ef;
}

/* ===== 좌측 사이드바 ===== */
[data-theme="dark"] #sidebar {
  color: #d4d4d8;
}

/* lec 사이드바 (비밀문서 좌측 목록) */
[data-theme="dark"] #bo_list .tbl_head01 td.td_subject a {
  color: #d4d4d8;
}

/* 선택된 글 행 - 초록색 배경 (낮은 opacity) */
[data-theme="dark"] tr.lec-active td {
  background: rgba(34, 197, 94, 0.12) !important;
}

tr.lec-active td {
  background: rgba(34, 197, 94, 0.10);
}

[data-theme="dark"] .bo_current {
  color: #22c55e;
}

/* lec 검색창 */
[data-theme="dark"] #bo_sch input[type="text"],
[data-theme="dark"] #bo_sch .sch_input,
[data-theme="dark"] fieldset#bo_sch input[type="text"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_sch .sch_btn,
[data-theme="dark"] fieldset#bo_sch button {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* ===== 검색결과 페이지 (search2) ===== */
[data-theme="dark"] .search2-wrap {
  color: #d4d4d8;
}

[data-theme="dark"] .search2-result-info {
  color: #71717a;
  border-bottom-color: #27272a;
}

[data-theme="dark"] .search2-keyword {
  color: #e4e4e7;
}

[data-theme="dark"] .search2-wrap .search2-table.tbl_wrap table {
  background: #09090b !important;
}

[data-theme="dark"] .search2-wrap .search2-table.tbl_head01 thead th {
  background: #111114 !important;
  color: #71717a !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .search2-wrap .search2-table.tbl_head01 td {
  color: #a1a1aa;
  border-top-color: #27272a !important;
}

[data-theme="dark"] .search2-table tbody tr:hover td {
  background: #1f1f23 !important;
}

[data-theme="dark"] .search2-badge {
  background: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] .td_subject a {
  color: #d4d4d8;
}

[data-theme="dark"] .td_subject a:hover {
  color: #818cf8;
}

[data-theme="dark"] .td_name {
  color: #71717a;
}

[data-theme="dark"] .td_date {
  color: #52525b;
}

[data-theme="dark"] #new_sch select {
  background-color: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #new_sch .frm_input {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #new_sch .btn_submit {
  color: #71717a;
}

[data-theme="dark"] #new_sch .btn_submit:hover {
  color: #e4e4e7;
}

[data-theme="dark"] .admin_new_btn .btn {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .chk_box label span {
  background: #27272a;
  border-color: #3f3f46;
}

/* ===== 상단 #hd (구 레이아웃) ===== */
[data-theme="dark"] #hd {
  background: #18181b;
  border-bottom-color: #27272a;
}

/* ===== 검색 결과 페이지 ===== */
[data-theme="dark"] .search_result {
  color: #d4d4d8;
}

/* ===== 포인트 페이지 ===== */
[data-theme="dark"] .point_table td {
  border-color: #27272a;
  color: #a1a1aa;
}

/* ===== 회원 관련 페이지 ===== */
[data-theme="dark"] .tbl_frm01 th {
  color: #a1a1aa;
}

/* ===== select/option ===== */
[data-theme="dark"] select {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

/* ===== 라이브/Vimeo ===== */
[data-theme="dark"] .vimeo-input {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

/* ===== 알림 플러그인 ===== */
[data-theme="dark"] .alert dl {
  color: #d4d4d8;
}

/* ===== 채팅 위젯 ===== */
[data-theme="dark"] .chat-widget {
  background: #18181b;
  border-color: #27272a;
}

/* ===== 상품 페이지 ===== */
[data-theme="dark"] .item_info_wrap {
  color: #d4d4d8;
}

[data-theme="dark"] .item_info_wrap .info_tbl td {
  border-color: #27272a;
  color: #a1a1aa;
}

/* ===== 댓글 ===== */
[data-theme="dark"] #bo_vc {
  color: #d4d4d8;
}

[data-theme="dark"] .cmt_textarea {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

/* ===== 구매 버튼 등 컬러 유지 ===== */
[data-theme="dark"] .bg-\[\#b20088\] {
  background-color: #d946ef !important;
}

/* ===== main-top 배경 ===== */
[data-theme="dark"] .main-top {
  background-color: #0f0f12;
}

[data-theme="dark"] #main-banner {
  opacity: 0.85;
}

/* ===== 리뷰/별점 ===== */
[data-theme="dark"] .reviewList {
  color: #d4d4d8;
}

/* ===== shop 관련 ===== */
[data-theme="dark"] #shop-info {
  color: #d4d4d8;
}

[data-theme="dark"] .sit_tot_wrap {
  background: #18181b;
  border-color: #27272a;
}

/* ===== 팝업 배경 ===== */
[data-theme="dark"] .hd_pops_footer {
  background: #18181b;
}

/* ===== 추가 Tailwind 유틸 ===== */
[data-theme="dark"] .bg-\[\#fff\],
[data-theme="dark"] .bg-\[\#ffffff\] {
  background-color: #18181b !important;
}

[data-theme="dark"] .text-\[\#333\],
[data-theme="dark"] .text-\[\#333333\] {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .border-\[\#e5e7eb\] {
  border-color: #27272a !important;
}

[data-theme="dark"] .bg-\[\#f9f9f9\] {
  background-color: #1f1f23 !important;
}

/* ===== 상품 스킨 (shop style.css) ===== */
[data-theme="dark"] #sit_tab {
  color: #d4d4d8;
}

[data-theme="dark"] #sit_tab .tab_tit {
  background: #18181b;
  border-bottom-color: #3f3f46;
}

[data-theme="dark"] #sit_tab .tab_tit li button {
  background: #18181b;
  color: #a1a1aa;
}

[data-theme="dark"] #sit_tab .tab_tit li .selected {
  background: #18181b;
  color: #e4e4e7;
  border-bottom-color: #18181b;
}

[data-theme="dark"] #sit_tab .tab_tit li .selected:after {
  background: #d946ef;
}

[data-theme="dark"] #sit_tab .tab_con {
  background: #18181b;
  color: #d4d4d8;
}

/* doc-main-tab (상품 상세 탭) */
[data-theme="dark"] #doc-main-tab .tab_wrap {
  background: #18181b;
  border-color: #3f3f46;
}

[data-theme="dark"] #doc-main-tab .tab_wrap a {
  color: #a1a1aa;
}

[data-theme="dark"] #doc-main-tab .tab_wrap a.active,
[data-theme="dark"] #doc-main-tab .tab_wrap a.on {
  color: #e4e4e7;
}

/* 리뷰 목록 */
[data-theme="dark"] .reviewList {
  background: #18181b;
  color: #d4d4d8;
}

[data-theme="dark"] .reviewList li,
[data-theme="dark"] .reviewList .review-item {
  border-color: #27272a;
  background: #18181b;
}

/* 상품 가격/옵션 영역 */
[data-theme="dark"] #sit_ov {
  color: #d4d4d8;
}

[data-theme="dark"] #sit_ov .sit_ov_tit {
  color: #e4e4e7;
}

[data-theme="dark"] #sit_ov td {
  border-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] #sit_tot_price {
  color: #e4e4e7;
}

/* 상품 플랜 선택 라디오 옵션 */
[data-theme="dark"] #form2 label[for^="opt"] {
  background: #1f1f23 !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] #form2 label[for^="opt"]:hover {
  background: #27272a !important;
  border-color: #52525b !important;
}

[data-theme="dark"] #form2 .peer:checked ~ label[for^="opt"] {
  background: #1a0f1e !important;
  border-color: #c21a8d !important;
}

[data-theme="dark"] #form2 .opt-name {
  color: #e4e4e7 !important;
}

[data-theme="dark"] #form2 .radio-circle {
  border-color: #52525b !important;
}

/* 가격 요약 박스 */
[data-theme="dark"] .bg-\[\#f8f9fa\] {
  background-color: #1f1f23 !important;
}

[data-theme="dark"] .text-\[\#1a1a1a\] {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .border-\[\#eaeaea\] {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .text-\[\#666\] {
  color: #71717a !important;
}

[data-theme="dark"] .border-\[\#e0e0e0\] {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .text-\[\#333\] {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .text-\[\#888\] {
  color: #52525b !important;
}

[data-theme="dark"] .text-\[\#aaa\] {
  color: #52525b !important;
}

[data-theme="dark"] .border-\[\#ddd\] {
  border-color: #3f3f46 !important;
}

/* sit_prd_info */
[data-theme="dark"] .sit_prd_info {
  color: #d4d4d8;
}

[data-theme="dark"] .sit_prd_info td {
  border-color: #27272a;
  color: #a1a1aa;
}

/* ===== 범용 흰색 배경 오버라이드 ===== */
/* shop 영역 전체 */
[data-theme="dark"] #contain_wr,
[data-theme="dark"] #contain {
  background: #09090b;
  color: #d4d4d8;
}

/* body 내 모든 white 배경 컨테이너 */
[data-theme="dark"] #wrapper {
  color: #d4d4d8;
}

/* 인라인 style="background:#fff" 등 → 다크 변환 */
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background-color:#ffffff"],
[data-theme="dark"] [style*="background-color: #ffffff"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"] {
  background-color: #18181b !important;
}

/* 메인 아이콘 영역은 흰색 복원 */
[data-theme="dark"] #main_icon_box {
  background: #fff !important;
  color: #333 !important;
}

[data-theme="dark"] #main_icon_box .text {
  color: #333 !important;
}

/* 본문 외부의 인라인 검정 텍스트만 오버라이드 (본문 내부는 작성자 의도 존중) */
[data-theme="dark"] [style*="color:#333"]:not(#bo_v_con *):not(#sit_inf_explan *),
[data-theme="dark"] [style*="color: #333"]:not(#bo_v_con *):not(#sit_inf_explan *),
[data-theme="dark"] [style*="color:#000"]:not(#bo_v_con *):not(#sit_inf_explan *),
[data-theme="dark"] [style*="color: #000"]:not(#bo_v_con *):not(#sit_inf_explan *) {
  color: #d4d4d8 !important;
}

/* ===== 상품 상세 인라인 스타일 오버라이드 ===== */
/* doc-main-tab 고정 탭 바 */
[data-theme="dark"] #doc-main-tab {
  background-color: #18181b !important;
}

[data-theme="dark"] #doc-main-tab .sub {
  background-color: #18181b !important;
}

[data-theme="dark"] #doc-main-tab .tab_wrap a {
  color: #71717a;
  border-bottom-color: #3f3f46;
}

[data-theme="dark"] #doc-main-tab .tab_wrap a.active {
  color: #e4e4e7;
  border-bottom-color: #d946ef;
}

/* 탭 콘텐츠 영역 */
[data-theme="dark"] .tab_con {
  background: #09090b !important;
  color: #d4d4d8;
}

[data-theme="dark"] .tab_con li {
  background: #09090b;
}

/* 상세정보 더보기 그래디언트 */
[data-theme="dark"] #sit_inf_gradient {
  background: linear-gradient(to bottom, rgba(9,9,11,0), rgba(9,9,11,1)) !important;
}

/* 상세정보 더보기 버튼 */
[data-theme="dark"] #btn_show_more {
  background: #18181b !important;
  color: #d4d4d8 !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] #btn_show_more:hover {
  background: #27272a !important;
  border-color: #52525b !important;
}

/* 모바일 하단 고정 바 */
[data-theme="dark"] .fixed.bottom-0.bg-white {
  background-color: #18181b !important;
  border-top-color: #27272a !important;
}

/* 리뷰/후기 영역 */
[data-theme="dark"] #sit_use {
  background: #09090b;
  color: #d4d4d8;
}

[data-theme="dark"] #sit_use .use_list li {
  border-color: #27272a;
}

[data-theme="dark"] #sit_use .use_list .use_cont {
  color: #a1a1aa;
}

/* 커리큘럼 영역 */
[data-theme="dark"] #sit_story {
  background: #09090b;
  color: #d4d4d8;
}

/* Q&A 영역 */
[data-theme="dark"] #sit_qa {
  background: #09090b;
  color: #d4d4d8;
}

/* 상품 이미지 영역 */
[data-theme="dark"] #sit_pvi {
  background: #0f0f12;
}

/* sit_ov 우측 패널 (가격/옵션) — 대부분 핑크톤이라 유지 */

/* ===== 드로워/오버레이 ===== */
[data-theme="dark"] #drawer-overlay {
  background: rgba(0,0,0,0.7);
}

/* ===== 리뷰 시스템 (rv-*) ===== */
[data-theme="dark"] .rv-list {
  background: #18181b;
  border-color: #27272a;
}

[data-theme="dark"] .rv-item {
  border-bottom-color: #27272a;
}

[data-theme="dark"] .rv-item-header:hover {
  background: #1f1f23;
}

[data-theme="dark"] .rv-title {
  color: #d4d4d8;
}

[data-theme="dark"] .rv-summary-count {
  color: #71717a;
}

[data-theme="dark"] .rv-summary-count strong {
  color: #a1a1aa;
}

[data-theme="dark"] .rv-author {
  color: #71717a;
}

[data-theme="dark"] .rv-date {
  color: #52525b;
}

[data-theme="dark"] .rv-body-content {
  background: #1f1f23;
  color: #a1a1aa;
}

[data-theme="dark"] .rv-btn-edit,
[data-theme="dark"] .rv-btn-delete {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .rv-btn-edit:hover,
[data-theme="dark"] .rv-btn-delete:hover {
  background: #3f3f46;
  color: #e4e4e7;
  border-color: #52525b;
}

[data-theme="dark"] .rv-reply {
  border-color: #27272a;
}

[data-theme="dark"] .rv-reply-badge {
  background: #581c87;
  color: #d8b4fe;
}

[data-theme="dark"] .rv-reply-content {
  color: #a1a1aa;
}

[data-theme="dark"] .rv-reply-title {
  color: #d4d4d8;
}

[data-theme="dark"] .rv-write-btn {
  background: #d946ef;
  color: #fff;
}

[data-theme="dark"] .rv-empty {
  color: #52525b;
}

[data-theme="dark"] .rv-item.open .rv-item-header {
  background: #1f1f23;
}

[data-theme="dark"] .rv-item.open .rv-title {
  color: #e4e4e7;
}

/* ===== 상품 상세 본문 내 흰색 요소 ===== */
[data-theme="dark"] #sit_inf_explan,
[data-theme="dark"] #sit_inf_explan_wrap {
  color: #d4d4d8;
}

/* 상세정보 더보기 래퍼 */
[data-theme="dark"] #sit_inf_more_wrap {
  background: #09090b;
}

/* 상품 상세 패널 하단 가격 */
[data-theme="dark"] .flex.justify-between.items-start {
  color: #d4d4d8;
}

/* ===== 상세설명 본문(CKEditor/HTML) 내부 흰색 제거 ===== */
/* 배경만 투명화, 색상은 인라인 스타일 없는 것만 상속 */
[data-theme="dark"] #sit_inf_explan div:not([style*="color"]),
[data-theme="dark"] #sit_inf_explan p:not([style*="color"]),
[data-theme="dark"] #sit_inf_explan span:not([style*="color"]),
[data-theme="dark"] #sit_inf_explan td:not([style*="color"]),
[data-theme="dark"] #sit_inf_explan table {
  background-color: transparent !important;
}

[data-theme="dark"] #sit_inf_explan img {
  opacity: 0.9;
}

/* ===== 상품 상세 max-w 래퍼 ===== */
[data-theme="dark"] .max-w-\[1200px\] {
  color: #d4d4d8;
}

/* ===== 페이지네이션 화살표 ===== */
[data-theme="dark"] .pg .pg_start,
[data-theme="dark"] .pg .pg_prev,
[data-theme="dark"] .pg .pg_next,
[data-theme="dark"] .pg .pg_end {
  color: #a1a1aa;
}

/* ===== 게시판 제목 아래 구분선 ===== */
[data-theme="dark"] #bo_v_title {
  border-color: #27272a !important;
}

/* 게시판 상단 타이틀 구분선 (hr, border-bottom) */
[data-theme="dark"] #bo_list hr,
[data-theme="dark"] #bo_v hr {
  border-color: #27272a;
}

/* ===== 설정(톱니바퀴) 버튼 ===== */
[data-theme="dark"] .bo_fx_btn,
[data-theme="dark"] a[href*="board_new_form"],
[data-theme="dark"] .btn_bo_adm,
[data-theme="dark"] [onclick*="board_config"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 인라인 설정 버튼 */
[data-theme="dark"] button[style*="border:1px solid #e5e7eb"][style*="border-radius"],
[data-theme="dark"] a[style*="border:1px solid #e5e7eb"][style*="border-radius"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* ===== 수정/답변/등록순/최신순 버튼 ===== */
[data-theme="dark"] #bo_v_btn .btn_b01,
[data-theme="dark"] #bo_v_btn a {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_v_btn a:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 자물쇠(비밀글) 아이콘 */
[data-theme="dark"] .secret_lock,
[data-theme="dark"] i.fa-lock {
  color: #71717a;
}

/* 글쓰기 버튼 글자색 */
[data-theme="dark"] #bo_v a.btn_b02,
[data-theme="dark"] #bo_list a.btn_b02,
[data-theme="dark"] a.btn_b02 {
  color: #fff !important;
}

/* ===== 카테고리 탭 (#bo_cate) ===== */
[data-theme="dark"] #bo_cate a {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] #bo_cate a:hover,
[data-theme="dark"] #bo_cate a:focus {
  background: #3f3f46;
  border-color: #667eea;
  color: #818cf8;
}

[data-theme="dark"] #bo_cate #bo_cate_on {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

/* replay 필터탭 (인라인 스타일) */
[data-theme="dark"] [style*="background:#f3f4f6"],
[data-theme="dark"] [style*="background: #f3f4f6"] {
  background: #27272a !important;
}

[data-theme="dark"] [style*="background:#fff;color:#111;box-shadow"] {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] [style*="background:transparent;color:#9ca3af"] {
  color: #71717a !important;
}

/* ===== 라이브 강의 상단 (#live_topbar) ===== */
[data-theme="dark"] #live_topbar {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #live_topbar .left span {
  color: #a1a1aa;
}

[data-theme="dark"] #live_topbar .right label {
  color: #a1a1aa;
}

[data-theme="dark"] .vimeo-input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .vimeo-delete {
  background: #27272a !important;
  border-color: #7f1d1d !important;
  color: #f87171 !important;
}

/* 실시간 채팅 영역 */
[data-theme="dark"] .chat-container,
[data-theme="dark"] #chat_wrap {
  background: #18181b;
  border-color: #27272a;
}

/* ===== 게시판 본문 내부 글자 ===== */
/* 기본 텍스트 색상만 변경, 작성자가 의도적으로 넣은 색상은 유지 */
[data-theme="dark"] #bo_v_con {
  color: #d4d4d8 !important;
}

/* 스타일 없는 일반 텍스트만 상속 (인라인 color 있는 요소는 건드리지 않음) */
[data-theme="dark"] #bo_v_con p:not([style*="color"]),
[data-theme="dark"] #bo_v_con div:not([style*="color"]),
[data-theme="dark"] #bo_v_con span:not([style*="color"]),
[data-theme="dark"] #bo_v_con li:not([style*="color"]),
[data-theme="dark"] #bo_v_con td:not([style*="color"]),
[data-theme="dark"] #bo_v_con th:not([style*="color"]),
[data-theme="dark"] #bo_v_con strong:not([style*="color"]),
[data-theme="dark"] #bo_v_con em:not([style*="color"]),
[data-theme="dark"] #bo_v_con b:not([style*="color"]),
[data-theme="dark"] #bo_v_con h1:not([style*="color"]),
[data-theme="dark"] #bo_v_con h2:not([style*="color"]),
[data-theme="dark"] #bo_v_con h3:not([style*="color"]),
[data-theme="dark"] #bo_v_con h4:not([style*="color"]) {
  color: inherit;
}

/* 2026-04-09 본문 내 링크 - 다크모드에서 밝은 색 + 밑줄로 구분 */
[data-theme="dark"] #bo_v_con a {
  color: #60a5fa !important;
  text-decoration: underline !important;
}
[data-theme="dark"] #bo_v_con a:hover {
  color: #93bbfd !important;
}

/* 본문 내 border (점선 박스 등) - 배경과 동화 */
[data-theme="dark"] #bo_v_con [style*="border:"][style*="dashed"],
[data-theme="dark"] #bo_v_con [style*="border:"][style*="solid"] {
  border-color: #09090b !important;
}

/* 본문 내 에디터 삽입 color:rgb(0,0,0) → 흰색으로 */
[data-theme="dark"] #bo_v_con [style*="color:rgb(0,0,0)"],
[data-theme="dark"] #bo_v_con [style*="color:rgb(0, 0, 0)"],
[data-theme="dark"] #bo_v_con [style*="color: rgb(0,0,0)"],
[data-theme="dark"] #bo_v_con [style*="color: rgb(0, 0, 0)"] {
  color: rgb(255, 255, 255) !important;
}

/* 2026-04-09: 댓글 영역 에디터 삽입 color:rgb(0,0,0) → 흰색 */
[data-theme="dark"] .cmt_content_wrap [style*="color:rgb(0,0,0)"],
[data-theme="dark"] .cmt_content_wrap [style*="color:rgb(0, 0, 0)"],
[data-theme="dark"] .cmt_content_wrap [style*="color: rgb(0,0,0)"],
[data-theme="dark"] .cmt_content_wrap [style*="color: rgb(0, 0, 0)"] {
  color: rgb(255, 255, 255) !important;
}

/* 상세설명(상품)에서도 동일 적용 */
[data-theme="dark"] #sit_inf_explan [style*="color:rgb(0,0,0)"],
[data-theme="dark"] #sit_inf_explan [style*="color:rgb(0, 0, 0)"],
[data-theme="dark"] #sit_inf_explan [style*="color: rgb(0,0,0)"],
[data-theme="dark"] #sit_inf_explan [style*="color: rgb(0, 0, 0)"] {
  color: rgb(255, 255, 255) !important;
}

/* 본문 내 에디터 삽입 background-color:rgb(255,255,255) → 투명 */
[data-theme="dark"] #bo_v_con [style*="background-color:rgb(255,255,255)"],
[data-theme="dark"] #bo_v_con [style*="background-color:rgb(255, 255, 255)"],
[data-theme="dark"] #bo_v_con [style*="background-color: rgb(255,255,255)"],
[data-theme="dark"] #bo_v_con [style*="background-color: rgb(255, 255, 255)"],
[data-theme="dark"] #sit_inf_explan [style*="background-color:rgb(255,255,255)"],
[data-theme="dark"] #sit_inf_explan [style*="background-color:rgb(255, 255, 255)"],
[data-theme="dark"] #sit_inf_explan [style*="background-color: rgb(255,255,255)"],
[data-theme="dark"] #sit_inf_explan [style*="background-color: rgb(255, 255, 255)"] {
  background-color: transparent !important;
}

/* ===== 게시판 버튼 (old 스킨 - shadcn 스타일) ===== */
/* 수정/답변 버튼 */
[data-theme="dark"] #bo_v .bo_v_left a.btn_edit,
[data-theme="dark"] #bo_v .bo_v_left a.btn_reply {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_v .bo_v_left a.btn_edit:hover,
[data-theme="dark"] #bo_v .bo_v_left a.btn_reply:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 목록/삭제/복사/이동 버튼 */
[data-theme="dark"] #bo_v .bo_v_com li a.btn {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_v .bo_v_com li a.btn:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 글쓰기 버튼은 그라데이션 유지 */
[data-theme="dark"] #bo_v .bo_v_com li a.btn_write {
  background: linear-gradient(135deg, #b20088 0%, #d946ef 100%) !important;
  border: none !important;
  color: #fff !important;
}

/* 삭제 hover */
[data-theme="dark"] #bo_v .bo_v_com li a.btn_del:hover {
  border-color: #7f1d1d !important;
  color: #f87171 !important;
  background: #1a0a0a !important;
}

/* 스크랩 버튼 */
[data-theme="dark"] .btn_scrap {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 등록순/최신순 버튼 */
[data-theme="dark"] #bo_vc .cmt_sort_btn {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #71717a !important;
}

[data-theme="dark"] #bo_vc .cmt_sort_btn.active {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
  border-color: #52525b !important;
}

/* 댓글등록 버튼 */
[data-theme="dark"] #bo_vc .btn_submit,
[data-theme="dark"] #fwritecomment .btn_submit {
  background: #d946ef !important;
  color: #fff !important;
}

/* 자물쇠(비밀댓글) 아이콘 버튼 */
[data-theme="dark"] .secret_checkbox_label,
[data-theme="dark"] #secret_checkbox_label {
  color: #71717a;
}

/* ===== 게시판 타이틀 하단 구분선 (흰 줄 연하게) ===== */
[data-theme="dark"] #bo_v_title {
  border-color: #27272a !important;
}

[data-theme="dark"] .bo_v_title_line,
[data-theme="dark"] #container > hr,
[data-theme="dark"] .container hr {
  border-color: #27272a !important;
}

/* 게시판 상단 타이틀 아래 굵은 줄 */
[data-theme="dark"] #bo_list_total + hr,
[data-theme="dark"] .bo_fx + hr {
  border-color: #27272a !important;
}

/* old 스킨의 타이틀 구분선 (인라인 border) */
[data-theme="dark"] [style*="border-bottom:2px solid"],
[data-theme="dark"] [style*="border-bottom: 2px solid"],
[data-theme="dark"] [style*="border-top:2px solid"],
[data-theme="dark"] [style*="border-top: 2px solid"] {
  border-color: #3f3f46 !important;
}

/* ===== 달력 (FullCalendar - live 게시판) ===== */
[data-theme="dark"] .fc {
  color: #d4d4d8;
}

[data-theme="dark"] .fc-view-harness {
  background: #18181b;
}

[data-theme="dark"] .fc-col-header-cell {
  background: #1f1f23 !important;
  color: #a1a1aa;
}

[data-theme="dark"] .fc .fc-col-header-cell-cushion {
  color: #a1a1aa;
}

[data-theme="dark"] .fc-daygrid-day {
  background: #18181b;
  border-color: #27272a !important;
}

[data-theme="dark"] .fc-day-sun {
  background: #1a0f0f !important;
}

[data-theme="dark"] .fc-day-sat {
  background: #0f0f1a !important;
}

[data-theme="dark"] .fc-daygrid-day-number {
  color: #a1a1aa;
}

[data-theme="dark"] .fc-day-sun a,
[data-theme="dark"] .fc-day-sun .fc-daygrid-day-number {
  color: #f87171 !important;
}

[data-theme="dark"] .fc-day-sat a,
[data-theme="dark"] .fc-day-sat .fc-daygrid-day-number {
  color: #60a5fa !important;
}

[data-theme="dark"] .fc-day-today {
  background: rgba(139, 92, 246, 0.15) !important;
}

[data-theme="dark"] .fc-scrollgrid {
  border-color: #27272a !important;
}

[data-theme="dark"] .fc-scrollgrid td,
[data-theme="dark"] .fc-scrollgrid th {
  border-color: #27272a !important;
}

/* 달력 버튼 (오늘, <, >, 월, 주 등) */
[data-theme="dark"] .fc-button {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .fc-button:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .fc-button-active {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}

[data-theme="dark"] .fc-toolbar-title {
  color: #e4e4e7;
}

/* 라이브 안내 박스 (인라인 background:#f9fafb) */
[data-theme="dark"] [style*="background:#f9fafb"],
[data-theme="dark"] [style*="background: #f9fafb"] {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

/* 라이브 일정 제목 */
[data-theme="dark"] [style*="color:#1f2937"] {
  color: #e4e4e7 !important;
}

[data-theme="dark"] [style*="color:#374151"] {
  color: #d4d4d8 !important;
}

[data-theme="dark"] [style*="color:#6b7280"] {
  color: #71717a !important;
}

/* ===== 출석 ===== */
[data-theme="dark"] .att_table td,
[data-theme="dark"] .att_table th {
  border-color: #27272a;
  color: #a1a1aa;
}

/* ===== 구독/스크랩/내가 쓴 글 페이지 ===== */
[data-theme="dark"] .list_01 .empty_li {
  color: #52525b;
}

/* ===== 채팅 ===== */
[data-theme="dark"] #chat_iframe {
  border-color: #27272a;
}

/* ========================================
   게시판 스킨 (old + lecture 공통)
   ======================================== */

/* -- 글 보기 (#bo_v) -- */
[data-theme="dark"] #bo_v {
  background: #09090b;
  color: #d4d4d8;
}

[data-theme="dark"] #bo_v_title {
  color: #e4e4e7;
}

[data-theme="dark"] #bo_v_info {
  color: #71717a;
  border-color: #27272a;
}

[data-theme="dark"] #bo_v_con {
  color: #d4d4d8;
}

/* 본문 내부 인라인 스타일 강제 오버라이드 */
[data-theme="dark"] #bo_v_con div,
[data-theme="dark"] #bo_v_con p,
[data-theme="dark"] #bo_v_con span,
[data-theme="dark"] #bo_v_con td,
[data-theme="dark"] #bo_v_con th,
[data-theme="dark"] #bo_v_con li {
  background-color: transparent !important;
}

[data-theme="dark"] #bo_v_file {
  background: #1f1f23;
  border-color: #27272a;
}

[data-theme="dark"] #bo_v_link {
  background: #1f1f23;
  border-color: #27272a;
}

/* 추천 버튼 */
[data-theme="dark"] #bo_v_act .bo_v_good {
  background: #18181b;
  border-color: #3f3f46;
  color: #d946ef;
}

[data-theme="dark"] .bo_v_good {
  background: #18181b !important;
  border-color: #3f3f46 !important;
  color: #d946ef !important;
}

/* 스크랩 */
[data-theme="dark"] #bo_v_act .btn_b01,
[data-theme="dark"] #bo_v_act .scrap_btn {
  background: #18181b;
  border-color: #3f3f46;
  color: #a1a1aa;
}

/* 액션 버튼 (수정/답변/목록/삭제/복사/이동/글쓰기) */
[data-theme="dark"] #bo_v a.btn_b01,
[data-theme="dark"] #bo_list a.btn_b01 {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #bo_v a.btn_b01:hover,
[data-theme="dark"] #bo_list a.btn_b01:hover {
  background-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_v a.btn_admin,
[data-theme="dark"] #bo_v a.btn_admin2,
[data-theme="dark"] #bo_list a.btn_admin,
[data-theme="dark"] #bo_list a.btn_admin2,
[data-theme="dark"] #bo_list button.btn_admin {
  background-color: #27272a !important;
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

/* 글쓰기 버튼 (b02) - 핑크 유지 */
[data-theme="dark"] #bo_v a.btn_b02,
[data-theme="dark"] #bo_list a.btn_b02 {
  background-color: #d946ef !important;
  color: #fff !important;
}

/* -- 글 목록 (#bo_list) -- */
[data-theme="dark"] #bo_list {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_list .tbl_head01 {
  border-color: #27272a;
}

[data-theme="dark"] #bo_list .tbl_head01 thead th {
  background: #111114 !important;
  color: #a1a1aa;
  border-color: #27272a;
}

[data-theme="dark"] #bo_list .tbl_head01 td {
  background: #09090b !important;
  color: #a1a1aa;
  border-color: #27272a;
}

[data-theme="dark"] #bo_list .tbl_head01 td a {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_list .tbl_head01 td a:hover {
  color: #e4e4e7;
}

[data-theme="dark"] #bo_list .tbl_head01 tbody tr:hover td {
  background: #1f1f23 !important;
}

/* 공지 행 */
[data-theme="dark"] #bo_list .bo_notice td {
  background: #111114 !important;
}

/* 검색 박스 */
[data-theme="dark"] #bo_sch {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #bo_sch input,
[data-theme="dark"] #bo_sch select {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_sch button {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 검색 - 뉴 스타일 (인라인) */
[data-theme="dark"] .bo-search-input,
[data-theme="dark"] input[style*="border:1px solid #e5e7eb"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .bo-search-btn,
[data-theme="dark"] button[style*="border:1px solid #e5e7eb"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] select[style*="border:1px solid #e5e7eb"],
[data-theme="dark"] select[style*="border: 1px solid #e5e7eb"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* -- 댓글 -- */
[data-theme="dark"] #bo_vc {
  color: #d4d4d8;
}

[data-theme="dark"] #bo_vc li {
  border-color: #27272a;
}

[data-theme="dark"] .cmt_textarea,
[data-theme="dark"] #bo_vc textarea {
  background: #1f1f23 !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .cmt_name {
  color: #d4d4d8;
}

/* -- 비밀문서 스킨 (lecture) -- */
[data-theme="dark"] .lec-nav-btn {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .lec-nav-btn:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* TTS 버튼 */
[data-theme="dark"] .tts-b {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tts-b:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 속도 버튼 */
[data-theme="dark"] .tts-sp {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tts-sp.active,
[data-theme="dark"] .tts-sp:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* -- 스킨 공통 color-white-bg -- */
[data-theme="dark"] .color-white-bg {
  background-color: #27272a !important;
}

/* -- 게시판 tbl_wrap 배경 -- */
[data-theme="dark"] .tbl_wrap table {
  background: #09090b;
  border-color: #27272a;
}

/* -- gnuboard.css 주요 요소 -- */
[data-theme="dark"] .form_01 li {
  color: #d4d4d8;
}

[data-theme="dark"] .win_desc {
  color: #a1a1aa;
}

/* -- 자동저장 팝업 -- */
[data-theme="dark"] #autosave_pop {
  background: #18181b !important;
  border-color: #3f3f46 !important;
  color: #d4d4d8;
}

/* -- 사이드뷰 -- */
[data-theme="dark"] .sv_member {
  color: #d4d4d8;
}

/* ===== TTS 음성읽기 (lecture view 인라인 스타일 오버라이드) ===== */
[data-theme="dark"] #tts_wrap {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .tts-b {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tts-b:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .tts-b.primary {
  background: #2d1a2e !important;
  border-color: #6b2158 !important;
  color: #d946ef !important;
}

[data-theme="dark"] .tts-b.primary:hover {
  background: #3d1f3e !important;
  color: #e879f9 !important;
}

[data-theme="dark"] .tts-b.spd {
  background: #1f1f23 !important;
  border-color: #3f3f46 !important;
  color: #71717a !important;
}

[data-theme="dark"] .tts-b.spd:hover {
  background: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tts-b.spd.on {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  color: #18181b !important;
}

[data-theme="dark"] .tts-sel {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tts-divider {
  background: #3f3f46 !important;
}

/* ===== 워터마크 (.nonocopy) - 다크모드에서 #999 + 1% ===== */
[data-theme="dark"] .nonocopy {
  color: #999 !important;
  opacity: 0.01 !important;
}

/* ===== 글 보기 제목/닉네임/아이콘 ===== */
[data-theme="dark"] #bo_v_title .bo_v_tit {
  color: #e4e4e7 !important;
}

[data-theme="dark"] #bo_v_info .sv_member,
[data-theme="dark"] #bo_v_info .member,
[data-theme="dark"] #bo_v_info .sv_guest {
  color: #d4d4d8 !important;
}

[data-theme="dark"] #bo_v_info .namelevel,
[data-theme="dark"] #bo_v_info i {
  filter: brightness(2);
}

/* 글 보기 하단 정보 (조회수, 추천 등) */
[data-theme="dark"] #bo_v_info span,
[data-theme="dark"] #bo_v_info .if_date,
[data-theme="dark"] #bo_v_info .if_hit {
  color: #71717a;
}

/* 메모 아이콘 (fa-envelope 등) */
[data-theme="dark"] .sv_wrap .sv a i,
[data-theme="dark"] i.fa-envelope,
[data-theme="dark"] i.fa-star {
  color: #a1a1aa;
}

/* ===== 댓글 (#bo_vc) 다크모드 보강 ===== */
[data-theme="dark"] #bo_vc .cmt_item {
  border-bottom-color: #27272a;
}

[data-theme="dark"] #bo_vc .cmt_name,
[data-theme="dark"] #bo_vc .cmt_name .sv_member,
[data-theme="dark"] #bo_vc .cmt_name .member,
[data-theme="dark"] #bo_vc .cmt_name .sv_guest,
[data-theme="dark"] #bo_vc .cmt_name .guest {
  color: #d4d4d8 !important;
}

[data-theme="dark"] #bo_vc .cmt_name .namelevel {
  filter: brightness(2);
}

[data-theme="dark"] #bo_vc .cmt_bubble {
  background: #1f1f23;
  color: #d4d4d8;
}

[data-theme="dark"] #bo_vc .cmt_time {
  color: #52525b;
}

[data-theme="dark"] #bo_vc .cmt_acts a {
  color: #52525b;
}

[data-theme="dark"] #bo_vc .cmt_acts a:hover {
  background: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] #bo_vc .cmt_reply_arrow {
  color: #3f3f46;
}

[data-theme="dark"] #bo_vc .cmt_profile {
  background: #27272a;
}
/* 2026-04-09 출석체크 스킨에서는 프로필 배경 투명 */
[data-theme="dark"] .att-post .cmt_profile {
  background: #3f3f46;
}
[data-theme="dark"] .att-post .cmt_profile:has(img) {
  background: transparent;
}

[data-theme="dark"] #bo_vc .goodwrap {
  color: #52525b;
}

[data-theme="dark"] #bo_vc .cmt_sort_btn {
  color: #71717a;
  border-color: #3f3f46;
}

[data-theme="dark"] #bo_vc .cmt_sort_btn.active {
  color: #e4e4e7;
  border-color: #e4e4e7;
}

/* 댓글 등록 버튼 */
[data-theme="dark"] #bo_vc .btn_submit {
  background: #d946ef;
  color: #fff;
}

/* 댓글 이미지/자물쇠 아이콘 버튼 */
[data-theme="dark"] .cmt_file_label {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #71717a !important;
}

[data-theme="dark"] .cmt_file_label:hover {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .cmt_file_label.has_file {
  background: #2d1a2e !important;
  border-color: #6b2158 !important;
  color: #d946ef !important;
}

[data-theme="dark"] .cmt_file_name {
  color: #52525b;
}

[data-theme="dark"] .cmt_file_remove {
  background: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .cmt_file_remove:hover {
  background: #7f1d1d;
  color: #f87171;
}

/* 설정(톱니) 버튼 - 게시판 목록 */
[data-theme="dark"] .btn_bo_adm input {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* -- 스크랩 버튼 -- */
[data-theme="dark"] .btn_scrap,
[data-theme="dark"] a.btn_scrap {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* -- 댓글 입력 textarea -- */
[data-theme="dark"] textarea#wr_content,
[data-theme="dark"] textarea.required {
  background: #1f1f23 !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* -- 인기글 컨테이너 -- */
/* -- 주간 추천수 BEST (popular-posts) -- */
[data-theme="dark"] .popular-posts-container {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #d4d4d8;
}

[data-theme="dark"] .popular-posts-header {
  background: #1f1f23 !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .popular-posts-title {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .popular-post-item {
  border-color: #27272a !important;
}

[data-theme="dark"] .popular-posts-container a {
  color: #d4d4d8;
}

[data-theme="dark"] .popular-posts-container a:hover {
  color: #e4e4e7;
}

/* ===== 커리큘럼 (curri-*) ===== */
[data-theme="dark"] .curri-sections {
  background: #18181b;
  border-color: #27272a;
}

[data-theme="dark"] .curri-section {
  border-bottom-color: #27272a;
}

[data-theme="dark"] .curri-section-toggle {
  background: #1f1f23;
}

[data-theme="dark"] .curri-section-toggle:hover {
  background: #27272a;
}

[data-theme="dark"] .curri-section-title {
  color: #e4e4e7;
}

[data-theme="dark"] .curri-section-count {
  color: #71717a;
}

[data-theme="dark"] .curri-chevron {
  color: #52525b;
}

[data-theme="dark"] .curri-item {
  border-top-color: #27272a;
}

[data-theme="dark"] .curri-link {
  color: #a1a1aa;
}

[data-theme="dark"] .curri-link:hover {
  background: #1f1f23;
  color: #e4e4e7;
}

[data-theme="dark"] .curri-link-locked {
  color: #3f3f46;
}

[data-theme="dark"] .curri-header {
  color: #e4e4e7;
}

[data-theme="dark"] .curri-title {
  color: #e4e4e7;
}

[data-theme="dark"] .curri-count {
  color: #71717a;
}

[data-theme="dark"] .curri-more-btn {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .curri-more-btn:hover {
  background: #3f3f46;
  color: #e4e4e7;
}

/* 2026-04-08 출석체크 뱃지 다크모드 */
[data-theme="dark"] .attend-badge.attend-todo {
  color: #fff;
  background: #3f3f46;
}
[data-theme="dark"] .attend-badge.attend-todo:hover {
  background: #52525b;
  color: #fff;
}
[data-theme="dark"] .attend-dot {
  border-color: #27272a;
}
[data-theme="dark"] .attend-badge.attend-done {
  color: #71717a;
  background: #27272a !important;
  border-color: #3f3f46 !important;
}
[data-theme="dark"] .attend-badge.attend-done svg {
  color: #34d399;
}
[data-theme="dark"] .attend-badge svg,
[data-theme="dark"] .attend-badge span {
  background: transparent !important;
}
/* 2026-04-09 7일 연속 이상 - 초록 배경 */
[data-theme="dark"] .attend-badge.attend-streak {
  background: rgba(16,185,129,0.15) !important;
  border-color: #065f46 !important;
  color: #34d399;
}
[data-theme="dark"] .attend-badge.attend-streak svg {
  color: #34d399;
}
[data-theme="dark"] .attend-badge.attend-streak:hover {
  background: rgba(16,185,129,0.25) !important;
}
/* 2026-04-09 15일 연속 이상 - 테마색 */
[data-theme="dark"] .attend-badge.attend-streak-15 {
  background: rgba(178,0,136,0.2) !important;
  border-color: rgba(178,0,136,0.4) !important;
  color: #e879a8;
}
[data-theme="dark"] .attend-badge.attend-streak-15 svg {
  color: #e879a8;
}
[data-theme="dark"] .attend-badge.attend-streak-15:hover {
  background: rgba(178,0,136,0.3) !important;
}

/* 2026-04-09 출석체크 달력 다크모드 */
[data-theme="dark"] .att-cal-day { color: #a1a1aa; }
[data-theme="dark"] .att-cal-day.today { background: #27272a; color: #e4e4e7; }
[data-theme="dark"] .att-cal-day.attended { background: #27272a; }
[data-theme="dark"] .att-cal-day.attended:hover { background: #3f3f46; }
[data-theme="dark"] .att-cal-day.today.attended { background: #2a2a30; }
[data-theme="dark"] .att-cal-day.milestone-7 { background: #332b1a; }
[data-theme="dark"] .att-cal-day.milestone-7:hover { background: #3d3420; }
[data-theme="dark"] .att-cal-day.milestone-21 { background: linear-gradient(135deg, #332b1a, #3d3420); }
[data-theme="dark"] .att-cal-day.milestone-21:hover { background: linear-gradient(135deg, #3d3420, #4a3d24); }
[data-theme="dark"] .att-cal-day.milestone-full { background: #3a2a1a; }
[data-theme="dark"] .att-cal-day.milestone-full:hover { background: #4a3520; }
[data-theme="dark"] .att-cal-day.missed { color: #3f3f46; }
[data-theme="dark"] .att-cal-day.missed::after { color: #3f3f46; }
/* 2026-04-09 출석글 있는 날 - 핑크 점 */
[data-theme="dark"] .att-cal-day.missed.has-post { color: #71717a; }
[data-theme="dark"] .att-cal-day.missed.has-post::after { color: #db2777; }
[data-theme="dark"] .att-cal-day.active-date { outline-color: #d946ef; }
[data-theme="dark"] .att-day-divider { color: #52525b; }
[data-theme="dark"] .att-day-divider::before,
[data-theme="dark"] .att-day-divider::after { background: #27272a; }
[data-theme="dark"] .att-mood-btn { background: #27272a; border-color: #3f3f46; }
[data-theme="dark"] .att-mood-btn:hover { background: #3f3f46; border-color: #52525b; }
[data-theme="dark"] .att-mood-btn.active { border-color: #d946ef; background: #2a1a28; }
[data-theme="dark"] .att-post .cmt_item .cmt_name { color: #e4e4e7; }
[data-theme="dark"] .att-post .cmt_item .cmt_bubble { background: #27272a; color: #d4d4d8; }
[data-theme="dark"] .att-post { border-bottom-color: #27272a; }

/* ===== rumiPopup (일정보기/글쓰기 팝업) ===== */
[data-theme="dark"] #rumipopup {
  background-color: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #rumipopup .rumiTitle {
  background: #18181b !important;
  border-bottom-color: #27272a !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #rumipopup .rumiClose {
  color: #71717a;
}

[data-theme="dark"] #rumipopup .rumiClose:hover {
  background: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] #rumipopup .rumiIframe {
  background: #18181b !important;
}

[data-theme="dark"] #rumipopup .noIframe,
[data-theme="dark"] #rumipopup .pop_inbox {
  background: #18181b !important;
}

[data-theme="dark"] #rumipopup .rumiButton {
  background: #1f1f23 !important;
  border-top-color: #27272a !important;
}

[data-theme="dark"] #rumipopup button {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #rumipopup button:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #rumipopup button:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* live 일정보기 info-table */
[data-theme="dark"] .info-table th {
  color: #a1a1aa !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .info-table td {
  color: #d4d4d8 !important;
  border-bottom-color: #27272a !important;
}

/* ========================================
   커스텀 페이지 다크모드
   ======================================== */

/* ===== 시크릿링크 (get 게시판, #ref) ===== */
[data-theme="dark"] #ref .ref-input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #ref .ref-input[readonly] {
  background: #1f1f23 !important;
  color: #71717a !important;
}

[data-theme="dark"] #ref .ref-btn-outline {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] #ref .ref-btn-outline:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #ref .ref-label {
  color: #a1a1aa;
}

/* 2026-04-09 shadcn 다크모드 - 수익 테이블, 카드, 텍스트, 배지, 페이징 전체 */

/* 제목 */
[data-theme="dark"] #ref .ref-title {
  color: #e4e4e7 !important;
}

/* 설명 텍스트 */
[data-theme="dark"] #ref .text-zinc-500,
[data-theme="dark"] #ref .text-zinc-400 {
  color: #71717a !important;
}

/* 테이블 카드 컨테이너 */
[data-theme="dark"] #ref .rounded-xl {
  background: #18181b !important;
  border-color: #27272a !important;
  box-shadow: none !important;
}

/* 테이블 헤더 */
[data-theme="dark"] #ref table thead tr {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}
[data-theme="dark"] #ref table thead th {
  color: #71717a !important;
  background: transparent !important;
}

/* 테이블 바디 */
[data-theme="dark"] #ref table tbody tr {
  border-color: #27272a !important;
}
[data-theme="dark"] #ref table tbody tr:hover {
  background: #1f1f23 !important;
}
[data-theme="dark"] #ref table tbody td {
  color: #d4d4d8 !important;
}
[data-theme="dark"] #ref table tbody td .text-zinc-400 {
  color: #52525b !important;
}
[data-theme="dark"] #ref table .text-zinc-800 {
  color: #e4e4e7 !important;
}
[data-theme="dark"] #ref table .divide-y > * + * {
  border-color: #27272a !important;
}

/* 빈 데이터 텍스트 */
[data-theme="dark"] #ref table .text-zinc-400 {
  color: #52525b !important;
}

/* 상태 배지 - 다크모드 */
[data-theme="dark"] #ref .ref-badge-green {
  background: rgba(5,150,105,0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52,211,153,0.3) !important;
}
[data-theme="dark"] #ref .ref-badge-blue {
  background: rgba(37,99,235,0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(96,165,250,0.3) !important;
}
[data-theme="dark"] #ref .ref-badge-yellow {
  background: rgba(217,119,6,0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(251,191,36,0.3) !important;
}
[data-theme="dark"] #ref .ref-badge-red {
  background: rgba(220,38,38,0.15) !important;
  color: #f87171 !important;
  border-color: rgba(248,113,113,0.3) !important;
}

/* 출금정보/시크릿링크 카드 배경 */
[data-theme="dark"] #ref .rounded-xl.bg-white,
[data-theme="dark"] #ref .shadow-sm {
  background: #18181b !important;
  border-color: #27272a !important;
}

/* 카드 내부 텍스트 */
[data-theme="dark"] #ref .text-\[13px\] {
  color: #a1a1aa !important;
}
[data-theme="dark"] #ref p {
  color: #a1a1aa !important;
}

/* Primary 버튼 다크 */
[data-theme="dark"] #ref .ref-btn-primary {
  background: #e4e4e7 !important;
  color: #18181b !important;
}
[data-theme="dark"] #ref .ref-btn-primary:hover {
  background: #d4d4d8 !important;
}

/* 페이징 다크 */
[data-theme="dark"] #ref .border-t {
  border-color: #27272a !important;
}
[data-theme="dark"] #ref .pg_page {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}
[data-theme="dark"] #ref .pg_page:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}
[data-theme="dark"] #ref .pg_current {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  color: #18181b !important;
}
[data-theme="dark"] #ref .pg_start,
[data-theme="dark"] #ref .pg_prev,
[data-theme="dark"] #ref .pg_next,
[data-theme="dark"] #ref .pg_end {
  color: #71717a !important;
}

/* date input 다크 */
[data-theme="dark"] #ref input[type="date"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}
[data-theme="dark"] #ref input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* font-mono 텍스트 */
[data-theme="dark"] #ref .font-mono {
  color: #a1a1aa !important;
}

/* 비디오 섹션 */
[data-theme="dark"] #ref .rounded-lg {
  background: #1f1f23 !important;
}

/* ===== 키워드 조합기 (mix.php) ===== */
[data-theme="dark"] .mix-card {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .mix-textarea {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .mix-textarea::placeholder {
  color: #52525b !important;
}

[data-theme="dark"] .mix-textarea-result {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 영상 섹션 */
[data-theme="dark"] .mix-video-section {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .mix-video-hint {
  color: #52525b;
}

/* 조합 체크박스 칩 hover */
[data-theme="dark"] .mix-chip:hover {
  background: #27272a !important;
}

[data-theme="dark"] .mix-chip {
  color: #a1a1aa;
}

[data-theme="dark"] .mix-chip input[type="checkbox"]:checked ~ span {
  color: #a78bfa;
}

/* 전체선택/전체해제/복사 버튼 */
[data-theme="dark"] .mix-btn-sm {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .mix-btn-sm:hover {
  background: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .mix-btn-copy {
  background: #27272a !important;
  border-color: #065f46 !important;
  color: #34d399 !important;
}

[data-theme="dark"] .mix-btn-copy:hover {
  background: #0a1f0f !important;
}

/* 키워드 라벨 */
[data-theme="dark"] .mix-input-label {
  color: #d4d4d8 !important;
}

/* 섹션 제목 */
[data-theme="dark"] .mix-section-label {
  color: #71717a;
}

/* 옵션 바 구분선 */
[data-theme="dark"] .mix-option-bar {
  border-top-color: #27272a;
}

/* ===== NT파라미터 생성기 (nt_maker.php) ===== */
[data-theme="dark"] .nt-card {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .nt-input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .nt-input::placeholder {
  color: #52525b !important;
}

[data-theme="dark"] .nt-label {
  color: #a1a1aa !important;
}

[data-theme="dark"] .nt-result {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* ===== 포인트 랭킹 (point.php) ===== */
[data-theme="dark"] .rank-card {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .rank-card th {
  background: #18181b !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .rank-card td {
  color: #a1a1aa;
  border-color: #27272a !important;
}

[data-theme="dark"] .rank-card tr:hover td {
  background: #27272a !important;
}

/* ===== 메가메뉴 hover - rounded ===== */
[data-theme="dark"] #mega-menu .mega-link:hover {
  background: #27272a;
  border-radius: 6px;
}

/* ===== 마이페이지 드롭다운 아이템 hover rounded ===== */
.dropdown-item {
  border-radius: 8px;
}

/* ===== 인덱스 왼쪽 아이콘 영역 - #main_icon_box로 관리 (상단에 정의됨) ===== */

/* ===== 인덱스 오른쪽 프로필 아이콘 흰색 테두리 제거 ===== */
[data-theme="dark"] .profile-wrap-icon div {
  border-color: transparent !important;
}

[data-theme="dark"] .profile-wrap .profile-img-wrap {
  border-color: #3f3f46 !important;
}

/* ===== 공지 배너 글자 흰색 유지 ===== */
[data-theme="dark"] #main-notice,
[data-theme="dark"] #main-notice * {
  color: #fff !important;
}

/* ===== 주문서 페이지 (orderform) ===== */
[data-theme="dark"] #od_frm,
[data-theme="dark"] .od_wrap,
[data-theme="dark"] #sit_order {
  color: #d4d4d8;
}

/* 주문서 카드/박스 */
[data-theme="dark"] .rounded-2xl[style*="background"],
[data-theme="dark"] .rounded-xl[style*="background"] {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

/* shop 공통 - 배경이 흰색인 주요 컨테이너 */
[data-theme="dark"] .sit_order_btn button {
  color: #fff;
}

/* 결제 금액 박스 */
[data-theme="dark"] [style*="border:1px solid #e5e7eb"][style*="rounded"] {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

/* shop 테이블 */
[data-theme="dark"] .od_tbl th {
  background: #1f1f23 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .od_tbl td {
  background: #18181b !important;
  color: #d4d4d8 !important;
  border-color: #27272a !important;
}

/* 주문 폼 입력 */
[data-theme="dark"] #od_frm input[type="text"],
[data-theme="dark"] #od_frm input[type="tel"],
[data-theme="dark"] #od_frm input[type="email"],
[data-theme="dark"] #od_frm select,
[data-theme="dark"] #od_frm textarea {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* ===== 구독한 글 / 스크랩 / 내가 쓴 글 ===== */
[data-theme="dark"] .subscribe_list,
[data-theme="dark"] .scrap_list,
[data-theme="dark"] .mywrite_list {
  color: #d4d4d8;
}

[data-theme="dark"] .subscribe_list li,
[data-theme="dark"] .scrap_list li,
[data-theme="dark"] .mywrite_list li {
  border-color: #27272a;
}

[data-theme="dark"] .subscribe_list a,
[data-theme="dark"] .scrap_list a,
[data-theme="dark"] .mywrite_list a {
  color: #d4d4d8;
}

/* ===== 주문내역 (tbl_head03) ===== */
[data-theme="dark"] .tbl_head03 table {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .tbl_head03 thead th {
  background: #1f1f23 !important;
  color: #71717a !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .tbl_head03 td {
  color: #a1a1aa !important;
  border-bottom-color: #27272a !important;
  background: #18181b !important;
}

[data-theme="dark"] .tbl_head03 td:first-child {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .tbl_head03 tbody tr:hover td {
  background: #1f1f23 !important;
}

[data-theme="dark"] .tbl_head03 a {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .tbl_head03 a:hover {
  color: #d946ef !important;
}

[data-theme="dark"] .tbl_head03 tfoot th,
[data-theme="dark"] .tbl_head03 tfoot td {
  background: #1f1f23 !important;
  border-color: #27272a !important;
  color: #71717a !important;
}

/* 주문취소 버튼 - 배경/border 제거 */
[data-theme="dark"] .tbl_head03 .status_06 {
  color: #f87171 !important;
}

[data-theme="dark"] .tbl_head03 input[type="button"],
[data-theme="dark"] .tbl_head03 button {
  background: transparent !important;
  border: none !important;
  color: #f87171 !important;
}

/* ===== 포인트 TOP5 (point-1-top5) ===== */
[data-theme="dark"] .point_top5_card,
[data-theme="dark"] .top5-card {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

/* ===== 범용: rounded 카드/박스 배경 다크 ===== */
[data-theme="dark"] .bg-white.rounded-2xl,
[data-theme="dark"] .bg-white.rounded-xl,
[data-theme="dark"] .bg-white.rounded-lg {
  background-color: #1f1f23 !important;
  border-color: #27272a !important;
}

/* Tailwind bg-gray-50 */
[data-theme="dark"] .bg-\[\#f8f8f8\],
[data-theme="dark"] .bg-\[\#fafafa\] {
  background-color: #1f1f23 !important;
}

/* ===== shop 스킨 text 색상 ===== */
[data-theme="dark"] .text-\[\#1a1a1a\],
[data-theme="dark"] .text-\[\#222\],
[data-theme="dark"] .text-\[\#111\] {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .text-\[\#555\],
[data-theme="dark"] .text-\[\#666\],
[data-theme="dark"] .text-\[\#777\] {
  color: #71717a !important;
}

[data-theme="dark"] .border-\[\#f0f0f0\],
[data-theme="dark"] .border-\[\#eee\],
[data-theme="dark"] .border-\[\#e5e7eb\] {
  border-color: #27272a !important;
}

/* ===== 구독/내글 리스트 (sc-*) ===== */
[data-theme="dark"] .sc-list {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .sc-item {
  border-bottom-color: #27272a;
}

[data-theme="dark"] .sc-item:hover {
  background: #1f1f23;
}

[data-theme="dark"] .sc-badge {
  background: #1e1b4b;
  color: #a78bfa;
}

[data-theme="dark"] .sc-title {
  color: #d4d4d8;
}

[data-theme="dark"] .sc-title:hover {
  color: #d946ef;
}

[data-theme="dark"] .sc-author {
  color: #71717a;
}

[data-theme="dark"] .sc-date {
  color: #52525b;
}

[data-theme="dark"] .sc-empty {
  color: #52525b;
}

/* ===== 스크랩 리스트 (#scrap) ===== */
[data-theme="dark"] #scrap {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #scrap li {
  border-bottom-color: #27272a;
}

[data-theme="dark"] #scrap li:hover {
  background: #1f1f23;
}

[data-theme="dark"] #scrap .scrap_tit {
  color: #d4d4d8;
}

[data-theme="dark"] #scrap .scrap_tit:hover {
  color: #d946ef;
}

[data-theme="dark"] #scrap .scrap_cate {
  background: #1e1b4b;
  color: #a78bfa;
}

[data-theme="dark"] #scrap .scrap_datetime {
  color: #52525b;
}

[data-theme="dark"] #scrap .scrap_del {
  color: #71717a;
}

[data-theme="dark"] #scrap .scrap_del:hover {
  color: #f87171;
}

[data-theme="dark"] #scrap .scrap_memo_wrap .memo {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #scrap .scrap_memo_wrap .memo:focus {
  background: #1f1f23;
}

[data-theme="dark"] #scrap .scrap_memo_wrap button.edit {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] #scrap .scrap_memo_wrap button.del {
  background: #27272a;
  border-color: #7f1d1d;
  color: #f87171;
}

/* 검색 폼 (style2.css) */
[data-theme="dark"] #new_sch select {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #new_sch .frm_input {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] #new_sch .my-write-count {
  color: #71717a;
}

[data-theme="dark"] #new_sch .my-write-count b {
  color: #a1a1aa;
}

[data-theme="dark"] #new_sch p {
  color: #52525b;
}

/* 페이지네이션 */
[data-theme="dark"] #fnewlist .pg_wrap a,
[data-theme="dark"] #scrap .pg_wrap a {
  color: #71717a;
}

[data-theme="dark"] #fnewlist .pg_wrap a:hover,
[data-theme="dark"] #scrap .pg_wrap a:hover {
  background: #27272a;
  color: #e4e4e7;
}

/* 체크박스 */
[data-theme="dark"] .chk_box input[type="checkbox"] + label span {
  background: #27272a;
  border-color: #3f3f46;
}

[data-theme="dark"] .chk_box input[type="checkbox"] + label {
  color: #71717a;
}

[data-theme="dark"] .chk_box input[type="checkbox"]:checked + label {
  color: #e4e4e7;
}

/* ===== Top5 정보모음 (point-1-top5) ===== */
[data-theme="dark"] .top5-card {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .top5-card-header {
  border-bottom-color: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] .top5-card-header.is-fixed {
  background: #18181b !important;
  border-bottom-color: #d946ef;
}

[data-theme="dark"] .top5-btn {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

[data-theme="dark"] .top5-btn:hover {
  background: #3f3f46;
  color: #e4e4e7;
}

[data-theme="dark"] .top5-body-memo {
  background: #1a0f1e;
  border-color: #3b1d5e;
  color: #a1a1aa;
}

/* Top5 제목/화살표 */
[data-theme="dark"] .top5-title {
  color: #d946ef;
}

[data-theme="dark"] .top5-title .top5-arrow {
  color: #71717a;
  border-color: #3f3f46;
}

[data-theme="dark"] .top5-title .top5-arrow:hover {
  background: #27272a;
  color: #d946ef;
  border-color: #d946ef;
}

/* Top5 목록 행 */
[data-theme="dark"] .top5-posts td {
  border-bottom-color: #27272a !important;
  color: #a1a1aa;
}

[data-theme="dark"] .top5-subject a {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .top5-subject a:hover {
  color: #d946ef !important;
}

[data-theme="dark"] .top5-date {
  color: #52525b;
}

[data-theme="dark"] .top5-board {
  color: #d946ef;
}

[data-theme="dark"] .top5-empty {
  color: #52525b;
}

/* 내용보기 (펼쳐진 본문) */
[data-theme="dark"] .top5-content-cell {
  background: #1f1f23 !important;
  border-bottom-color: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .top5-content-cell .content-text,
[data-theme="dark"] .top5-content-cell .content-text * {
  color: #a1a1aa !important;
}

/* 메모 영역 */
[data-theme="dark"] .top5-body-memo {
  background: #1a0f1e !important;
  border-color: #3b1d5e !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .top5-memo-item {
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .top5-memo-date {
  color: #d946ef;
}

[data-theme="dark"] .top5-memo-text {
  color: #a1a1aa;
}

/* 닉네임/정보 */
[data-theme="dark"] .top5-nick {
  color: #d946ef;
}

[data-theme="dark"] .top5-info {
  color: #52525b;
}

[data-theme="dark"] .top5-info a {
  color: #71717a;
}

/* 카드 헤더 구분선 */
[data-theme="dark"] .top5-card-header {
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .top5-card-header.is-fixed {
  background: #18181b !important;
  border-bottom-color: #d946ef !important;
}

/* ===== 회원 스킨 (로그인/회원가입) CSS 변수 오버라이드 ===== */
[data-theme="dark"] {
  --mb-bg: #18181b;
  --mb-bg-muted: #1f1f23;
  --mb-bg-subtle: #27272a;
  --mb-border: #27272a;
  --mb-text: #e4e4e7;
  --mb-text-muted: #71717a;
  --mb-text-light: #52525b;
  --mb-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --mb-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
  --mb-primary-light: #2d1a2e;
}

/* 로그인 카카오 버튼은 노란색 유지 */
[data-theme="dark"] .kakao-main-btn {
  background: #fee500 !important;
  color: #000 !important;
}

/* 로그인 "회원 전용 콘텐츠" 안내 */
[data-theme="dark"] #mb_login .onolycrew {
  background: #1f1f23;
  border-color: #27272a;
}

[data-theme="dark"] #mb_login .onolycrew-title {
  color: #e4e4e7;
}

[data-theme="dark"] #mb_login .onolycrew-desc {
  color: #71717a;
}

/* 아이디/네이버 아이콘 버튼 - 외부 배경 제거 */
[data-theme="dark"] .alt-login-circle {
  border-color: #3f3f46;
}

[data-theme="dark"] .alt-login-circle:hover {
  border-color: #52525b;
}

[data-theme="dark"] .alt-login-label {
  color: #a1a1aa;
}

/* 아이디 로그인 패널 */
[data-theme="dark"] #id_login_panel .frm_input {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

/* 회원 스킨 직접 오버라이드 (CSS 변수 로드 순서 문제 방지) */
[data-theme="dark"] .mbskin .mbskin_box {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #register_form {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #register_form h2 {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .register_form_inner label {
  color: #a1a1aa !important;
}

[data-theme="dark"] .register_form_inner .frm_input,
[data-theme="dark"] #register_form .frm_input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 약관 동의 영역 */
[data-theme="dark"] .register_agree {
  background: #1f1f23 !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .register_agree a {
  color: #d946ef !important;
}

/* 카카오 버튼 - 글자색 검정 유지 */
[data-theme="dark"] .kakao-main-btn {
  color: #191919 !important;
}

/* 로그인 아이콘 (아이디/네이버) 배경 밝게 */
[data-theme="dark"] .alt-login-circle > .id-icon-circle,
[data-theme="dark"] .alt-login-circle > .naver-n {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .login-main-title {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .login-main-desc {
  color: #71717a !important;
}

[data-theme="dark"] .login-divider span {
  color: #52525b !important;
}

/* 회원가입 결과 */
[data-theme="dark"] .register_result {
  color: #d4d4d8;
}

[data-theme="dark"] .register_result .mbskin_box {
  background: #18181b !important;
}

/* 카카오 1초 가입 버튼 */
#sns_register {
  border-radius: 10px;
}

[data-theme="dark"] #sns_register {
  border-color: #27272a;
}

[data-theme="dark"] #sns_register h2 {
  color: #34161f !important;
}

/* 시작하기 버튼 - #b20088 유지 */
[data-theme="dark"] .bg-\[\#b20088\] {
  background-color: #b20088 !important;
  color: #fff !important;
}

/* ===== 권한 없음 카드 (.np-card) ===== */
[data-theme="dark"] .np-card {
  background: #1f1f23 !important;
  border-color: #27272a !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .np-card h3 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .np-card p {
  color: #71717a !important;
}

[data-theme="dark"] .np-card svg {
  stroke: #52525b;
}

/* ===== 게시판 가로 구분선 연하게 ===== */
[data-theme="dark"] #bo_v_act,
[data-theme="dark"] .bo_v_act {
  border-color: #27272a !important;
}

[data-theme="dark"] #bo_v hr,
[data-theme="dark"] #bo_list hr {
  border-color: #27272a !important;
}

/* 이전글/다음글 구분선 */
[data-theme="dark"] #bo_v_nb {
  border-color: #27272a;
}

[data-theme="dark"] #bo_v_nb li {
  border-color: #27272a;
  color: #a1a1aa;
}

[data-theme="dark"] #bo_v_nb a {
  color: #d4d4d8;
}

/* 추천/스크랩 영역 구분선 */
[data-theme="dark"] .bo_v_good_wrap {
  border-color: #27272a;
}

/* 댓글 입력 영역 상하 구분선 */
[data-theme="dark"] .bo_vc_w {
  border-color: #27272a !important;
}

/* old 스킨 공통 border */
[data-theme="dark"] .bo_v_com_fld {
  border-color: #27272a;
}

/* ===== 게시판 view 모든 구분선 일괄 다크 ===== */
[data-theme="dark"] #bo_v,
[data-theme="dark"] #bo_v * {
  border-color: #27272a !important;
}

/* 추천 버튼 테두리는 좀 더 밝게 (눌린다는 느낌) */
[data-theme="dark"] #bo_v .bo_v_good,
[data-theme="dark"] #bo_v .bo_v_nogood {
  border-color: #3f3f46 !important;
}

/* 글쓰기/목록 등 액션 버튼 테두리 */
[data-theme="dark"] #bo_v .bo_v_com a.btn,
[data-theme="dark"] #bo_v .bo_v_left a.btn {
  border-color: #3f3f46 !important;
}

/* 댓글 영역 구분선도 포함 */
[data-theme="dark"] #bo_vc,
[data-theme="dark"] #bo_vc * {
  border-color: #27272a !important;
}

/* 댓글 버튼 테두리 약간 밝게 */
[data-theme="dark"] #bo_vc .cmt_sort_btn {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] #bo_vc .cmt_file_label {
  border-color: #3f3f46 !important;
}

/* 비밀글 자물쇠 버튼 */
[data-theme="dark"] .bo_vc_w .btn_confirm label[for="wr_secret"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #71717a !important;
}

[data-theme="dark"] .bo_vc_w .btn_confirm label[for="wr_secret"]:hover {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .bo_vc_w .btn_confirm label.secret_on,
[data-theme="dark"] #wr_secret:checked ~ .btn_confirm label[for="wr_secret"] {
  background: #2d1a2e !important;
  border-color: #6b2158 !important;
  color: #d946ef !important;
}

/* 이미지 첨부 버튼 */
[data-theme="dark"] .cmt_file_label {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #71717a !important;
}

[data-theme="dark"] .cmt_file_label:hover {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .cmt_file_label.has_file {
  background: #2d1a2e !important;
  border-color: #6b2158 !important;
  color: #d946ef !important;
}

/* ===== 주문서 (#orderform) ===== */
[data-theme="dark"] #orderform .checkout-container {
  background-color: #09090b !important;
  border-color: #09090b !important;
  box-shadow: none !important;
}

[data-theme="dark"] #orderform .product-title {
  color: #e4e4e7 !important;
}

[data-theme="dark"] #orderform .product-desc {
  color: #71717a !important;
}

[data-theme="dark"] #orderform .price-display {
  background-color: #1f1f23 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #orderform .sub-price {
  color: #52525b !important;
}

[data-theme="dark"] #orderform .benefit-box {
  background: #1a0f1e !important;
  border-color: #3b1d5e !important;
}

[data-theme="dark"] #orderform .benefit-list {
  color: #a1a1aa !important;
}

[data-theme="dark"] #orderform .benefit-list li {
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] #orderform .year-label {
  color: #a1a1aa !important;
}

[data-theme="dark"] #orderform .discounted-price {
  color: #d4d4d8 !important;
}

[data-theme="dark"] #orderform .form-title {
  color: #e4e4e7 !important;
}

[data-theme="dark"] #orderform .input-group label {
  color: #a1a1aa !important;
}

[data-theme="dark"] #orderform .input-group input,
[data-theme="dark"] #orderform .point-wrapper input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #orderform .input-group input:focus {
  border-color: #d92582 !important;
  box-shadow: 0 0 0 3px rgba(217,37,130,0.2) !important;
}

[data-theme="dark"] #orderform .point-info {
  color: #71717a !important;
}

[data-theme="dark"] #orderform .countdown-box {
  background: #1a0f1e !important;
  border-color: #3b1d5e !important;
}

[data-theme="dark"] #orderform .countdown-item {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #orderform .section {
  border-bottom-color: #27272a !important;
}

/* sod_frm (결제 정보 폼) - 배경 + 모든 border 일괄 */
[data-theme="dark"] .sod_frm_pc,
[data-theme="dark"] #sod_frm {
  background: #09090b !important;
  border-color: #09090b !important;
}

[data-theme="dark"] #sod_frm *,
[data-theme="dark"] .sod_frm_pc * {
  border-color: #09090b !important;
}

/* 입력 필드 border만 보이게 */
[data-theme="dark"] #sod_frm input,
[data-theme="dark"] #sod_frm select,
[data-theme="dark"] .sod_frm_pc input,
[data-theme="dark"] .sod_frm_pc select,
[data-theme="dark"] #orderform .input-group input {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .sod_frm_pc .section {
  background: #09090b !important;
}

[data-theme="dark"] .sod_frm_pc input[type="text"],
[data-theme="dark"] .sod_frm_pc input[type="tel"],
[data-theme="dark"] .sod_frm_pc input[type="email"],
[data-theme="dark"] .sod_frm_pc select {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .sod_frm_pc label {
  color: #a1a1aa !important;
}

[data-theme="dark"] .sod_frm_pc h2 {
  color: #e4e4e7 !important;
}

/* 결제 요약 박스 (상품금액/최종결제금액) */
[data-theme="dark"] #orderform .payment-summary {
  background-color: #26262d !important;
  border: none !important;
  box-shadow: none !important;
}

/* 필수 입력 표시 - label 옆에 * 추가, input 안 이미지 제거 (라이트+다크 공통) */
#orderform .input-group label::after {
  content: ' *';
  color: #d92582;
}

#orderform input.required,
#orderform textarea.required {
  background-image: none !important;
}

/* 결제수단 h3 */
[data-theme="dark"] #orderform .od_pay_buttons_el h3 {
  color: #a1a1aa !important;
}

/* 결제수단 라디오 텍스트 */
[data-theme="dark"] #orderform #sod_frm_paysel {
  background: #09090b !important;
}

[data-theme="dark"] #orderform #sod_frm_paysel label {
  color: #a1a1aa !important;
}

/* 결제수단 영역 - border 전부 제거 */
[data-theme="dark"] .sod_frm_pc #sod_frm_pay,
[data-theme="dark"] #sod_frm_pay {
  background: #09090b !important;
  border: none !important;
}

[data-theme="dark"] .sod_frm_pc #sod_frm_pay h2,
[data-theme="dark"] #sod_frm_pay h2 {
  border: none !important;
}

/* 결제수단 라디오 */
[data-theme="dark"] .sod_frm_pc .lb_icon {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .sod_frm_pc input[type="radio"]:checked + .lb_icon {
  border-color: #d92582 !important;
  color: #d92582 !important;
}

/* 결제수단 목록 */
[data-theme="dark"] .sod_frm_pc .pay_way {
  background: #18181b !important;
}

[data-theme="dark"] .sod_frm_pc .pay_way li {
  border-color: #27272a !important;
}

[data-theme="dark"] .sod_frm_pc #settle_bank {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .sod_frm_pc #sod_frm_paysel {
  background: #18181b !important;
}

/* 2026-04-09: 주문서 모바일 폼 다크모드 */
/* 주문자 정보 영역 */
[data-theme="dark"] #sod_frm_orderer,
[data-theme="dark"] #sod_frm_taker {
  background: #09090b !important;
}

[data-theme="dark"] #sod_frm_orderer h2,
[data-theme="dark"] #sod_frm_taker h2 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .odf_list label,
[data-theme="dark"] .odf_list strong {
  color: #a1a1aa !important;
}

[data-theme="dark"] .odf_list .frm_input {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .odf_list textarea {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .odf_list .dlv_slt div {
  background: #27272a !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .odf_list .dlv_slt div label {
  color: #d4d4d8 !important;
}

/* 결제금액 테이블 */
[data-theme="dark"] .odf_tbl table {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .odf_tbl table th {
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .odf_tbl table td {
  color: #d4d4d8 !important;
  border-color: #27272a !important;
}

/* 포인트 영역 */
[data-theme="dark"] #sod_point {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #sod_point h2 {
  color: #e4e4e7 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .sod_frm_point div {
  background: #18181b !important;
}

[data-theme="dark"] .sod_frm_point div label,
[data-theme="dark"] .sod_frm_point div strong {
  color: #a1a1aa !important;
}

[data-theme="dark"] .sod_frm_point div span {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .sod_frm_point #od_temp_point {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #sod_frm_pt strong {
  color: #d4d4d8 !important;
}

[data-theme="dark"] #sod_frm_pt span {
  color: #d4d4d8 !important;
}

/* 결제수단 (모바일) */
[data-theme="dark"] #sod_frm_pay {
  background: #09090b !important;
  border: none !important;
}

[data-theme="dark"] #sod_frm_pay h2 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] #sod_frm_pay table {
  border-color: #27272a !important;
}

[data-theme="dark"] #sod_frm_pay_info {
  background: #18181b !important;
}

[data-theme="dark"] #m_sod_frm_orderer ul {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] #m_sod_frm_paysel ul {
  background: #18181b !important;
}

[data-theme="dark"] #m_sod_frm_paysel li {
  color: #d4d4d8 !important;
}

/* 결제하기 버튼 영역 배경 */
[data-theme="dark"] #sod_frm .sod_ta_wr {
  background: #18181b !important;
  border-color: #27272a !important;
}

/* 무통장 영역 */
[data-theme="dark"] #settle_bank {
  background: #18181b !important;
}

[data-theme="dark"] #settle_bank select {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] #settle_bank #od_deposit_name {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

/* 상품목록 */
[data-theme="dark"] #sod_frm .od_prd_list {
  background: #18181b !important;
}

[data-theme="dark"] .od_prd_list .prd_name {
  color: #e4e4e7 !important;
}

/* ===== 주문 상세 (#sod_v, #sod_fin) ===== */
[data-theme="dark"] #sod_v,
[data-theme="dark"] #sod_fin {
  background: #09090b !important;
  color: #d4d4d8;
}

/* 모든 border 일괄 */
[data-theme="dark"] #sod_v *,
[data-theme="dark"] #sod_fin * {
  border-color: #27272a !important;
}

[data-theme="dark"] #sod_v_info {
  color: #d946ef;
}

[data-theme="dark"] #sod_v table,
[data-theme="dark"] #sod_fin table {
  background: #09090b !important;
}

[data-theme="dark"] #sod_v th,
[data-theme="dark"] #sod_fin th,
[data-theme="dark"] #sod_fin .tbl_head01 th {
  background: #111114 !important;
  color: #71717a !important;
}

[data-theme="dark"] #sod_v td,
[data-theme="dark"] #sod_fin td {
  color: #d4d4d8 !important;
  background: #09090b !important;
}

[data-theme="dark"] #sod_v h2,
[data-theme="dark"] #sod_fin h2,
[data-theme="dark"] .sod_fin_list h2 {
  color: #a1a1aa !important;
}

[data-theme="dark"] .sod_fin_list .sod_ta_wr {
  background: #09090b !important;
}

[data-theme="dark"] #sod_fin_view {
  background: #09090b !important;
}

[data-theme="dark"] #sod_fin_tot {
  background: #09090b !important;
}

[data-theme="dark"] #sod_fin_tot strong {
  color: #d946ef;
}

/* 취소/반품 안내 박스 - border 제거 */
[data-theme="dark"] #sod_fin_cancel {
  background: #1a0a0a !important;
  border: none !important;
}

[data-theme="dark"] #sod_fin_cancel h2 {
  color: #f87171 !important;
}

[data-theme="dark"] #sod_fin_cancel p {
  color: #f87171 !important;
}

[data-theme="dark"] #sod_v .alert,
[data-theme="dark"] #sod_v [style*="background:#ffe"],
[data-theme="dark"] #sod_fin [style*="background:#ffe"] {
  background: #1a0a0a !important;
  border: none !important;
  color: #f87171 !important;
}

/* ===== 포인트 랭킹 (point.php) ===== */
[data-theme="dark"] .rank-header h2 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .rank-header-sub p {
  color: #71717a;
}

[data-theme="dark"] .rank-mypoint {
  color: #d4d4d8 !important;
}

[data-theme="dark"] .rank-card {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .rank-table thead th {
  background: #1f1f23 !important;
  color: #71717a !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .rank-table tbody td {
  color: #d4d4d8 !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] .rank-table tbody td:first-child {
  color: #71717a !important;
}

[data-theme="dark"] .rank-table tbody td:nth-child(3) {
  color: #d946ef !important;
}

[data-theme="dark"] .rank-table tbody td:nth-child(4) {
  color: #71717a !important;
}

[data-theme="dark"] .rank-table tbody tr:hover {
  background: #1f1f23 !important;
}

[data-theme="dark"] .rank-empty {
  color: #52525b;
}

/* "2026년 04월 크루 포인트 랭킹" 제목 */
[data-theme="dark"] [style*="color:#333"],
[data-theme="dark"] [style*="color: #333"] {
  color: #d4d4d8 !important;
}

/* ===== 권한 없음 (no_permision.php) ===== */
/* 카드 배경 */
[data-theme="dark"] [style*="border:1px solid #e5e7eb"][style*="background:#fff"],
[data-theme="dark"] [style*="border:1px solid #e5e7eb"][style*="background: #fff"] {
  background: #1f1f23 !important;
  border-color: #27272a !important;
}

/* 제목 (color:#111) */
[data-theme="dark"] h3[style*="color:#111"] {
  color: #e4e4e7 !important;
}

/* 설명 텍스트 */
[data-theme="dark"] p[style*="color:#6b7280"] {
  color: #71717a !important;
}

/* 내부 박스 (#f9fafb 배경) */
[data-theme="dark"] [style*="background:#f9fafb"] {
  background: #18181b !important;
  border-color: #27272a !important;
}

/* 초록 안내 박스 */
[data-theme="dark"] [style*="background:#f0fdf4"] {
  background: #0a1f0f !important;
  border-color: #166534 !important;
}

/* 뒤로가기/로그인 흰색 버튼 */
[data-theme="dark"] a[style*="background:#fff"][style*="border:1px solid #e5e7eb"] {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* 테두리가 너무 하얀 문제 - 전역 #e5e7eb 테두리 다크 */
[data-theme="dark"] [style*="border:1px solid #e5e7eb"],
[data-theme="dark"] [style*="border: 1px solid #e5e7eb"] {
  border-color: #27272a !important;
}

/* 2026-04-09: NT 파라미터 생성기 다크모드 */
[data-theme="dark"] .nt-page-title { color: #f3f4f6; }
[data-theme="dark"] .nt-section-title { color: #f3f4f6; }
[data-theme="dark"] .nt-card {
  background: #18181b;
  border-color: #27272a;
  box-shadow: none;
}
[data-theme="dark"] .nt-param-table {
  border-color: #27272a;
}
[data-theme="dark"] .nt-param-table th {
  background: #1f1f23;
  color: #a1a1aa;
  border-bottom-color: #27272a;
}
[data-theme="dark"] .nt-param-table td {
  color: #d4d4d8;
  border-bottom-color: #27272a;
}
[data-theme="dark"] .nt-param-table tr:hover td {
  background: #1f1f23;
}
[data-theme="dark"] .nt-label { color: #d4d4d8; }
[data-theme="dark"] .nt-label-sub { color: #71717a; }
[data-theme="dark"] .nt-input {
  background: #1f1f23;
  border-color: #27272a;
  color: #f3f4f6;
}
[data-theme="dark"] .nt-input::placeholder { color: #52525b; }
[data-theme="dark"] .nt-hint { color: #71717a; }
[data-theme="dark"] .nt-result-box {
  background: #1f1f23;
  border-color: #27272a;
}
[data-theme="dark"] .nt-result-url {
  background: #18181b;
  border-color: #27272a;
  color: #d4d4d8;
}
[data-theme="dark"] .nt-page p { color: #a1a1aa; }

/* ===== 스크롤바 (전체 요소) ===== */
/* 2026-04-09 lec 사이드바 등 개별 스크롤 영역도 다크모드 적용 */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background-color: #18181b;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: #3f3f46;
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-color: #52525b;
}
[data-theme="dark"] * {
  scrollbar-color: #3f3f46 #18181b;
}

/* ===== lec 페이지 (#doc-view-page) 다크모드 ===== */
/* 2026-04-09 lec 페이지 다크모드 즉시 적용 */
[data-theme="dark"] #doc-view-page {
  background: #09090b;
}

/* 사이드바 배경 */
[data-theme="dark"] #lec_sidebar {
  background-color: #18181b !important;
}

/* 사이드바 검색영역 */
[data-theme="dark"] #lec_sidebar .left-menu-width.border-b {
  background-color: #18181b !important;
  border-bottom-color: #27272a !important;
}
[data-theme="dark"] #lec_sidebar .sch_input {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}
[data-theme="dark"] #lec_sidebar .sch_input::placeholder {
  color: #52525b !important;
}
[data-theme="dark"] #lec_sidebar #schBtn {
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}
[data-theme="dark"] #lec_sidebar #schBtn:hover {
  background-color: #27272a !important;
  color: #e4e4e7 !important;
}

/* 사이드바 메뉴 목록 영역 */
[data-theme="dark"] #lec_sidebar .menu-inner {
  background-color: #18181b !important;
}

/* 분류 타이틀 */
[data-theme="dark"] #lec_sidebar .lec-nav .text-gray-800 {
  color: #e4e4e7 !important;
}
[data-theme="dark"] #lec_sidebar .lec-nav .bg-gray-100 {
  background-color: #1f1f23 !important;
  border-top-color: #27272a !important;
  border-bottom-color: #27272a !important;
}

/* 목록 아이템 */
[data-theme="dark"] #lec_sidebar .lec-item {
  border-bottom-color: #27272a !important;
}
[data-theme="dark"] #lec_sidebar .lec-item:hover {
  background-color: #1f1f23 !important;
}
[data-theme="dark"] #lec_sidebar .lec-item .text-gray-700,
[data-theme="dark"] #lec_sidebar .lec-item .truncate {
  color: #d4d4d8 !important;
}
[data-theme="dark"] #lec_sidebar .lec-item .text-gray-500 {
  color: #a1a1aa !important;
}
[data-theme="dark"] #lec_sidebar .lec-item .text-gray-400 {
  color: #71717a !important;
}
[data-theme="dark"] #lec_sidebar .lec-item .text-gray-300 {
  color: #52525b !important;
}

/* 활성/현재 항목 */
[data-theme="dark"] #lec_sidebar .lec-item.active,
[data-theme="dark"] #lec_sidebar .lec-item.here {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-left-color: #22c55e !important;
}
[data-theme="dark"] #lec_sidebar .lec-item.active .truncate,
[data-theme="dark"] #lec_sidebar .lec-item.here .truncate {
  color: #4ade80 !important;
  font-weight: 500;
}

/* 사이드바 닫기 버튼 */
[data-theme="dark"] #sidebarCloseBtn button {
  color: #a1a1aa !important;
}
[data-theme="dark"] #sidebarCloseBtn button:hover {
  color: #e4e4e7 !important;
  background-color: #27272a !important;
}

/* 사이드바 토글 (열기/닫기) */
[data-theme="dark"] .close_wrap button {
  background-color: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .close_wrap button:hover {
  background-color: rgba(255,255,255,0.15) !important;
}

/* 메인 콘텐츠 영역 */
[data-theme="dark"] #mainContent {
  background-color: #09090b !important;
}

/* 모바일 목록 버튼 바 */
[data-theme="dark"] #mainContent > .bg-white {
  background-color: #18181b !important;
  border-bottom-color: #27272a !important;
}
[data-theme="dark"] #menuBtn {
  color: #d4d4d8 !important;
  border-color: #3f3f46 !important;
}
[data-theme="dark"] #menuBtn:hover {
  background-color: #27272a !important;
}

/* 메모 모달 다크모드 */
[data-theme="dark"] .memo .memo-box {
  background-color: #1f1f23 !important;
  border-color: #27272a !important;
}
[data-theme="dark"] .memo .memo-box .border-b,
[data-theme="dark"] .memo .memo-box .border-t {
  border-color: #27272a !important;
}
[data-theme="dark"] .memo .memo-box h2 {
  color: #e4e4e7 !important;
}
[data-theme="dark"] .memo .memo-box textarea {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}
[data-theme="dark"] .memo .memo-box .memo-close {
  color: #a1a1aa !important;
}
[data-theme="dark"] .memo .memo-box .bg-white {
  background-color: #27272a !important;
  color: #d4d4d8 !important;
}

/* 사이드바 그림자 */
@media (min-width: 768px) {
  [data-theme="dark"] #lec_sidebar {
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3), -4px 0 12px rgba(0, 0, 0, 0.2) !important;
  }
}
@media (max-width: 767px) {
  [data-theme="dark"] #lec_sidebar.mobile-open {
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4) !important;
  }
}
