﻿/* 서비스형 영업이익률 계산기 전용 CSS */

/* ============ 세부 항목 입력 섹션 ============ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.btn-toggle-details {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.btn-toggle-details:hover {
    background: #e5e7eb;
    color: var(--dark-text);
}

.btn-toggle-details.expanded {
    background: #dbeafe;
    color: #0369a1;
}

.item-details {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 5px;
}

.detail-item .input-with-unit {
    background: white;
}

.detail-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.input-with-unit.highlight {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
}

.input-with-unit.highlight input {
    background: transparent;
}

/* ============ 결과 화면 개선 ============ */
.profit-service-result-summary {
    background: linear-gradient(135deg, #5e27cd 0%, #3a0ca3 50%, #5a189a 100%);
    border-radius: 14px;
    padding: 40px 30px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(58, 12, 163, 0.4);
}

.summary-main {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.summary-main .summary-label {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.summary-main .summary-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.summary-main .summary-value.excellent {
    color: #4ade80;
    text-shadow: 0 2px 12px rgba(74, 222, 128, 0.3);
}

.summary-main .summary-value.good {
    color: #60a5fa;
    text-shadow: 0 2px 12px rgba(96, 165, 250, 0.3);
}

.summary-main .summary-value.normal {
    color: #fbbf24;
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.summary-main .summary-value.low {
    color: #fb7185;
    text-shadow: 0 2px 12px rgba(251, 113, 133, 0.3);
}

.summary-main .summary-value.danger {
    color: #ef4444;
    text-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}

.summary-unit {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}

.summary-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.summary-item {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.12);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.summary-item .summary-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-item .summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    word-break: break-word;
}

.summary-item .summary-unit {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 4px;
}

/* 결과 해석 섹션 */
.interpretation-section {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.interpretation-section h4 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interpretation-content {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.interpretation-item {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.interpretation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.interpretation-item.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.interpretation-item.good {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.interpretation-item.normal {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.interpretation-item.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.interpretation-item.danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
}

.interpretation-item strong {
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ffffff;
}

.interpretation-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
}

/* 판단 기준 섹션 */
.criteria-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.criteria-section h4 {
    margin: 0 0 25px 0;
    color: #0369a1;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.criteria-item {
    padding: 18px;
    background: #ffffff;
    border-left: 5px solid #0ea5e9;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.criteria-item:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateX(4px);
}

.criteria-item:last-child {
    margin-bottom: 0;
}

.criteria-item strong {
    display: block;
    margin-bottom: 8px;
    color: #0369a1;
    font-size: 1.05rem;
    font-weight: 700;
}

.criteria-item p {
    margin: 0;
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 체크리스트 섹션 */
.checklist-section {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checklist-section h4 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.checklist-item {
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.checklist-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f9fafb 0%, #faf5ff 100%);
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #8b5cf6;
}

.checklist-item label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checklist-item strong {
    display: block;
    color: #1f2937;
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.checklist-item small {
    color: #6b7280;
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 시뮬레이션 섹션 */
.simulation-section {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.simulation-section h4 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulation-section > p {
    color: #6b7280;
    margin: 0 0 25px 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.simulation-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.simulation-item {
    padding: 22px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.simulation-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3f4f6 100%);
}

.simulation-item h5 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
}

.sim-desc {
    margin: 0 0 14px 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.sim-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 2px solid #e5e7eb;
}

.sim-label {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
}

.sim-value {
    color: #1f2937;
    font-size: 1.6rem;
    font-weight: 800;
}

.sim-improvement {
    font-size: 1rem;
    font-weight: 700;
}

.text-success {
    color: #10b981;
    font-weight: 600;
}

.text-danger {
    color: #ef4444;
    font-weight: 600;
}

/* SEO 콘텐츠 섹션 */
.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-weight: 700;
}

.content-section h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: var(--dark-text);
    font-weight: 600;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.formula-box {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: 4px solid #8b5cf6;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.8;
}

.success-box,
.warning-box,
.caution-box,
.danger-box {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ccc;
}

.success-box {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.success-box h4 {
    color: #10b981;
    margin-bottom: 10px;
}

.warning-box {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.warning-box h4 {
    color: #3b82f6;
    margin-bottom: 10px;
}

.caution-box {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.caution-box h4 {
    color: #f59e0b;
    margin-bottom: 10px;
}

.danger-box {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #7f1d1d;
}

.danger-box h4 {
    color: #ef4444;
    margin-bottom: 10px;
}

/* ========== 액션 가이드 카드 스타일 ========== */
.action-guide-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f3e8ff 0%, #f5f3ff 100%);
    border-radius: 12px;
    border: 2px solid #e9d5ff;
}

.action-guide-section h4 {
    margin-top: 0;
    color: #7c3aed;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.guide-desc {
    color: #6b5b95;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.action-guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-guide-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #ccc;
    transition: all 0.3s ease;
}

.action-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 우선순위별 색상 */
.action-guide-card.priority-high {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

.action-guide-card.priority-medium {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb, white);
}

.action-guide-card.priority-low {
    border-left-color: #10b981;
    background: linear-gradient(to right, #f0fdf4, white);
}

.action-guide-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.action-guide-card h5 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--dark-text);
    flex: 1;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.card-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-items li {
    padding: 6px 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-items li:before {
    content: '• ';
    color: #7c3aed;
    font-weight: bold;
}

/* ========== SEO 콘텐츠 섹션 ========== */
.seo-content-section {
    margin-top: 80px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f6ff 0%, #fafafa 50%, #ffffff 100%);
    border-top: 3px solid #7c3aed;
}

.seo-container {
    max-width: 950px;
    margin: 0 auto;
}

/* 섹션 타이틀 */
.seo-content-section::before {
    content: '📚 상세 가이드';
    display: block;
    font-size: 0.85rem;
    color: #7c3aed;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.seo-article {
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9d5ff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
    transition: all 0.3s ease;
}

.seo-article:hover {
    border-color: #d8b4fe;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.12);
}

.seo-article:last-of-type {
    border-bottom: 1px solid #e9d5ff;
}

/* H2 헤더 - 아이콘과 함께 */
.seo-article h2 {
    font-size: 1.7rem;
    color: #5b21b6;
    margin: 0 0 25px 0;
    font-weight: 800;
    line-height: 1.4;
    padding-bottom: 15px;
    border-bottom: 3px solid #ede9fe;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 각 섹션별 H2 아이콘 */
.seo-article:nth-child(1) h2::before {
    content: '❓';
    font-size: 1.8rem;
}

.seo-article:nth-child(2) h2::before {
    content: '📐';
    font-size: 1.8rem;
}

.seo-article:nth-child(3) h2::before {
    content: '📊';
    font-size: 1.8rem;
}

.seo-article:nth-child(4) h2::before {
    content: '⭐';
    font-size: 1.8rem;
}

/* H3 섹션 헤더 */
.seo-article h3 {
    font-size: 1.15rem;
    color: #6d28d9;
    margin: 30px 0 15px 0;
    font-weight: 700;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 본문 텍스트 */
.seo-article p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 15px 0;
}

/* 강조 스타일 */
.seo-article strong {
    color: #5b21b6;
    font-weight: 700;
    background: linear-gradient(120deg, #ede9fe 0%, #f3e8ff 100%);
    padding: 2px 6px;
    border-radius: 3px;
}

/* 리스트 스타일 */
.seo-article ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-article ul li {
    padding-left: 32px;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
    position: relative;
    background: #f8fafc;
    padding: 12px 16px 12px 32px;
    border-radius: 6px;
    border-left: 3px solid #7c3aed;
    transition: all 0.2s ease;
}

.seo-article ul li:hover {
    background: #f1e7fd;
    border-left-color: #5b21b6;
}

.seo-article ul li:before {
    content: '→';
    position: absolute;
    left: 8px;
    color: #7c3aed;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 공식 박스 - 개선 버전 */
.formula-box {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 50%, #faf5ff 100%);
    border-left: 5px solid #7c3aed;
    border-radius: 10px;
    padding: 24px;
    margin: 25px 0;
    font-family: 'Courier New', 'Courier', monospace;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.formula-box::before {
    content: '📐';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.formula-box p {
    margin: 10px 0;
    color: #5b21b6;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
    padding: 8px 0;
}

.formula-box p:first-child {
    margin-top: 0;
}

.formula-box p:last-child {
    margin-bottom: 0;
}

/* 특수 스타일: 구간별 해석 */
.seo-article .criteria-description {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.seo-article .criteria-card {
    background: white;
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.seo-article .criteria-card:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.seo-article .criteria-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.seo-article .criteria-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* CTA 섹션 - 개선 버전 */
.seo-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #6d28d9 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 14px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.seo-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.seo-cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.seo-cta > * {
    position: relative;
    z-index: 2;
}

.seo-cta h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.seo-cta p {
    color: #e0c7ff;
    margin: 12px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.seo-cta p:first-of-type {
    font-size: 1rem;
    color: #faf5ff;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 수평선/구분선 */
.seo-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e9d5ff 50%, transparent 100%);
    margin: 40px 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .summary-row {
        flex-direction: column;
        gap: 10px;
    }

    .summary-item {
        min-width: 100%;
    }

    .checklist-items,
    .simulation-items,
    .action-guide-cards {
        grid-template-columns: 1fr;
    }

    .summary-main .summary-value {
        font-size: 2rem;
    }

    .interpretation-section,
    .criteria-section,
    .checklist-section,
    .simulation-section,
    .action-guide-section {
        padding: 20px;
    }

    /* SEO 콘텐츠 모바일 최적화 */
    .seo-content-section {
        padding: 40px 15px;
        margin-top: 60px;
    }

    .seo-article {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .seo-article h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .seo-article h3 {
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .seo-article p {
        font-size: 0.92rem;
    }

    .seo-article ul li {
        padding-left: 28px;
        font-size: 0.9rem;
    }

    .formula-box {
        padding: 18px;
        margin: 18px 0;
    }

    .formula-box p {
        font-size: 0.9rem;
    }

    .seo-cta {
        padding: 35px 25px;
        margin-top: 40px;
    }

    .seo-cta h3 {
        font-size: 1.3rem;
    }

    .seo-cta p {
        font-size: 0.9rem;
    }

    .criteria-description {
        grid-template-columns: 1fr !important;
    }

    .action-guide-card .card-header {
        flex-direction: column;
    }

    .priority-badge {
        align-self: flex-start;
    }
}

/* ============ 구독형 특화 스타일 ============ */

/* 단위 토글 */
.unit-toggle {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.toggle-item input[type="radio"] {
    cursor: pointer;
    accent-color: #8b5cf6;
}

.section-hint {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
}

/* 단위 배지 */
.summary-unit-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.summary-status {
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

/* 손익분기점 갭 카드 */
.breakeven-gap-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 10px;
    margin: 16px 0;
    border-left: 4px solid;
    background-color: #f9fafb;
}

.breakeven-gap-card.success {
    border-left-color: #10b981;
    background-color: #ecfdf5;
}

.breakeven-gap-card.danger {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.breakeven-gap-card.normal {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

.gap-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gap-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

.gap-text strong {
    color: var(--dark-text);
    font-weight: 600;
}

/* LTV/CAC 카드 */
.ltvcac-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.ltvcac-card.excellent {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.ltvcac-card.normal {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.ltvcac-card.danger {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.ltvcac-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 16px;
}

.ltvcac-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.ltvcac-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.ltvcac-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 4px;
}

.ltvcac-unit {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.ltvcac-item small {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 4px;
}

.ltvcac-status {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.ltvcac-status.excellent {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ltvcac-status.normal {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #fcd34d;
}

.ltvcac-status.danger {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* BEP 구독자 카드 */
.bep-subscribers-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e9d5ff 100%);
    border: 1px solid #c4b5fd;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.bep-icon {
    font-size: 1.3rem;
}

.bep-content {
    flex: 1;
}

.bep-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.bep-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8b5cf6;
}

.bep-unit {
    display: inline;
    margin-left: 4px;
    font-size: 0.9rem;
}

.bep-subscribers-card small {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* 액션 가이드 섹션 */
.action-guides-section {
    margin: 24px 0;
}

.action-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.action-guide-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.action-guide-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.action-guide-card.priority-high {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fff9f9 100%);
}

.action-guide-card.priority-medium {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fffdf9 100%);
}

.action-guide-card.priority-low {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #fffaf9 100%);
}

.guide-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.guide-content h5 {
    margin: 12px 0 8px 0;
    font-size: 1rem;
    color: var(--dark-text);
}

.guide-content p {
    margin: 8px 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.guide-content p strong {
    color: var(--dark-text);
}

.guide-content ul {
    margin: 8px 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.guide-content li {
    margin: 4px 0;
}

/* 공식 아코디언 */
.formula-accordion {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: none;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.accordion-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 16px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

.formula-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.formula-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.formula-box h5 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--dark-text);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.formula {
    margin: 10px 0;
    font-size: 0.85rem;
}

.formula-line {
    background: #f9fafb;
    padding: 8px;
    border-left: 3px solid #8b5cf6;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--dark-text);
}

.formula-example {
    background: #fffaf5;
    padding: 8px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-top: 4px;
}

.formula-info {
    background: #f0f4ff;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
    margin-top: 8px;
}

.formula-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #4c51bf;
    line-height: 1.4;
}

/* SEO 콘텐츠 스타일 */
.seo-article-container {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seo-article {
    max-width: 100%;
}

.seo-article h2 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin: 0 0 24px 0;
    border-bottom: 3px solid #8b5cf6;
    padding-bottom: 12px;
}

.seo-article h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin: 24px 0 12px 0;
}

.seo-article p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 12px 0;
    text-align: justify;
}

.formula-reference-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e9d5ff 100%);
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.formula-reference-box p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #4c51bf;
}

.formula-reference-box strong {
    color: #6d28d9;
}

.seo-criteria-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.seo-criteria-box p {
    margin: 10px 0;
    font-size: 0.9rem;
    padding: 8px;
    border-left: 3px solid #8b5cf6;
    background: white;
    border-radius: 4px;
}

.faq-section {
    margin-top: 16px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.faq-item strong {
    color: #8b5cf6;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 반응형 */
@media (max-width: 768px) {
    .unit-toggle {
        flex-direction: column;
    }

    .ltvcac-row {
        grid-template-columns: 1fr;
    }

    .action-guides {
        grid-template-columns: 1fr;
    }

    .formula-boxes {
        grid-template-columns: 1fr;
    }

    .seo-article-container {
        padding: 20px;
    }

    .bep-subscribers-card {
        flex-direction: column;
        text-align: center;
    }
}

