@charset "utf-8";

/* ============================================
   TOTO-SHOP Custom Skin Styles
   Bootstrap 4 based / Responsive
   ============================================ */

/* overflow-x:hidden → clip 전환 (position:sticky 동작을 위해 필수) */
.responsive .wrapper {
	overflow-x: clip !important;
}

/* --------------------------------------------
   0. 서브메뉴 Pill 탭 (글로벌 Toss-style 완전 오버라이드)
   -------------------------------------------- */

/* 컨테이너 리셋 (글로벌 border-bottom, border-radius 제거) */
.na-top-sidemenu {
	background: transparent !important;
	border: none !important;
	border-bottom: none !important;
	border-radius: 0 !important;
	padding: 16px 16px 8px !important;
}
.na-top-sidemenu #nt_side_menu {
	margin: 0 !important;
}
.na-top-sidemenu #nt_side_menu > .bg-primary {
	display: none !important;
}

/* 탭 컨테이너 */
.na-top-sidemenu #nt_side_menu .me-ul {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	border: none !important;
	border-bottom: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
}

/* 구조 리셋 (글로벌 display:contents 오버라이드) */
.na-top-sidemenu #nt_side_menu .me-li {
	display: block !important;
	flex: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.na-top-sidemenu #nt_side_menu .me-ul1 {
	display: block !important;
}
.na-top-sidemenu #nt_side_menu .me-ul1.off {
	display: block !important;
}
.na-top-sidemenu #nt_side_menu .me-li1 {
	display: block !important;
}
.na-top-sidemenu #nt_side_menu .tree-toggle {
	display: none !important;
}
.na-top-sidemenu #nt_side_menu .me-line1 {
	display: none !important;
}

/* Inactive pill */
.na-top-sidemenu #nt_side_menu a.me-a,
.na-top-sidemenu #nt_side_menu a.me-a1 {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.4rem !important;
	height: 44px !important;
	padding: 0 18px !important;
	border: 1px solid #E6EAF0 !important;
	border-bottom: 1px solid #E6EAF0 !important;
	border-radius: 9999px !important;
	margin-bottom: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	background: #fff !important;
	transition: all 0.15s ease !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	letter-spacing: -0.2px !important;
	box-shadow: none !important;
}

/* Hover */
.na-top-sidemenu #nt_side_menu .me-li:not(.active) a.me-a:hover,
.na-top-sidemenu #nt_side_menu .me-li1:not(.active) a.me-a1:hover {
	background: #EAF0FF !important;
	border-color: #D6E4FF !important;
	color: #475569 !important;
}

/* Active pill */
.na-top-sidemenu #nt_side_menu .me-li.active a.me-a,
.na-top-sidemenu #nt_side_menu .me-li.active a.me-a:link,
.na-top-sidemenu #nt_side_menu .me-li.active a.me-a:visited,
.na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1,
.na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:link,
.na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:visited {
	background: #EAF0FF !important;
	border-color: #CFE0FF !important;
	color: #2563EB !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}
.na-top-sidemenu #nt_side_menu .me-li.active a.me-a:hover,
.na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:hover {
	background: #dce6ff !important;
	border-color: #CFE0FF !important;
	color: #2563EB !important;
}

/* 아이콘 숨기기 */
.na-top-sidemenu #nt_side_menu .me-a .fa.empty,
.na-top-sidemenu #nt_side_menu .me-a1 .fa.empty {
	display: none !important;
}

/* 하단 여백 리셋 */
.na-top-sidemenu + .row.na-row {
	margin: 0 !important;
}
.na-top-sidemenu + .row.na-row > .na-col {
	padding: 0 !important;
}

@media (max-width: 575px) {
	.na-top-sidemenu {
		padding: 12px 12px 6px !important;
	}
	.na-top-sidemenu #nt_side_menu a.me-a,
	.na-top-sidemenu #nt_side_menu a.me-a1 {
		height: 38px !important;
		padding: 0 14px !important;
		font-size: 13px !important;
	}
}

/* --------------------------------------------
   1. Site Info Section
   -------------------------------------------- */
.ts-site-info .row {
	min-height: 200px;
}

.ts-site-image-wrap {
	overflow: hidden;
	background: #f8f9fa;
}

.ts-site-image {
	width: 100%;
	height: 100%;
	min-height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.ts-site-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 200px;
	max-height: 300px;
}

.ts-no-image {
	background: #f0f0f0;
	min-height: 200px;
}

/* 게시글 제목 (최상단) */
.ts-post-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #222;
	margin: 0;
	line-height: 1.4;
}

.ts-rating-display {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.ts-rating-display .fa {
	font-size: 1.1rem;
}

.ts-rating-score {
	font-size: 1.2rem;
	color: #3182f6;
}

.ts-info-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ts-info-label {
	font-weight: 600;
	color: #555;
	font-size: 0.9rem;
	min-width: 90px;
}

.ts-info-label i {
	width: 18px;
	text-align: center;
	color: #999;
}

.ts-info-value {
	color: #333;
	font-size: 0.95rem;
}

/* 사이트명 강조 */
.ts-sitename-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #222;
}

/* 정보 아코디언 (가입코드 박스 내부) */
.ts-info-accordion {
	border-top: 1px solid #f0f0f0;
	padding-top: 0.5rem;
}

.ts-accordion-item {
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	margin-bottom: 0.4rem;
	overflow: hidden;
	background: #fff;
}

.ts-accordion-item:last-child {
	margin-bottom: 0;
}

.ts-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: none;
	background: #f8f9fa;
	font-size: 0.85rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ts-accordion-header:hover {
	background: #f0f6ff;
	color: #3182f6;
}

.ts-accordion-item.open .ts-accordion-header {
	background: #3182f6;
	color: #fff;
}

.ts-accordion-header i.mr-1 {
	width: 16px;
	text-align: center;
}

.ts-accordion-chevron {
	font-size: 0.7rem;
	transition: transform 0.3s ease;
}

.ts-accordion-item.open .ts-accordion-chevron {
	transform: rotate(180deg);
}

.ts-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.ts-accordion-panel-inner {
	padding: 1rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: #444;
}

.ts-accordion-panel-inner p {
	margin-bottom: 0.6rem;
}

.ts-accordion-panel-inner ul {
	padding-left: 1.2rem;
	margin-bottom: 0.6rem;
}

.ts-accordion-panel-inner li {
	margin-bottom: 0.3rem;
}

.ts-accordion-panel-inner strong {
	color: #222;
}

@media (max-width: 575px) {
	.ts-accordion-header {
		padding: 0.55rem 0.65rem;
		font-size: 0.78rem;
	}

	.ts-accordion-panel-inner {
		padding: 0.8rem 0.65rem;
		font-size: 0.85rem;
	}
}

.ts-site-link {
	color: #3182f6;
	text-decoration: none;
	word-break: break-all;
}

.ts-site-link:hover {
	color: #1b6ce3;
	text-decoration: underline;
}

.ts-code-badge {
	background: #fff3cd;
	color: #856404;
	padding: 0.2rem 0.6rem;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid #ffc107;
	letter-spacing: 1px;
}

.ts-copy-btn {
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 8px;
}

/* --------------------------------------------
   2. Info Buttons (Accordion / Modals)
   -------------------------------------------- */
.ts-info-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	color: #495057;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.6rem 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 12px;
}

.ts-info-btn:hover {
	background: #3182f6;
	border-color: #3182f6;
	color: #fff;
}

.ts-info-btn:focus {
	box-shadow: 0 0 0 0.2rem rgba(49, 130, 246, 0.25);
}

.ts-info-btn .ts-chevron {
	transition: transform 0.3s ease;
	font-size: 0.75rem;
}

.ts-info-btn[aria-expanded="true"] .ts-chevron {
	transform: rotate(180deg);
}

.ts-accordion-body {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.ts-modal-header {
	background: #3182f6;
	color: #fff;
	border-bottom: none;
}

.ts-modal-header .close {
	color: #fff;
	opacity: 0.8;
}

.ts-modal-header .close:hover {
	opacity: 1;
}

/* --------------------------------------------
   3. Tab Section (Nav Tabs)
   -------------------------------------------- */
.ts-nav-tabs {
	border-bottom: 2px solid #dee2e6;
}

.ts-nav-tabs .nav-item {
	flex: 1;
	text-align: center;
}

.ts-nav-tabs .nav-link {
	color: #666;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.8rem 1rem;
	border: none;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.ts-nav-tabs .nav-link:hover {
	color: #3182f6;
	border-bottom-color: rgba(49, 130, 246, 0.3);
	background: transparent;
}

.ts-nav-tabs .nav-link.active {
	color: #3182f6;
	background: transparent;
	border-bottom-color: #3182f6;
	font-weight: 700;
}

.ts-nav-tabs .badge {
	font-size: 0.7rem;
	vertical-align: top;
}

.ts-tab-content {
	border: 1px solid #dee2e6;
	border-top: none;
	border-radius: 0 0 12px 12px;
	background: #fff;
	min-height: 200px;
}

.ts-tab-content > .tab-pane {
	padding: 0 1rem;
}

/* --------------------------------------------
   4. Recommend Slider
   -------------------------------------------- */
.ts-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #333;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #3182f6;
	display: inline-block;
}

.ts-recommend-slider {
	position: relative;
	overflow: hidden;
	padding: 0 2rem;
}

.ts-slider-track {
	display: flex;
	gap: 12px;
	transition: transform 0.3s ease;
	will-change: transform;
}

.ts-recommend-card {
	flex: 0 0 auto;
	width: 140px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #eee;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}

.ts-recommend-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ts-rec-thumb {
	width: 100%;
	height: 100px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ts-rec-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-rec-no-img {
	color: #ccc;
	font-size: 1.5rem;
}

.ts-rec-name {
	padding: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #333;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ts-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	z-index: 2;
	transition: background 0.2s;
}

.ts-slider-btn:hover {
	background: rgba(49, 130, 246, 0.8);
}

.ts-slider-prev {
	left: 0;
}

.ts-slider-next {
	right: 0;
}

/* --------------------------------------------
   5. Review Summary
   -------------------------------------------- */
.ts-review-summary {
	background: #f8f9fa;
	border-radius: 16px;
	padding: 1.5rem;
	border: 1px solid #eee;
}

.ts-avg-rating-big {
	font-size: 3rem;
	font-weight: 800;
	color: #3182f6;
	line-height: 1;
}

.ts-avg-rating-big + .ts-stars-static .fa {
	font-size: 1.2rem;
}

.ts-rating-label {
	font-size: 0.8rem;
	color: #666;
	min-width: 28px;
	text-align: right;
}

.ts-rating-bar {
	height: 8px;
	border-radius: 4px;
	background: #e9ecef;
}

.ts-rating-bar .progress-bar {
	border-radius: 4px;
}

.ts-rating-count {
	font-size: 0.8rem;
	color: #666;
	min-width: 24px;
	text-align: right;
}

.ts-write-review-btn {
	background: #3182f6;
	border-color: #3182f6;
	font-weight: 600;
	padding: 0.6rem 2rem;
	border-radius: 12px;
	transition: all 0.2s;
}

.ts-write-review-btn:hover {
	background: #1b6ce3;
	border-color: #1b6ce3;
	transform: translateY(-1px);
}

/* --------------------------------------------
   6. Review Cards (카드형 리뷰)
   -------------------------------------------- */
.ts-review-list .ts-review-card {
	padding: 0;
	margin-bottom: 0;
	transition: background 0.15s;
}

.ts-review-list .ts-review-card:hover {
	background: #fafafa;
}

.ts-review-body {
	position: relative;
}

.ts-review-left {
	min-width: 100px;
}

.ts-review-stars .fa {
	font-size: 0.9rem;
}

.ts-review-author {
	color: #555;
}

.ts-review-right {
	white-space: nowrap;
}

.ts-review-content {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #333;
	word-break: break-word;
}

/* Review images (thumbnails) */
.ts-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ts-review-thumb {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #eee;
	transition: border-color 0.2s, transform 0.2s;
}

.ts-review-thumb:hover {
	border-color: #3182f6;
	transform: scale(1.05);
}

.ts-review-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-review-img-inline {
	max-width: 200px;
	border-radius: 8px;
	margin: 0.25rem 0;
}

/* Helpful Button (도움이됐어요) */
.ts-helpful-wrap {
	display: flex;
}

.ts-helpful-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 0.35rem 1rem;
	font-size: 0.82rem;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ts-helpful-btn:hover {
	border-color: #3182f6;
	color: #3182f6;
	background: #f0f6ff;
}

.ts-helpful-btn i {
	font-size: 0.9rem;
}

.ts-helpful-count {
	font-weight: 700;
	color: #3182f6;
	min-width: 16px;
	text-align: center;
}

/* by-writer badge */
.by-writer {
	background: rgba(49, 130, 246, 0.05);
}

/* --------------------------------------------
   7. Review Form
   -------------------------------------------- */
.ts-review-form {
	background: #f8f9fa;
	border: 1px solid #eee;
	border-radius: 16px;
}

.ts-form-title {
	font-size: 1rem;
	font-weight: 700;
	color: #333;
}

/* Star rating input */
.ts-rating-select {
	padding: 0.5rem 0;
}

.ts-star-input .ts-star-btn {
	font-size: 1.5rem;
	color: #ddd;
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
	padding: 0 2px;
}

.ts-star-input .ts-star-btn:hover,
.ts-star-input .ts-star-btn.hovered {
	color: #ffc107;
	transform: scale(1.15);
}

.ts-star-input .ts-star-btn.selected {
	color: #ffc107;
}

.ts-rating-text {
	font-weight: 600;
	transition: color 0.2s;
}

/* Upload preview */
.ts-upload-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ts-upload-preview-item {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	border: 1px solid #ddd;
}

.ts-upload-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-upload-preview-item .ts-remove-preview {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	border: none;
	font-size: 0.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
}

/* Image preview modal */
.ts-image-preview-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.85);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ts-image-preview-overlay img {
	max-width: 90%;
	max-height: 90vh;
	border-radius: 12px;
	box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Benefit content */
.ts-benefit-content {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* --------------------------------------------
   8. Responsive
   -------------------------------------------- */
@media (max-width: 767px) {
	.ts-site-image img {
		max-height: 200px;
	}

	.ts-post-title {
		font-size: 1.15rem;
	}

	.ts-nav-tabs .nav-link {
		font-size: 0.85rem;
		padding: 0.6rem 0.5rem;
	}

	.ts-recommend-card {
		width: 110px;
	}

	.ts-rec-thumb {
		height: 75px;
	}

	.ts-review-left {
		min-width: auto;
	}

	.ts-review-thumb {
		width: 60px;
		height: 60px;
	}

	.ts-avg-rating-big {
		font-size: 2.2rem;
	}

	.ts-review-summary {
		padding: 1rem;
	}

	.ts-info-btn {
		font-size: 0.8rem;
		padding: 0.5rem;
	}

	.ts-slider-btn {
		width: 24px;
		height: 24px;
		font-size: 0.7rem;
	}

	.ts-recommend-slider {
		padding: 0 1.5rem;
	}

	.ts-star-input .ts-star-btn {
		font-size: 1.3rem;
	}
}

@media (max-width: 575px) {
	.ts-site-info .ts-info-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
	}

	.ts-info-label {
		min-width: auto;
	}
}

/* --------------------------------------------
   Section Navigation (Sticky Scroll Anchors)
   -------------------------------------------- */
/* z-index 정리: 네비바(#nt_sticky_wrap.me-sticky)=900 > 탭바=899 */
.ts-section-nav {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 0;
	z-index: 899;
	margin-top: 0;
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ts-nav-anchors {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 2px solid #eee;
}

.ts-nav-anchors .nav-item {
	flex: 1;
	text-align: center;
}

.ts-nav-anchors .nav-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: #666;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.75rem 1rem;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	border-radius: 0;
	transition: color 0.2s ease, border-color 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.ts-nav-anchors .nav-link:hover {
	color: #3182f6;
	border-bottom-color: rgba(49, 130, 246, 0.3);
	background: transparent;
	text-decoration: none;
}

.ts-nav-anchors .nav-link.active {
	color: #3182f6;
	border-bottom-color: #3182f6;
	font-weight: 700;
	background: transparent;
}

.ts-nav-anchors .nav-link .badge {
	font-size: 0.65rem;
	vertical-align: top;
}

/* Section body shared */
.ts-section-body {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 1rem;
	min-height: 100px;
}

.ts-benefit-section .ts-section-body {
	min-height: 150px;
}

@media (max-width: 767px) {
	.ts-nav-anchors .nav-link {
		font-size: 0.85rem;
		padding: 0.6rem 0.5rem;
	}

	.ts-nav-anchors .nav-link i.d-md-none {
		display: inline-block !important;
	}

	.ts-section-nav {
		border-radius: 0;
		margin-left: -1rem;
		margin-right: -1rem;
	}
}

/* --------------------------------------------
   Tab Pane (Content Switching)
   -------------------------------------------- */
.ts-tab-pane {
	animation: tsFadeIn 0.3s ease;
}

@keyframes tsFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TOTO CARD LIST - 카드형 게시판 리스트
   ============================================ */

/* --------------------------------------------
   9. Card Grid Layout
   -------------------------------------------- */
#bo_card_grid {
	padding: 0 0.5rem;
}

/* Card Container */
.toto-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.toto-card-img {
	border-radius: 16px 16px 0 0;
}

.toto-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.toto-card-active {
	border-color: #3182f6;
	box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.2);
}

/* --------------------------------------------
   10. Card Image Area
   -------------------------------------------- */
.toto-card-img {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.toto-card-img > a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
}

.toto-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.toto-card:hover .toto-card-img img {
	transform: scale(1.08);
}

/* No image placeholder */
.toto-card-noimg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
	font-size: 2.5rem;
	background: #f0f0f0;
}

/* --------------------------------------------
   11. Category Badge (inline, 사이트명 좌측)
   -------------------------------------------- */
.toto-badge-inline {
	display: inline-block;
	vertical-align: middle;
	padding: 0.15rem 0.5rem;
	font-size: 0.68rem;
	font-weight: 700;
	border-radius: 6px;
	letter-spacing: 0.3px;
	line-height: 1.3;
	margin-right: 0.35rem;
	white-space: nowrap;
}

.toto-badge-verified {
	background: #28a745;
	color: #fff;
}

.toto-badge-normal {
	background: #6c757d;
	color: #fff;
}

/* Admin Badge Toggle */
.ts-badge-admin {
	display: inline-flex;
	align-items: center;
	position: relative;
	margin-left: 0.2rem;
	flex-shrink: 0;
}

.ts-badge-toggle-btn {
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 0.35rem;
	cursor: pointer;
	color: #999;
	font-size: 0.75rem;
	line-height: 1.4;
	transition: all 0.2s ease;
}

.ts-badge-toggle-btn:hover {
	border-color: #3182f6;
	color: #3182f6;
}

.ts-badge-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	padding: 0.35rem 0;
	min-width: 130px;
	margin-top: 4px;
}

.ts-badge-menu.open {
	display: block;
}

.ts-badge-menu button {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 0.4rem 0.85rem;
	font-size: 0.8rem;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.ts-badge-menu button:hover {
	background: #f5f5f5;
}

.ts-badge-menu button.active {
	color: #3182f6;
	font-weight: 700;
}

.ts-badge-menu button i {
	margin-right: 0.3rem;
	width: 14px;
	text-align: center;
}

/* --------------------------------------------
   12. Bookmark Button (top-right)
   -------------------------------------------- */
.toto-bookmark {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	color: #666;
	transition: all 0.2s ease;
	padding: 0;
}

.toto-bookmark:hover {
	background: #fff;
	color: #3182f6;
	transform: scale(1.1);
}

/* Admin checkbox (bottom-left) */
.toto-card-chk {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 2;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.toto-card-chk input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* --------------------------------------------
   13. Card Body
   -------------------------------------------- */
.toto-card-body {
	padding: 0.85rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.toto-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.35rem 0;
	line-height: 1.35;
	display: flex;
	align-items: center;
	position: relative;
}

.toto-card-title a {
	color: #222;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.toto-card-title a:hover {
	color: #3182f6;
}

.toto-card-desc {
	font-size: 0.8rem;
	color: #888;
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --------------------------------------------
   14. Star Rating in Card
   -------------------------------------------- */
.toto-card-rating {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: auto;
}

.toto-stars {
	display: inline-flex;
	gap: 1px;
}

.toto-stars .fa {
	font-size: 0.8rem;
	color: #ffc107;
}

.toto-stars .fa-star-o {
	color: #ddd;
}

.toto-rating-num {
	font-size: 0.82rem;
	font-weight: 700;
	color: #333;
}

.toto-card-rating .toto-rating-count {
	font-size: 0.75rem;
	color: #999;
	min-width: auto;
	text-align: left;
}

/* --------------------------------------------
   15. Card List Responsive
   -------------------------------------------- */

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
	#bo_card_grid > .col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

/* Mobile: single column, horizontal card */
@media (max-width: 575px) {
	#bo_card_grid {
		padding: 0;
	}

	#bo_card_grid > [class*="col-"] {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		margin-bottom: 0.75rem !important;
	}

	.toto-card {
		flex-direction: row;
		border-radius: 16px;
	}

	.toto-card-img {
		flex: 0 0 120px;
		width: 120px;
		aspect-ratio: auto;
		height: 120px;
		border-radius: 16px 0 0 16px;
	}

	.toto-card-body {
		padding: 0.75rem;
		justify-content: center;
	}

	.toto-card-title {
		font-size: 0.9rem;
	}

	.toto-badge-inline {
		font-size: 0.6rem;
		padding: 0.1rem 0.4rem;
		margin-right: 0.25rem;
	}

	.toto-bookmark {
		top: 8px;
		right: auto;
		left: 80px;
		width: 26px;
		height: 26px;
		font-size: 0.75rem;
	}

	.toto-card-chk {
		bottom: 8px;
		left: 8px;
	}
}

/* Medium mobile: restore grid */
@media (min-width: 576px) and (max-width: 767px) {
	.toto-card {
		flex-direction: column;
	}

	.toto-card-img {
		aspect-ratio: 1 / 1;
		height: auto;
		width: 100%;
	}
}

/* --------------------------------------------
   Scroll to Top Button
   -------------------------------------------- */
.ts-scroll-top {
	position: fixed;
	bottom: 28px;
	right: 375px;
	z-index: 1100;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #3182f6;
	color: #fff;
	font-size: 1.15rem;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(49, 130, 246, 0.35);
	display: none;
	align-items: center;
	justify-content: center;
}

.ts-scroll-top.visible {
	display: flex;
}

.ts-scroll-top:hover {
	background: #1b6ef3;
	box-shadow: 0 6px 20px rgba(49, 130, 246, 0.45);
}

@media (max-width: 768px) {
	.ts-scroll-top {
		right: 16px;
	}
}

/* ============================================================
   DARK MODE — html.dark-mode
   토토샵 보드 스킨 전체
   ============================================================ */

/* --- 서브메뉴 Pill 탭 다크모드 --- */
html.dark-mode .na-top-sidemenu {
	background: transparent !important;
}
html.dark-mode .na-top-sidemenu #nt_side_menu a.me-a,
html.dark-mode .na-top-sidemenu #nt_side_menu a.me-a1 {
	background: #25262b !important;
	border-color: #3a3b40 !important;
	color: #d1d5db !important;
}
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li:not(.active) a.me-a:hover,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li1:not(.active) a.me-a1:hover {
	background: #2c2d32 !important;
	border-color: #4b5563 !important;
	color: #e5e7eb !important;
}
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li.active a.me-a,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li.active a.me-a:link,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li.active a.me-a:visited,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:link,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:visited {
	background: rgba(59,130,246,0.15) !important;
	border-color: rgba(59,130,246,0.3) !important;
	color: #60a5fa !important;
	box-shadow: none !important;
}
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li.active a.me-a:hover,
html.dark-mode .na-top-sidemenu #nt_side_menu .me-li1.active a.me-a1:hover {
	background: rgba(59,130,246,0.2) !important;
}

/* --- 사이트 정보 섹션 --- */
html.dark-mode .ts-site-image-wrap {
	background: #25262b;
}
html.dark-mode .ts-no-image {
	background: #25262b;
}
html.dark-mode .ts-post-title {
	color: #e5e7eb;
}
html.dark-mode .ts-info-label {
	color: #9ca3af;
}
html.dark-mode .ts-info-label i {
	color: #6b7280;
}
html.dark-mode .ts-info-value {
	color: #d1d5db;
}
html.dark-mode .ts-sitename-value {
	color: #e5e7eb;
}
html.dark-mode .ts-site-link {
	color: #60a5fa;
}
html.dark-mode .ts-site-link:hover {
	color: #93c5fd;
}
html.dark-mode .ts-code-badge {
	background: #332d1a;
	color: #fbbf24;
	border-color: #5a4a1e;
}

/* --- 아코디언 --- */
html.dark-mode .ts-info-accordion {
	border-top-color: #333638;
}
html.dark-mode .ts-accordion-item {
	border-color: #333638;
	background: #1e1f23;
}
html.dark-mode .ts-accordion-header {
	background: #25262b;
	color: #9ca3af;
}
html.dark-mode .ts-accordion-header:hover {
	background: #2c2d32;
	color: #60a5fa;
}
html.dark-mode .ts-accordion-item.open .ts-accordion-header {
	background: #3b82f6;
	color: #fff;
}
html.dark-mode .ts-accordion-panel-inner {
	color: #d1d5db;
}
html.dark-mode .ts-accordion-panel-inner strong {
	color: #e5e7eb;
}
html.dark-mode .ts-accordion-body {
	background: #25262b;
	border-color: #333638;
}

/* --- 정보 버튼 --- */
html.dark-mode .ts-info-btn {
	background: #25262b;
	border-color: #3a3b40;
	color: #d1d5db;
}
html.dark-mode .ts-info-btn:hover {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}

/* --- 탭 네비게이션 --- */
html.dark-mode .ts-nav-tabs {
	border-bottom-color: #333638;
}
html.dark-mode .ts-nav-tabs .nav-link {
	color: #9ca3af;
}
html.dark-mode .ts-nav-tabs .nav-link:hover {
	color: #60a5fa;
}
html.dark-mode .ts-nav-tabs .nav-link.active {
	color: #60a5fa;
	border-bottom-color: #3b82f6;
}
html.dark-mode .ts-tab-content {
	background: #1e1f23;
	border-color: #333638;
}

/* --- 섹션 네비게이션 (스티키 앵커) --- */
html.dark-mode .ts-section-nav {
	background: #1e1f23;
	border-color: #333638;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
html.dark-mode .ts-nav-anchors {
	border-bottom-color: #333638;
}
html.dark-mode .ts-nav-anchors .nav-link {
	color: #9ca3af;
}
html.dark-mode .ts-nav-anchors .nav-link:hover {
	color: #60a5fa;
}
html.dark-mode .ts-nav-anchors .nav-link.active {
	color: #60a5fa;
	border-bottom-color: #3b82f6;
}
html.dark-mode .ts-section-body {
	background: #1e1f23;
	border-color: #333638;
}
html.dark-mode .ts-section-title {
	color: #e5e7eb;
}

/* --- 추천 슬라이더 --- */
html.dark-mode .ts-recommend-card {
	background: #25262b;
	border-color: #333638;
}
html.dark-mode .ts-recommend-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
html.dark-mode .ts-rec-thumb {
	background: #2c2d32;
}
html.dark-mode .ts-rec-name {
	color: #d1d5db;
}
html.dark-mode .ts-rec-no-img {
	color: #4b5563;
}

/* --- 리뷰 요약 --- */
html.dark-mode .ts-review-summary {
	background: #25262b;
	border-color: #333638;
}
html.dark-mode .ts-rating-label {
	color: #9ca3af;
}
html.dark-mode .ts-rating-bar {
	background: #3a3b40;
}
html.dark-mode .ts-rating-count {
	color: #9ca3af;
}

/* --- 리뷰 카드 --- */
html.dark-mode .ts-review-list .ts-review-card:hover {
	background: #25262b;
}
html.dark-mode .ts-review-author {
	color: #9ca3af;
}
html.dark-mode .ts-review-content {
	color: #d1d5db;
}
html.dark-mode .ts-review-thumb {
	border-color: #333638;
}
html.dark-mode .ts-review-thumb:hover {
	border-color: #3b82f6;
}
html.dark-mode .ts-helpful-btn {
	background: #25262b;
	border-color: #3a3b40;
	color: #9ca3af;
}
html.dark-mode .ts-helpful-btn:hover {
	border-color: #3b82f6;
	color: #60a5fa;
	background: rgba(59,130,246,0.1);
}

/* --- 리뷰 폼 --- */
html.dark-mode .ts-review-form {
	background: #25262b;
	border-color: #333638;
}
html.dark-mode .ts-form-title {
	color: #e5e7eb;
}
html.dark-mode .ts-star-input .ts-star-btn {
	color: #4b5563;
}
html.dark-mode .ts-upload-preview-item {
	border-color: #3a3b40;
}

/* --- 토토 카드 리스트 --- */
html.dark-mode .toto-card {
	background: #1e1f23;
	border-color: #333638;
}
html.dark-mode .toto-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
html.dark-mode .toto-card-active {
	border-color: #3b82f6;
}
html.dark-mode .toto-card-img {
	background: #25262b;
}
html.dark-mode .toto-card-noimg {
	background: #25262b;
	color: #4b5563;
}
html.dark-mode .toto-card-title a {
	color: #e5e7eb;
}
html.dark-mode .toto-card-title a:hover {
	color: #60a5fa;
}
html.dark-mode .toto-card-desc {
	color: #6b7280;
}
html.dark-mode .toto-rating-num {
	color: #d1d5db;
}
html.dark-mode .toto-card-rating .toto-rating-count {
	color: #6b7280;
}
html.dark-mode .toto-stars .fa-star-o {
	color: #4b5563;
}
html.dark-mode .toto-bookmark {
	background: rgba(30,31,35,0.85);
	color: #9ca3af;
}
html.dark-mode .toto-bookmark:hover {
	background: #25262b;
	color: #60a5fa;
}

/* --- 뱃지 관리 메뉴 --- */
html.dark-mode .ts-badge-toggle-btn {
	border-color: #3a3b40;
	color: #6b7280;
}
html.dark-mode .ts-badge-toggle-btn:hover {
	border-color: #3b82f6;
	color: #60a5fa;
}
html.dark-mode .ts-badge-menu {
	background: #25262b;
	border-color: #3a3b40;
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
html.dark-mode .ts-badge-menu button {
	color: #d1d5db;
}
html.dark-mode .ts-badge-menu button:hover {
	background: #2c2d32;
}
html.dark-mode .ts-badge-menu button.active {
	color: #60a5fa;
}

/* --- 혜택 콘텐츠 --- */
html.dark-mode .ts-benefit-content {
	color: #d1d5db;
}
html.dark-mode .by-writer {
	background: rgba(59,130,246,0.08);
}

/* --- 스크롤 탑 버튼 --- */
html.dark-mode .ts-scroll-top {
	background: #2c2d32;
	color: #9ca3af;
	box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
html.dark-mode .ts-scroll-top:hover {
	background: #3a3b40;
	color: #e5e7eb;
}