@charset "utf-8";

/* =========================================================================
   1. 나의 종목 설정 (stock_setup.php) 전용 스타일
========================================================================= */
.stock-setup-container {}
.stock-setup-container .search-wrapper { position: relative; flex: 1; min-width: 250px; }
.stock-setup-container .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; 
}
.stock-setup-container .autocomplete-item { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.stock-setup-container .autocomplete-item:hover { background: #eff6ff; }
.stock-setup-container .autocomplete-item .ac-name { font-weight: 700; color: #1e293b; }
.stock-setup-container .autocomplete-item .ac-code { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }

.stock-setup-container .loading-spinner { display: none; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #3b82f6; font-weight: bold; }

/* 종목 추가 폼 반응형 스타일 */
.stock-setup-container .stock-add-form { display: flex; flex-direction: column; gap: 15px; }
.stock-setup-container .form-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; width: 100%; }
.stock-setup-container .bottom-row { justify-content: space-between; }
.stock-setup-container .setup-input-item { padding: 14px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: 15px; box-sizing: border-box; }
.stock-setup-container .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; }
.stock-setup-container .setup-submit-btn:hover { background: #1d4ed8; }

.stock-setup-container .search-input { width: 100%; padding-right: 45px; }
.stock-setup-container .readonly-item { background: #f8fafc; border-color: #f1f5f9; font-weight: 700; }
.stock-setup-container .stock-name { width: 150px; }
.stock-setup-container .stock-code { width: 100px; text-align: center; }
.stock-setup-container .bottom-input { width: 30%; font-weight: bold; }
.stock-setup-container .bottom-row .setup-submit-btn { width: 32%; }
.stock-setup-container .form-hint { font-size: 13px; color: #3b82f6; margin: 8px 0 0 5px; font-weight: 600; letter-spacing: -0.5px; }

.stock-setup-container .editable-price:hover, .editable-qty:hover { background-color: #f0f9ff; }
.stock-setup-container .price-text, .qty-text {
    border-bottom: 1px dashed #3b82f6;
    padding-bottom: 2px;
    color: #1d4ed8;
}
.stock-setup-container .page-btn { padding: 6px 12px; margin: 0 3px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; border-radius: 6px; font-weight: 600; color: #64748b; }
.stock-setup-container .page-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

@media (max-width: 768px) {
    .stock-setup-container .stock-add-form { gap: 10px; }
    .stock-setup-container .form-row { gap: 10px; }
    .stock-setup-container .search-wrapper { flex: 100%; min-width: 100%; }
    .stock-setup-container .stock-name { width: calc(60% - 5px); }
    .stock-setup-container .stock-code { width: calc(40% - 5px); }
    .stock-setup-container .bottom-row { flex-direction: column; gap: 10px; }
    .stock-setup-container .bottom-input, .stock-setup-container .bottom-row .setup-submit-btn { width: 100%; }
    .stock-setup-container .setup-input-item, .stock-setup-container .setup-submit-btn { padding: 10px; font-size: 14px; }
    .stock-setup-container .hide-on-mobile { display: none !important; }
    .stock-setup-container #setupTable { font-size: 14px !important; }
    .stock-setup-container .btn-delete { padding: 8px !important; }    
}

/* =========================================================================
   2. 섀넌보드 (shannon_board.php) 전용 스타일
========================================================================= */
/* 섀넌보드 전용 스타일 */
.sb-container { max-width: 1000px; margin: 30px auto; padding: 0 20px; font-family: 'Pretendard', sans-serif; color: #1e293b; }

.sb-container .sb-header { text-align: left; margin-bottom: 30px; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; }
.sb-container .sb-header h2 { font-size: 26px; font-weight: 900; color: #0f172a; margin: 0 0 5px 0; letter-spacing: -0.5px; }
.sb-container .sb-header p { font-size: 15px; color: #64748b; margin: 0; }

/* 안내 가이드 박스 */
.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; }

.sb-container .btn-secondary {font-size:14px; padding:15px 20px; text-decoration:none; background:#2563eb; color:#fff; border-radius:8px; font-weight:bold; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); }

/* 입력 섹션 (카드형) */
.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) {
    .sb-container { padding: 0 }
    .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: 22px; }
    .sb-header p { font-size: 14px; }
    .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) 전용 스타일
========================================================================= */


/* 통합 퀀트보드 전용 테마 */
.master-dashboard { padding: 20px; max-width: 1400px; margin: 0 auto; font-family: 'Pretendard', sans-serif; text-align: left; }
.master-dashboard .master-header { text-align: left; margin-bottom: 30px; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; }
.master-dashboard .master-header h2 { font-size: 26px; font-weight: 900; color: #0f172a; margin: 0 0 5px 0; letter-spacing: -0.5px; }
.master-dashboard .master-header p { font-size: 15px; color: #64748b; margin: 0; }

/* 💡 종목 카드(Card) 레이아웃 스타일 */
.master-dashboard .board-list { display: flex; flex-direction: column; gap: 20px; }
.master-dashboard .stock-card { background: #fff; border: 1px solid #cbd5e1; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); overflow: hidden; transition: 0.2s; }
.master-dashboard .stock-card:hover { border-color: #94a3b8; box-shadow: 0 10px 20px -3px rgba(0,0,0,0.1); }

/* 💡 카드 전용 헤더 (드래그 & 설정 버튼 영역) */
.master-dashboard .card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; margin:0}
.master-dashboard .header-left { display: flex; align-items: center; gap: 10px; }
.master-dashboard .drag-handle { cursor: grab; font-size: 18px; color: #94a3b8; padding: 0 5px; transition: 0.2s; }
.master-dashboard .drag-handle:hover { color: #2563eb; }
.master-dashboard .stock-name { font-size: 18px; font-weight: 900; color: #0f172a; }
.master-dashboard .stock-code { font-size: 13px; color: #64748b; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.master-dashboard .btn-card-setting { background: #fff; border: 1px solid #cbd5e1; color: #475569; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.master-dashboard .btn-card-setting:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; }
.master-dashboard .btn-card-toggle { background: #fff; border: 1px solid #cbd5e1; color: #475569; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.master-dashboard .btn-card-toggle:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; }

/* 카드 내부 3줄 구조 */
.master-dashboard .card-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #f1f5f9; }
.master-dashboard .card-row-factor { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #f1f5f9; }
.master-dashboard .card-row-3 { display: block; padding: 20px; background: #fafaf9; }

/* 각 칸(Cell) 스타일 */
.master-dashboard .card-cell { padding: 18px 15px; text-align: center; border-right: 1px solid #f1f5f9; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.master-dashboard .card-cell:last-child { border-right: none; }
.master-dashboard .cell-title { font-size: 12px; color: #94a3b8; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }

/* 1줄 텍스트 디자인 */
.master-dashboard .td-price { font-size: 22px; font-weight: 900; color: #1e293b; letter-spacing: -0.5px; }
.master-dashboard .asset-text { font-size: 15px; font-weight: 800; color: #475569; }
.master-dashboard .td-profit { font-size: 16px; font-weight: 900; display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; }
.master-dashboard .profit-up { color: #e11d48; background: #ffe4e6; }
.master-dashboard .profit-down { color: #2563eb; background: #dbeafe; }
.master-dashboard .td-change {font-size: 14px; display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; }

/* 2줄 팩터 디자인 */
.master-dashboard .factor-box { width: 100%; border-radius: 8px; padding: 12px 5px; font-weight: 800; font-size: 14px; color: #94a3b8; background: #f8fafc; border: 1px dashed #cbd5e1; transition: 0.3s all; }
.master-dashboard .factor-box.active-ma { background: #dcfce7; color: #16a34a; border: 1px solid #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.2); }
.master-dashboard .factor-box.active-rsi { background: #e0f2fe; color: #0284c7; border: 1px solid #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
.master-dashboard .factor-box.active-bb { background: #ffe4e6; color: #e11d48; border: 1px solid #fb7185; box-shadow: 0 0 10px rgba(251, 113, 133, 0.2); }
.master-dashboard .factor-box.active-vol { background: #f3e8ff; color: #9333ea; border: 1px solid #c084fc; box-shadow: 0 0 10px rgba(192, 132, 252, 0.2); }
.master-dashboard .factor-box.pass-cell { background: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1; }
.master-dashboard .factor-sub { display: block; font-size: 12px; margin-top: 4px; font-weight: normal; }

/* 3줄 공포 스코어 게이지 */
.master-dashboard .score-wrapper { display: flex; align-items: center; gap: 15px; justify-content: center; width: 100%; }
.master-dashboard .score-label { font-size: 15px; font-weight: 900; color: #0f172a; }
.master-dashboard .score-track { flex: 1; height: 16px; background: #e2e8f0; border-radius: 8px; overflow: hidden; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.master-dashboard .score-bar { height: 100%; width: 0%; background: #94a3b8; transition: width 0.5s ease-in-out, background 0.5s; border-radius: 8px; }
.master-dashboard .score-text { font-weight: 900; font-size: 18px; width: 50px; text-align: right; }

.master-dashboard .score-low { background: #94a3b8; }
.master-dashboard .score-mid { background: #f59e0b; }
.master-dashboard .score-high { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
.master-dashboard .text-high { color: #ef4444; animation: pulse 1.5s infinite; }

/* 드래그 앤 드롭 힌트 스타일 */
.master-dashboard .dragging-card { opacity: 0.5; transform: scale(0.98); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.master-dashboard .drag-over-card { border-top: 4px solid #2563eb !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .master-dashboard .card-row, .master-dashboard .card-row-factor { grid-template-columns: 1fr 1fr; } 
    .master-dashboard .card-cell { border-bottom: 1px solid #f1f5f9; }
    .master-dashboard .card-cell:nth-child(even) { border-right: none; }
    .master-dashboard .hide-on-mobile { display: none !important; }
    .master-dashboard .stock-name { font-size: 16px; }
    .master-dashboard .stock-code { font-size: 11px; padding: 1px 4px; }
    .master-dashboard .td-price { font-size: 18px; }
    .master-dashboard .td-profit { font-size: 14px; font-weight: 700; }
    .master-dashboard .factor-box {padding: 8px 3px;}
    .master-dashboard .card-cell { padding: 12px 10px; }
    .master-dashboard .master-header h2 { font-size: 22px; }
    .master-dashboard .master-header p { font-size: 14px; }
}

/* 모달 스타일 */
.master-modal .modal-overlay, .master-dashboard .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.master-modal .modal-content, .master-dashboard .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 25px; border-radius: 16px; width: 400px; max-width: 95%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.master-modal .btn-close-modal, .master-dashboard .btn-close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; cursor: pointer; color: #94a3b8; }
.master-modal .form-group, .master-dashboard .form-group { margin-bottom: 15px; background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.master-modal .form-group, .master-dashboard .form-group label { display: block; font-size: 13px; font-weight: 800; color: #1e293b; margin-bottom: 8px; }
.master-modal .form-input, .master-dashboard .form-input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; box-sizing: border-box; }




/* =========================================================================
   4. 소개 페이지 전용 스타일
========================================================================= */

    /* 소개 페이지 전용 스타일 */
    .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: 24px; }
        .hero-section p { font-size: 17px; }
        .section-title { font-size: 24px; }
        .philosophy-section { padding: 40px 20px; }
        .philosophy-section h3 { font-size: 22px; }
        .btn-group { flex-direction: column; padding: 0 20px; align-items: center; }
        .btn-primary { width: 100%; box-sizing: border-box; }
          .closing-section blockquote { font-size: 20px;}
    }


  
    /* 주린이네 공통 폰트 및 베이스 스타일 */
    .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; }
    }

    /* 하단 2x2 그리드 (암호화폐 및 거시 지표, 4단 차트용) */
    .tv-grid-2x2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    @media (max-width: 768px) {
        .tv-grid-2x2 { 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) {
        .guest-landing h2 { font-size: 22px; }
        .dashboard-greeting h2 { font-size: 22px; }
        .guide-section h3 { font-size: 20px; }
        .widget-grid { grid-template-columns: 1fr; }
        .action-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 480px) {
        .action-grid { grid-template-columns: 1fr; }
    }

        /* 선행지표 페이지 */
    .tradingview-widget-container { height: 270px; }