/* ================= 비회원 제한 박스 ================= */
.content{
background:#f5f5f5;
min-height:1200px;
}
.limit-box{
    position:relative;
    margin:30px 0;
    padding:50px 30px;
    border-radius:10px;
    background:
    linear-gradient(135deg,
    #f5f3ff 0%,
    #ede9fe 45%,
    #f8fafc 100%);
    border:1px solid #ddd6fe;
    text-align:center;
    overflow:hidden;
    box-shadow:
    0 18px 40px rgba(121,80,242,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* 배경 효과 */
.limit-box::before{
    content:'';
    position:absolute;
    top:-80px;
    right:-80px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(121,80,242,0.08);
}

.limit-box::after{
    content:'';
    position:absolute;
    bottom:-70px;
    left:-70px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(37,99,235,0.06);
}

/* 아이콘 */
.limit-icon{
    position:relative;
    z-index:2;
    width:95px;
    height:95px;
    margin:0 auto 28px;
    border-radius:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#7950f2,#6741d9);
    color:#fff;
    font-size:36px;
    box-shadow:
    0 14px 34px rgba(121,80,242,0.28),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 제목 */
.limit-title{
    position:relative;
    z-index:2;
    margin:0 0 16px;
    font-size:32px;
    font-weight:900;
    color:#4c1d95;
    line-height:1.4;
}

/* 설명 */
.limit-desc{
    position:relative;
    z-index:2;
    font-size:16px;
    color:#5b6475;
    line-height:2;
}

/* 잠금 아이콘 크기 */
.limit-icon .fa-lock{
    font-size:42px;
}

/* 모바일 */
@media(max-width:768px){

    .limit-icon .fa-lock{
        font-size:34px;
    }

}

/* 강조 */
.limit-desc b{
    color:#7c3aed;
    font-weight:800;
}

/* 버튼 영역 */
.limit-btn-wrap{
    position:relative;
    z-index:2;
    margin-top:32px;
}

/* 버튼 */
.limit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:15px 28px;
    border-radius:10px;
    background:linear-gradient(135deg,#7950f2,#6741d9);
    color:#fff !important;
    font-size:15px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 10px 26px rgba(121,80,242,0.25);
    transition:all .25s ease;
}

.limit-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 34px rgba(121,80,242,0.35);
}

/* 모바일 */
@media(max-width:768px){

    .limit-box{
        padding:38px 20px;
        border-radius:20px;
    }

    .limit-icon{
        width:78px;
        height:78px;

        font-size:30px;

        border-radius:22px;

        margin-bottom:22px;
    }

    .limit-title{
        font-size:25px;
    }

    .limit-desc{
        font-size:14px;
        line-height:1.9;
    }

    .limit-btn{
        width:100%;

        padding:14px 18px;

        font-size:14px;

        border-radius:14px;
    }

}

.wrap{max-width:100%;margin:0px auto;padding:0px}
table{width:100%;border-collapse:collapse;}
th,td{border:1px solid #ddd;padding:9px;text-align:center}
th{background:#f1f3f5;}
.keyword{text-align:left;font-weight:bold}
.badge{padding:8px 8px;border-radius:10px;color:#fff;font-size:12px}
.green{background:#2ecc71}
.red{background:#e74c3c}
.yellow{background:#f1c40f;color:#333}

/* =========================
   로딩 팝업
========================= */

.news-loading-popup{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.6);

    backdrop-filter:blur(5px);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:999999;
}

.news-loading-box{
    width:320px;

    padding:35px 30px;

    border-radius:28px;

    background:#fff;

    text-align:center;

    box-shadow:
    0 15px 50px rgba(0,0,0,0.25);

    animation:loadingPopupShow .25s ease;
}

.news-loading-spinner{
    width:65px;
    height:65px;

    margin:0 auto 25px;

    border-radius:50%;

    border:6px solid #eee;
    border-top:6px solid #7c4dff;

    animation:loadingSpin .8s linear infinite;
}

.news-loading-title{
    font-size:22px;
    font-weight:700;

    color:#222;

    margin-bottom:10px;
}

.news-loading-desc{
    font-size:14px;

    color:#777;

    margin-bottom:20px;

    min-height:20px;

    transition:.2s;
}

.loading-progress{
    width:100%;
    height:10px;

    background:#eee;

    border-radius:999px;

    overflow:hidden;
}

.loading-progress-bar{
    width:40%;
    height:100%;

    border-radius:999px;

    background:linear-gradient(
        90deg,
        #7c4dff,
        #b388ff
    );

    animation:loadingBar 1.2s linear infinite;
}

/* 애니메이션 */

@keyframes loadingSpin{

    to{
        transform:rotate(360deg);
    }
}

@keyframes loadingBar{

    0%{
        transform:translateX(-120%);
    }

    100%{
        transform:translateX(320%);
    }
}

@keyframes loadingPopupShow{

    from{
        opacity:0;
        transform:scale(.9);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}



th.sortable{
    cursor:pointer;
    position:relative;
    padding-right:18px;
}
th.sortable::after{
    content:'⇅';
    position:absolute;
    right:6px;
    color:#bbb;
    font-size:11px;
}
th.sortable.asc::after{
    content:'▲';
    color:#222;
}
th.sortable.desc::after{
    content:'▼';
    color:#222;
}
/* 검색 폼 */
.search-box{
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:20px;
}

.search-box input[type=text]{
    flex:1;
     width:100%;
    height:48px;
    border:1px solid #c7b8ff;
    border-radius:10px !important;
    padding:0 15px;
    box-sizing:border-box;
    font-size:15px;
    background:#f8f5ff;
    color:#2d1b69;
    box-shadow:none;
    transition:all .2s ease;
	font-weight:400;
}

.search-box input[type=text]:focus{
    outline:none;
    border-color:#7950f2;
    background:#fff;
    box-shadow:0 0 0 4px rgba(121,80,242,0.12);
}

.search-box button{
    height:48px;
    padding:0 20px;
    font-size:16px;
    border-radius:10px !important;
    border:none;
    cursor:pointer;
    background:#7950f2;
    color:#fff;
    transition:background .15s, box-shadow .15s;
}

/* 기존 .search-box button 스타일 위에 추가 */
.search-box button.rounded-btn {
    border-radius: 10px !important;
}


.search-box button:hover{
    background:#6c3ce9;
}

.search-box button:active{
    background:#6c3ce9;
}

.search-box button:disabled{
    background:#adb5bd;
    cursor:not-allowed;
}
.keyword-link{
    color:#0d6efd;
    text-decoration:none;
}
.keyword-link:hover{
    text-decoration:underline;
    color:#0b5ed7;
}

.fake-btn{
    display:inline-block;
    padding:8px 16px;
    background:#ffc107;
   color:#000 !important;   /* 🔥 이게 핵심 */
    font-weight:700;
    border-radius:10px;
	text-decoration:none !important;
}
.fake-btn:hover{
    background:#ffb300;
    color:#000;
}

/* 테이블 가로 스크롤 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS에서 부드럽게 */
}

.table-responsive table {
    width: 100%;
	background:#fff;
    min-width: 600px; /* 테이블 최소 너비 지정, 필요시 조정 */
}

.limit-card{
    max-width: 520px;
    margin: 40px auto;
    padding: 0 15px;
}

.limit-inner{
    background: #fff;
    border-radius:10px;
    padding: 35px 25px;
    text-align: center;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
	border:1px solid #d2d2d2;
}

.limit-icon{
    font-size: 40px;
    margin-bottom: 10px;
}

.limit-title{
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.limit-usage{
    margin-bottom: 15px;
}

.badge.big{
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 50px;
}

.limit-timer{
    background: #f8f9fc;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.limit-timer strong{
    display: block;
    font-size: 20px;
    margin-top: 5px;
    color: #7950f2;
}

.limit-desc{
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.limit-desc b{
    color: #7950f2;
}

.limit-btn{
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #7950f2, #9775fa);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
}

.limit-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(121,80,242,0.3);
}

/* 모바일 최적화 */
@media (max-width: 480px){

    .limit-inner{
        padding: 25px 18px;
    }

    .limit-title{
        font-size: 18px;
    }

    .limit-timer strong{
        font-size: 18px;
    }

    .limit-btn{
        font-size: 14px;
        padding: 12px;
    }
	/* 테이블 가로 스크롤 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS에서 부드럽게 */

border-left: 0px solid #d2d2d2;
border-right: 1px solid #d2d2d2;
border-top: 0px solid #d2d2d2 !important;
margin-bottom: 0px;
}
}

/* 강조 문구: 무제한으로 이용하세요 */
.highlight-btn {
    color: #fff;
    background: #ededed;
    padding: 10px 24px;        /* 위아래/좌우 패딩 */
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;       /* 버튼과 간격 */
    font-size: 16px;            /* 글자 크기 조정 */
    line-height: 1.6;           /* 높이 조절 */
    text-align: center;
}

/* 회원가입 버튼 */
.fake-btn {
    display: inline-block;
    padding: 12px 26px;         /* 버튼 높이/좌우 여유 공간 */
    font-size: 15px;            /* 글자 크기 */
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    background: #ffc107;
    color: #000;
    margin-bottom: 10px;
	margin-top: 20px;
    line-height: 1.5;           /* 버튼 높이 조정 */
    text-align: center;
}

.badge {
	font-weight: 400;
    }

/* 배지 색상 조건 */
.badge.primary {
    background-color: #0d6efd;
    color: #fff;
}

.badge.danger {
    background-color: #dc3545;
    color: #fff;
}


.card-body {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius:10px;
    margin-bottom: 20px;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
}

.keyword-title {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #212529;
    font-size: 25px; /* 기본 PC 글자 크기 */
}

.keyword-number-box {
    display: inline-block;
    background-color: #000; /* 네이버 색상 */
    color: #fff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 5px;
    font-size: 30px;
    vertical-align: middle;
}

/* 모바일용 조정 (화면 768px 이하) */
@media (max-width: 768px) {

   .keyword-title {
        font-size: 20px; /* 모바일에서 글자 작게 */
    }
    .keyword-number-box {
        font-size: 20px; /* 모바일에서 줄인 크기 */
           padding: 6px 10px;   /* 모바일에서 높이 줄임 */
    }
    .keyword-text {
        font-size: 20px; /* 모바일에서 줄인 크기 */
    }
}


.side-banner {
    margin: 20px 0;
}

.side-banner a {
    display: block;
    position: relative;
    width: 100%;
    height: 200px; /* 세로 크게 */
    border-radius: 10px;
    overflow: hidden;
    background: #ededed; /* 배경 (이미지 없을 때 대비) */
}

/* 전체 영역 */
.banner-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;  /* 가로 가운데 */
    align-items: center;      /* 세로 가운데 */
}

/* 광고 라벨 (좌측 상단 유지) */
.banner-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}

/* 중앙 텍스트 */
.banner-text {
    text-align: center;
    color: #000;
}

.banner-text strong {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 살짝 어두운 오버레이 */
.side-banner a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}


/* 전체 영역 */
.info-section{
    background:#fff;
    border: 1px solid #d2d2d2;
    border-radius:10px;
    padding: 55px 20px;
    margin:20px 0;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* 상단 */
.info-header{
    text-align:center;
    margin-bottom:100px;
}

.info-header h1{
    margin:0 0 14px;
    font-size:38px;
    font-weight:900;
    line-height:1.3;
    color:#111827;
}

.info-header .subtitle{
    margin:0 auto;
    font-size:16px;
    color:#6b7280;
    line-height:1.9;
	text-align:center;
}

/* 카드 그리드 */
.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

/* 카드 */
.info-card{
    position:relative;
    overflow:hidden; /* ⭐ 필수 */
    background:#f8fafc;
    border:1px solid #edf1f5;
    border-radius:20px;
    padding:28px 22px;
    transition:all .25s ease;
}

.info-card::before{
      content:"";
    position:absolute;
    top:0;
    left:-150%;
    width:60%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform:skewX(-20deg);
    pointer-events:none;
}

.info-card:hover{
   transform:translateY(-4px);
    background:#fff;
    border-color:#d8ccff;
    box-shadow:0 14px 28px rgba(121,80,242,0.08);
}

.info-card:hover::before{
    animation:guideShine .7s ease;
}

@keyframes guideShine{
    0%{
        left:-150%;
    }
    100%{
        left:150%;
    }
}

/* 아이콘 */
.guide-icon{
    width:78px;
    height:78px;
    margin:0 auto 24px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:30px;
    background:linear-gradient(135deg,#8b5cf6,#7950f2);
    box-shadow:0 12px 28px rgba(121,80,242,0.22);
}

/* 카드별 색상 */
.info-card:nth-child(2) .guide-icon{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    box-shadow:0 12px 28px rgba(37,99,235,0.20);
}

.info-card:nth-child(3) .guide-icon{
    background:linear-gradient(135deg,#14b8a6,#0f766e);
    box-shadow:0 12px 28px rgba(15,118,110,0.20);
}

.info-card:nth-child(4) .guide-icon{
    background:linear-gradient(135deg,#f59e0b,#ea580c);
    box-shadow:0 12px 28px rgba(234,88,12,0.20);
}

.info-card:nth-child(5) .guide-icon{
    background:linear-gradient(135deg,#ec4899,#db2777);
    box-shadow:0 12px 28px rgba(219,39,119,0.20);
}

.info-card:nth-child(6) .guide-icon{
    background:linear-gradient(135deg,#6366f1,#4338ca);
    box-shadow:0 12px 28px rgba(67,56,202,0.20);
}

/* 아이콘 크기 */
.guide-icon i{
    font-size:34px;
}

/* 제목 */
.info-card h5{
    margin:0 0 18px;
    text-align:center;
    font-size:23px;
    font-weight:800;

    color:#111827;

    line-height:1.4;
}

/* 리스트 */
.info-card ul{
    margin:0;
    padding-left:18px;
}

.info-card li{
    margin-bottom:12px;

    font-size:14px;
    color:#6b7280;

    line-height:1.9;
}

.info-card li:last-child{
    margin-bottom:0;
}

/* 강조 */
.hl{
    display:inline-block;

    padding:2px 8px;

    border-radius:10px;

    background:#fff3bf;

    color:#9a6700;

    font-weight:700;
}

/* 이용 안내 */
.info-notice{
    display:inline-block;

    margin-top:22px;

    padding:14px 22px;

    border-radius:14px;

    background:linear-gradient(135deg,#f5f3ff,#ede9fe);

    border:1px solid #ddd6fe;

    font-size:14px;
    color:#5b21b6;

    line-height:1.8;
    font-weight:500;

    box-shadow:0 6px 18px rgba(121,80,242,0.08);
}

.info-notice b{
    color:#7c3aed;
    font-weight:800;
}

@media(max-width:768px){

    .info-notice{
        display:block;

        font-size:13px;

        padding:14px 16px;

        margin-top:18px;

        line-height:1.7;
    }

}

/* 모바일 */
@media(max-width:1100px){

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

}

@media(max-width:768px){

    .info-section{
     border-radius:16px;
    }

    .info-header{
        margin-bottom:55px;
    }

    .info-header h1{
        font-size:28px;
    }

    .info-header .subtitle{
        font-size:14px;
    }

    .info-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .info-card{
        padding:28px 22px;
        border-radius:18px;
    }

    .guide-icon{
        width:66px;
        height:66px;

        font-size:26px;

        border-radius:20px;

        margin-bottom:20px;
    }

    .info-card h5{
        font-size:20px;
    }

    .info-card li{
        font-size:14px;
    }

}


/* =========================
   키워드 분석 안내 섹션
========================= */

.info-section2{
}

.info-section2 h1{
    margin:0 0 10px;
    font-size:38px;
    font-weight:900;
    letter-spacing:-0.5px;
    color:#111827;
	text-align:center;
}

.info-section2 .subtitle{
    margin:0 0 35px;
    font-size:16px;
    line-height:1.7;
    color:#6b7280;
	text-align:center;
}



/* 아이콘 */
.guide-icon{
    width:78px;
    height:78px;
    margin-bottom:20px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(135deg,
        #7c3aed 0%,
        #6366f1 45%,
        #06b6d4 100%);

    color:#fff;
    font-size:24px;
    box-shadow:
        0 10px 25px rgba(99,102,241,0.25);
}

/* 제목 */
.info-card h5{
    margin:0 0 16px;
    font-size:23px;
    font-weight:800;
    letter-spacing:-0.3px;
    color:#111827;
}

/* 리스트 */
.info-card ul{
    padding:0;
    margin:0;
    list-style:none;
}

.info-card ul li{
    position:relative;

    padding-left:20px;
    margin-bottom:12px;

    font-size:14px;
    line-height:1.8;
    color:#4b5563;
}

.info-card ul li:last-child{
    margin-bottom:0;
}

/* 체크 포인트 */
.info-card ul li::before{
    content:'';

    position:absolute;
    left:0;
    top:11px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:
        linear-gradient(135deg,
        #8b5cf6,
        #06b6d4);
}

/* 반응형 */
@media(max-width:768px){

    .info-section h1{
        font-size:26px;
    }

    .info-card{
        padding:24px 22px;
        border-radius:22px;
    }

    .info-card h5{
        font-size:19px;
    }

}


/* =========================
   통계 카드
========================= */

.keyword-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
    margin-top:20px;
}

/* 카드 */
.keyword-card{
    position:relative;
    overflow:hidden;
    padding:28px 24px;
    border-radius:10px;
    background:
    linear-gradient(135deg,
    #f5f3ff 0%,
    #ede9fe 45%,
    #ffffff 100%);
    border:1px solid #ddd6fe;
    box-shadow:
    0 14px 34px rgba(121,80,242,0.10),
    inset 0 1px 0 rgba(255,255,255,0.7);
    transition:all .25s ease;
}

/* 배경 효과 */
.keyword-card::before{
    content:'';
    position:absolute;
    top:-70px;
    right:-70px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(121,80,242,0.08);
}

.keyword-card::after{
    content:'';
    position:absolute;
    bottom:-60px;
    left:-60px;
    width:150px;
    height:150px;
    border-radius:50%;
    background:rgba(37,99,235,0.05);
}

/* hover */
.keyword-card:hover{
    transform:translateY(-4px);
    box-shadow:
    0 20px 44px rgba(121,80,242,0.16),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 제목 */
.keyword-card h3{
    position:relative;
    z-index:2;
    margin:0 0 22px;
    font-size:24px;
    color:#4c1d95;
    letter-spacing:-0.5px;
}

/* 그리드 */
.stat-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

/* 아이템 */
.stat-item{
    padding:18px 14px;
    border-radius:10px;
    background:rgba(255,255,255,0.75);
    text-align:center;
    box-shadow:
    0 8px 20px rgba(0,0,0,0.04);
    transition:all .2s ease;
}

.stat-item:hover{
    transform:translateY(-3px);
}

/* TOTAL */
.stat-item.total{
    background:
    linear-gradient(135deg,#7950f2,#6741d9);

    box-shadow:
    0 12px 28px rgba(121,80,242,0.24);
}

/* 라벨 */
.stat-label{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    font-weight:800;
    color:#6b7280;
    letter-spacing:1px;
}

/* 숫자 */
.stat-value{
    display:block;
    font-size:28px;
    font-weight:900;
    line-height:1.2;
    color:#111827;
}

/* TOTAL 숫자 */
.stat-item.total .stat-label,
.stat-item.total .stat-value{
    color:#fff;
}

/* 검색량 색상 */
.pc{
    color:#2563eb;
}

.mobile{
    color:#0f766e;
}

/* 클릭수 색상 */
.click-pc{
    color:#ea580c;
}

.click-mobile{
    color:#dc2626;
}

/* 모바일 */
@media(max-width:768px){

    .keyword-stats{
        grid-template-columns:1fr;
        gap:18px;
    }

    .keyword-card{
        padding:22px 18px;
        border-radius:10px;
    }

    .keyword-card h3{
        font-size:20px;
        margin-bottom:18px;
    }

    .stat-grid{
        gap:10px;
    }

    .stat-item{
        padding:14px 10px;
        border-radius:10px;
    }

    .stat-label{
        font-size:10px;
        margin-bottom:8px;
    }

    .stat-value{
        font-size:20px;
    }

}

/* 연관키워드 관련 영역 */
.relKeywordWrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px;
}

.relKeywordTitle {
    white-space: nowrap;
    font-weight: 600;
    color: #333;
	   margin-bottom: 2px;
}

/* 키워드 가로 스크롤 영역 */
.relKeywordScroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.relKeywordScroll::-webkit-scrollbar {
    height: 6px;
}

.relKeywordScroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* 키워드 버튼 */
.relKeywordBtn {
    display: inline-block;
    padding: 6px 14px;
    background: #0d6efd;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.relKeywordBtn:hover {
    background: #0b5ed7;
}

/* NO 컬럼 가운데 정렬 */
#resultTable th:nth-child(1),
#resultTable td:nth-child(1){
    text-align:center !important;
    font-weight:700;
}

/* 모바일 */
@media(max-width:768px){

    /* NO 컬럼 */
    #resultTable th:nth-child(1),
    #resultTable td:nth-child(1){
	text-align:center !important;
        width:30px;
        min-width:30px;
        font-size:12px;
        padding:8px 4px;
        white-space:nowrap;
    }

    /* 키워드 컬럼 */
    #resultTable th:nth-child(2),
    #resultTable td:nth-child(2){
        min-width:140px;
        max-width:180px;
        font-size:13px;
        padding:8px 6px;
        word-break:break-all;
        line-height:1.5;
    }

    /* 키워드 길면 자동 축소 */
    #resultTable td.keyword a{
        display:block;
        font-size:clamp(11px, 3vw, 13px);
        white-space:normal;
        word-break:break-all;
    }

}

/* 모바일 테이블 제목 줄바꿈 방지 */
@media(max-width:768px){

    #resultTable th{
        white-space:nowrap !important;
        word-break:keep-all !important;

        font-size:12px;
        padding:10px 6px;

        vertical-align:middle;
    }

    /* NO */
    #resultTable th:nth-child(1){
        min-width:50px;
    }

    /* 키워드 */
    #resultTable th:nth-child(2){
        min-width:100px;
    }

    /* 링크 */
    #resultTable th:nth-child(3){
        min-width:55px;
    }

    /* 검색수/클릭수 */
    #resultTable th:nth-child(4),
    #resultTable th:nth-child(5){
        min-width:80px;
    }

    /* CTR */
    #resultTable th:nth-child(6){
        min-width:60px;
    }

    /* 경쟁도 */
    #resultTable th:nth-child(7){
        min-width:70px;
    }

    /* 쇼핑 상품수 */
    #resultTable th:nth-child(8){
        min-width:95px;
    }

    /* 시장 */
    #resultTable th:nth-child(9){
        min-width:60px;
    }

    /* 광고 추천 */
    #resultTable th:nth-child(10){
        min-width:90px;
    }

}

/* 테이블 행 hover 효과 */
#resultTable tbody tr{
    transition:all .15s ease;
}

/* 마우스 올렸을 때 */
#resultTable tbody tr:hover{
    background:#f3f0ff !important;
}

/* 클릭(선택) 상태 */
#resultTable tbody tr.active-row{
    background:#e9ddff !important;
}

/* 선택된 행 글자 강조 */
#resultTable tbody tr.active-row td{
    color:#4c1d95;
    font-weight:700;
}



/* =========================
   쇼핑 인사이트 카드형
========================= */

.insight-wrap{
    margin-top:20px;
}

/* 카드 */
.insight-box{
    position:relative;
    overflow:hidden;
    background:
    linear-gradient(135deg,
    #f5f3ff 0%,
    #ede9fe 45%,
    #ffffff 100%);
    border:1px solid #ddd6fe;
    border-radius:10px;
    padding:30px 26px;
    box-shadow:
    0 14px 34px rgba(121,80,242,0.10),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* 배경 효과 */
.insight-box::before{
    content:'';
    position:absolute;
    top:-80px;
    right:-80px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(121,80,242,0.07);
}

.insight-box::after{
    content:'';
    position:absolute;
    bottom:-70px;
    left:-70px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(37,99,235,0.05);
}

/* 제목 */
.insight-title{
    position:relative;
    z-index:2;

    margin:0 0 28px;

    font-size:20px;


    color:#4c1d95;

    letter-spacing:-0.5px;
}

.category-auto-box{

    margin-top:20px;

    padding:26px;

    border-radius:10px;

    background:
    linear-gradient(135deg,
    #f5f3ff 0%,
    #ede9fe 45%,
    #ffffff 100%);

    border:1px solid #ddd6fe;

    box-shadow:
    0 12px 30px rgba(121,80,242,0.08);
}

.category-auto-title{
    font-size:20px;
    color:#4c1d95;
    margin-bottom:12px;
}

.category-path{

    font-size:16px;
    color:#6b7280;
    line-height:1.6;
}

/* 모바일 */
@media(max-width:768px){

    .insight-box{
        padding:24px 18px;
        border-radius:18px;
    }

    .category-auto-box{
        padding:20px;
    }

    .category-path{
        font-size:18px;
        line-height:1.7;
    }

}

.insight-tab{
    display:flex;
    gap:8px;
    margin:10px 0 15px;
}

.tab-btn{
    padding:6px 12px;
    border-radius:20px;
    border:1px solid #ddd;
    background:#fff;
    font-size:13px;
    cursor:pointer;
}

.tab-btn.active{
    background:#6c5ce7;
    color:#fff;
    border-color:#6c5ce7;
}

.mini-bar{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0;
}

.mini-bar span{
    width:60px;
    font-size:13px;
}

.bar{
    flex:1;
    height:8px;
    background:#eee;
    border-radius:10px;
    overflow:hidden;
}

.bar div{
    height:100%;
    background:linear-gradient(90deg,#6c5ce7,#a29bfe);
}