/* i18n FOUC 방지 — 영어 블록은 기본 hidden, JS에서 토글 */
.lang-en { display: none; }

/* ========== 디자인 시스템 v2 (토스 DNA) ========== */
:root {
    /* 배경·표면 */
    --bg-primary: #0a0e1a;
    --bg-card: #141926;
    --bg-card-hover: #1a2030;
    --bg-elevated: #1d2332;

    /* 보더 */
    --border: #1f2937;
    --border-subtle: #252d3d;

    /* 포인트 컬러 (토스 블루 영감) */
    --accent: #0D5FD9;
    --accent-light: #3B82F6;
    --accent-cyan: #00D9FF;
    --accent-gradient: linear-gradient(135deg, #0D5FD9 0%, #00D9FF 100%);
    --accent-bg: rgba(13, 95, 217, 0.12);

    /* 텍스트 계층 */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* 시맨틱 컬러 */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3B82F6;

    /* 모서리 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 20px rgba(13, 95, 217, 0.3);

    /* 애니메이션 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-feature-settings: "ss06";
    letter-spacing: -0.01em;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
img, svg, video, iframe { max-width: 100%; }

/* 숫자 폭 고정 (가격·퍼센트 정렬) */
.tnum, .stock-ticker, .fg-score, .fv-box-value, .rs-composite,
.vs-price, .vs-change, .opt-maxpain-value, .quality-score-val {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}
.container { max-width: 800px; margin: 0 auto; padding: 20px 16px; width: 100%; }

/* 콘텐츠 네비 (Row 1) — 로고 바로 위, 같은 헤더 블록으로 시각 통합 */
.contentnav {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 16px 6px;
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.contentnav-link {
    color: var(--text-primary); text-decoration: none;
    font-size: 1rem; font-weight: 700;
    padding: 10px 18px; border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.contentnav-link:hover {
    background: var(--accent-bg); color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .contentnav { padding: 12px 10px; gap: 4px; }
    .contentnav-link { font-size: 0.88rem; padding: 8px 14px; }
}
@media (max-width: 480px) {
    .contentnav { padding: 10px 8px; gap: 3px; }
    .contentnav-link { font-size: 0.8rem; padding: 7px 12px; }
}

/* 상단 sticky 네비 (모든 페이지 공통) */
.topnav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand-link {
    display: flex; align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.brand-link img { height: 56px; width: auto; display: block; }
.brand-link:hover { opacity: 0.75; }
.topnav-right { display: flex; gap: 8px; align-items: center; }
.topnav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.8rem; font-weight: 600;
    padding: 10px 14px; border-radius: var(--radius-pill);
    min-height: 40px; display: inline-flex; align-items: center;
    transition: all var(--transition-fast);
}
.topnav-link:hover { background: var(--accent-bg); color: var(--text-primary); }
@media (max-width: 480px) {
    .topnav { padding: 10px 14px; }
    .brand-link img { height: 44px; }
    .topnav-link { font-size: 0.72rem; padding: 8px 10px; min-height: 36px; }
}

/* 히어로 — StockInto 로고 + 캐치 */
.hero {
    text-align: center;
    padding: 40px 0 28px;
}
.hero-logo {
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hero-logo img { max-height: 120px; width: auto; max-width: 92vw; display: block; }
.hero-logo:hover { opacity: 0.9; transform: scale(1.02); }
.hero .hero-catch {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.hero .hero-catch .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .hero-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
@media (max-width: 480px) {
    .hero { padding: 28px 0 16px; }
    .hero-logo { margin-bottom: 10px; }
    .hero-logo img { max-height: 84px; }
    .hero .hero-catch { font-size: 1.25rem; }
    .hero .hero-sub { font-size: 0.82rem; }
}

.search-wrap { position: relative; margin: 20px 0 24px; }
.search-box { display: flex; gap: 10px; width: 100%; }
.search-box input {
    flex: 1 1 0; min-width: 0; padding: 16px 20px; border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--bg-card); color: var(--text-primary);
    font-size: 1rem; font-weight: 500; outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
    background: var(--bg-elevated);
}
.search-box input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-box button {
    padding: 16px 28px; border-radius: var(--radius-lg); border: none;
    background: var(--accent-gradient); color: #fff;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    white-space: nowrap; letter-spacing: -0.01em;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    font-family: inherit;
}
.search-box button:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.search-box button:active { transform: translateY(0); }
.search-box button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.search-box button:disabled { opacity: 0.5; cursor: not-allowed; }

.autocomplete { position: absolute; top: 100%; left: 0; right: 0; background: #1e1e3a; border: 1px solid #3a2a5e; border-radius: 12px; margin-top: 4px; z-index: 100; overflow: hidden; display: none; max-height: 400px; overflow-y: auto; }
.autocomplete.show { display: block; }
.ac-item { padding: 12px 16px; cursor: pointer; transition: background 0.15s; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a2a3e; gap: 8px; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.selected { background: #2a2a4e; }
.ac-name { font-size: 0.9rem; }
.ac-sub { font-size: 0.72rem; color: #666; margin-top: 2px; }
.ac-symbol { font-size: 0.8rem; color: #7b2ff7; font-weight: 600; }
.ac-exchange { font-size: 0.7rem; color: #666; margin-left: 8px; }
.ac-right { display: flex; align-items: center; gap: 6px; }

.loading { text-align: center; padding: 60px 0; display: none; }
.spinner { width: 40px; height: 40px; border: 4px solid #2a2a3e; border-top-color: #7b2ff7; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg { text-align: center; color: #ff6b6b; padding: 20px; background: #2a1a1a; border-radius: 12px; margin: 20px 0; display: none; }

#results { display: none; }

/* 시장 방향 배너 */
.market-banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 0.85rem; border: 1px solid var(--border); background: var(--bg-card); gap: 12px; }
.mb-left { display: flex; align-items: center; gap: 10px; }
.mb-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mb-up { background: #4caf50; box-shadow: 0 0 8px #4caf50; }
.mb-down { background: #f44336; box-shadow: 0 0 8px #f44336; }
.mb-flat { background: #ffeb3b; box-shadow: 0 0 8px #ffeb3b; }
.mb-label { font-weight: 600; }
.mb-sub { font-size: 0.75rem; color: #888; }
.mb-right { font-size: 0.75rem; color: #aaa; text-align: right; white-space: nowrap; }

/* 한 줄 판정 카드 */
.verdict-card {
    border-radius: var(--radius-xl); padding: 22px 26px;
    margin-bottom: 18px; border: 1px solid;
    display: flex; gap: 20px; align-items: center;
    transition: transform var(--transition-base);
}
.verdict-card:hover { transform: translateY(-2px); }
.verdict-green { background: var(--success-bg); border-color: rgba(16, 185, 129, 0.3); }
.verdict-yellow { background: var(--warning-bg); border-color: rgba(245, 158, 11, 0.3); }
.verdict-red { background: var(--danger-bg); border-color: rgba(239, 68, 68, 0.3); }
.verdict-badge {
    font-size: 1.35rem; font-weight: 800;
    padding: 14px 22px; border-radius: var(--radius-lg);
    min-width: 130px; text-align: center; flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-md);
}
.vb-green { background: var(--success); color: #052e1c; }
.vb-yellow { background: var(--warning); color: #3a2a00; }
.vb-red { background: var(--danger); color: #fff; }
.verdict-content { flex: 1; min-width: 0; }
.verdict-reasons { font-size: 0.88rem; color: var(--text-primary); line-height: 1.7; }
.verdict-reasons li { margin-bottom: 3px; font-weight: 500; }
.verdict-warnings {
    font-size: 0.78rem; color: var(--warning);
    margin-top: 8px; line-height: 1.6;
    padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* 데이터 경고 */
.data-warning { background: #2a2410; border: 1px solid #4a3a10; color: #ffb74d; padding: 8px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.75rem; }

/* 종목 카드 — 고급스러운 히어로 카드 */
.stock-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-radius: var(--radius-xl); padding: 28px;
    margin-bottom: 18px; border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.stock-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-gradient);
}
.stock-name {
    font-size: 1.6rem; font-weight: 800; margin-bottom: 10px;
    color: var(--text-primary); letter-spacing: -0.02em;
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.stock-ticker {
    font-size: 0.85rem; color: var(--accent-cyan); font-weight: 700;
    background: var(--accent-bg); padding: 4px 10px; border-radius: var(--radius-pill);
    letter-spacing: 0.02em; font-feature-settings: "tnum" 1;
}
.stock-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
.stock-meta span {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    padding: 5px 12px; border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    font-weight: 500;
}

/* 거래량 TOP 사이드바 (우측 고정) */
.volume-sidebar {
    position: fixed; top: 100px; right: 20px;
    width: 280px; max-height: calc(100vh - 140px); overflow-y: auto;
    background: var(--bg-card); border: 1px solid #3a2a5e; border-radius: 14px;
    padding: 14px; z-index: 50; font-size: 0.82rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.vs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vs-title { font-size: 0.9rem; font-weight: 700; color: #fff; }
.vs-refresh { background: none; border: none; color: #888; cursor: pointer; font-size: 0.72rem; }
.vs-refresh:hover { color: #00d2ff; }
.vs-tabs { display: flex; margin-bottom: 10px; border-bottom: 1px solid #2a2a3e; }
.vs-tab { flex: 1; padding: 6px; text-align: center; cursor: pointer; color: #888; font-size: 0.78rem; font-weight: 600; border-bottom: 2px solid transparent; }
.vs-tab.active { color: #fff; border-bottom-color: #7b2ff7; }
.vs-list { display: none; }
.vs-list.active { display: block; }
.vs-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 4px; border-bottom: 1px solid #1e1e35; cursor: pointer;
    transition: background 0.15s;
}
.vs-item:hover { background: #2a2a4e; }
.vs-item:last-child { border-bottom: none; }
.vs-rank { font-size: 0.7rem; color: #7b2ff7; font-weight: 700; min-width: 18px; text-align: center; }
.vs-main { flex: 1; min-width: 0; overflow: hidden; }
.vs-ticker { font-weight: 700; color: #fff; font-size: 0.8rem; }
.vs-name { color: #888; font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-right { text-align: right; }
.vs-price { font-size: 0.78rem; color: #fff; font-weight: 600; }
.vs-change { font-size: 0.68rem; }
.vs-change.up { color: #4caf50; }
.vs-change.down { color: #f44336; }
.vs-change.flat { color: #888; }
.vs-toggle {
    display: none;
    position: fixed; top: 20px; right: 20px; z-index: 51;
    background: #7b2ff7; color: #fff; border: none;
    padding: 10px 14px; border-radius: 8px; cursor: pointer;
    font-size: 0.8rem; font-weight: 600;
}
@media (max-width: 1200px) {
    .volume-sidebar { display: none; }
    .volume-sidebar.open { display: block; top: 60px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 80px); }
    .vs-toggle { display: block; }
}

/* TradingView 차트 */
.tv-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 20px; border: 1px solid var(--border); }
.tv-card-title { font-size: 0.85rem; color: #aaa; margin-bottom: 8px; padding-left: 8px; }
.tv-chart-wrap { height: 420px; width: 100%; }
@media (max-width: 480px) { .tv-chart-wrap { height: 320px; } }

/* 적정주가 카드 */
.fv-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.fv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.fv-box { background: var(--bg-primary); border-radius: 10px; padding: 12px; text-align: center; }
.fv-box-label { font-size: 0.7rem; color: #888; margin-bottom: 3px; }
.fv-box-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.fv-box-sub { font-size: 0.7rem; color: #aaa; margin-top: 2px; }
.fv-verdict { text-align: center; padding: 10px; margin-top: 12px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; }
.fv-up { background: #0a2a14; color: #4caf50; }
.fv-fair { background: #2a2a1a; color: #ffeb3b; }
.fv-down { background: #2a1010; color: #f44336; }

.section-title { font-size: 1.1rem; font-weight: 700; margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid #7b2ff7; }

/* 탭 — 토스 스타일 세련된 */
.tabs {
    display: flex; gap: 4px; margin-bottom: 18px;
    padding: 4px; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border);
    flex-wrap: wrap;
}
.tab-btn {
    flex: 1; min-width: 88px; min-height: 44px; padding: 12px 10px;
    text-align: center; cursor: pointer;
    background: transparent; color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 600; border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-family: inherit;
}
.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-content { display: none; animation: fadeInUp 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 공포/탐욕 */
.fg-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; border: 1px solid var(--border); text-align: center; }
.fg-gauge-wrap { position: relative; width: 220px; height: 120px; margin: 0 auto 16px; overflow: hidden; }
.fg-gauge-bg { width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(#e53935 0deg, #ff9800 72deg, #ffeb3b 126deg, #66bb6a 180deg, #4caf50 234deg, #2e7d32 288deg, #1b5e20 360deg); mask: radial-gradient(circle at center, transparent 65px, black 66px); -webkit-mask: radial-gradient(circle at center, transparent 65px, black 66px); }
.fg-needle { position: absolute; bottom: 5px; left: 50%; width: 3px; height: 80px; background: #fff; border-radius: 2px; transform-origin: bottom center; transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.fg-needle::after { content: ''; position: absolute; bottom: -5px; left: -5px; width: 13px; height: 13px; background: #fff; border-radius: 50%; }
.fg-score { font-size: 2.8rem; font-weight: 800; margin: 8px 0 4px; }
.fg-label { font-size: 1.1rem; font-weight: 600; }
.fg-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: #888; margin-top: 4px; padding: 0 10px; max-width: 320px; margin-left: auto; margin-right: auto; }
.fg-scale span:nth-child(2) { color: #aaa; }
.fg-indicators { margin-top: 20px; text-align: left; }
.fg-ind-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #1e1e35; }
.fg-ind-item:last-child { border-bottom: none; }
.fg-ind-name { font-size: 0.85rem; flex: 1; }
.fg-ind-value { font-size: 0.85rem; color: #aaa; margin: 0 12px; }
.fg-ind-bar-wrap { width: 80px; height: 6px; background: #2a2a3e; border-radius: 3px; overflow: hidden; }
.fg-ind-bar { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.fg-ind-label { font-size: 0.75rem; color: #888; min-width: 70px; text-align: right; }

/* 숏/롱 */
.pos-card, .opt-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.pos-sentiment { text-align: center; padding: 16px; margin-bottom: 16px; border-radius: 12px; }
.pos-sentiment-label { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.pos-sentiment-detail { font-size: 0.85rem; color: #bbb; }
.pos-section-title { font-size: 0.9rem; font-weight: 600; color: #aaa; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #2a2a3e; }
.pos-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #1e1e35; font-size: 0.85rem; }
.pos-item:last-child { border-bottom: none; }
.pos-item-name { color: #ccc; flex: 1; }
.pos-item-value { color: #fff; font-weight: 600; text-align: right; }

/* 옵션 */
.opt-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.opt-box { background: var(--bg-primary); border-radius: 12px; padding: 16px; text-align: center; }
.opt-box-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.opt-box-value { font-size: 1.3rem; font-weight: 700; }
.opt-maxpain { background: #1e1e35; border-radius: 12px; padding: 16px; margin-bottom: 20px; text-align: center; }
.opt-maxpain-label { font-size: 0.8rem; color: #aaa; margin-bottom: 4px; }
.opt-maxpain-value { font-size: 1.5rem; font-weight: 800; color: #7b2ff7; }
.opt-maxpain-desc { font-size: 0.8rem; color: #aaa; margin-top: 4px; }
.opt-strike-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #1e1e35; font-size: 0.85rem; gap: 8px; }
.opt-strike-item:last-child { border-bottom: none; }
.opt-strike-price { font-weight: 700; min-width: 65px; }
.opt-strike-oi { color: #aaa; min-width: 70px; text-align: right; }
.opt-strike-desc { color: #888; font-size: 0.8rem; flex: 1; }
.opt-strike-bar-wrap { width: 60px; height: 6px; background: #2a2a3e; border-radius: 3px; overflow: hidden; min-width: 60px; }
.opt-strike-bar { height: 100%; border-radius: 3px; }

/* 종합 점수 */
.overall-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; text-align: center; margin-bottom: 20px; border: 1px solid var(--border); }
.grade-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 2.5rem; font-weight: 800; }
.grade-A { background: linear-gradient(135deg, #00c851, #00e676); color: #0a2a0a; }
.grade-B { background: linear-gradient(135deg, #2196f3, #42a5f5); color: #0a1a2a; }
.grade-C { background: linear-gradient(135deg, #ff9800, #ffb74d); color: #2a1a0a; }
.grade-D { background: linear-gradient(135deg, #ff5722, #ff7043); color: #2a0a0a; }
.grade-F { background: linear-gradient(135deg, #f44336, #e53935); color: #fff; }
.overall-text { font-size: 1.1rem; color: #ccc; }
.overall-detail { font-size: 0.9rem; color: #888; margin-top: 4px; }

/* RS Rating */
.rs-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; border: 1px solid var(--border); }
.rs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rs-title { font-size: 0.9rem; font-weight: 700; color: #aaa; }
.rs-composite { font-size: 1.5rem; font-weight: 800; }
.rs-label { font-size: 0.8rem; color: #aaa; margin-left: 8px; }
.rs-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rs-bar-item { text-align: center; }
.rs-bar-period { font-size: 0.72rem; color: #888; margin-bottom: 4px; }
.rs-bar-track { height: 4px; background: #2a2a3e; border-radius: 2px; overflow: hidden; }
.rs-bar-fill { height: 100%; border-radius: 2px; }
.rs-bar-val { font-size: 0.78rem; font-weight: 600; margin-top: 3px; }

/* 투자자 카드 */
.investor-card { background: var(--bg-card); border-radius: var(--radius-lg); margin-bottom: 14px; border: 1px solid var(--border); overflow: hidden; }
.investor-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; user-select: none; transition: background 0.2s; }
.investor-header:hover { background: #222240; }
.investor-left { display: flex; align-items: center; gap: 12px; }
.investor-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: #fff; }
.icon-buffett { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.icon-graham { background: linear-gradient(135deg, #1a237e, #283593); }
.icon-lynch { background: linear-gradient(135deg, #004d40, #00695c); }
.icon-oneil { background: linear-gradient(135deg, #e65100, #f57c00); }
.icon-fisher { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.investor-name { font-weight: 600; font-size: 1rem; }
.investor-sub { font-size: 0.8rem; color: #888; }
.investor-right { display: flex; align-items: center; gap: 12px; }
.pass-rate { font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.rate-high { background: #0a3a0a; color: #4caf50; }
.rate-mid { background: #3a3a0a; color: #ffeb3b; }
.rate-low { background: #3a0a0a; color: #f44336; }
.arrow { color: #666; transition: transform 0.3s; font-size: 0.8rem; }
.arrow.open { transform: rotate(180deg); }
.criteria-list { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.criteria-list.open { max-height: 700px; }
.criteria-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid #1e1e35; }
.criteria-item:hover { background: #1e1e35; }
.criteria-name { font-size: 0.88rem; flex: 1; }
.criteria-value { font-size: 0.83rem; color: #aaa; margin: 0 12px; text-align: right; min-width: 80px; }
.badge { padding: 3px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; min-width: 50px; text-align: center; }
.badge-yes { background: #0a3a0a; color: #4caf50; }
.badge-no { background: #3a0a0a; color: #f44336; }
.badge-na { background: #2a2a2a; color: #666; }
.progress-bar { height: 4px; background: #2a2a3e; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }

/* 재무 추세 */
.chart-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; border: 1px solid var(--border); }
.chart-title { font-size: 0.9rem; color: #aaa; margin-bottom: 10px; font-weight: 600; }
.chart-canvas-wrap { position: relative; height: 180px; }
.cagr-row { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cagr-pill { background: var(--bg-primary); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; color: #aaa; }
.cagr-pill b { color: #fff; }

/* 품질 카드 */
.quality-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.quality-score-wrap { text-align: center; margin-bottom: 16px; }
.quality-score-val { font-size: 2.4rem; font-weight: 800; }
.quality-score-label { font-size: 0.85rem; color: #888; }
.quality-bar-track { height: 8px; background: #2a2a3e; border-radius: 4px; overflow: hidden; margin: 10px auto; max-width: 300px; }
.quality-bar-fill { height: 100%; border-radius: 4px; }
.quality-section { margin-top: 16px; }
.quality-section h4 { font-size: 0.85rem; margin-bottom: 8px; color: #aaa; }
.quality-section ul { list-style: none; padding: 0; }
.quality-section li { padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; font-size: 0.82rem; }
.qs-strength li { background: #0a2a14; color: #aed581; border-left: 3px solid #4caf50; }
.qs-flag li { background: #2a1010; color: #ef9a9a; border-left: 3px solid #f44336; }
.quality-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; font-size: 0.78rem; }
.quality-metric { background: var(--bg-primary); padding: 8px 12px; border-radius: 8px; }
.qm-label { color: #888; font-size: 0.72rem; }
.qm-value { color: #fff; font-weight: 600; margin-top: 2px; }

.disclaimer { text-align: center; color: #888; font-size: 0.78rem; padding: 20px 0; line-height: 1.7; }

/* 일일 브리핑 모달 */
.briefing-modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 15, 0.78);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.briefing-modal-card {
    background: var(--bg-card, #141821);
    border: 1px solid var(--border, #232936);
    border-radius: 16px;
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    padding: 24px 22px 18px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.briefing-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: transparent; border: none;
    color: #888; cursor: pointer;
    font-size: 1.2rem; padding: 6px 10px;
    border-radius: 50%;
    min-width: 36px; min-height: 36px;
}
.briefing-modal-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
.briefing-modal-header { margin-bottom: 16px; padding-right: 30px; }
.briefing-modal-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--text, #e7eaf2); margin-bottom: 4px; }
.briefing-modal-date { font-size: 0.78rem; color: #888; line-height: 1.55; }
.briefing-modal-close-times { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; font-size:0.72rem; color:#9aa3b2; }
.briefing-modal-close-times strong { color:#c9d0dc; font-weight:600; }
.briefing-modal-body { font-size: 0.85rem; }
.briefing-modal-indices {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    margin-bottom: 14px;
}
.briefing-modal-idx {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border, #232936);
    border-radius: 8px;
    padding: 8px 10px;
}
.briefing-modal-idx .name { font-size: 0.7rem; color: #888; }
.briefing-modal-idx .value { font-size: 0.95rem; font-weight: 700; color: var(--text, #e7eaf2); }
.briefing-modal-idx .change { font-size: 0.72rem; font-weight: 600; }
.briefing-modal-idx .change.up { color: #4caf50; }
.briefing-modal-idx .change.down { color: #f44336; }
.briefing-modal-news { margin-top: 14px; }
.briefing-modal-news-title { font-size: 0.78rem; color: #aaa; margin-bottom: 8px; font-weight: 600; }
.briefing-modal-news-item {
    display: block; padding: 8px 10px;
    border: 1px solid var(--border, #232936);
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none; color: var(--text, #e7eaf2);
    font-size: 0.78rem; line-height: 1.4;
}
.briefing-modal-news-item:hover { border-color: var(--accent, #3B82F6); }
.briefing-modal-news-item .src { font-size: 0.68rem; color: #777; margin-top: 2px; }
.briefing-modal-fg-row {
    display: flex; gap: 8px; margin-bottom: 14px;
}
.briefing-modal-fg-row > div {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border, #232936);
    border-radius: 8px; padding: 8px 10px; text-align: center;
}
.briefing-modal-footer {
    display: flex; gap: 8px; margin-top: 18px;
}
.briefing-modal-btn-primary, .briefing-modal-btn-secondary {
    flex: 1; padding: 11px 14px;
    border-radius: 9999px; font-size: 0.84rem; font-weight: 600;
    cursor: pointer; min-height: 44px;
    text-decoration: none; text-align: center;
    font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border, #232936);
}
.briefing-modal-btn-primary {
    background: var(--accent, #3B82F6); color: white;
    border-color: var(--accent, #3B82F6);
}
.briefing-modal-btn-primary:hover { background: #2563eb; }
.briefing-modal-btn-secondary {
    background: transparent; color: #aaa;
}
.briefing-modal-btn-secondary:hover { background: rgba(255,255,255,0.04); }
@media (max-width: 480px) {
    .briefing-modal-card { padding: 20px 16px 14px; max-height: 92vh; }
    .briefing-modal-header h2 { font-size: 1rem; }
}
.disclaimer strong { color: #ff9800; }
.disclaimer a { color: #7b2ff7; text-decoration: none; margin: 0 6px; }
.disclaimer a:hover { text-decoration: underline; }

/* 앱 설치 버튼 */
.install-btn {
    display: none;
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #7b2ff7, #00d2ff);
    color: #fff; border: none; padding: 11px 20px;
    border-radius: 25px; cursor: pointer; font-size: 0.88rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(123,47,247,0.5); z-index: 200;
    gap: 6px; align-items: center;
}
.install-btn:hover { opacity: 0.9; }
.install-btn-inline {
    display: inline-flex; align-items: center; gap: 4px;
    background: #7b2ff7; color: #fff; border: none;
    padding: 4px 10px; border-radius: 14px; font-size: 0.72rem;
    cursor: pointer; font-weight: 600;
}

/* 첫 방문 동의 모달 */
.consent-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px;
}
.consent-overlay.show { display: flex; }
.consent-box {
    background: var(--bg-card); border: 2px solid #7b2ff7; border-radius: var(--radius-lg);
    max-width: 520px; padding: 28px; color: #e0e0e0;
}
.consent-title { font-size: 1.2rem; font-weight: 700; color: #00d2ff; margin-bottom: 14px; }
.consent-body { font-size: 0.88rem; line-height: 1.7; color: #ccc; margin-bottom: 20px; }
.consent-body strong { color: #ff9800; }
.consent-body ul { padding-left: 20px; margin: 10px 0; }
.consent-body li { margin: 4px 0; }
.consent-links { font-size: 0.8rem; margin-bottom: 14px; }
.consent-links a { color: #7b2ff7; margin-right: 10px; }
.consent-btn {
    display: block; width: 100%; padding: 12px;
    background: linear-gradient(135deg, #7b2ff7, #00d2ff);
    color: #fff; font-size: 1rem; font-weight: 700; border: none;
    border-radius: 10px; cursor: pointer; transition: opacity 0.2s;
}
.consent-btn:hover { opacity: 0.85; }

/* 퀵서치 — 토스 pill 스타일 */
.quick-search-wrap { margin-bottom: 28px; }
.quick-search-label {
    color: var(--text-muted); font-size: 0.72rem; font-weight: 700;
    margin-bottom: 10px; text-align: center;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.quick-search {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 4px;
}
.quick-btn {
    padding: 11px 18px; min-height: 44px; border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition-fast); font-family: inherit;
}
.quick-btn:hover {
    border-color: var(--accent); color: var(--text-primary);
    background: var(--accent-bg); transform: translateY(-1px);
}

/* 랜딩 프로모 카드 (2-up) */
.promo-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 32px;
}
@media (max-width: 560px) { .promo-grid { grid-template-columns: 1fr; } }

.promo-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px;
    text-decoration: none; display: flex; flex-direction: column; gap: 6px;
    transition: all var(--transition-base);
    position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-gradient); opacity: 0.7;
}
.promo-card:hover {
    transform: translateY(-3px); border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.promo-icon { font-size: 1.5rem; margin-bottom: 2px; }
.promo-title {
    font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
    letter-spacing: -0.02em;
}
.promo-sub {
    font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5;
}
.promo-cta {
    font-size: 0.78rem; color: var(--accent-cyan); font-weight: 700;
    margin-top: 4px;
}

/* 기존 .install-promo 스타일 유지 (역호환성 — 안 쓰이지만 혹시) */
.install-promo { display: none; }

/* ============================================
   메인 SEO 본문 (_seo_intro.html — 33차에 재도입)
   - 검색 전 가시 콘텐츠 확보 (AdSense 약점 해소)
   - 카드 스타일은 promo-grid와 시각 통일
   ============================================ */
.seo-intro {
    margin: 12px 0 48px;
    color: var(--text-secondary);
}
.seo-h2 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 36px 0 10px;
    letter-spacing: -0.02em;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}
.seo-lead {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 16px;
}
.seo-investor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}
.seo-investor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    text-decoration: none;
    display: flex; flex-direction: column; gap: 4px;
    transition: all var(--transition-base);
    position: relative; overflow: hidden;
}
.seo-investor-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent-gradient); opacity: 0.5;
}
.seo-investor-card-alt::before { opacity: 0.85; }
.seo-investor-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.seo-investor-name {
    font-size: 0.95rem; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.seo-investor-style {
    font-size: 0.72rem; font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.seo-investor-line {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 2px;
}
.seo-investor-cta {
    font-size: 0.74rem; font-weight: 700;
    color: var(--accent);
    margin-top: auto; padding-top: 4px;
}

/* FAQ */
.seo-faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 6px 0;
    transition: border-color var(--transition-fast);
}
.seo-faq[open] { border-color: var(--accent); }
.seo-faq summary {
    font-size: 0.92rem; font-weight: 700;
    color: var(--text-primary);
    cursor: pointer; list-style: none; padding: 4px 0;
    display: flex; align-items: center; gap: 8px;
}
.seo-faq summary::before {
    content: '+';
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
    display: inline-block; width: 14px;
}
.seo-faq[open] summary::before { content: '−'; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq p {
    font-size: 0.86rem; line-height: 1.7;
    color: var(--text-secondary);
    margin: 8px 0 4px;
    padding-left: 22px;
}

.seo-cta-box {
    background: linear-gradient(135deg, rgba(13,95,217,0.08), rgba(0,210,255,0.06));
    border: 1px solid rgba(13,95,217,0.3);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin: 24px 0 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.seo-cta-box strong { color: var(--text-primary); margin-right: 4px; }
.seo-cta-box a { color: var(--accent-cyan); margin: 0 2px; }

@media (max-width: 480px) {
    .container { padding: 16px 12px; }
    .header h1 { font-size: 1.4rem; }
    .stock-name { font-size: 1.2rem; }
    .criteria-value { min-width: 60px; font-size: 0.78rem; }
    .search-box { gap: 8px; }
    .search-box input { padding: 14px 14px; font-size: 0.95rem; }
    .search-box button { padding: 14px 16px; font-size: 0.9rem; }
    .fg-gauge-wrap { width: 180px; height: 100px; }
    .fg-gauge-bg { width: 180px; height: 180px; }
    .fg-needle { height: 65px; }
    .fg-scale { max-width: 260px; font-size: 0.62rem; }
    .tab-btn { font-size: 0.7rem; padding: 10px 2px; min-width: 70px; }
    .opt-summary, .fv-grid { grid-template-columns: 1fr; }
    .verdict-card { flex-direction: column; text-align: center; gap: 12px; }
    .verdict-badge { min-width: auto; width: 100%; }
}
/* 초소형 화면 (320~360px 구형 안드로이드) */
@media (max-width: 360px) {
    .container { padding: 14px 10px; }
    .search-box { gap: 6px; }
    .search-box input { padding: 13px 12px; font-size: 0.92rem; }
    .search-box button { padding: 13px 12px; font-size: 0.85rem; }
    .topnav { padding: 8px 10px; }
    .topnav-link { padding: 6px 8px; font-size: 0.7rem; }
}

/* ========== 접근성 (a11y) ========== */
/* 키보드 포커스 시각화 — 마우스 클릭에선 안 보이고 Tab 네비게이션에서만 표시 */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent-cyan, #00D9FF);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent-cyan, #00D9FF);
    outline-offset: 2px;
}

/* 색각 이상 대비 — 등급 뱃지에 패턴/아이콘 강화 */
.vb-green::before { content: "✓ "; }
.vb-yellow::before { content: "● "; }
.vb-red::before { content: "⚠ "; }

/* 모션 줄이기 옵션 존중 (전정 장애·멀미) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 스크린리더 전용 텍스트 (시각적으로 숨김) */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* 인라인 용어 툴팁 — PER/ROE 등 클릭/호버로 정의 표시 */
.term-tooltip {
    border-bottom: 1.5px dashed var(--accent-cyan, #00D9FF);
    color: var(--accent-cyan, #00D9FF);
    cursor: help; padding: 1px 3px; border-radius: 4px;
    background: rgba(0, 217, 255, 0.06);
    transition: background 0.15s, color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: rgba(0, 217, 255, 0.25);
    user-select: none; -webkit-user-select: none;
    display: inline-block; line-height: 1.3;
}
.term-tooltip:hover, .term-tooltip:focus, .term-tooltip.term-active {
    background: rgba(0, 217, 255, 0.18);
    color: #fff; outline: none;
}
.term-tooltip:active { transform: scale(0.95); }
.term-tooltip-popup {
    position: absolute; z-index: 99999; max-width: 300px;
    background: #1a1a2e; color: #f0f0f0;
    border: 1px solid #3a3a5c; border-radius: 12px;
    padding: 14px 16px; font-size: 0.85rem; line-height: 1.55;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    font-family: inherit; pointer-events: auto;
}
.term-tooltip-popup .ttp-head {
    font-size: 1rem; color: var(--accent-cyan, #00D9FF); margin-bottom: 6px; font-weight: 700;
}
.term-tooltip-popup .ttp-body { color: #d8d8d8; }
.term-tooltip-popup .ttp-link {
    display: inline-block; margin-top: 10px;
    font-size: 0.78rem; color: var(--accent-cyan, #00D9FF);
    text-decoration: none; border-bottom: 1px solid transparent;
}
.term-tooltip-popup .ttp-link:hover { border-bottom-color: var(--accent-cyan, #00D9FF); }
@media (max-width: 480px) {
    .term-tooltip { padding: 2px 5px; font-weight: 600; }
    .term-tooltip-popup { max-width: calc(100vw - 24px); font-size: 0.9rem; padding: 16px; }
}

/* ─────────── SEO content section (templates/partials/_seo_content.html) ─────────── */
/* CSP 'unsafe-inline' 제거 위해 인라인 style을 클래스로 추출. 시각 동일 유지가 목적. */

/* Card containers — padding/background/border 공통, margin만 변형 */
.seo-card        { padding:22px 22px; background:rgba(20,24,33,0.55); border:1px solid #232936; border-radius:14px; margin:16px 0; }
.seo-card--first { margin:32px 0 16px; padding:24px 22px; }
.seo-card--last  { margin:16px 0 24px; }
.seo-card--intro { margin:48px 0 24px; padding:28px 24px; }

/* Headings */
.seo-h1          { color:#fff; font-size:1.4rem; font-weight:800; margin:0 0 10px; letter-spacing:-0.02em; }
.seo-h2          { color:#00D9FF; font-size:1.15rem; font-weight:800; margin:0 0 12px; letter-spacing:-0.02em; }
.seo-h2--tight   { color:#00D9FF; font-size:1.15rem; font-weight:800; margin:0 0 10px; letter-spacing:-0.02em; }
.seo-h2--sub     { color:#00D9FF; font-size:1.2rem;  font-weight:800; margin:28px 0 14px; letter-spacing:-0.02em; }
.seo-h2--sub2    { color:#00D9FF; font-size:1.2rem;  font-weight:800; margin:32px 0 14px; letter-spacing:-0.02em; }
.seo-h2--intro   { color:#00D9FF; font-size:1.35rem; font-weight:800; margin:0 0 14px;    letter-spacing:-0.02em; }

/* Body text variants */
.seo-text        { color:#c9d0dc; font-size:0.95rem; line-height:1.75; margin:0 0 10px; }
.seo-text--md    { color:#c9d0dc; font-size:0.93rem; line-height:1.75; margin:0 0 12px; }
.seo-text--em    { color:#c9d0dc; font-size:0.92rem; line-height:1.75; margin:0 0 14px; }
.seo-text--en    { color:#c9d0dc; font-size:0.93rem; line-height:1.7;  margin:10px 0 0; }
.seo-text--mute  { color:#9aa3b2; font-size:0.88rem; line-height:1.7;  margin:0; }
.seo-text--hint  { color:#9aa3b2; font-size:0.88rem; margin:0 0 12px; }
.seo-text--small { color:#9aa3b2; font-size:0.85rem; margin:0 0 12px; }

/* Inline emphasis (strong) */
.seo-em          { color:#fff; }
.seo-em--bold    { color:#fff; font-size:0.95rem; }

/* CTA pill links */
.seo-pill        { display:inline-block; color:#00d2ff; text-decoration:none; font-size:0.85rem; font-weight:700; padding:6px 12px; border:1px solid #2a3a55; border-radius:9999px; margin:2px; }
.seo-pill--lg    { display:inline-block; color:#00d2ff; text-decoration:none; font-size:0.85rem; font-weight:700; padding:8px 16px; border:1px solid #2a3a55; border-radius:9999px; margin:4px; }

/* Inline cyan link inside body text */
.seo-link        { color:#00d2ff; }

/* Border-left callout (5개 핵심 지표) */
.seo-callout     { border-left:3px solid #1f6feb; padding:8px 14px; margin:10px 0; }
.seo-callout-p   { color:#9aa3b2; font-size:0.86rem; line-height:1.7; margin:4px 0 0; }

/* Investor cards (5인 시선) */
.seo-inv-card    { background:#1a1f2b; border-radius:10px; padding:14px 16px; margin:8px 0; }
.seo-inv-p       { color:#b0b8c4; font-size:0.86rem; line-height:1.7; margin:6px 0 0; }

/* Stock chips grid */
.seo-chip-grid   { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; margin-bottom:8px; }
.seo-chip-grid--mb12 { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; margin-bottom:12px; }
.seo-chip        { background:#1a1f2b; border:1px solid #2a2f3d; border-radius:10px; padding:10px 12px; text-decoration:none; color:#e7eaf2; font-size:0.85rem; }

/* Step cards (3단계 가이드) */
.seo-step-grid   { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-bottom:8px; }
.seo-step-card   { background:#1a1f2b; border:1px solid #2a2f3d; border-radius:12px; padding:16px 18px; }
.seo-step-tag-1  { color:#7b2ff7; font-size:0.78rem; font-weight:700; margin-bottom:6px; }
.seo-step-tag-2  { color:#1f6feb; font-size:0.78rem; font-weight:700; margin-bottom:6px; }
.seo-step-tag-3  { color:#00d2ff; font-size:0.78rem; font-weight:700; margin-bottom:6px; }
.seo-step-title  { color:#e7eaf2; font-size:0.92rem; font-weight:700; margin-bottom:4px; }
.seo-step-body   { color:#9aa3b2; font-size:0.82rem; line-height:1.55; }

/* Details / FAQ */
.seo-details     { background:#1a1f2b; border:1px solid #2a2f3d; border-radius:10px; padding:12px 16px; margin-bottom:8px; }
.seo-details--lg { background:#1a1f2b; border:1px solid #2a2f3d; border-radius:10px; padding:14px 16px; margin-bottom:8px; }
.seo-summary     { cursor:pointer; color:#fff; font-size:0.92rem; font-weight:700; }
.seo-detail-body { color:#c9d0dc; font-size:0.88rem; line-height:1.7; margin:10px 0 0; }

/* Footer rows */
.seo-cta-row     { margin:14px 0 0; }
.seo-cta-bottom  { text-align:center; margin:12px 0 0; }
.seo-foot        { margin:24px 0 0; text-align:center; color:#9aa3b2; font-size:0.85rem; }
.seo-foot-link   { color:#00d2ff; text-decoration:none; margin:0 6px; }

/* ─────────── learn_*.html guide pages — 인라인 style 제거용 ─────────── */
/* 6편의 가이드(buffett/graham/lynch/oneil/fisher/dcf)에서 공유되는 인라인 패턴 */
.learn-row          { display:flex; gap:8px; align-items:center; }
.learn-meta-link    { color:#888; text-decoration:none; }
.learn-meta-em      { color:#9aa3b2; font-size:0.88rem; }
.learn-meta-top     { color:#9aa3b2; font-size:0.85rem; margin-top:12px; }
.learn-meta-mt18    { color:#9aa3b2; font-size:0.88rem; margin-top:18px; }
.learn-meta-lg      { color:#9aa3b2; font-size:0.9rem; }
.learn-meta-tight   { color:#9aa3b2; font-size:0.88rem; line-height:1.8; }
.learn-em           { color:#fff; }
.learn-pill         { color:#aaa; text-decoration:none; font-size:0.8rem; font-weight:600; padding:6px 12px; border-radius:9999px; }
.learn-pill-bd      { color:#aaa; text-decoration:none; font-size:0.78rem; padding:6px 12px; border-radius:9999px; border:1px solid #2a2a3e; }
.learn-section-mb   { margin:12px 0 16px; }
.learn-m4           { margin:4px; }

/* Semantic colors (등급·통과/실패) */
.learn-pos          { color:#22c55e; }
.learn-warn         { color:#eab308; }
.learn-neg          { color:#ef4444; }
.learn-link         { color:#00d2ff; }

/* Body text variants */
.learn-body         { color:#b0b8c4; font-size:0.9rem;  line-height:1.7;  margin:6px 0 0; }
.learn-body-mute    { color:#c9d0dc; font-size:0.92rem; line-height:1.75; }
.learn-body-md      { color:#c9d0dc; font-size:0.9rem;  margin:0 0 14px; }
.learn-body-light   { color:#d0d6e0; font-size:0.88rem; }

/* DCF yellow callout (data-card 변종) */
.learn-callout-yellow { background:rgba(255,200,0,0.06); border-color:rgba(255,200,0,0.3); }

/* ─────────── 잔여 인라인 style 제거용 utility (CSP 3차) ─────────── */
/* 단순 색상·hidden·로고 사이즈 — 여러 페이지에서 공유 */
.muted-2          { color:#aaa; }
.muted-3          { color:#888; }
.muted-4          { color:#666; }
.is-hidden        { display:none; }
.brand-logo-36    { height:36px; width:auto; display:block; }

/* var(--*) 참조 색 (CSP enforce 시 인라인 var()도 금지되므로) */
.txt-secondary    { color:var(--text-secondary); }
.txt-dim          { color:var(--text-dim); }
.txt-primary-c    { color:var(--text); }
.txt-accent-c     { color:var(--accent); }

/* 시맨틱 색 (changePercent 등) */
.txt-green        { color:var(--green); }
.txt-red          { color:var(--red); }
.txt-orange       { color:#ff9800; }

/* ─────────── CSP 4차 — 잔여 87건 제거용 utility ─────────── */

/* 단순 색·hidden 보강 */
.muted-999        { color:#999; }
.txt-link-cyan    { color:#00d2ff; }
.txt-link-cyan-c  { color:#00d2ff; }
.txt-purple       { color:#7b2ff7; }
.txt-blue-mid     { color:#1f6feb; }
.txt-white        { color:#fff; }

/* 단순 간격 */
.m-0              { margin:0; }
.mt-12            { margin-top:12px; }
.mx-auto-mb-12    { margin:0 auto 12px; }

/* picks_*.html intro-card 공통 */
.intro-p-tight    { margin:0 0 8px; }
.intro-p-body     { margin:0; color:#c9d0dc; font-size:0.9rem; }

/* picks_dividend.html 한국 섹션 안내 */
.picks-kr-note    { color:#9aa3b2; font-size:0.88rem; margin-bottom:8px; }

/* en/index.html — popular 안내, footer disclaimer */
.popular-hint     { color:#9aa3b2; font-size:0.85rem; margin:0 0 12px; }
.popular-cta-row  { text-align:center; margin:12px 0 0; }
.cta-pill         { display:inline-block; color:#00d2ff; text-decoration:none; font-size:0.85rem; font-weight:700; padding:8px 16px; border:1px solid #2a3a55; border-radius:9999px; margin:4px; }
.foot-disclaimer  { color:#666; font-size:0.78rem; }
.foot-disclaimer-strong { color:#aaa; }
.foot-cta-row     { margin-top:12px; }

/* glossary / about / contact 단순 푸터 노트 */
.glossary-footer-note { text-align:center; padding:30px 10px; color:#666; font-size:0.78rem; }
.data-note-block      { margin-top:10px; color:#888; font-size:0.82rem; }
.contact-source-note  { color:#888; font-size:0.82rem; }

/* briefing.html 전용 */
.briefing-topnav-right { display:flex; gap:14px; font-size:0.78rem; }
.briefing-grid-2col    { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.index-grid--2col      { grid-template-columns:1fr 1fr; }
.fx-fetched-at         { font-size:0.65rem; color:#999; margin-top:6px; }
.briefing-mover-label-up   { margin-bottom:12px; font-size:0.82rem; color:var(--text-secondary); }
.briefing-mover-label-down { margin:14px 0 10px; font-size:0.82rem; color:var(--text-secondary); }
/* fear & greed score color (3단계 — Jinja에서 클래스 분기) */
.fg-score-red    { color:#f44336; }
.fg-score-yellow { color:#fbbf24; }
.fg-score-green  { color:#4caf50; }

/* screener.html 전용 */
.screener-loading       { text-align:center; padding:40px; color:var(--text-dim); }
.screener-sector-cell   { color:var(--text-dim); font-size:0.78rem; }

/* _topbars.html EN 사용자 배너 (display 토글은 .is-hidden 사용) */
.en-user-banner {
    background: linear-gradient(90deg,#0D5FD9,#1f6feb);
    color:#fff;
    padding:10px 16px;
    text-align:center;
    font-size:0.85rem;
    position:relative;
}
.en-user-banner-link    { color:#fff; text-decoration:underline; font-weight:700; margin-left:6px; }
.en-banner-dismiss {
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    background:transparent;
    border:0;
    color:#fff;
    font-size:1.1rem;
    cursor:pointer;
    padding:4px 10px;
}
.lang-toggle-btn {
    border:1px solid #2a2a3e;
    background:transparent;
    cursor:pointer;
    font:inherit;
    color:inherit;
}
.vs-loading-row { text-align:center; color:#666; padding:20px; font-size:0.75rem; }

/* _briefing_modal.html 전용 */
.briefing-modal-loading { text-align:center; padding:30px; color:#888; }
.briefing-modal-never-wrap { text-align:center; margin-top:8px; }
.briefing-modal-never-label {
    font-size:0.7rem;
    color:#666;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:4px;
}

/* _quick_search.html 전용 */
.quick-favorites-hint {
    color:#666;
    font-weight:400;
    font-size:0.7rem;
}
.quick-clear-btn {
    background:none;
    border:none;
    color:#666;
    font-size:0.75rem;
    cursor:pointer;
    font-weight:400;
    margin-left:6px;
    padding:10px 12px;
    min-height:44px;
    min-width:44px;
}
