/* 구독 대시보드 - 테마 #051C95, 시안 기준 */
.sub-dashboard { width: 100%; max-width: 1300px; margin: 0 auto; padding: 28px 20px 80px; box-sizing: border-box; }

/* 탭 - 탭 패널 상단 */
.sub-dash-tabs { display: flex; gap: 0; border-bottom: 2px solid #E8E8E8; margin-bottom: 28px; }
.sub-dash-tab {
    padding: 12px 24px; background: none; border: none; border-bottom: 3px solid transparent;
    font-size: 15px; font-weight: 600; color: #666; cursor: pointer; margin-bottom: -2px;
    transition: all 0.2s;
}
.sub-dash-tab:hover { color: #051C95; }
.sub-dash-tab.active { color: #051C95; border-bottom-color: #051C95; }

.sub-dash-tab-panel { display: none; }
.sub-dash-tab-panel.active { display: block; }

/* 통계 카드 */
.sub-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.sub-dash-stat-card {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.sub-dash-stat-card:hover { border-color: #051C95; box-shadow: 0 4px 16px rgba(5,28,149,0.08); }
.sub-dash-stat-label { font-size: 13px; color: #666; font-weight: 500; margin-bottom: 8px; }
.sub-dash-stat-value { font-size: 24px; font-weight: 800; color: #000; }
.sub-dash-stat-value.accent { color: #051C95; }

/* 섹션 */
.sub-dash-section { margin-bottom: 48px; }
.sub-dash-section-title { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #051C95; }
.sub-dash-section-sub { font-weight: 500; font-size: 16px; color: #666; }

/* 비용 트렌드 - 꺾은선 그래프 */
.sub-dash-trend {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 28px; margin-bottom: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sub-dash-trend-header { margin-bottom: 20px; }
.sub-dash-trend-header span { font-size: 14px; color: #666; }

/* 그래프 50% + 메트릭(평균비용/절감액/절감률) 50% - 절반씩 배치 */
.sub-dash-trend-row { display: flex; gap: 24px; align-items: stretch; margin-top: 20px; }
.sub-dash-line-chart-wrap {
    flex: 1; min-width: 0; position: relative;
}
/* 그래프 비율 유지: viewBox 400x140, 높이 소폭 증가 */
.sub-dash-line-chart { position: relative; padding-left: 52px; }
.sub-dash-line-chart svg { width: 100%; height: auto; display: block; aspect-ratio: 400/170; }
.sub-dash-trend-metrics-side {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px;
    align-self: stretch; justify-content: center;
}
.sub-dash-trend-metrics-side .sub-dash-trend-metric {
    padding: 12px 14px; background: #F5F6F8; border-radius: 10px; border: 1px solid #E8E8E8;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.sub-dash-trend-metric-label { font-size: 14px; color: #666; margin-bottom: 8px; }
.sub-dash-trend-metric-value { font-size: 18px; font-weight: 700; color: #051C95; }
.sub-dash-line-chart-y {
    position: absolute; left: 0; top: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    font-size: 11px; color: #999; font-weight: 500; padding: 0 0 24px 0;
}
.sub-dash-line-chart-x {
    display: flex; justify-content: space-between; margin-top: 8px; padding-left: 50px; margin-left: -50px;
    font-size: 12px; color: #666;
}
.sub-dash-line-chart-x span { flex: 1; text-align: center; }

/* 활성 구독 카드 */
.sub-dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sub-dash-card {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.sub-dash-card:hover { border-color: #051C95; box-shadow: 0 4px 16px rgba(5,28,149,0.08); }
.sub-dash-card.expiring { border-color: #FF9500; }
.sub-dash-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.sub-dash-card-icon { font-size: 28px; }
.sub-dash-card-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sub-dash-card-status.active { background: #E8F5E9; color: #2E7D32; }
.sub-dash-card-status.expiring { background: #FFF3E0; color: #E65100; }
.sub-dash-card-title { font-size: 17px; font-weight: 800; color: #000; margin-bottom: 6px; }
.sub-dash-card-desc { font-size: 13px; color: #666; margin-bottom: 16px; }
.sub-dash-card-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sub-dash-card-info-row { display: flex; justify-content: space-between; font-size: 13px; }
.sub-dash-card-info-row span:first-child { color: #999; }
.sub-dash-card-info-row span:last-child { font-weight: 600; color: #333; }
.sub-dash-card-progress { margin-bottom: 16px; }
.sub-dash-card-progress-bar { height: 6px; background: #E8E8E8; border-radius: 3px; overflow: hidden; }
.sub-dash-card-progress-fill { height: 100%; background: #051C95; border-radius: 3px; }
.sub-dash-card-progress-text { font-size: 12px; color: #666; margin-top: 6px; }
.sub-dash-card-footer { display: flex; gap: 8px; }
.sub-dash-card-btn { flex: 1; padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; transition: all 0.2s; }
.sub-dash-card-btn.primary { background: #051C95; color: #fff; }
.sub-dash-card-btn.primary:hover { background: #041573; }
.sub-dash-card-btn.outline { background: #fff; color: #051C95; border: 1px solid #051C95; }
.sub-dash-card-btn.outline:hover { background: #F0F4FF; }

/* 2단 레이아웃 */
.sub-dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sub-dash-col .sub-dash-section-title { margin-bottom: 16px; }

/* 최적화 제안 */
.sub-dash-optimize {
    background: #F5F6F8; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px;
}
.sub-dash-optimize-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sub-dash-optimize-badge { padding: 5px 14px; background: #051C95; color: #fff; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sub-dash-optimize-title { font-size: 17px; font-weight: 800; color: #000; }
.sub-dash-optimize-desc { font-size: 14px; color: #555; margin-bottom: 16px; line-height: 1.5; }
.sub-dash-optimize-list { list-style: none; padding: 0; margin-bottom: 20px; }
.sub-dash-optimize-list li { font-size: 14px; color: #333; padding: 6px 0 6px 20px; position: relative; }
.sub-dash-optimize-list li::before { content: "•"; position: absolute; left: 0; color: #051C95; font-weight: bold; }
.sub-dash-optimize-btn { padding: 12px 24px; background: #051C95; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.sub-dash-optimize-btn:hover { background: #041573; }

/* 추천 도구 */
.sub-dash-recommend {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; display: flex; align-items: center; gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.2s;
}
.sub-dash-recommend:hover { border-color: #051C95; }
.sub-dash-recommend-icon { font-size: 44px; }
.sub-dash-recommend-content { flex: 1; }
.sub-dash-recommend-title { font-size: 17px; font-weight: 800; color: #000; margin-bottom: 6px; }
.sub-dash-recommend-desc { font-size: 14px; color: #666; margin-bottom: 14px; }
.sub-dash-recommend-btn { padding: 10px 20px; background: #051C95; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; }
.sub-dash-recommend-btn:hover { background: #041573; color: #fff; }

/* AI 트렌드 카드 */
.sub-dash-trend-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sub-dash-trend-card {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s; cursor: pointer;
}
.sub-dash-trend-card:hover { border-color: #051C95; box-shadow: 0 4px 16px rgba(5,28,149,0.08); transform: translateY(-2px); }
.sub-dash-trend-card-tag { font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.sub-dash-trend-card-tag.rising { color: #2E7D32; }
.sub-dash-trend-card-tag.new { color: #1565C0; }
.sub-dash-trend-card-tag.popular { color: #FF9500; }
.sub-dash-trend-card-icon { font-size: 26px; margin-bottom: 10px; }
.sub-dash-trend-card-title { font-size: 16px; font-weight: 800; color: #000; margin-bottom: 6px; }
.sub-dash-trend-card-desc { font-size: 13px; color: #666; margin-bottom: 14px; }
.sub-dash-trend-card-meta { font-size: 12px; color: #999; margin-bottom: 16px; }
.sub-dash-trend-card-btn { display: inline-block; padding: 9px 18px; background: #051C95; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.sub-dash-trend-card-btn:hover { background: #041573; color: #fff; }

/* 구독 리포트 CTA */
.sub-dash-report-cta {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sub-dash-report-title { font-size: 22px; font-weight: 800; color: #000; margin: 0 0 8px 0; }
.sub-dash-report-desc { font-size: 15px; color: #666; margin: 0 0 20px 0; }
.sub-dash-report-btn { padding: 12px 24px; background: #051C95; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.sub-dash-report-btn:hover { background: #041573; }
.sub-dash-report-stats { display: flex; gap: 32px; }
.sub-dash-report-stats div { text-align: center; }
.sub-dash-report-stats .num { display: block; font-size: 24px; font-weight: 800; color: #051C95; margin-bottom: 4px; }
.sub-dash-report-stats span:last-child { font-size: 13px; color: #666; }

/* 굿러닝 혁신 섹션 */
.sub-dash-innovate { background: #F5F6F8; border: 1px solid #E8E8E8; border-radius: 14px; padding: 32px; }
.sub-dash-innovate-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.sub-dash-innovate-stats > div { text-align: center; }
.sub-dash-innovate-stats .ico { font-size: 32px; display: block; margin-bottom: 8px; }
.sub-dash-innovate-stats .num { display: block; font-size: 22px; font-weight: 800; color: #051C95; margin-bottom: 4px; }
.sub-dash-innovate-stats span:not(.ico):not(.num):not(.sub) { font-size: 14px; font-weight: 600; color: #333; }
.sub-dash-innovate-stats .sub { display: block; font-size: 12px; color: #666; font-weight: 400; margin-top: 4px; }
.sub-dash-testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sub-dash-testimonials blockquote { margin: 0; padding: 20px; background: #fff; border-radius: 10px; border-left: 4px solid #051C95; font-size: 14px; color: #333; line-height: 1.6; }
.sub-dash-testimonials cite { display: block; margin-top: 12px; font-size: 13px; color: #666; font-style: normal; }

/* 에듀테크 뉴스 */
.sub-dash-news-list { display: flex; flex-direction: column; gap: 16px; }
.sub-dash-news-item {
    display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid #E8E8E8;
    border-radius: 14px; text-decoration: none; color: inherit; transition: all 0.2s;
}
.sub-dash-news-item:hover { border-color: #051C95; }
.sub-dash-news-item .tag { font-size: 28px; }
.sub-dash-news-item h4 { font-size: 17px; font-weight: 800; color: #000; margin: 0 0 8px 0; }
.sub-dash-news-item .date { font-size: 12px; color: #999; }
.sub-dash-news-item p { font-size: 14px; color: #555; line-height: 1.5; margin: 12px 0; }
.sub-dash-news-item .link { font-size: 13px; font-weight: 600; color: #051C95; }

/* 새로 등록된 에듀테크 도구 */
.sub-dash-new-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sub-dash-new-tool {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; position: relative; transition: all 0.2s;
}
.sub-dash-new-tool:hover { border-color: #051C95; }
.sub-dash-new-tool .badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; color: #1565C0; }
.sub-dash-new-tool .ico { font-size: 36px; display: block; margin-bottom: 12px; }
.sub-dash-new-tool h4 { font-size: 17px; font-weight: 800; color: #000; margin: 0 0 8px 0; }
.sub-dash-new-tool p { font-size: 14px; color: #555; margin: 0 0 12px 0; }
.sub-dash-new-tool .meta { font-size: 12px; color: #999; display: block; margin-bottom: 16px; }
.sub-dash-new-tool .btn { display: inline-block; padding: 8px 16px; background: #051C95; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.sub-dash-new-tool .btn:hover { background: #041573; color: #fff; }

/* 특별 제안 */
.sub-dash-special-desc { font-size: 15px; color: #666; margin-bottom: 20px; }
.sub-dash-special-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sub-dash-special-card {
    background: #fff; border: 1px solid #E8E8E8; border-radius: 14px;
    padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.sub-dash-special-card:hover { border-color: #051C95; }
.sub-dash-special-card .ico { font-size: 40px; margin-bottom: 12px; }
.sub-dash-special-card h4 { font-size: 17px; font-weight: 800; color: #000; margin: 0 0 8px 0; }
.sub-dash-special-card .price { font-size: 14px; color: #666; margin-bottom: 16px; }
.sub-dash-special-card .btn { display: inline-block; padding: 10px 24px; background: #051C95; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; }
.sub-dash-special-more { text-align: center; margin-top: 24px; }
.sub-dash-special-more a { font-size: 15px; font-weight: 600; color: #051C95; text-decoration: none; }
.sub-dash-special-more a:hover { text-decoration: underline; }

/* 반응형 */
@media (max-width: 1100px) {
    .sub-dash-stats { grid-template-columns: repeat(2, 1fr); }
    .sub-dash-cards { grid-template-columns: repeat(2, 1fr); }
    .sub-dash-trend-cards { grid-template-columns: repeat(2, 1fr); }
    .sub-dash-two-col { grid-template-columns: 1fr; }
    .sub-dash-innovate-stats { grid-template-columns: repeat(2, 1fr); }
    .sub-dash-testimonials { grid-template-columns: 1fr; }
    .sub-dash-new-tools { grid-template-columns: repeat(2, 1fr); }
    .sub-dash-special-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sub-dashboard { padding: 24px 16px 60px; }
    .sub-dash-tabs-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sub-dash-tabs { flex-wrap: wrap; }
    .sub-dash-tab { padding: 12px 20px; font-size: 14px; }
    .sub-dash-stats { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .sub-dash-cards { grid-template-columns: 1fr; }
    .sub-dash-trend-cards { grid-template-columns: 1fr; }
    .sub-dash-section-title { font-size: 18px; }
    .sub-dash-trend-row { flex-direction: column; }
    .sub-dash-trend-metrics-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .sub-dash-trend-metrics-side .sub-dash-trend-metric { flex: 1; min-width: 100px; }
    .sub-dash-line-chart { padding-left: 40px; }
    .sub-dash-line-chart svg { height: 100px; }
    .sub-dash-report-cta { flex-direction: column; align-items: flex-start; }
    .sub-dash-report-stats { flex-wrap: wrap; gap: 20px; }
    .sub-dash-innovate-stats { grid-template-columns: 1fr; gap: 20px; }
    .sub-dash-news-item { flex-direction: column; }
    .sub-dash-new-tools { grid-template-columns: 1fr; }
    .sub-dash-special-cards { grid-template-columns: 1fr; }
}
