@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Apple & Notion 스타일의 극강 미니멀리즘(Pure Minimalist White) 디자인 시스템 */
:root {
    --bg-body: #ffffff;
    --bg-sidebar: #fafafa;
    --bg-card: #ffffff;
    --bg-input: #fcfcfc;
    
    --color-text-main: #111111;    /* 깊고 차분한 블랙 */
    --color-text-sub: #555555;     /* 소프트 그레이 */
    --color-text-light: #999999;   /* 연한 그레이 */
    
    --color-border: #eaeaea;       /* 얇고 밝은 실선 */
    --color-border-hover: #cccccc;
    --color-border-focus: #111111; /* 포커스 시 선명한 블랙 */
    
    --color-accent: #0066cc;       /* 차분한 애플 블루 */
    --color-accent-hover: #004499;
    
    --font-family: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    
    --radius-ui: 8px;              /* 노션스타일의 정갈하고 얇은 라운딩 */
    
    /* 그림자를 거의 배제하고 평면적인 두께감만 유지 */
    --shadow-flat: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-input-focus: 0 0 0 3px rgba(0, 102, 204, 0.1);
    
    --transition-quick: all 0.15s ease;
}

/* 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--color-text-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* 정갈한 사이드바 */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.sidebar-brand {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.brand-icon {
    color: var(--color-text-main);
}

.sidebar-menu {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-category {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-category-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 14px 6px 14px;
    user-select: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-ui);
    transition: var(--transition-quick);
}

.menu-item:hover {
    background-color: #f0f0f0;
    color: var(--color-text-main);
}

.menu-item.active {
    background-color: #eaeaea;
    color: var(--color-text-main);
    font-weight: 600;
}

.adsense-sidebar-wrapper {
    padding: 12px 16px;
    margin: 8px 16px;
}

.sidebar-footer {
    padding: 24px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
}

.footer-desc {
    margin-top: 2px;
}

/* 메인 프레임 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 56px 64px;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 애드센스 플레이스홀더 (여백으로 깔끔하게 통합) */
.adsense-placeholder {
    background-color: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-ad {
    width: 100%;
    min-height: 90px;
}

.bottom-ad {
    width: 100%;
    min-height: 90px;
}

.sidebar-ad {
    min-height: 120px;
}

/* 타이틀 및 헤더 */
.tool-header {
    margin-bottom: 32px;
}

.tool-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* 폼/카드 그리드 */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    padding: 32px;
    box-shadow: var(--shadow-flat);
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* 정갈한 인풋 & 폼 필드 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-sub);
}

input[type="url"],
input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    background-color: var(--bg-input);
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: var(--transition-quick);
}

input[type="url"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus,
.input-field:focus {
    outline: none;
    border-color: var(--color-border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.help-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-text-main);
    cursor: pointer;
}

/* 흑백 및 단색 위주 미니멀 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-ui);
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-primary {
    background-color: var(--color-text-main); /* 단색 블랙 */
    color: #ffffff;
    border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

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

.btn-secondary:hover {
    background-color: #fafafa;
    color: var(--color-text-main);
    border-color: var(--color-border-hover);
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px;
}

.btn-text:hover {
    color: var(--color-accent-hover);
}

/* 코드 결과 에리어 */
.code-output-wrapper {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    overflow: hidden;
    background-color: #fafafa; /* 흰 테마에 어울리는 연회색 코드 박스 */
    color: #333333;
}

.code-actions {
    background-color: #f1f1f1;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    color: var(--color-text-sub);
    font-size: 0.75rem;
}

.btn-copy {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-sub);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-copy:hover {
    background-color: #fafafa;
    color: var(--color-text-main);
}

pre {
    padding: 16px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

pre code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* SNS 프리뷰 */
.sns-preview-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}

.preview-img-wrapper {
    height: 180px;
    background-color: #fafafa;
    width: 100%;
    overflow: hidden;
}

.preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 16px;
    border-top: 1px solid var(--color-border);
}

.preview-domain {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: lowercase;
}

.preview-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-description {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* UTM 결과 */
.utm-result-container {
    margin-top: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    background-color: #fafafa;
}

.utm-result-box {
    width: 100%;
    border: none;
    background: none;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text-main);
    padding: 12px;
    resize: none;
    outline: none;
}

/* 모바일 모드 */
.mobile-header {
    display: none;
}

/* 모바일 햄버거 메뉴 토글 버튼 */
#sidebar-toggle {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    outline: none;
}

#sidebar-toggle:hover {
    background-color: #fafafa;
    border-color: var(--color-border-hover);
}

#sidebar-toggle:active {
    background-color: #f0f0f0;
    transform: scale(0.95);
}


/* 레이아웃 공통 유틸리티 클래스 */
.flex-1 { flex: 1; }
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }

.gap-3 { gap: 12px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-3 { margin-bottom: 12px; }
.mr-1 { margin-right: 4px; }
.text-sm { font-size: 0.875rem; }
.bg-gray-50 { background-color: #fafafa; }
.border-dashed { border-style: dashed; }

/* 툴 섹션 활성화 및 렌더링 제어 */
.tool-section {
    display: none;
}

.tool-section.active {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

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


@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .mobile-header {
        display: flex;
        position: static;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        height: 60px;
        padding: 0 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        width: 260px;
        height: 100vh;
        border-radius: 0;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.07);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
}

/* ==========================================================================
   웹마스터 & 마케팅 블로그 스타일
   ========================================================================== */

/* 사이드바 구분선 */
.sidebar-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 16px 20px;
}

/* 블로그 포스트 리스트 */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 820px;
    width: 100%;
}

.blog-list-card {
    transition: var(--transition-quick);
}

.blog-list-card:hover {
    border-color: var(--color-border-hover);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.blog-card-category {
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-date {
    color: var(--color-text-light);
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-quick);
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-card-summary {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-quick);
}

.btn-read-more:hover {
    color: var(--color-accent);
}

.btn-read-more svg {
    transition: transform 0.2s ease;
}

.btn-read-more:hover svg {
    transform: translateX(4px);
}

/* 블로그 포스트 상세 뷰 */
.blog-detail-actions {
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: var(--transition-quick);
}

.btn-back:hover {
    color: var(--color-text-main);
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

.blog-detail-card {
    max-width: 820px;
    padding: 48px;
    width: 100%;
}

.blog-detail-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.blog-detail-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 8px;
}

.blog-detail-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.blog-detail-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.blog-detail-content {
    font-size: 0.95rem;
    color: #222222;
    line-height: 1.8;
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 42px;
    margin-bottom: 16px;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.blog-detail-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.blog-detail-content li {
    margin-bottom: 8px;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--color-accent);
    background-color: #fafafa;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 4px 12px 12px 4px;
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.blog-detail-content code {
    background-color: #f1f5f9;
    padding: 3px 6px;
    border-radius: 6px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.82em;
    color: #ef4444;
}

.blog-detail-content pre {
    background-color: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    padding: 16px;
    margin: 20px 0;
    color: #333333;
    overflow-x: auto;
}

.blog-detail-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.85rem;
}

.blog-detail-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color 0.15s ease;
}

.blog-detail-content a:hover {
    color: var(--color-text-main);
}

.blog-detail-content a.btn {
    text-decoration: none !important;
}

/* 블로그 푸터 영역 바로가기 버튼 세련화 */
.post-footer {
    margin-top: 40px !important;
    padding-top: 24px !important;
    border-top: 1px solid #f4f4f5 !important;
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
}

.post-footer a.btn {
    text-decoration: none !important;
}

.post-footer a.btn-secondary svg {
    stroke: var(--color-text-sub) !important;
}

.post-footer a.btn-secondary:hover svg {
    stroke: var(--color-text-main) !important;
}

.no-posts, .error-msg {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    text-align: center;
    padding: 40px 0;
}

/* ==========================================================================
   네임서버 & DNS 레코드 조회 스타일
   ========================================================================== */

/* 로딩 애니메이션 및 레이아웃 */
.ns-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--color-text-sub);
    width: 100%;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text-main);
    border-radius: 50%;
    animation: ns-spin 0.8s linear infinite;
}

.ns-loading .loader-spinner {
    margin: 0 auto 16px auto;
}

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

.ns-loading p {
    font-size: 0.9rem;
    font-weight: 500;
}

.ns-error-card {
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    border-radius: var(--radius-ui);
    padding: 20px;
    width: 100%;
}

/* 요약 보고서 카드 */
.ns-summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    width: 100%;
}

.ns-summary-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ns-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    background-color: rgba(0, 102, 204, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ns-summary-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ns-summary-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ns-summary-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.ns-summary-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
}

/* 레코드 결과 테이블 (Apple/Notion 스타일의 깔끔한 무선 표) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.ns-result-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.ns-result-table th {
    font-weight: 600;
    color: var(--color-text-sub);
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--color-text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ns-result-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    word-break: break-all;
}

.ns-result-table tr:hover td {
    background-color: #fafafa;
}

.ns-result-table .empty-row {
    color: var(--color-text-light);
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
}

/* 폰트 모노 세팅 */
.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem !important;
}

/* ==========================================================================
   프리미엄 대시보드 툴 카드 스타일
   ========================================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.dashboard-tool-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-ui);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 290px;
}

.dashboard-tool-card:hover {
    border-color: var(--color-text-main);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.06);
}

.tool-card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-ui);
    background-color: #f4f4f5; /* 미세한 그레이 백그라운드 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.dashboard-tool-card:hover .tool-card-icon-wrapper {
    background-color: var(--color-text-main);
    color: #ffffff; /* 호버 시 아이콘 영역 반전 */
}

.tool-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    line-height: 1.3;
}

.tool-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-card-action {
    display: inline-flex;
    align-items: center;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: auto;
}

.tool-card-action svg {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.dashboard-tool-card:hover .tool-card-action svg {
    transform: translateX(4px); /* 호버 시 화살표 미세 슬라이드 */
}

/* 가로형 입력 인풋 그룹 */
.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.input-group input {
    flex-grow: 1;
    margin-bottom: 0 !important; /* 인풋 하단 마진 제거 */
}

.input-group button {
    white-space: nowrap;
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column; /* 극도의 모바일 좁은 폭에서는 안정적인 세로 정렬로 전환 */
        gap: 8px;
    }
    .input-group button {
        width: 100%;
    }
}

/* ==========================================
   🔒 5초 광고 락커 모달 스타일 (AdSense Locker)
   ========================================== */
.locker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

.locker-modal {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scaleIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.locker-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.locker-header p {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.4;
}

.locker-ad-body {
    background-color: #fafafa;
    border: 1px solid #f0f0f2;
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.locker-ad-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-sub);
    padding: 2px 6px;
    letter-spacing: 0.05em;
}

.locker-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f4f4f5;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.4;
}

.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.locker-countdown .loader-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    margin-bottom: 0;
}

.locker-countdown strong {
    font-size: 1rem;
    color: #10b981; /* 초록색 카운트다운 숫자 강조 */
    margin-right: 2px;
}

.locker-footer button:disabled {
    background-color: #e4e4e7;
    border-color: #e4e4e7;
    color: #a1a1aa;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 페이드인 & 스케일 인 애니메이션 정의 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 📝 블로그 본문 강한 강조 가독성 하이라이트 (<strong>) */
.blog-detail-content strong {
    font-weight: 700;
    color: #18181b; /* 기본 폰트보다 좀 더 진하고 또렷한 차콜 블랙 */
    border-bottom: 1px solid #e4e4e7; /* 흐릿하게 구분만 주는 옅은 회색 밑줄 */
    padding-bottom: 1px;
    display: inline;
}

/* ==========================================
   🖼️ WebP 이미지 변환기 스타일 (Image Converter)
   ========================================== */
.dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    background-color: #fafafa;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dropzone:hover, .dropzone.dragover {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    transition: color 0.2s;
}

.dropzone:hover .dropzone-icon, .dropzone.dragover .dropzone-icon {
    color: #10b981;
}

.dropzone p {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin: 0;
    font-weight: 500;
}

.dropzone span {
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

/* 슬라이더 컨트롤러 */
.slider-container {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e4e4e7;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* 변환 결과 리포트 보드 */
.converter-result-card {
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 24px;
}

.compare-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.compare-item {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.compare-item .label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-item .value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-main);
    word-break: break-all;
}

.saving-badge {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: center;
}

.preview-thumbnail-container {
    width: 90px;
    height: 90px;
    border: 1.5px solid #e4e4e7;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   🔗 단축 링크 복사 보드 레이아웃 (반응형 대응)
   ========================================== */
.url-display-board {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.url-display-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    flex-grow: 1;
}

.url-display-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.url-display-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    word-break: break-all;
    letter-spacing: -0.01em;
}

.url-display-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.url-display-actions button, 
.url-display-actions a {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.url-display-actions a {
    padding: 8px 12px;
}

/* 📱 모바일 반응형 조율 (단축 URL 복사 보드 찌그러짐 방지) */
@media (max-width: 640px) {
    .url-display-board {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }
    
    .url-display-info {
        text-align: center;
    }
    
    .url-display-value {
        font-size: 1rem;
    }
    
    .url-display-actions {
        justify-content: center;
        width: 100%;
    }
    
    .url-display-actions button,
    .url-display-actions a {
        flex: 1;
        max-width: 150px;
    }
}

/* ==========================================
   🔑 보안 패스워드 생성기 스타일 (Password Generator)
   ========================================== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    accent-color: #10b981;
    cursor: pointer;
}

/* 암호 강도 측정기 */
.strength-container {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-sub);
}

.strength-meter-bar-bg {
    height: 8px;
    background-color: #e4e4e7;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.strength-meter-bar {
    height: 100%;
    width: 0%;
    background-color: #ef4444; /* 기본 빨강 */
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* 결과 출력용 리스트 보드 */
.password-bulk-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.password-bulk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f4f4f5;
    gap: 12px;
}

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

.password-bulk-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-main);
    word-break: break-all;
}

.password-bulk-item button {
    padding: 6px 12px;
    font-size: 0.75rem;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   🔗 URL & Base64 인코더/디코더 스타일
   ========================================== */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.textarea-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.textarea-container label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-textarea {
    width: 100%;
    height: 220px;
    background-color: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
    resize: none;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.editor-textarea:focus {
    border-color: var(--color-text-main);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.editor-textarea::placeholder {
    color: #a1a1aa;
    font-family: inherit;
}

/* 폼 인라인 액션 레이어 */
.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
    cursor: pointer;
}

/* 📱 모바일 반응형 대응 */
@media (max-width: 768px) {
    .editor-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .editor-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    
    .radio-group {
        justify-content: center;
    }
    
    .editor-textarea {
        height: 160px;
    }
}

/* ==========================================================================
   🔠 SEO Character Counter & Keyword Density Analyzer Style Rules
   ========================================================================== */

/* 실시간 결과 보드 (5열 카드 그리드) */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.counter-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.counter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(24, 24, 27, 0.04);
    border-color: var(--color-text-main);
}

.counter-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.counter-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.counter-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.counter-card-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #18181b;
}

/* 텍스트 분석 워크스페이스 */
.textarea-field {
    width: 100%;
    height: 280px;
    padding: 16px 20px;
    background-color: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #27272a;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.textarea-field:focus {
    outline: none;
    border-color: var(--color-text-main);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

/* 밀도 분석 컨테이너 */
.density-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 12px;
}

.density-box {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.box-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f4f4f5;
    padding-bottom: 12px;
}

.box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
}

.box-description {
    font-size: 0.85rem;
    color: #71717a;
    line-height: 1.5;
    margin-top: 4px;
}

.seo-guide-tip {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}

/* 키워드 검색기 결과 영역 */
.search-result-board {
    background-color: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.search-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px dashed #e4e4e7;
    padding-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
}

.stat-val.accent {
    color: #10b981;
}

/* 배지 종류 */
.seo-judgment-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-safe {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-neutral {
    background-color: #f4f4f5;
    color: #71717a;
}

/* 테이블 랭킹 보드 */
.density-table-wrapper {
    max-height: 380px;
    overflow-y: auto;
}

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

.density-table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: #71717a;
    padding: 10px 8px;
    border-bottom: 2px solid #f4f4f5;
    text-transform: uppercase;
}

.density-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f4f4f5;
    font-size: 0.85rem;
    color: #27272a;
    vertical-align: middle;
}

.density-table tr:last-child td {
    border-bottom: none;
}

.kw-text {
    font-weight: 600;
    color: #18181b;
}

.seo-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.seo-badge.safe {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.seo-badge.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.seo-badge.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.seo-badge.info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.empty-table-text {
    text-align: center;
    color: #a1a1aa;
    padding: 40px 0 !important;
    font-size: 0.85rem;
}

/* 경고 행 스타일 */
.density-warning {
    background-color: rgba(245, 158, 11, 0.02);
}

.density-danger {
    background-color: rgba(239, 68, 68, 0.02);
}

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

/* 📱 모바일 반응형 뷰포트 대응 */
@media (max-width: 1024px) {
    .density-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .counter-card {
        padding: 12px;
    }
    
    .counter-card-value {
        font-size: 1.4rem;
    }
    
    .textarea-field {
        height: 200px;
        font-size: 0.9rem;
    }
    
    .density-box {
        padding: 16px;
    }
}

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

/* ==========================================================================
   Link-in-Bio 멀티링크 페이지 빌더 스타일
   ========================================================================== */

/* 스마트폰 프레임 목업 */
.phone-mockup {
    width: 100%;
    max-width: 290px;
    height: 520px;
    border: 12px solid #18181b;
    border-radius: 38px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 110px;
    height: 16px;
    background: #18181b;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 16px 16px;
    position: relative;
    transition: all 0.25s ease;
}

/* 스크롤바 커스텀 */
.phone-screen::-webkit-scrollbar {
    width: 4px;
}
.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* 테마 선택기 카드 호버/액티브 */
.theme-select-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.theme-select-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.theme-select-card.active {
    outline: 2px solid var(--color-text-main);
    outline-offset: 1px;
}
