:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #000000;
    --secondary-color: #666666;
    --border-color: #e0e0e0;
    --error-color: #ff3b30;
    --success-color: #34c759;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Login page specific body */
body:has(.container) {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.container {
    width: 100%;
    max-width: 420px;
    min-height: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #000000 0%, #434343 25%, #000000 50%, #2c2c2c 75%, #000000 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 1;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 22px;
    z-index: -1;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.links {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
}

.links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Notice Section */
.notice-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.notice-time {
    color: var(--secondary-color);
    font-weight: 600;
    min-width: 45px;
    margin-right: 10px;
    flex-shrink: 0;
}

.notice-text {
    color: var(--text-color);
    flex: 1;
}

.notice-range {
    color: var(--secondary-color);
}

.notice-dns {
    color: #ff3b30;
    font-weight: 600;
}

.notice-beta {
    color: var(--secondary-color);
    font-weight: 600;
}

.notice-adjust {
    color: var(--secondary-color);
}

/* Dashboard & Payment specific */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-header .logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.dashboard-header nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.dashboard-content {
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-content > .card {
    margin-bottom: 24px;
}

.grid-container .card {
    margin-bottom: 0;
    height: 100%;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.card p {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.card ul {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.logout-link {
    color: var(--error-color) !important;
}

.notice-list {
    list-style-position: inside;
    color: var(--secondary-color);
    line-height: 1.8;
}

.notice-list li {
    padding: 4px 0;
}

/* Dashboard Notice Styles */
.dashboard-notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-notice-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    border-bottom: 1px solid #f5f5f5;
}

.dashboard-notice-item:last-child {
    border-bottom: none;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 1.5rem;
}

.service-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 44px 20px 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.premium-badge.pro-ultra {
    background: linear-gradient(135deg, #000000, #434343);
}

.premium-badge.ultra {
    background: linear-gradient(135deg, #000000, #434343);
}

.service-coming-soon {
    background: #f9f9f9;
    border-style: dashed;
    border-color: #d0d0d0;
    cursor: default;
    opacity: 0.7;
}

.service-coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #d0d0d0;
}

.service-coming-soon h3 {
    color: var(--secondary-color);
}

.service-coming-soon p {
    color: #999;
}

/* Blog Index Page */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.blog-input-section {
    margin-bottom: 0;
}

.input-group-horizontal {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.input-wrapper input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Blog Info Grid */
.blog-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    text-align: center;
    padding: 24px 16px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-value.primary {
    color: var(--primary-color);
}

/* Report Grid */
.card-description {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.report-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.report-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Popular Posts */
.popular-posts-list {
    margin-top: 1.5rem;
}

.popular-post-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item:hover {
    background-color: #f9fafb;
}

.popular-post-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.popular-post-views {
    font-size: 0.875rem;
    color: #6b7280;
}

.popular-posts-loading,
.popular-posts-error {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.popular-posts-loading div,
.popular-posts-error div {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 블챌 키워드 분석 페이지 */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
    user-select: none;
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-tabs:active {
    cursor: grabbing;
}

.category-tab {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    color: #666666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0; /* 탭이 줄어들지 않도록 */
}

.category-tab:hover {
    background: #e8e8e8;
}

.category-tab.active {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    font-weight: 600;
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.keyword-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.keyword-count {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.keyword-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.export-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.keyword-table thead {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.keyword-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.keyword-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.keyword-table tbody tr:hover {
    background: #f9fafb;
}

.keyword-table td {
    padding: 16px 12px;
    font-size: 0.95rem;
}

.keyword-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-thumbnail {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin: 0 auto;
}

.participant-count {
    color: #000000;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: white;
    color: #666666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.btn-sm:hover {
    background: #f9fafb;
    border-color: #000000;
    color: #000000;
}

.btn-view {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border: none;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-copy {
    background: white;
    color: #000000;
    border: 1px solid #000000;
}

.btn-copy:hover {
    background: #000000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.load-more-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 인기검색어 페이지 */
.refresh-btn {
    padding: 12px 24px;
    background: white;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #000000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.trending-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.trending-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    min-width: 40px;
    text-align: center;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    font-weight: 600;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-summary {
    font-size: 0.85rem;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-state {
    font-weight: 600;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.trending-state.state-\+ {
    color: #ef4444;
}

.trending-state.state-- {
    color: #3b82f6;
}

.trending-state.state-\= {
    color: #9ca3af;
}

.trending-state.state-n,
.trending-state.state-NEW {
    color: #10b981;
    font-size: 0.8rem;
}

/* 인플루언서 분석 페이지 */
.blog-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.blog-input-group input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.blog-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.blog-input-group button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-input-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 모바일 반응형 - 블로그 입력 */
@media (max-width: 480px) {
    .blog-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .blog-input-group input[type="text"] {
        width: 100%;
    }
    
    .blog-input-group button {
        width: 100%;
        padding: 14px 20px;
    }
}

.influencer-profile {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.influencer-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.influencer-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-item-large {
    flex: 1;
    text-align: center;
    padding: 16px;
    border-right: 1px solid #e5e7eb;
}

.stat-item-large:last-child {
    border-right: none;
}

.stat-item-large .stat-label {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-item-large .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
}

.influencer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.influencer-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.influencer-info {
    flex: 1;
}

.influencer-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.influencer-intro {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.influencer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-keyword,
.badge-category,
.badge-expert {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-keyword {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.badge-category {
    background: #f3f4f6;
    color: #000000;
    border: 1px solid #e5e7eb;
}

.badge-expert {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 1.5rem;
}

.keyword-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.keyword-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #000000;
}

.keyword-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.keyword-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.keyword-rank {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.keyword-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.keyword-card-stats .stat-item {
    text-align: center;
}

.keyword-card-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.keyword-card-stats .stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.keyword-card-footer {
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.last-challenged {
    font-size: 0.85rem;
    color: #666666;
}

/* 블로그 누락체크 페이지 */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.filter-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #666666;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border-color: #000000;
}

.check-results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.check-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.check-result-item.status-omitted {
    border-left: 4px solid #ef4444;
}

.check-result-item.status-exposed {
    border-left: 4px solid #10b981;
}

.result-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    min-width: 40px;
    text-align: center;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-title:hover {
    color: #667eea;
    text-decoration: underline;
}

.result-url {
    font-size: 0.85rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-status.status-exposed {
    background: #d1fae5;
    color: #065f46;
}

.result-status.status-omitted {
    background: #fee2e2;
    color: #991b1b;
}

/* 모바일 반응형 - 누락체크 */
@media (max-width: 768px) {
    .check-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-number {
        min-width: auto;
    }
    
    .result-content {
        width: 100%;
    }
    
    .result-status {
        align-self: flex-end;
    }
}

/* 플레이스 지수 측정 페이지 */
.place-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.place-table thead {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.place-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.place-table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.place-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.place-table tbody tr:hover {
    background: #f9fafb;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #000;
}

.filter-select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-input-small {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s ease;
}

.search-input-small:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f3f4f6;
    border-color: #000;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border-color: #000;
}

/* 모바일 반응형 - 플레이스 지수 */
@media (max-width: 768px) {
    .place-table {
        font-size: 0.85rem;
    }
    
    .place-table th,
    .place-table td {
        padding: 10px 8px;
    }
    
    .search-input-small {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
}

/* 키워드 분석 페이지 */
.keyword-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 1.5rem;
}

.keyword-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.keyword-stat-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.keyword-stat-item .stat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.keyword-stat-item .stat-content {
    flex: 1;
}

.keyword-stat-item .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.keyword-stat-item .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.keyword-table thead {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.keyword-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.keyword-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.keyword-table tbody tr:hover {
    background: #f9fafb;
}

.competition-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.competition-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.competition-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.competition-badge.low {
    background: #d1fae5;
    color: #065f46;
}

/* 모바일 반응형 - 키워드 분석 */
@media (max-width: 768px) {
    .keyword-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .keyword-stat-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .keyword-stat-item .stat-icon {
        font-size: 1.25rem;
    }
    
    .keyword-stat-item .stat-label {
        font-size: 0.7rem;
    }
    
    .keyword-stat-item .stat-value {
        font-size: 1rem;
    }
    
    .keyword-table {
        font-size: 0.8rem;
    }
    
    .keyword-table th,
    .keyword-table td {
        padding: 10px 8px;
    }
}

/* 플로팅 메뉴 */
.floating-menu {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-menu-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    max-height: 600px;
    overflow: hidden;
}

.floating-menu.open .floating-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-menu.open .floating-toggle {
    background: linear-gradient(135deg, #434343, #000000);
}

.floating-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.floating-menu-header span {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.floating-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.floating-close:hover {
    background: #f3f4f6;
    color: #000;
}

.floating-menu-items {
    padding: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.floating-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.floating-menu-item:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #000;
    transform: translateX(-4px);
}

.floating-menu-item.active {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.floating-menu-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.floating-menu-item:hover svg,
.floating-menu-item.active svg {
    opacity: 1;
}

/* 스크롤바 스타일 */
.floating-menu-items::-webkit-scrollbar {
    width: 6px;
}

.floating-menu-items::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.floating-menu-items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.floating-menu-items::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 모바일 반응형 - 플로팅 메뉴 */
@media (max-width: 768px) {
    .floating-menu {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-toggle {
        width: 48px;
        height: 48px;
    }
    
    .floating-menu-content {
        width: 240px;
        bottom: 60px;
    }
    
    .floating-menu-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* PC에서만 축소 모드 */
@media (min-width: 769px) {
    .floating-menu.minimized .floating-menu-content {
        width: 60px;
    }
    
    .floating-menu.minimized .floating-menu-item span {
        display: none;
    }
    
    .floating-menu.minimized .floating-menu-item {
        justify-content: center;
        padding: 12px;
    }
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* 모바일 반응형 - 인플루언서 분석 */
@media (max-width: 768px) {
    .influencer-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .influencer-avatar,
    .influencer-avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .influencer-info h2 {
        font-size: 1.5rem;
    }
    
    .influencer-badges {
        justify-content: center;
    }
    
    .influencer-stats-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stat-item-large {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px;
    }
    
    .stat-item-large:last-child {
        border-bottom: none;
    }
    
    .stat-item-large .stat-value {
        font-size: 1.5rem;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
    }
}

/* 모바일 반응형 - 인기검색어 */
@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-item {
        padding: 12px;
        gap: 12px;
    }
    
    .trending-rank {
        font-size: 1.25rem;
        min-width: 30px;
    }
    
    .trending-title {
        font-size: 0.9rem;
    }
    
    .trending-summary {
        font-size: 0.8rem;
    }
}

/* 모바일 반응형 - 블챌 키워드 */
@media (max-width: 768px) {
    .category-tabs {
        padding: 12px;
        gap: 6px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .keyword-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .keyword-tools {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .export-btn {
        width: 100%;
    }
    
    .refresh-btn {
        width: 100%;
    }
    
    .keyword-table {
        font-size: 0.85rem;
    }
    
    .keyword-table th,
    .keyword-table td {
        padding: 10px 6px;
    }
    
    .keyword-thumbnail,
    .no-thumbnail {
        width: 60px;
        height: 60px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Posts Table */
.posts-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 1rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        padding: 16px 0;
    }

    .container {
        padding: 40px 24px;
        max-width: calc(100% - 32px);
        min-height: 80vh;
        margin: 0 auto;
        border-radius: 16px;
    }

    .container::before {
        border-radius: 16px;
    }

    .container::after {
        border-radius: 14px;
    }

    .logo {
        margin-bottom: 1.5rem;
    }

    .logo img {
        width: 150px;
        height: 100px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    input {
        padding: 14px 16px;
        font-size: 16px; /* iOS에서 자동 줌 방지 */
    }

    button {
        padding: 16px;
        font-size: 1rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    form {
        gap: 1.2rem;
    }

    .links {
        font-size: 0.85rem;
        margin-top: 1.2rem;
    }

    .notice-section {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
    }

    .notice-item {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    .notice-time {
        min-width: 42px;
        margin-right: 8px;
    }

    .dashboard-header {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .dashboard-header nav {
        gap: 16px;
    }

    .dashboard-content {
        padding: 32px 20px;
    }

    .dashboard-content h1 {
        font-size: 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .card h2 {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 38px 16px 20px 16px;
        min-height: 120px;
    }

    .premium-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.75rem;
    }

    .input-group-horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }

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

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

    .report-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 12px 0;
    }

    .container {
        padding: 32px 20px;
        max-width: calc(100% - 24px);
        min-height: 85vh;
        margin: 0 auto;
        border-radius: 14px;
    }

    .container::before {
        border-radius: 14px;
    }

    .container::after {
        border-radius: 12px;
    }

    .logo {
        margin-bottom: 1.25rem;
    }

    .logo img {
        width: 150px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    input {
        padding: 12px 14px;
    }

    button {
        padding: 14px;
    }

    .links {
        font-size: 0.8rem;
    }

    .notice-item {
        font-size: 0.75rem;
    }

    .notice-time {
        min-width: 40px;
    }

    .dashboard-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-header nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .dashboard-content {
        padding: 24px 16px;
    }

    .dashboard-content h1 {
        font-size: 1.35rem;
    }

    .card {
        padding: 20px;
    }

    .card h2 {
        font-size: 1.15rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-card {
        padding: 36px 16px 20px 16px;
        min-height: 110px;
    }

    .premium-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: 6px;
        right: 6px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .service-card p {
        font-size: 0.72rem;
    }

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

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