@charset "utf-8";

/* =========================================================================
   1. 나의 종목 설정 (stock_setup.php) 전용 스타일
========================================================================= */
/* 🎨 주린이네 전용 검색 UI 스타일 */
.search-wrapper { position: relative; flex: 1; min-width: 250px; }
.autocomplete-list { 
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: #fff; border: 1px solid #cbd5e1; border-top: none; 
    border-radius: 0 0 12px 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    max-height: 250px; overflow-y: auto; z-index: 1000; display: none; 
}
.autocomplete-item { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.autocomplete-item:hover { background: #eff6ff; }
.autocomplete-item .ac-name { font-weight: 700; color: #1e293b; }
.autocomplete-item .ac-code { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }

.loading-spinner { display: none; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #3b82f6; font-weight: bold; }

/* 종목 추가 폼 반응형 스타일 */
.stock-add-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; width: 100%; }
.bottom-row { justify-content: space-between; }
.setup-input-item { padding: 14px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: 15px; box-sizing: border-box; }
.setup-submit-btn { padding: 14px 23px; background: #2563eb; color: #fff; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; transition: 0.2s; font-size: 15px; }
.setup-submit-btn:hover { background: #1d4ed8; }

.search-input { width: 100%; padding-right: 45px; }
.readonly-item { background: #f8fafc; border-color: #f1f5f9; font-weight: 700; }
.stock-name { width: 150px; }
.stock-code { width: 100px; text-align: center; }
.bottom-input { width: 30%; font-weight: bold; }
.bottom-row .setup-submit-btn { width: 32%; }
.form-hint { font-size: 13px; color: #3b82f6; margin: 8px 0 0 5px; font-weight: 600; letter-spacing: -0.5px; }

@media (max-width: 768px) {
    .stock-add-form { gap: 10px; }
    .form-row { gap: 10px; }
    .search-wrapper { flex: 100%; min-width: 100%; }
    .stock-name { width: calc(60% - 5px); }
    .stock-code { width: calc(40% - 5px); }
    .bottom-row { flex-direction: column; gap: 10px; }
    .bottom-input, .bottom-row .setup-submit-btn { width: 100%; }
    .setup-input-item, .setup-submit-btn { padding: 10px; font-size: 14px; }
}

/* =========================================================================
   2. 섀넌보드 (shannon_board.php) 전용 스타일
========================================================================= */
/* 섀넌보드 전용 스타일 */
.sb-container { max-width: 1000px; margin: 30px auto; padding: 0 20px; font-family: 'Pretendard', sans-serif; color: #1e293b; }

.sb-header { text-align: center; margin-bottom: 40px; }
.sb-header h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 10px; letter-spacing: -0.5px; }
.sb-header p { font-size: 16px; color: #64748b; }

/* 안내 가이드 박스 */
.guide-alert { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px; margin-bottom: 25px; display: flex; gap: 15px; align-items: flex-start; }
.guide-alert .icon { font-size: 24px; line-height: 1; }
.guide-alert .text-content strong { color: #1d4ed8; font-size: 16px; display: block; margin-bottom: 8px; }
.guide-alert .text-content p { color: #3b82f6; font-size: 14px; margin: 0; line-height: 1.6; }

/* 입력 섹션 (카드형) */
.input-section { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); margin-bottom: 30px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.input-grid > div { min-width: 0; }

.input-group { display: flex; flex-direction: column; }
.input-group label { font-size: 14px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.input-group input[type="text"] { width: 100%; box-sizing: border-box; font-size: 18px; font-weight: 800; color: #0f172a; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; text-align: right; background: #f8fafc; transition: 0.2s; }
.input-group input[type="text"]:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* 비율 원형 차트 (도넛 형태) */
.ratio-chart-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.ratio-chart {
    width: 140px; height: 140px; border-radius: 50%;
    background: conic-gradient(#cbd5e1 0% 100%); /* 초기 회색 */
    display: flex; justify-content: center; align-items: center; position: relative;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.1);
}
.ratio-chart::after {
    content: ""; position: absolute;
    width: 100px; height: 100px; /* 안쪽 구멍 크기 조절 */
    background: #fff; border-radius: 50%;
}
.chart-inner-text { position: relative; z-index: 1; display: flex; flex-direction: column; text-align: center; font-weight: 800; }
.chart-inner-text #chart_txt_cash { color: #2563eb; font-size: 15px; margin-bottom: 2px; }
.chart-inner-text #chart_txt_invest { color: #e11d48; font-size: 15px; }
.chart-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: #475569; position: absolute; top: 15px; left: 60px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-color { width: 10px; height: 10px; border-radius: 50%; }

/* 슬라이더 영역 */
.slider-wrap { background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; margin-bottom: 20px; }
.slider-wrap label { font-size: 15px; font-weight: 800; color: #0f172a; display: block; margin-bottom: 15px; }
.ratio-display { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: #2563eb; margin-bottom: 10px; }
input[type=range] { width: 100%; cursor: pointer; accent-color: #2563eb; }

/* 저장 버튼 영역 */
.save-action-wrap { text-align: right; }
.btn-save { background: #2563eb; color: #fff; border: none; padding: 12px 30px; border-radius: 8px; font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); }
.btn-save:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3); }

/* 결과 테이블 섹션 */
.result-section { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; text-align: right; font-size: 15px; white-space: nowrap; }
.sb-table th, .sb-table td { padding: 15px; border: 1px solid #e2e8f0; }
.sb-table th { background: #f8fafc; color: #475569; font-weight: 700; text-align: center; }
.sb-table tbody th { background: #f1f5f9; text-align: center; width: 20%; }

.row-highlight { background: #eff6ff !important; font-weight: 900; color: #1d4ed8; }
.val-red { color: #e11d48; font-weight: bold; }
.val-blue { color: #2563eb; font-weight: bold; }

/* 행동 지침 알림 박스 */
.action-box { margin-top: 25px; padding: 20px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: 16px; font-weight: 800; text-align: center; display: none; }

/* 포트폴리오 섹션 */
.portfolio-section { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); margin-top: 30px; }
.portfolio-header { text-align: center; margin-bottom: 25px; }
.portfolio-header h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.portfolio-header p { font-size: 15px; color: #64748b; margin: 0; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.portfolio-chart-wrap { position: relative; height: 250px; display: flex; justify-content: center; }
.portfolio-legend { overflow-x: auto; }
.portfolio-legend .sb-table { white-space: nowrap; }
.portfolio-legend .sb-table td:first-child { white-space: normal; word-break: keep-all; line-height: 1.4; min-width: 110px; }
.legend-color-box { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

@media (max-width: 768px) {
    .input-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* 차트 범례 겹침 현상 해결 */
    .chart-legend { position: relative; top: 0; left: 0; flex-direction: row; justify-content: center; margin-bottom: 15px; width: 100%; }
    
    /* 모바일 폰트 크기 및 여백 축소 */
    .sb-header h2 { font-size: 20px; }
    .guide-alert { padding: 15px; }
    .guide-alert .text-content strong { font-size: 14px; }
    .guide-alert .text-content p { font-size: 13px; }
    .input-section { padding: 15px; }
    .input-group input[type="text"] { font-size: 16px; padding: 10px; }
    .slider-wrap { padding: 15px; }

    .sb-table { font-size: 13px; }
    .sb-table th, .sb-table td { padding: 10px; }
    .btn-save { width: 100%; }
    
    /* 포트폴리오 섹션 모바일 대응 */
    .portfolio-section { padding: 15px; margin-top: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-chart-wrap { height: 200px; }
    .portfolio-header h3 { font-size: 18px; }
    .portfolio-header p { font-size: 13px; }
    .portfolio-legend { padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    .portfolio-legend .sb-table td:first-child { min-width: 100px; font-size: 13px; }
}


/* =========================================================================
   3. 종목 감시 퀀트보드 (quant_board.php) 전용 스타일
========================================================================= */
/* 테이블 공통 스타일 */
#stockTable th { cursor: pointer; user-select: none; background:#f8f9fa; border-color:#ccc; }

/* 종목 열 틀고정 (Sticky) */
#stockTable th[data-col="name"] { position: sticky; left: 0; background: #f8f9fa; z-index: 3; box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1); }
#stockTable td[data-col="name"] { position: sticky; left: 0; z-index: 2; box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1); }

/* 드래그 앤 드롭 시각 효과 */
#stockTable th.drag-over { border-left: 3px solid #007bff; background-color: #e2e8f0; }
.dragging-row { opacity: 0.4; }
.drag-over-row { border-top: 3px solid #2563eb !important; }
.hidden-col { display: none !important; }

/* 페이징 UI */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 25px; }
.page-btn { background: #fff; border: 1px solid #cbd5e1; color: #475569; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; font-size: 14px; }
.page-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.page-btn:hover:not(.active) { background: #f1f5f9; }

/* 모달 및 기타 UI */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 25px; border-radius: 12px; width: 650px; max-width: 95%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.col-checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; max-height: 400px; overflow-y: auto; padding: 15px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }
.col-checkbox-list label { width: 48%; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size:13px; padding: 4px 0; }
.btn-apply { background: #2563eb; color: #fff; border: none; padding: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; font-size:15px; }
.btn-reset { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; font-size:14px; margin-top:10px; }
.btn-close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; cursor: pointer; color: #94a3b8; }

.modal-content.signal-modal { width: 340px; }
.signal-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; background: #f8fafc; color: #475569; cursor: pointer; margin-top: 6px; border:1px solid #cbd5e1; transition:0.2s; font-weight:bold; }
.signal-badge:hover { background: #e2e8f0; border-color:#94a3b8; color:#0f172a; }

.btn-secondary { display: inline-block; background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; transition: 0.3s; }
.btn-secondary:hover { background: #f1f5f9; color: #0f172a; border-color: #94a3b8; }

/* 셀렉트박스 (드롭다운) 스타일 */
.sel-page-size { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; font-weight: 600; color: #1e293b; background: #fff; cursor: pointer; outline: none; }

.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.header-title-area { flex: 1; min-width: 250px; }
.header-btn-area { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .header-title-area { width: 100%; margin-bottom: 5px; }
    .header-btn-area { width: 100%; display: flex; gap: 8px; }
    .header-btn-area .btn-secondary,
    .header-btn-area #btnSetting,
    .header-btn-area .sel-page-size { flex: 1; text-align: center; justify-content: center; font-size: 13px; padding: 10px 8px; margin: 0; }
}

/* 🚨 타점 진입 시 시각적 효과를 위한 애니메이션 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}


    /* 소개 페이지 전용 스타일 */
    .about-wrapper { max-width: 1000px; margin: 0 auto; padding: 60px 20px; line-height: 1.7; color: #334155; font-family: 'Pretendard', sans-serif; }
    
    /* 히어로 섹션 */
    .hero-section { text-align: center; margin-bottom: 90px; }
    .hero-section h2 { font-size: 42px; font-weight: 800; color: #0f172a; margin-bottom: 20px; letter-spacing: -1px; }
    .hero-section p { font-size: 20px; color: #64748b; font-weight: 400; }
    .highlight { color: #2563eb; position: relative; display: inline-block; }
    .highlight::after { content: ''; position: absolute; left: 0; bottom: 5px; width: 100%; height: 12px; background: rgba(37, 99, 235, 0.15); z-index: -1; }

    /* 핵심 가치 카드 섹션 */
    .section-title { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 50px; color: #0f172a; letter-spacing: -0.5px; }
    .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 100px; }
    .about-card { background: #fff; padding: 40px 30px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
    .about-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px -5px rgba(37, 99, 235, 0.1); border-color: #bfdbfe; }
    .card-icon { font-size: 48px; margin-bottom: 25px; display: block; }
    .about-card h4 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: #1e293b; }
    .about-card p { font-size: 16px; color: #64748b; line-height: 1.6; word-break: keep-all; }

    /* 철학/비전 섹션 */
    .philosophy-section { background: #0f172a; color: #f8fafc; padding: 60px 40px; border-radius: 24px; margin-bottom: 90px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
    .philosophy-section h3 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 30px; }
    .philosophy-section h3 span { color: #38bdf8; }
    .philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; text-align: left; }
    .philosophy-item { background: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); }
    
    /* 💡 텍스트 배열(줄바꿈) 오류 수정 */
    .philosophy-item h4 { color: #38bdf8; font-size: 18px; margin: 0 0 10px 0; font-weight: 700; line-height: 1.4; }
    .philosophy-item p { color: #cbd5e1; font-size: 15px; margin: 0; line-height: 1.6; word-break: keep-all; }
    .philosophy-item p b { color: #fff; font-weight: 800; }

    /* 엔딩 및 CTA 섹션 */
    .closing-section { text-align: center; padding-top: 40px; }
    .closing-section blockquote { font-size: 24px; font-weight: 700; color: #1e293b; font-style: normal; margin-bottom: 20px; line-height: 1.5; }
    .closing-section p { font-size: 18px; color: #64748b; margin-bottom: 40px; }
    
    .btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
    .btn-primary { display: inline-block; background: #2563eb; color: #fff; padding: 18px 30px; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); width: 260px; }
    .btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3); }
    
    .btn-quant { background: #0f172a; }
    .btn-quant:hover { background: #1e293b; box-shadow: 0 10px 15px -3px rgba(15,23,42,0.3); }

    @media (max-width: 768px) {
        .hero-section h2 { font-size: 32px; }
        .hero-section p { font-size: 17px; }
        .philosophy-section { padding: 40px 20px; }
        .btn-group { flex-direction: column; padding: 0 20px; align-items: center; }
        .btn-primary { width: 100%; box-sizing: border-box; }
    }


  
    /* 주린이네 공통 폰트 및 베이스 스타일 */
    .market-view-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        font-family: 'Pretendard', sans-serif;
        color: #1e293b;
    }
    
    /* 헤더 섹션 */
    .market-header {
        text-align: center;
        margin-bottom: 30px;
    }
    .market-header h2 {
        font-size: 32px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }
    .market-header p {
        color: #64748b;
        font-size: 16px;
    }

    /* 💡 공통 투자 철학 박스 (다크 테마 느낌) */
    .philosophy-box {
        background: #0f172a; 
        color: #f8fafc; 
        border-radius: 16px; 
        padding: 35px;
        margin-bottom: 30px; 
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    }
    .philosophy-box h4 { display: block; width: 100%; color: #38bdf8; font-size: 20px; margin: 0 0 15px 0; font-weight: 700; }
    .philosophy-box p { margin: 0 0 15px 0; color: #cbd5e1; line-height: 1.6; word-break: keep-all; }
    .philosophy-box p:last-child { margin-bottom: 0; }
    .philosophy-box b { color: #fff; }
    
    /* 마켓 뷰 등 중앙 정렬이 필요한 철학 박스 */
    .market-view-wrapper .philosophy-box { text-align: center; margin-bottom: 40px; }

    /* 위젯 타이틀 */
    .widget-title {
        font-size: 18px;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .widget-title::before { 
        content: ''; 
        display: inline-block; 
        width: 4px; 
        height: 18px; 
        background: #2563eb; 
        border-radius: 2px; 
    }

    /* 트레이딩뷰 위젯 카드 컨테이너 (주린이네 스타일) */
    .tv-widget-container {
        margin-bottom: 40px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        background: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .tv-widget-container:hover {
        box-shadow: 0 20px 30px -5px rgba(37, 99, 235, 0.1); 
        border-color: #bfdbfe;
    }

    /* 상단 2단 그리드 */
    .tv-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 25px;
        margin-bottom: 20px;
    }
    @media (max-width: 992px) {
        .tv-grid { grid-template-columns: 1fr; }
    }

    /* 하단 3단 그리드 (암호화폐 및 거시 지표용) */
    .tv-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    @media (max-width: 768px) {
        .tv-grid-3 { grid-template-columns: 1fr; }
    }

    
    .news-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
    .news-header { border-bottom: 2px solid #333; padding-bottom: 15px; margin-bottom: 30px; }
    
    .news-item { display: flex; gap: 20px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 15px; text-decoration: none !important; transition: 0.2s; background: #fff; align-items: center; }
    .news-item:hover { border-color: #2563eb; transform: translateX(5px); }
    
    /* 썸네일 대신 사용할 박스 */
    .news-thumb-alt { width: 100px; height: 100px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
    
    .news-content { flex: 1; }
    .news-title { display: block; font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 8px; line-height: 1.4; }
    .news-desc { display: block; font-size: 14px; color: #64748b; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .news-info { font-size: 12px; color: #94a3b8; }

/* 페이징 디자인 수정 */
.pg_wrap { margin-top: 40px; text-align: center; display: flex; justify-content: center; gap: 8px; align-items: center; }

.pg_page, .pg_current { 
    display: inline-block; 
    min-width: 35px; /* 숫자일 때는 정원 유지 */
    height: 35px; 
    line-height: 33px; /* 테두리 두께 고려 */
    padding: 0 10px; /* 글자가 길어지면 양옆 여백 확보 */
    text-decoration: none; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    color: #64748b; 
    font-weight: bold; 
    font-size: 13px;
    background: #fff;
    white-space: nowrap; /* 글자가 아래로 꺾이지 않게 강제 고정 */
    transition: all 0.2s;
}

.pg_current { 
    background: #2563eb; 
    color: #fff; 
    border-color: #2563eb; 
}

.pg_page:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1;
    color: #1e293b;
}

    /* 1. 주린이네 시그니처 폰트 및 베이스[cite: 1] */
    .nb-wrapper { max-width: 1000px; margin: 30px auto; padding: 0 20px; font-family: 'Pretendard', sans-serif; color: #1e293b; }
    
    /* 2. 주린이네 스타일의 정갈한 카드 UI[cite: 4, 10] */
    .night-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px; /* 주린이네 표준 라운드 */
        padding: 40px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    /* 3. 헤더: 우리만의 폰트 굵기와 색상 시스템 적용[cite: 5] */
    .card-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px; border-bottom: 2px solid #f1f5f9; padding-bottom: 20px; }
    .card-title-area h2 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -0.5px; }
    .card-title-area p { font-size: 15px; color: #64748b; margin-top: 5px; }

    .price-area { text-align: right; }
    .current-price { font-size: 48px; font-weight: 900; color: #2563eb; line-height: 1; letter-spacing: -1.5px; } /* 기본은 주린이 블루[cite: 1] */
    .change-rate { font-size: 16px; font-weight: 700; margin-top: 8px; color: #64748b; }

    /* 4. 주린이네 철학 박스 (시그니처 다크 테마) */
    .philosophy-box {
        background: #0f172a;
        color: #f8fafc;
        border-radius: 16px;
        padding: 25px 30px;
        margin-top: 40px;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .philosophy-box .icon { font-size: 32px; }
    .philosophy-box h4 { width: 100%; color: #38bdf8; font-size: 18px; margin: 0 0 5px 0; font-weight: 700; }
    .philosophy-box p { color: #cbd5e1; font-size: 14px; margin: 0; line-height: 1.6; }

    /* 5. 🚨 하락 시 점등 시스템 (주린이네 레드 사용) */
    @keyframes alert-blink {
        0% { border-color: #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
        50% { border-color: #e11d48; box-shadow: 0 0 20px rgba(225, 29, 72, 0.2); }
        100% { border-color: #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
    }
    .night-card.alert-mode { animation: alert-blink 2s infinite; border-width: 2px; }

    /* =========================================================================
       4. 가이드 페이지 전용 공통 스타일
    ========================================================================= */
    .guide-container { max-width: 900px; margin: 40px auto; padding: 0 20px; font-family: 'Pretendard', sans-serif; color: #1e293b; line-height: 1.7; }
    
    .guide-header { text-align: center; margin-bottom: 60px; }
    .guide-header h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 15px; letter-spacing: -0.5px; }
    .guide-header p { font-size: 18px; color: #64748b; }

    .guide-section { margin-bottom: 80px; }
    .guide-section h3 { font-size: 24px; font-weight: 700; color: #2563eb; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
    .guide-section h3::before { content: ''; display: inline-block; width: 4px; height: 24px; background: #2563eb; border-radius: 2px; }

    .quantboard_img img {width: 100%;border: 1px solid #ddd;border-radius: 12px;margin-bottom: 20px;}

    /* 가이드 카드 스타일 */
    .guide-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 20px; }
    .guide-card strong { color: #0f172a; font-size: 18px; display: block; margin-bottom: 10px; }
    
    /* 스텝 박스 */
    .step-wrap { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
    .step-num { background: #2563eb; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
    .step-text h5 { margin: 0 0 5px 0; font-size: 16px; color: #0f172a; }
    .step-text p { margin: 0; color: #475569; font-size: 15px; }

    /* 팁 박스 */
    .tip-box { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
    .tip-box b { color: #1d4ed8; }

    /* 뱃지 */
    .g-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
    .bg-blue { background: #dbeafe; color: #1e40af; }
    .bg-red { background: #fee2e2; color: #991b1b; }
    .bg-gray { background: #f1f5f9; color: #475569; }
    
    .btn-go-db { display: block; width: 100%; max-width: 320px; margin: 50px auto; padding: 18px; background: #2563eb; color: #fff; text-align: center; border-radius: 12px; font-weight: 800; font-size: 18px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); }
    .btn-go-db:hover { background: #1d4ed8; transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4); }


	/* 섀넌보드 이미지 */
	.shannon_board_img {margin:0 0 50px 0;}
	.shannon_board_img img {width:100%;border: 1px solid #e2e8f0;border-radius: 12px;}
    .index-wrapper { max-width: 1200px; margin: 30px auto; padding: 0 20px; font-family: 'Pretendard', sans-serif; color: #1e293b; }
    
    /* 게스트용 랜딩 섹션 */
    .guest-landing { text-align: center; padding: 80px 20px; background: #0f172a; border-radius: 24px; color: #fff; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
    .guest-landing h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
    .guest-landing h2 span { color: #38bdf8; }
    .guest-landing p { font-size: 18px; color: #cbd5e1; margin-bottom: 40px; line-height: 1.6; }
    .btn-login-main { display: inline-block; background: #2563eb; color: #fff; padding: 18px 45px; border-radius: 12px; font-size: 18px; font-weight: 800; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); }
    .btn-login-main:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3); }

    /* 회원용 대시보드 헤더 */
    .dashboard-greeting { margin-bottom: 30px; }
    .dashboard-greeting h2 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
    .dashboard-greeting p { font-size: 16px; color: #64748b; margin: 0; }

    /* 명언 박스 */
    .quote-box { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 20px; border-radius: 0 12px 12px 0; margin-bottom: 30px; }
    .quote-box p { margin: 0; color: #1e40af; font-size: 16px; font-weight: 700; }

    /* 요약 위젯 그리드 (3단) */
    .widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 40px; }
    .widget-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; }
    .widget-card h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 20px 0; display: flex; align-items: center; gap: 8px; }
    .widget-data { font-size: 36px; font-weight: 900; color: #2563eb; margin-bottom: 10px; }
    .widget-desc { font-size: 14px; color: #64748b; margin: 0; }
    
    .progress-bar-bg { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; margin-top: 15px; overflow: hidden; display: flex; }
    .progress-cash { background: #2563eb; height: 100%; }
    .progress-invest { background: #e11d48; height: 100%; }

    /* 빠른 이동 버튼 그리드 */
    .action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
    .action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; padding: 30px 20px; border-radius: 16px; text-decoration: none; transition: 0.3s; text-align: center; }
    .action-btn:hover { border-color: #bfdbfe; background: #f8fafc; transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.1); }
    .action-icon { font-size: 40px; margin-bottom: 15px; }
    .action-title { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
    .action-desc { font-size: 14px; color: #64748b; }

    /* 리스트 스타일 (레이더용) */
    .radar-list { list-style: none; padding: 0; margin: 0; }
    .radar-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
    .radar-item:last-child { border-bottom: none; padding-bottom: 0; }
    .radar-info strong { display: block; color: #0f172a; font-size: 16px; margin-bottom: 4px; }
    .radar-info span { font-size: 13px; color: #64748b; }
    .radar-badge { padding: 6px 10px; border-radius: 6px; font-weight: 800; font-size: 13px; }

    @media (max-width: 768px) {
        .widget-grid { grid-template-columns: 1fr; }
        .action-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 480px) {
        .action-grid { grid-template-columns: 1fr; }
    }
