/* Daily Stock - Light Clean Theme (캡처 스타일) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
    --sd-bg: #f5f5f5;
    --sd-bg-sub: #eeeeee;
    --sd-card-bg: #ffffff;
    --sd-card-hover: #fafafa;

    --sd-text: #1a1a1a;
    --sd-text-sub: #5a5a5a;
    --sd-text-muted: #888888;

    --sd-border: #e0e0e0;
    --sd-border-light: #eeeeee;

    --sd-accent: #14b8a6;
    /* Teal/Mint - 캡처 로그인 버튼 색 */
    --sd-accent-hover: #0d9488;

    --sd-fear: #dc2626;
    /* Red */
    --sd-fear-light: #ef4444;
    --sd-greed: #059669;
    /* Green */
    --sd-greed-light: #10b981;
    --sd-neutral: #d97706;
    /* Yellow/Orange */

    --sd-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --sd-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    background: var(--sd-bg);
    color: var(--sd-text);
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Header */
.sd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
}

.sd-header .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sd-text) !important;
    letter-spacing: -0.03em;
}

.sd-header .navbar-brand:hover {
    color: var(--sd-accent) !important;
}

.sd-header .nav-link {
    color: var(--sd-text-sub) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.sd-header .nav-link:hover {
    color: var(--sd-accent) !important;
}

.navbar-toggler {
    border-color: var(--sd-border) !important;
}

.navbar-toggler-icon {
    filter: none;
}

/* Main Container */
.sd-main {
    padding-top: 50px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.sd-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.sd-section {
    margin-bottom: 3rem;
}

/* ===== 마켓 데이터 섹션 ===== */
.sd-market-section .sd-market-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-market-title {
    font-size: 1.35rem;
    color: var(--sd-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-market-title::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 18px;
    background: var(--sd-accent);
    border-radius: 2px;
}

.sd-market-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sd-market-trend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--sd-border-light);
}

.sd-market-trend .sd-trend-card {
    flex: 1;
    min-width: 200px;
}

.sd-market-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: var(--sd-shadow);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.sd-market-card:hover {
    background: var(--sd-card-hover);
    box-shadow: var(--sd-shadow-hover);
    transform: translateY(-2px);
}

.sd-market-label {
    font-size: 0.85rem;
    color: var(--sd-text-sub);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sd-market-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sd-text);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.sd-market-chg {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
}

.sd-market-chg.sd-chg-up {
    color: var(--sd-fear);
}

.sd-market-chg.sd-chg-down {
    color: #2563eb;
}

/* ===== 공포 & 탐욕 지수 섹션 ===== */
.sd-feargreed-section .sd-feargreed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-feargreed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sd-feargreed-header-text {
    flex: 1;
    min-width: 0;
}

.sd-feargreed-title {
    font-size: 1.35rem;
    color: var(--sd-text);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-feargreed-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--sd-accent);
    border-radius: 2px;
}

.sd-feargreed-lead {
    color: var(--sd-text-sub);
    font-size: 1rem;
    margin: 0;
}

.sd-feargreed-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.sd-feargreed-left {
    flex: 1;
    min-width: 0;
}

.sd-feargreed-right {
    flex: 1;
    min-width: 200px;
}

.sd-feargreed-card {
    background: var(--sd-card-hover);
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    padding: 20px;
    min-width: 320px;
}

.sd-trend-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-trend-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-trend-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sd-text);
    margin: 0 0 10px 0;
}

.sd-trend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-trend-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}

.sd-trend-label {
    color: var(--sd-text-sub);
}

.sd-trend-val {
    font-weight: 600;
    color: var(--sd-text);
}

.sd-trend-empty {
    font-size: 0.9rem;
    color: var(--sd-text-muted);
    margin: 0;
}

.sd-feargreed-placeholder {
    min-height: 280px;
    background: var(--sd-card-hover);
    border: 1px dashed var(--sd-border);
    border-radius: 12px;
}

.sd-feargreed-market-toggle {
    flex-shrink: 0;
    background: var(--sd-bg-sub);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--sd-border);
    display: inline-flex;
}

.sd-feargreed-market-toggle .btn {
    border: none;
    color: var(--sd-text-sub);
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sd-feargreed-market-toggle .btn-check:checked+.btn {
    background: var(--sd-accent);
    color: #ffffff;
    box-shadow: var(--sd-shadow);
}

.sd-feargreed-toggle.sd-toggle-group {
    background: var(--sd-bg-sub);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--sd-border);
    display: inline-flex;
    margin-bottom: 1rem;
}

.sd-feargreed-toggle .btn {
    border: none;
    color: var(--sd-text-sub);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sd-feargreed-toggle .btn-check:checked+.btn {
    background: var(--sd-accent);
    color: #ffffff;
    box-shadow: var(--sd-shadow);
}

.sd-feargreed-market-blocks,
.sd-gauge-wrap,
.sd-fg-cards {
    display: none;
}

.sd-feargreed-market-blocks.sd-market-active,
.sd-gauge-wrap.sd-market-active,
.sd-fg-cards.sd-market-active {
    display: block;
}

.sd-fg-block {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sd-fg-block.sd-fg-current {
    display: block;
}

/* ===== 반원형 게이지 (캡처 스타일) ===== */
.sd-gauge-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sd-text-sub);
    margin: 0 0 1rem 0;
}

.sd-gauge-wrap {
    margin-bottom: 1rem;
}

.sd-gauge-svg {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

.sd-gauge-arc {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.sd-gauge-seg-label {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sd-gauge-seg-label.sd-active {
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.18);
    stroke-width: 2px;
}

.sd-gauge-tick {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: var(--sd-text-muted);
}

.sd-gauge-center {
    position: absolute;
    left: 50%;
    top: 72%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.sd-gauge-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--sd-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.sd-gauge-state {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.sd-gauge-state.sd-zone-extreme_fear {
    background: #1e40af;
}

.sd-gauge-state.sd-zone-fear {
    background: #3b82f6;
}

.sd-gauge-state.sd-zone-neutral {
    background: var(--sd-neutral);
}

.sd-gauge-state.sd-zone-greed {
    background: var(--sd-fear);
}

.sd-gauge-state.sd-zone-extreme_greed {
    background: #b91c1c;
}

.sd-gauge-scale {
    display: flex;
    justify-content: space-between;
    padding: 0 5% 0 5%;
    margin-top: -6px;
    font-size: 0.8rem;
    color: var(--sd-text-muted);
}

.sd-feargreed-meta {
    font-size: 0.8rem;
    color: var(--sd-text-muted);
    margin-top: 0.5rem;
}

/* 우측 카드 (현재 지수 / 기간별 지수) */
.sd-fg-cards.sd-market-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-fg-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-fg-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sd-text);
    margin: 0 0 10px 0;
}

.sd-fg-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.sd-fg-pill.sd-zone-extreme_fear {
    background: #1e40af;
}

.sd-fg-pill.sd-zone-fear {
    background: #3b82f6;
}

.sd-fg-pill.sd-zone-neutral {
    background: var(--sd-neutral);
}

.sd-fg-pill.sd-zone-greed {
    background: var(--sd-fear);
}

.sd-fg-pill.sd-zone-extreme_greed {
    background: #b91c1c;
}

.sd-fg-desc {
    font-size: 0.9rem;
    color: var(--sd-text-sub);
    line-height: 1.5;
    margin: 0;
}

.sd-fg-period-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-fg-period-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sd-border-light);
}

.sd-fg-period-list li:last-child {
    border-bottom: none;
}

.sd-fg-period-label {
    color: var(--sd-text-sub);
}

.sd-feargreed-gauge {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--sd-shadow);
}

.sd-feargreed-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}

.sd-feargreed-label {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.sd-zone-extreme_fear-text {
    color: var(--sd-fear);
}

.sd-zone-fear-text {
    color: var(--sd-fear-light);
}

.sd-zone-neutral-text {
    color: var(--sd-neutral);
}

.sd-zone-greed-text {
    color: var(--sd-greed-light);
}

.sd-zone-extreme_greed-text {
    color: var(--sd-greed);
}

.sd-feargreed-bar {
    position: relative;
    padding: 0 10px;
    margin-top: 1rem;
}

.sd-feargreed-track {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--sd-fear) 0%, var(--sd-fear-light) 25%, var(--sd-neutral) 50%, var(--sd-greed-light) 75%, var(--sd-greed) 100%);
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sd-feargreed-marker {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 28px;
    background: #ffffff;
    border-radius: 3px;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(0, 0, 0, 0.08);
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sd-feargreed-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--sd-text-muted);
}

.sd-feargreed-meta {
    font-size: 0.85rem;
    color: var(--sd-text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* ===== 공포탐욕 지수란? 섹션 ===== */
.sd-zone-section .sd-zone-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-zone-title {
    font-size: 1.35rem;
    color: var(--sd-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-zone-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--sd-accent);
    border-radius: 2px;
}

.sd-zone-lead {
    color: var(--sd-text-sub);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* 스펙트럼 카드 - 5구간 한 카드에 통합 */
.sd-zone-spectrum {
    background: var(--sd-card-hover);
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    padding: 20px;
}

.sd-zone-bar {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.sd-zone-seg {
    flex: 1;
}

.sd-zone-seg.sd-zone-extreme_fear {
    background: var(--sd-fear);
}

.sd-zone-seg.sd-zone-fear {
    background: var(--sd-fear-light);
}

.sd-zone-seg.sd-zone-neutral {
    background: var(--sd-neutral);
}

.sd-zone-seg.sd-zone-greed {
    background: var(--sd-greed-light);
}

.sd-zone-seg.sd-zone-extreme_greed {
    background: var(--sd-greed);
}

.sd-zone-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sd-zone-cell {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 4px solid;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-zone-cell.sd-zone-extreme_fear {
    border-left-color: var(--sd-fear);
}

.sd-zone-cell.sd-zone-fear {
    border-left-color: var(--sd-fear-light);
}

.sd-zone-cell.sd-zone-neutral {
    border-left-color: var(--sd-neutral);
}

.sd-zone-cell.sd-zone-greed {
    border-left-color: var(--sd-greed-light);
}

.sd-zone-cell.sd-zone-extreme_greed {
    border-left-color: var(--sd-greed);
}

.sd-zone-cell .sd-zone-range {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sd-text-muted);
}

.sd-zone-cell .sd-zone-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sd-text);
}

.sd-zone-cell .sd-zone-desc {
    font-size: 0.85rem;
    color: var(--sd-text-sub);
    line-height: 1.4;
}

/* ===== 이전 지수 기록 섹션 ===== */
.sd-timeline-section .sd-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-timeline-title {
    font-size: 1.35rem;
    color: var(--sd-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-timeline-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--sd-accent);
    border-radius: 2px;
}

.sd-timeline-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--sd-shadow);
}

.sd-timeline-empty {
    color: var(--sd-text-muted);
    margin: 0;
}

.sd-timeline-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding: 0 10px;
    border-bottom: 1px solid var(--sd-border);
}

.sd-timeline-bar {
    flex: 1;
    min-width: 4px;
    background: var(--sd-border);
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s, opacity 0.2s;
    position: relative;
}

/* Style the bar based on its height value via inline style? No, CSS can't read inline. 
   We will just use a generic nice color for timeline, or let the inline style set height. */
.sd-timeline-bar {
    background: linear-gradient(to top, var(--sd-card-hover), var(--sd-accent));
}

.sd-timeline-bar:hover {
    background: linear-gradient(to top, var(--sd-card-hover), var(--sd-accent));
    cursor: pointer;
}

.sd-timeline-labels,
.sd-timeline-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--sd-text-muted);
    margin-top: 0.5rem;
}

/* ===== 세부 지표 분석 섹션 ===== */
.sd-indicator-section .sd-indicator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-indicator-section .sd-indicator-title {
    font-size: 1.35rem;
    color: var(--sd-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-indicator-section .sd-indicator-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--sd-accent);
    border-radius: 2px;
}

.sd-indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sd-indicator-item {
    background: var(--sd-bg-sub);
    border: none;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.sd-indicator-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sd-shadow-hover);
    background: #ffffff;
}

.sd-indicator-header {
    margin-bottom: 1.5rem;
}

.sd-indicator-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 0.25rem;
}

.sd-indicator-desc {
    font-size: 0.85rem;
    color: var(--sd-text-sub);
    margin: 0;
}

.sd-indicator-data {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--sd-border-light);
}

.sd-data-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sd-text-sub);
}

.sd-data-value {
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.sd-text-accent {
    color: var(--sd-accent);
}

.sd-indicator-text {
    font-size: 0.9rem;
    color: var(--sd-text-sub);
    line-height: 1.5;
    margin: 0;
    padding: 12px 0;
}

/* ===== 시가총액 상위 20종목 티커 (Full Width) ===== */
.sd-ticker-fullwidth {
    width: 100%;
    background: var(--sd-card-bg);
    border-top: 1px solid var(--sd-border);
    border-bottom: 1px solid var(--sd-border);
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sd-ticker-wrap {
    overflow: hidden;
    padding: 14px 0;
}

.sd-ticker-track {
    display: flex;
    width: max-content;
    animation: sd-ticker-scroll 45s linear infinite;
}

.sd-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes sd-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sd-ticker-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
}

.sd-ticker-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-width: 190px;
    text-decoration: none;
    color: var(--sd-text);
    border-right: 1px solid var(--sd-border-light);
    transition: background 0.2s;
}

.sd-ticker-item:hover {
    background: var(--sd-card-hover);
}

.sd-ticker-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-ticker-logo {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-bg-sub);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--sd-border-light);
}

.sd-ticker-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.sd-ticker-logo-placeholder {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sd-text-muted);
}

.sd-ticker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sd-text);
    white-space: nowrap;
}

.sd-ticker-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sd-text);
    line-height: 1.2;
}

.sd-ticker-chg {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
}

.sd-ticker-chg.sd-chg-up,
.sd-ticker-price.sd-chg-up {
    color: var(--sd-fear);
}

.sd-ticker-chg.sd-chg-down,
.sd-ticker-price.sd-chg-down {
    color: #2563eb;
}

.sd-ticker-chg-val {
    /* 변동액 */
    opacity: 0.95;
}

.sd-ticker-chg-pct {
    /* 등락률 */
    text-align: right;
}

/* Form & Inputs overriding Bootstrap */
.form-control,
.form-select {
    background-color: var(--sd-bg-sub);
    border: 1px solid var(--sd-border);
    color: var(--sd-text);
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--sd-bg-sub);
    color: var(--sd-text);
    border-color: var(--sd-accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Custom Buttons */
.sd-btn-fear {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--sd-fear-light);
    border: 1px solid var(--sd-fear-light);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.sd-btn-fear:hover {
    background-color: var(--sd-fear);
    color: #fff;
    border-color: var(--sd-fear);
}

.sd-btn-greed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--sd-greed-light);
    border: 1px solid var(--sd-greed-light);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.sd-btn-greed:hover {
    background-color: var(--sd-greed);
    color: #fff;
    border-color: var(--sd-greed);
}

/* Footer */
.sd-footer {
    background: #ffffff;
    border-top: 1px solid var(--sd-border);
    padding: 32px 0;
}

.sd-footer .container {
    color: var(--sd-text-muted);
    font-size: 0.9rem;
}

.sd-footer a {
    color: var(--sd-accent);
    transition: color 0.2s;
}

.sd-footer a:hover {
    color: var(--sd-accent-hover);
}

/* Scroll Top Button */
.sd-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--sd-accent);
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--sd-shadow);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-scroll-top:hover {
    transform: translateY(-3px);
    background: var(--sd-accent-hover);
    box-shadow: var(--sd-shadow-hover);
}

/* ===== 관리자 로그인 페이지 ===== */
.sd-login-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    z-index: 2000;
}

.sd-login-box {
    width: 100%;
    max-width: 380px;
    margin: 0 20px;
    padding: 40px 32px 36px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sd-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sd-login-brand {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sd-text);
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.sd-login-field {
    margin-bottom: 14px;
}

.sd-login-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--sd-text);
    background: var(--sd-bg);
    border: 1.5px solid var(--sd-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sd-login-input::placeholder {
    color: var(--sd-text-muted);
}

.sd-login-input:focus {
    border-color: var(--sd-accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.sd-login-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: var(--sd-accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.sd-login-btn:hover {
    background: var(--sd-accent-hover);
    transform: translateY(-1px);
}

.sd-login-btn:active {
    transform: translateY(0);
}

.sd-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sd-login-alert {
    max-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--sd-fear);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    text-align: center;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    padding: 0 14px;
    margin-bottom: 0;
}

.sd-login-alert.sd-login-alert-visible {
    max-height: 80px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* =============================================
   관리자 페이지 독립 클래스 시스템 (adm-*)
   ============================================= */

/* --- 래퍼 --- */
.adm-wrap {
    max-width: 1400px;
    margin: 24px auto;
    padding: 28px 24px 60px;
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

/* --- 상단 바 --- */
.adm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sd-border);
}

.adm-topbar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sd-text);
    margin: 0;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.adm-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-nav-link {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sd-text-sub);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.adm-nav-link:hover {
    background: var(--sd-bg-sub);
    color: var(--sd-accent);
}

.adm-nav-link.adm-nav-active {
    background: var(--sd-accent);
    color: #ffffff;
}

.adm-nav-link.adm-nav-logout {
    color: var(--sd-text-muted);
}

.adm-nav-link.adm-nav-logout:hover {
    background: #fef2f2;
    color: var(--sd-fear);
}

/* --- 카드 --- */
.adm-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: var(--sd-shadow);
}

.adm-card-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sd-border-light);
}

.adm-card-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sd-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.adm-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sd-accent);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

/* --- 그리드 --- */
.adm-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.adm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.adm-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.adm-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.adm-col-side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-col-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- 폼 요소 --- */
.adm-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sd-text-sub);
    margin-bottom: 5px;
    margin-top: 12px;
}

.adm-form-label:first-child,
.adm-card-header+.adm-form-label {
    margin-top: 0;
}

.adm-input,
.adm-textarea,
.adm-select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--sd-text);
    background: var(--sd-bg);
    border: 1.5px solid var(--sd-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.adm-input:focus,
.adm-textarea:focus,
.adm-select:focus {
    border-color: var(--sd-accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.10);
}

.adm-input::placeholder,
.adm-textarea::placeholder {
    color: var(--sd-text-muted);
}

.adm-textarea {
    resize: vertical;
    min-height: 100px;
}

.adm-select {
    width: auto;
    min-width: 120px;
    cursor: pointer;
}

.adm-form-hint {
    font-size: 0.78rem;
    color: var(--sd-text-muted);
    margin-top: 4px;
    margin-bottom: 8px;
}

.adm-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--sd-text-sub);
    margin-top: 6px;
}

.adm-inline-check input {
    width: 16px;
    height: 16px;
}

/* --- 버튼 --- */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.adm-btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
}

.adm-btn-primary {
    background: var(--sd-accent);
    color: #ffffff;
    border-color: var(--sd-accent);
}

.adm-btn-primary:hover {
    background: var(--sd-accent-hover);
    border-color: var(--sd-accent-hover);
    transform: translateY(-1px);
}

.adm-btn-outline {
    background: transparent;
    color: var(--sd-accent);
    border-color: var(--sd-accent);
}

.adm-btn-outline:hover {
    background: var(--sd-accent);
    color: #ffffff;
}

.adm-btn-danger {
    background: transparent;
    color: var(--sd-fear);
    border-color: var(--sd-fear);
}

.adm-btn-danger:hover {
    background: var(--sd-fear);
    color: #ffffff;
}

.adm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.adm-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.adm-thumb-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.adm-thumb-row .adm-input {
    flex: 1;
    min-width: 0;
}

.adm-thumb-preview-wrap {
    margin-top: 8px;
}

.adm-thumb-preview {
    max-width: 200px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--sd-border-light);
}

.adm-form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--sd-text-sub);
    cursor: pointer;
}

.adm-form-check input {
    margin: 0;
}

.adm-toolbar {
    margin-bottom: 16px;
}

/* --- 테이블 --- */
.adm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.adm-table th,
.adm-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--sd-border-light);
    white-space: nowrap;
}

.adm-table th {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--sd-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--sd-bg);
    position: sticky;
    top: 0;
}

.adm-table tbody tr:hover {
    background: var(--sd-card-hover);
}

.adm-table td:last-child {
    white-space: nowrap;
}

.adm-actions {
    display: flex;
    gap: 6px;
}

.adm-source-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.86rem;
    color: var(--sd-text-sub);
}

.adm-source-list li {
    margin-bottom: 6px;
}

.adm-source-list a {
    color: var(--sd-accent);
    text-decoration: none;
}

.adm-source-list a:hover {
    text-decoration: underline;
}

/* --- 뱃지 --- */
.adm-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.adm-badge-success {
    background: rgba(5, 150, 105, 0.12);
    color: var(--sd-greed);
}

.adm-badge-muted {
    background: var(--sd-bg-sub);
    color: var(--sd-text-muted);
}

/* --- 알림 --- */
.adm-alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.adm-alert-success {
    background: #ecfdf5;
    color: var(--sd-greed);
    border: 1px solid #a7f3d0;
}

/* --- 링크 --- */
.adm-link {
    color: var(--sd-accent);
    font-weight: 600;
    text-decoration: none;
}

.adm-link:hover {
    text-decoration: underline;
}

/* --- 비어있음 --- */
.adm-empty {
    color: var(--sd-text-muted);
    font-size: 0.9rem;
    margin: 0;
    padding: 12px 0;
}

.adm-mini-charts {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.adm-mini-chart {
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    background: var(--sd-card-bg);
    padding: 12px;
}

.adm-mini-chart__title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 8px;
}

.adm-mini-chart__bars {
    height: 170px;
    border: 1px solid var(--sd-border-light);
    border-radius: 10px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.adm-mini-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.adm-mini-chart__bar {
    width: 100%;
    min-height: 2px;
    border-radius: 6px 6px 2px 2px;
}

.adm-mini-chart__bar--visitors {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.adm-mini-chart__bar--published {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.adm-mini-chart__val {
    font-size: 0.75rem;
    color: var(--sd-text);
    font-weight: 700;
    line-height: 1;
}

.adm-mini-chart__lbl {
    font-size: 0.7rem;
    color: var(--sd-text-muted);
    line-height: 1;
}

/* --- 필터/검색 --- */
.adm-filter-form {
    margin-bottom: 8px;
}

.adm-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.adm-filter-presets {
    display: flex;
    gap: 6px;
}

.adm-filter-dates {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adm-filter-sep {
    color: var(--sd-text-muted);
    font-size: 0.9rem;
}

.adm-input-date {
    width: 150px;
}

.adm-input-search {
    float: right;
    width: 200px;
    padding: 7px 12px;
    font-size: 0.82rem;
    margin-top: -4px;
}

.adm-card-header:has(.adm-input-search) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- 관리자 탭(nav-tabs) 커스텀 --- */
.adm-wrap .nav-tabs {
    border-bottom: 1px solid var(--sd-border);
    gap: 6px;
}

.adm-wrap .nav-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sd-text-sub);
    background: transparent;
    position: relative;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.adm-wrap .nav-tabs .nav-link:hover {
    color: var(--sd-accent);
    background: rgba(20, 184, 166, 0.06);
}

.adm-wrap .nav-tabs .nav-link.active {
    color: var(--sd-accent);
    background: rgba(20, 184, 166, 0.10);
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.18);
}

.adm-wrap .nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sd-accent), var(--sd-accent-hover));
}

/* --- 페이지네이션 --- */
.adm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 8px;
}

.adm-page-info {
    font-size: 0.85rem;
    color: var(--sd-text-sub);
}

/* --- 토스트 알림 --- */
.sd-toast-wrap {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.sd-toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: sd-toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.sd-toast-success {
    background: var(--sd-greed);
}

.sd-toast-error {
    background: var(--sd-fear);
}

.sd-toast-info {
    background: var(--sd-accent);
}

.sd-toast-out {
    animation: sd-toast-out 0.3s ease-in forwards;
}

@keyframes sd-toast-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sd-toast-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

.adm-toast-wrap {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.adm-toast {
    pointer-events: auto;
    min-width: 260px;
    max-width: 400px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    animation: adm-toast-in .35s ease;
}

.adm-toast.adm-toast-out {
    animation: adm-toast-out .3s ease forwards;
}

.adm-toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.adm-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.adm-toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes adm-toast-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes adm-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* --- 모달 (확인 팝업) --- */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: adm-modal-fade-in .25s ease;
}

.adm-modal-card {
    background: var(--sd-card-bg);
    border: 1px solid var(--sd-border);
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .25);
    text-align: center;
}

.adm-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sd-text-main);
}

.adm-modal-msg {
    font-size: 0.9rem;
    color: var(--sd-text-sub);
    margin-bottom: 22px;
    line-height: 1.5;
}

.adm-modal-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@keyframes adm-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== 메인 AI 마켓 인사이트 섹션 ===== */
.sd-market-insight .sd-market-insight__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfffe 100%);
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-market-insight__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sd-market-insight__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--sd-text);
}

.sd-market-insight__meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-text-sub);
    font-size: 0.86rem;
}

.sd-market-insight__headline {
    margin: 14px 0 0;
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--sd-text);
}

.sd-market-insight__summary-card {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(20, 184, 166, 0.18);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(13, 148, 136, 0.02));
}

.sd-market-insight__block-title {
    margin: 0 0 8px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--sd-accent-hover);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sd-market-insight__summary {
    margin: 0;
    padding-left: 18px;
}

.sd-market-insight__summary li {
    margin-bottom: 6px;
    color: var(--sd-text);
    line-height: 1.65;
}

.sd-market-insight__mini-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sd-market-insight__mini-card {
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    padding: 12px 14px 14px;
    background: var(--sd-card-bg);
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.04);
}

.sd-market-insight__mini-tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--sd-border-light);
    background: #fff;
    color: var(--sd-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.sd-market-insight__mini-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--sd-text);
}

.sd-market-insight__mini-card p {
    margin: 0;
    color: #334155;
    font-size: 0.91rem;
    line-height: 1.65;
}

.sd-market-insight__movers {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--sd-border-light);
    border-radius: 14px;
    background: #fff;
}

.sd-market-insight__movers h4,
.sd-market-insight__watch h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--sd-text);
}

.sd-market-insight__mover-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-market-insight__mover-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    padding: 12px 12px;
    background: var(--sd-card-bg);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.sd-market-insight__mover-item:hover {
    transform: translateY(-1px);
    border-color: var(--sd-border);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.sd-market-insight__mover-item + .sd-market-insight__mover-item {
    margin-top: 8px;
}

.sd-market-insight__mover-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sd-market-insight__rank {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.sd-market-insight__symbol,
.sd-market-insight__market {
    font-size: 0.78rem;
    color: var(--sd-text-muted);
}

.sd-market-insight__mover-right {
    text-align: right;
    min-width: 160px;
}

.sd-market-insight__chg {
    font-size: 0.92rem;
    font-weight: 700;
}

.sd-market-insight__chg.is-up {
    color: #dc2626;
}

.sd-market-insight__chg.is-down {
    color: #2563eb;
}

.sd-market-insight__reason {
    display: block;
    margin-top: 3px;
    color: var(--sd-text-sub);
    font-size: 0.82rem;
    line-height: 1.5;
}

.sd-market-insight__watch {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--sd-border-light);
    border-radius: 14px;
    background: #fff;
}

.sd-market-insight__watch ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--sd-text);
}

.sd-market-insight__watch li {
    position: relative;
    padding: 8px 0 8px 18px;
    border-bottom: 1px dashed var(--sd-border-light);
    line-height: 1.55;
}

.sd-market-insight__watch li:last-child {
    border-bottom: 0;
}

.sd-market-insight__watch li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sd-accent);
}

.sd-market-insight__risk-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.sd-market-insight__risk {
    margin: 0;
    font-size: 0.9rem;
    color: #7c2d12;
    line-height: 1.65;
}

.sd-market-insight__updated {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--sd-text-muted);
    text-align: right;
}

.sd-market-insight__empty-wrap {
    border: 1px dashed var(--sd-border);
    border-radius: 12px;
    padding: 14px;
    background: #fcfcfc;
}

.sd-market-insight__empty {
    margin: 0;
    color: var(--sd-text);
}

.sd-market-insight__empty-sub {
    margin: 6px 0 0;
    color: var(--sd-text-muted);
    font-size: 0.84rem;
}

.sd-category-hub .sd-category-hub__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-category-hub__head {
    margin-bottom: 12px;
}

.sd-category-hub__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--sd-text);
}

.sd-category-hub__lead {
    margin: 6px 0 0;
    color: var(--sd-text-sub);
    font-size: 0.9rem;
}

.sd-category-hub__tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sd-cat-node {
    border: 1px solid var(--sd-border-light);
    border-radius: 14px;
    background: var(--sd-card-bg);
    overflow: hidden;
}

.sd-cat-node.is-open {
    border-color: var(--sd-border);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
}

.sd-cat-node__toggle {
    width: 100%;
    border: 0;
    background: #f9fafb;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
}

.sd-cat-node__name {
    margin: 0;
    font-size: 1rem;
    color: var(--sd-text);
}

.sd-cat-node__count {
    color: var(--sd-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.sd-cat-node__body {
    padding: 12px 14px 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
}

.sd-cat-featured {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--sd-border-light);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.sd-cat-featured__thumb {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}

.sd-cat-featured__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-cat-featured__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--sd-text);
    line-height: 1.45;
}

.sd-cat-featured__meta {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--sd-text-muted);
}

.sd-cat-featured__summary {
    margin: 6px 0 0;
    font-size: 0.86rem;
    color: var(--sd-text-sub);
    line-height: 1.55;
}

.sd-cat-node__children {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.sd-cat-node__children li {
    border-left: 2px solid #e5e7eb;
    margin-left: 8px;
    padding-left: 12px;
}

.sd-cat-node__children li + li {
    margin-top: 8px;
}

.sd-cat-node__child-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.sd-cat-node__child-title {
    color: var(--sd-text);
    line-height: 1.45;
}

.sd-cat-node__child-date {
    color: var(--sd-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sd-cat-node__more {
    margin-top: 10px;
    text-align: right;
}

.sd-cat-node__more a {
    font-size: 0.84rem;
    color: var(--sd-accent-hover);
    text-decoration: none;
    font-weight: 700;
}