/* =========================================
   1. HERO HEADER: TIÊU ĐỀ
========================================= */
.eco-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.eco-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}
.eco-hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main, #111);
}
.eco-hero h1 span {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.eco-hero p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   2. KHUNG CHỨA LỊCH TRADINGVIEW
========================================= */
.eco-wrapper {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
.eco-widget-box {
    background: #131722;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}
.eco-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.eco-widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.eco-live-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseRed 1.5s infinite;
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* =========================================
   3. KHU VỰC KIẾN THỨC VĨ MÔ
========================================= */
.eco-edu-title {
    text-align: center;
    margin: 80px 0 40px;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
}
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.eco-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #eee);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .eco-card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.eco-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.eco-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.ic-fed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ic-cpi { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ic-nfp { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.eco-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px 0;
}
.eco-card p.eco-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--card-border, #eee);
}

/* List Tác động Tăng/Giảm */
.eco-impact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.eco-impact li {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.eco-impact li i {
    font-size: 14px;
    margin-top: 3px;
}
.impact-bad i { color: #ef4444; } 
.impact-good i { color: #10b981; } 
.impact-bad span { font-weight: 700; color: #ef4444; }
.impact-good span { font-weight: 700; color: #10b981; }

/* =========================================
   4. CÁCH 1: KHUNG NHẬN ĐỊNH THỊ TRƯỜNG (THỦ CÔNG)
========================================= */
.market-commentary {
    background: linear-gradient(145deg, var(--card-bg, #fff), var(--nav-border, #f8fafc));
    border: 1px solid var(--card-border, #eee);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
[data-theme="dark"] .market-commentary {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.market-commentary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
}
.mc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.mc-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mc-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}
.mc-author-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}
.mc-author-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mc-date {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mc-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 15px 0;
}
.mc-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px 0;
}
.mc-action-plan {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
    padding: 20px;
    border-radius: 0 12px 12px 0;
}
.mc-action-plan h5 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mc-action-plan ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-main);
    font-size: 14.5px;
    line-height: 1.6;
}
.mc-action-plan ul li {
    margin-bottom: 8px;
}

/* =========================================
   5. CÁCH 2: DÒNG THỜI GIAN TIN TỨC (TỰ ĐỘNG)
========================================= */
.auto-news-section {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #eee);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
[data-theme="dark"] .auto-news-section {
    background: #131722;
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}
.news-header i {
    font-size: 24px;
    color: #f59e0b;
}
.news-header h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
}
.news-header span {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.vn-news-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.vn-news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border, #eee);
    text-decoration: none !important;
    transition: all 0.3s ease;
}
[data-theme="dark"] .vn-news-item {
    border-color: rgba(255,255,255,0.05);
}
.vn-news-item:hover { 
    transform: translateX(10px); 
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.vn-news-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1); 
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.vn-news-content {
    flex: 1;
}
.vn-news-title { 
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main); 
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s;
}
.vn-news-item:hover .vn-news-title {
    color: #f59e0b;
}
.vn-news-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}
.vn-news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Animation Loading */
.news-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}
.news-loading i {
    font-size: 24px;
    color: #f59e0b;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { 
    .eco-grid { grid-template-columns: 1fr; } 
    .eco-hero h1 { font-size: 32px; } 
    .mc-header { flex-direction: column; align-items: flex-start; }
    .market-commentary, .auto-news-section { padding: 25px; }
}
