/* =====================================================
   티켓세상 - 대출나라 스타일 참고 리디자인
   색상: 흰색 배경 + 초록 포인트
   ===================================================== */

/* ===== 기본 변수 ===== */
:root {
  --green: #25A000;
  --green-dark: #1e8a00;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;
  --text: #111827;
  --text-sub: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 최상단 유틸바 ===== */
.top-util-bar {
  background: #1e8a00;
  color: #fff;
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}

.top-util-text {
  color: rgba(255,255,255,0.8);
  margin-right: 12px;
}

.top-util-link {
  color: #fff;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 700;
  font-size: 13px;
}

.top-util-link:hover { color: #bbf7d0; }
.top-util-link.accent { color: #bbf7d0; }

/* ===== 헤더 ===== */
.brand-header {
  background: #fff;
  border-bottom: 2px solid var(--green);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.brand-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo-circle {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.brand-top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-top-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
}

.brand-top-links a:hover { color: var(--green); }

/* ===== 네비게이션 바 ===== */
.main-category-bar {
  background: var(--green);
  border-bottom: none;
}

.main-category-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-category-list li a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.main-category-list li a:hover,
.main-category-list li a.active {
  background: rgba(0,0,0,0.15);
  color: #fff;
}

/* ===== 히어로 섹션 ===== */
.tk-hero {
  background: linear-gradient(135deg, #1a5c00 0%, #25A000 60%, #2db800 100%);
  padding: 52px 0 36px;
  position: relative;
  overflow: hidden;
}

.tk-hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.tk-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -100px;
  left: 5%;
  pointer-events: none;
}

.tk-hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tk-hero__eyebrow {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin-bottom: 12px;
}

.tk-hero__title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.tk-hero__title span {
  color: #bbf7d0;
}

.tk-hero__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tk-hero__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tk-hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  margin-right: 4px;
}

.tk-hero__stat-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.tk-hero__stat-unit {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.tk-hero__stat-sep {
  color: rgba(255,255,255,0.3);
  font-size: 18px;
}

.tk-hero__notice {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.tk-hero__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tk-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.tk-hero__btn--primary {
  background: #fff;
  color: var(--green);
  border: 2px solid #fff;
}

.tk-hero__btn--primary:hover {
  background: #f0fdf4;
  color: var(--green-dark);
}

.tk-hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.tk-hero__btn--outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* 프리미엄 히어로 카드 */
.tk-premium-hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(6px);
  color: #fff;
}

.tk-premium-hero-card__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tk-premium-hero-card__title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.tk-premium-hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tk-premium-hero-card__tags span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.tk-premium-hero-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tk-premium-hero-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  background: #fff;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.tk-premium-hero-card__btn:hover {
  background: #f0fdf4;
  color: var(--green-dark);
}

/* 히어로 하단 바로가기 */
.tk-hero__quick {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.tk-hero__quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
}

.tk-hero__quick-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.tk-hero__quick-icon {
  font-size: 20px;
}

/* ===== 섹션 공통 ===== */
.tk-section {
  padding: 44px 0;
  background: #fff;
}

.tk-section--gray {
  background: var(--bg-gray);
}

.tk-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tk-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tk-section__bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

.tk-section__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  color: var(--text);
}

.tk-section__sub {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}

.tk-section__more {
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.tk-section__more:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ===== 업체 카드 그리드 ===== */
.tk-company-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tk-company-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.tk-company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tk-company-card__img-wrap {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.tk-company-card__img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.tk-company-card__img-bg--premium {
  background: linear-gradient(135deg, #1a5c00, #25A000);
}

.tk-company-card__img-bg--active {
  background: linear-gradient(135deg, #1e8a00, #2db800);
}

.tk-company-card__img-bg--inactive {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.tk-company-card__img-title {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.tk-company-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.tk-company-card__badge--premium {
  background: #f59e0b;
}

.tk-company-card__badge--gray {
  background: #9ca3af;
}

.tk-company-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.tk-company-card__desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.tk-company-card__phone {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.tk-company-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: auto;
}

.tk-company-card__name {
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

.tk-company-card__region {
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.tk-company-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.tk-company-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}

.tk-company-card__btn--line {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--green);
}

.tk-company-card__btn--line:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.tk-company-card__btn--fill {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.tk-company-card__btn--fill:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ===== 시세 테이블 ===== */
.tk-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tk-price-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tk-price-box .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tk-price-box .carousel-inner {
  flex: 1;
  min-height: 260px;
}

.tk-price-box .carousel-item {
  height: 260px;
}

.tk-price-box .carousel-item table {
  height: 100%;
}

.tk-price-box .tk-empty-box {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 14px;
}

.tk-price-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--green-light);
  border-bottom: 1px solid var(--green-border);
}

.tk-price-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.tk-price-box__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.tk-price-box__date {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}

.tk-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tk-price-table thead th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: center;
  font-weight: 800;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.tk-price-table tbody td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
}

.tk-price-table tbody tr:last-child td {
  border-bottom: none;
}

.tk-price-table tbody tr:hover td {
  background: var(--green-light);
}

.tk-price-table__buy {
  color: #16a34a;
  font-weight: 800 !important;
}

.tk-price-table__sell {
  color: #dc2626;
  font-weight: 800 !important;
}

.tk-price-table__rate {
  font-size: 11px;
  opacity: 0.7;
}

.tk-price-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.tk-price-nav__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
}

.tk-price-nav__btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.tk-price-nav__page {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

/* ===== 게시판 ===== */
.tk-board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tk-board-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tk-board-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 2px solid var(--green);
}

.tk-board-box__title {
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  color: var(--text);
}

.tk-board-box__more {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.tk-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tk-board-item {
  border-bottom: 1px solid #f3f4f6;
}

.tk-board-item:last-child {
  border-bottom: none;
}

.tk-board-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: background 0.12s;
}

.tk-board-item__link:hover {
  background: var(--green-light);
  color: var(--text);
}

.tk-board-item__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.tk-board-item__date {
  font-size: 12px;
  color: var(--text-sub);
  flex-shrink: 0;
  margin-left: 8px;
}

.tk-board-item--empty {
  padding: 16px;
  color: var(--text-sub);
  font-size: 14px;
  text-align: center;
}

/* ===== 빈 박스 ===== */
.tk-empty-box {
  padding: 40px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  background: #f9fafb;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  grid-column: 1 / -1;
}

/* ===== 푸터 ===== */
.ts-footer {
  background: #1a1a1a;
  color: #9ca3af;
  margin-top: 0;
}

.ts-shortcut-section {
  background: #222;
  padding: 24px 0;
  border-bottom: 1px solid #333;
}

.ts-shortcut-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.visitor-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.visitor-label {
  color: #9ca3af;
  font-weight: 700;
}

.visitor-value {
  color: #4ade80;
  font-weight: 900;
}

.visitor-divider {
  color: #444;
}

.ts-shortcut-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-shortcut-title .bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--green);
  border-radius: 2px;
}

.ts-shortcut-title h3 {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.shortcut-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 10px 16px;
  text-decoration: none;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}

.shortcut-item:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.shortcut-item .icon {
  font-size: 18px;
}

.ts-footer-links {
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

.ts-footer-links .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ts-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.ts-footer-links a:hover { color: #fff; }

.ts-footer-links span {
  color: #444;
}

.ts-footer-bottom {
  padding: 20px 0;
}

.ts-footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ts-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-footer-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ts-footer-logo-text {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.ts-footer-copy {
  font-size: 12px;
  color: #6b7280;
}

/* ===== 모바일 메뉴 ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu-head,
.mobile-menu-util,
.mobile-menu-brand,
.mobile-menu-close,
.mobile-menu-backdrop {
  display: none;
}

/* ===== 사이드 위젯 ===== */
.side-company-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
}

.side-company-widget__top {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.widget-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
}

.side-company-widget__sub {
  font-size: 11px;
  opacity: 0.8;
}

.side-company-widget__head {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.side-company-tab {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
}

.side-company-tab.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}

.side-company-widget__body {
  max-height: 200px;
  overflow-y: auto;
}

.side-company-panel {
  display: none;
}

.side-company-panel.active {
  display: block;
}

.side-company-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-company-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s;
}

.side-company-item:hover { background: var(--green-light); }

.side-company-item__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-company-item__arrow {
  color: var(--green);
  font-size: 16px;
}

.side-company-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 12px;
}

.side-company-widget__bottom {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.side-company-more {
  display: block;
  text-align: center;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* ===== 관리자 페이지 (adm) ===== */
.tabsx {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}

.tabsx a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tabsx a.active,
.tabsx a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
  .tk-company-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .tk-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tk-company-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tk-price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand-top-links { display: none; }

  .mobile-menu-toggle { display: flex; }

  .main-category-bar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 500;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 0;
  }

  .main-category-bar.is-open {
    left: 0;
  }

  .main-category-list {
    flex-direction: column;
    gap: 0;
  }

  .main-category-list li a {
    color: var(--text);
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }

  .main-category-list li a:hover,
  .main-category-list li a.active {
    background: var(--green-light);
    color: var(--green);
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid var(--green);
    background: var(--green);
  }

  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
  }

  .mobile-menu-brand-icon {
    font-size: 24px;
  }

  .mobile-menu-brand-text strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
  }

  .mobile-menu-brand-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
  }

  .mobile-menu-close {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

  .mobile-menu-util {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: #f9fafb;
  }

  .mobile-menu-login-text {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
  }

  .mobile-menu-auth {
    display: flex;
    gap: 8px;
  }

  .mobile-menu-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
  }

  .mobile-menu-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
  }

  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 499;
  }

  .mobile-menu-backdrop.is-open {
    display: block;
  }

  .tk-hero {
    padding: 36px 0 28px;
  }

  .tk-hero__title {
    font-size: 26px;
  }

  .tk-hero__stats {
    gap: 12px;
    padding: 12px 14px;
  }

  .tk-hero__stat-num {
    font-size: 18px;
  }

  .tk-company-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tk-board-grid {
    grid-template-columns: 1fr;
  }

  .tk-hero__quick {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .tk-company-grid {
    grid-template-columns: 1fr;
  }

  .tk-hero__title {
    font-size: 22px;
  }

  .tk-hero__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tk-hero__stat-sep {
    display: none;
  }
}

/* ===== 프리미엄 업체 페이지 ===== */
.ts-premium-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ts-premium-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-premium-title .bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--green);
  border-radius: 2px;
}

.ts-premium-title h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

.ts-premium-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ts-premium-card {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}

.ts-premium-card:hover {
  box-shadow: 0 6px 24px rgba(37,160,0,0.13);
  transform: translateY(-3px);
}

.ts-premium-card-top {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, #1a5c00 0%, #25a000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ts-premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 8px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
}

.ts-premium-name {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ts-premium-card-body {
  padding: 14px 12px 12px;
}

.ts-premium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.ts-premium-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
}

.ts-premium-desc {
  min-height: 40px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.ts-premium-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ts-premium-btn {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  transition: all 0.15s;
}

.ts-premium-btn.line {
  border: 1px solid var(--green-border);
  background: #fff;
  color: var(--green);
}

.ts-premium-btn.fill {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.ts-premium-btn.fill:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.ts-premium-btn.line:hover {
  background: var(--green-light);
  color: var(--green);
}

@media (max-width: 1200px) {
  .ts-premium-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .ts-premium-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ts-premium-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .ts-premium-grid { grid-template-columns: 1fr; }
}

/* ===== 업체정보 상세보기 모달 ===== */
.tk-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tk-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.tk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.tk-modal-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

.tk-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.tk-modal-close:hover {
  color: var(--text);
}

.tk-modal-body {
  padding: 0;
}

.tk-modal-table {
  width: 100%;
  border-collapse: collapse;
}

.tk-modal-table th,
.tk-modal-table td {
  padding: 14px 22px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  vertical-align: middle;
}

.tk-modal-table th {
  width: 150px;
  min-width: 150px;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 700;
  background: #fafafa;
}

.tk-modal-table td {
  color: var(--text);
  font-weight: 600;
}

.tk-modal-table tr:last-child th,
.tk-modal-table tr:last-child td {
  border-bottom: none;
}

.tk-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #1a1a2e;
  flex-wrap: wrap;
}

.tk-modal-footer-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.tk-modal-footer-badge {
  display: block;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 2px;
}

.tk-modal-footer-text strong {
  color: #fff;
  font-weight: 900;
}

.tk-modal-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.tk-modal-call-btn:hover {
  background: var(--green-dark);
  color: #fff;
}

@media (max-width: 480px) {
  .tk-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
