/* ==========================================================================
   INTERACTIVE DATA JOURNALISM STYLESHEET
   Style System: Bloomberg Graphics & Financial Times Visual Design
   ========================================================================== */

/* 1. Core Variables & Theme Setup */
:root {
    --bg-dark: #071424;
    --bg-navy-deep: #0F2744;
    --color-primary: #146EF5;
    --color-success: #00B578;
    --color-warning: #FF8A00;
    --color-danger: #E53935;
    --color-text-light: #F4F6F9;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --bg-light: #FAFAFC;
    --glass-bg: rgba(15, 39, 68, 0.45);
    --glass-border: rgba(20, 110, 245, 0.25);
    --font-heading: 'Encode Sans', sans-serif;
    --font-body: 'Encode Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Resets & Scrollbars */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--color-text-light);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-success);
}

/* 3. Layout: Scrollytelling Setup */
.screen {
    position: relative;
    min-height: 100vh;
    padding: 100px 5% 60px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(20, 110, 245, 0.1);
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Trải nghiệm nền sáng / tối xen kẽ cho chiều sâu */
#screen-1 { background: radial-gradient(circle at 80% 20%, #0F2744 0%, var(--bg-dark) 100%); }
#screen-2 { background: var(--bg-dark); }
#screen-3 { background: #081a30; }
#screen-4 { background: var(--bg-dark); }
#screen-5 { background: #081a30; }
#screen-6 { background: var(--bg-dark); }
#screen-7 { background: #081a30; }
#screen-8 { background: var(--bg-dark); }
#screen-9 { background: #040911; } /* Nền tối hơn hẳn cho Risk screen */
#screen-10 { background: radial-gradient(circle at 50% 50%, #0F2744 0%, var(--bg-dark) 100%); }

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.text-center {
    text-align: center;
}

/* 4. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(7, 20, 36, 0.8);
    border-bottom: 1px solid rgba(20, 110, 245, 0.2);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--color-primary);
}

.logo-text {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-desktop {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.6;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--color-success);
    background: rgba(20, 110, 245, 0.1);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-dark);
    z-index: 99;
    padding: 30px 10%;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(20, 110, 245, 0.2);
}

.mobile-drawer.open {
    left: 0;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}

.mobile-nav-link:hover {
    color: var(--color-success);
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 101;
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

/* 5. Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 70%, var(--color-success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-weight: 400;
}

.text-light {
    color: #cbd5e1;
}

.text-red {
    color: var(--color-danger);
}

.text-gold {
    color: #f1c40f;
}

.color-green {
    color: var(--color-success) !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blue-badge { background: rgba(20, 110, 245, 0.15); color: var(--color-primary); border: 1px solid rgba(20, 110, 245, 0.3); }
.green-badge { background: rgba(0, 181, 120, 0.15); color: var(--color-success); border: 1px solid rgba(0, 181, 120, 0.3); }
.yellow-badge { background: rgba(255, 138, 0, 0.15); color: var(--color-warning); border: 1px solid rgba(255, 138, 0, 0.3); }
.red-badge { background: rgba(229, 57, 37, 0.15); color: var(--color-danger); border: 1px solid rgba(229, 57, 37, 0.3); }

/* Glassmorphism Cards */
.glassmorphism {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.green-glow { border-color: rgba(0, 181, 120, 0.3); }
.blue-glow { border-color: rgba(20, 110, 245, 0.3); }
.warning-glow { border-color: rgba(255, 138, 0, 0.3); }

/* 6. MÀN HÌNH 1: HERO OPENING Specifics */
.hero-screen {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #0F2744 0%, var(--bg-dark) 100%);
}

.hero-content-centered {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 50px;
    max-width: 850px;
    line-height: 1.6;
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition-smooth);
}

.kpi-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 110, 245, 0.15);
    border-color: var(--color-primary);
}

.kpi-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kpi-icon {
    font-size: 2rem;
}

.kpi-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.kpi-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    line-height: 1.3;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    gap: 10px;
    width: 100%;
}

.arrow-down {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-8px) rotate(45deg); }
    60% { transform: translateY(-4px) rotate(45deg); }
}

/* Floating Animations */
.float-item {
    animation: float 6s ease-in-out infinite;
}

.item-factory { animation-delay: 0s; }
.item-port { animation-delay: 1.5s; }
.item-chip { animation-delay: 3s; }
.item-excavator { animation-delay: 4.5s; }
.item-rice { animation-delay: 2s; }
.item-plane { animation-delay: 3.5s; }
.item-building { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* 7. MÀN HÌNH 2: 8 ĐIỂM NHẤN NỔI BẬT Specifics */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.highlight-card {
    position: relative;
    padding: 24px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.highlight-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 110, 245, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(20, 110, 245, 0.15);
}

.hl-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1;
}

.highlight-card.green-glow .hl-number {
    color: var(--color-success);
}

.highlight-card.warning-glow .hl-number {
    color: var(--color-warning);
}

.highlight-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.highlight-card p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* 8. INTERACTIVE TABS & CHARTS */
.tabs-control-wrapper {
    margin-top: 25px;
}

.tabs-control-wrapper.style-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
}

.tab-headers {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.tab-btn:hover, .tab-btn.active {
    color: #fff;
    background: rgba(20, 110, 245, 0.15);
}

.tab-content-panel {
    display: none;
    font-size: 0.85rem;
    color: #cbd5e1;
    animation: fadeIn 0.4s ease;
}

.tab-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chart Styles */
.chart-container {
    background: rgba(15, 39, 68, 0.3);
    border: 1px solid rgba(20, 110, 245, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.chart-title {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    font-weight: 600;
}

.line-chart-svg-wrap, .column-chart-wrap, .dual-bar-wrap, .area-chart-wrap {
    width: 100%;
}

.axis-txt {
    fill: var(--color-text-muted);
    font-size: 10px;
    font-family: var(--font-body);
}

.val-txt {
    fill: #cbd5e1;
    font-size: 9px;
    font-weight: 600;
}

.highlight-val {
    fill: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* Isometric visual enhancements */
.isometric-svg {
    width: 100%;
    max-height: 280px;
    margin: 0 auto;
}

/* Conveyor Box animation */
.conveyor-box {
    animation: conveyorBoxMove 4s linear infinite;
}
.conveyor-box-2 {
    animation: conveyorBoxMove2 4s linear infinite;
    animation-delay: 2s;
}

@keyframes conveyorBoxMove {
    0% { transform: translate(-100px, -50px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(100px, 50px); opacity: 0; }
}

@keyframes conveyorBoxMove2 {
    0% { transform: translate(-80px, -40px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(120px, 60px); opacity: 0; }
}

/* 9. MÀN HÌNH 4 & 5: FDI & THƯƠNG MẠI Specifics */
.fdi-kpi-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.fdi-mini-card {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    background: rgba(15, 39, 68, 0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

.border-blue { border-left: 4px solid var(--color-primary); }
.border-green { border-left: 4px solid var(--color-success); }
.border-gold { border-left: 4px solid #f1c40f; }

.fdi-mini-val {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.fdi-mini-val .unit {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.fdi-mini-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 5px;
}

.legend-txt {
    fill: #cbd5e1;
    font-size: 9px;
    font-family: var(--font-body);
}

.highlight-bar {
    filter: drop-shadow(0 0 6px rgba(20, 110, 245, 0.8));
    animation: growBar 1.5s ease-out;
}

.highlight-bar-2 {
    filter: drop-shadow(0 0 6px rgba(0, 181, 120, 0.8));
    animation: growBar 1.5s ease-out;
}

@keyframes growBar {
    from { height: 0; y: 200px; }
}

.bar-val-txt {
    fill: #fff;
    font-size: 9px;
    font-weight: 700;
}

.stream-line {
    stroke-dasharray: 8, 4;
    animation: flowStream 5s linear infinite;
}

.stream-line-fast {
    stroke-dasharray: 10, 5;
    animation: flowStream 3s linear infinite;
}

@keyframes flowStream {
    to { stroke-dashoffset: -100; }
}

.map-label-txt {
    fill: #fff;
    font-size: 9px;
    font-weight: 600;
}

/* MÀN HÌNH 5: Trade specific */
.bar-title-txt {
    font-size: 11px;
    font-weight: 800;
}

.bar-val-lbl {
    fill: #fff;
    font-size: 11px;
    font-weight: 700;
}

.warning-txt {
    fill: var(--color-danger);
    font-size: 10px;
    font-weight: 800;
}

.compare-txt {
    fill: var(--color-text-muted);
    font-size: 9px;
}

/* Mini tabs inside cards */
.data-tabs-wrap {
    display: flex;
    flex-direction: column;
}

.data-tab-btns {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 6px;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-tab-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mini-tab-btn.active, .mini-tab-btn:hover {
    color: #fff;
    background: rgba(20, 110, 245, 0.15);
}

.mini-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mini-tab-content.active {
    display: block;
}

.mini-tab-content ul {
    list-style: none;
}

.mini-tab-content li {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    position: relative;
    padding-left: 14px;
}

.mini-tab-content li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    line-height: 1;
}

/* 10. MÀN HÌNH 6 & 7: Domestic Specifics */
.kpi-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.kpi-mini-card {
    background: rgba(15, 39, 68, 0.35);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.kpi-mini-num {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.kpi-mini-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

/* Bill Fly Animation */
.flying-receipt {
    opacity: 0;
    transform: translateY(20px);
}

.flying-receipt.active {
    animation: flyBill 3s ease-out infinite;
}

.bill-1 { animation-delay: 0s; }
.bill-2 { animation-delay: 1.5s; }

@keyframes flyBill {
    0% { transform: translateY(40px) scale(0.8); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-80px) rotate(15deg) scale(1); opacity: 0; }
}

/* MÀN HÌNH 7: Du lịch */
.card-detail-txt {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 6px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.event-item {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    padding: 10px;
}

.event-icon {
    font-size: 1.2rem;
}

.event-details {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.pin-lbl {
    fill: #fff;
    font-size: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Plane animation */
.plane-animation {
    transform: translate(-50px, 150px) rotate(-15deg);
}

.plane-animation.active {
    animation: flyPlaneAcross 6s linear infinite;
}

@keyframes flyPlaneAcross {
    0% { transform: translate(-50px, 180px) rotate(-10deg) scale(0.6); }
    100% { transform: translate(500px, 60px) rotate(-10deg) scale(1.1); }
}

/* 11. MÀN HÌNH 8: BỨC TRANH XÃ HỘI */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.social-card {
    padding: 24px;
    border-radius: 12px;
}

.social-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 10px;
}

.social-icon {
    font-size: 1.5rem;
}

.social-card-head h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.main-stat {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.accident-flex {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.acc-val {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.acc-val .lbl {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.daily-stat-badge {
    background: rgba(229, 57, 37, 0.1);
    border: 1px solid rgba(229, 57, 37, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #fca5a5;
}

.disease-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.disease-item {
    background: rgba(255,255,255,0.03);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.d-name {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.d-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-top: 3px;
}

.border-blue-glow { border: 1px solid rgba(20, 110, 245, 0.15); box-shadow: 0 4px 20px rgba(20, 110, 245, 0.05); }
.border-green-glow { border: 1px solid rgba(0, 181, 120, 0.15); box-shadow: 0 4px 20px rgba(0, 181, 120, 0.05); }
.border-red-glow { border: 1px solid rgba(229, 57, 37, 0.15); box-shadow: 0 4px 20px rgba(229, 57, 37, 0.05); }
.border-warning-glow { border: 1px solid rgba(255, 138, 0, 0.15); box-shadow: 0 4px 20px rgba(255, 138, 0, 0.05); }

/* 12. MÀN HÌNH 9: RISKS AND CHALLENGES */
.dark-theme-screen {
    position: relative;
}

/* Rain Effect Background */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 1px;
    height: 12px;
    background: linear-gradient(transparent, rgba(255,255,255,0.25));
    animation: fall 1.5s linear infinite;
}

@keyframes fall {
    to { transform: translateY(100vh); }
}

/* Lightning effect */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.lightning-flash.flash {
    animation: flashEffect 0.5s ease-out;
}

@keyframes flashEffect {
    0%, 100% { opacity: 0; }
    10%, 30% { opacity: 0.15; }
    20% { opacity: 0.05; }
}

.risk-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
    position: relative;
    z-index: 5;
}

.glass-dark {
    background: rgba(10, 15, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 24px;
}

.border-orange { border-top: 4px solid var(--color-warning); }
.border-red { border-top: 4px solid var(--color-danger); }

.risk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.risk-icon {
    font-size: 1.5rem;
}

.risk-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.risk-huge-val {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 6px;
}

.risk-huge-val .unit {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.text-orange { color: var(--color-warning); }

.risk-compare-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-warning);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.risk-compare-badge.text-red {
    background: rgba(229, 57, 37, 0.1);
    color: var(--color-danger);
}

.risk-list {
    list-style: none;
}

.risk-list li {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 13. MÀN HÌNH 10: NATIONAL DASHBOARD & CONCLUSION */
.national-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 30px auto;
    text-align: left;
}

.dashboard-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.panel-positive { border-top: 4px solid var(--color-success); }
.panel-negative { border-top: 4px solid var(--color-danger); }
.panel-center {
    border-top: 4px solid var(--color-primary);
    text-align: center;
    justify-content: center;
}

.panel-headline {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.text-green { color: var(--color-success); }

.db-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 10px 0;
}

.db-name {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.db-num {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.center-title {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.kw {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.04);
}

.kw-up {
    color: var(--color-success);
    background: rgba(0, 181, 120, 0.1);
    border: 1px solid rgba(0, 181, 120, 0.2);
}

.alert-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.al-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.al-red {
    background: rgba(229, 57, 37, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(229, 57, 37, 0.2);
}

.al-orange {
    background: rgba(255, 138, 0, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(255, 138, 0, 0.2);
}

.editorial-conclusion-box {
    background: rgba(20, 110, 245, 0.05);
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.editorial-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: #fff;
    line-height: 1.5;
}

.editorial-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.editorial-footer p {
    margin-bottom: 5px;
}

/* 14. SCROLL ANIMATIONS CORE */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Added Styles for Highlighting */

/* Khu vực Sản xuất */
.production-kpi-highlight {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    width: 100%;
}

.prod-kpi-card {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    background: rgba(15, 39, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.prod-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.prod-kpi-card.border-green {
    border-left: 4px solid var(--color-success);
    box-shadow: 0 4px 20px rgba(0, 181, 120, 0.05);
}

.prod-kpi-card.border-blue {
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(20, 110, 245, 0.05);
}

.prod-kpi-card:hover {
    transform: translateY(-4px);
}

.prod-kpi-card.border-green:hover {
    border-color: var(--color-success);
    box-shadow: 0 8px 30px rgba(0, 181, 120, 0.2);
    background: rgba(0, 181, 120, 0.06);
}

.prod-kpi-card.border-blue:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(20, 110, 245, 0.2);
    background: rgba(20, 110, 245, 0.06);
}

.prod-kpi-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
}

.prod-kpi-lbl {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.2px;
}

/* Các số nổi bật trong đoạn văn/tab */
.highlight-number {
    color: var(--color-success);
    font-weight: 700;
    background: rgba(0, 181, 120, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 181, 120, 0.25);
    display: inline-block;
    font-family: var(--font-heading);
    margin: 0 2px;
    transition: var(--transition-smooth);
}

.highlight-number:hover {
    background: rgba(0, 181, 120, 0.25);
    transform: scale(1.05);
}

.highlight-number.negative {
    color: var(--color-danger);
    background: rgba(229, 57, 37, 0.12);
    border-color: rgba(229, 57, 37, 0.25);
}

.highlight-number.negative:hover {
    background: rgba(229, 57, 37, 0.25);
}

/* Dòng chảy Doanh nghiệp Infographic */
.dn-flow-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0 15px 0;
    padding: 20px;
    background: rgba(15, 39, 68, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(20, 110, 245, 0.15);
    backdrop-filter: blur(12px);
}

.flow-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px;
    border-radius: 10px;
    background: rgba(7, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.flow-card.flow-in {
    border-top: 4px solid var(--color-success);
    box-shadow: 0 4px 15px rgba(0, 181, 120, 0.05);
}

.flow-card.flow-in:hover {
    border-color: var(--color-success);
    background: rgba(0, 181, 120, 0.04);
    box-shadow: 0 8px 25px rgba(0, 181, 120, 0.15);
    transform: translateY(-3px);
}

.flow-card.flow-out {
    border-top: 4px solid var(--color-danger);
    box-shadow: 0 4px 15px rgba(229, 57, 37, 0.05);
}

.flow-card.flow-out:hover {
    border-color: var(--color-danger);
    background: rgba(229, 57, 37, 0.04);
    box-shadow: 0 8px 25px rgba(229, 57, 37, 0.15);
    transform: translateY(-3px);
}

.flow-net-wrap {
    flex: 1.1;
    display: flex;
    justify-content: center;
}

.flow-card.flow-net {
    width: 100%;
    border-top: 4px solid var(--color-warning);
    background: rgba(255, 138, 0, 0.03);
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.05);
}

.flow-card.flow-net:hover {
    border-color: var(--color-warning);
    background: rgba(255, 138, 0, 0.08);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.2);
    transform: translateY(-3px);
}

.flow-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.flow-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.flow-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 4px 0;
}

.flow-compare {
    font-size: 0.7rem;
    font-weight: 500;
}

.flow-arrow {
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 0.7;
    animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

@media (max-width: 768px) {
    .production-kpi-highlight {
        flex-direction: column;
        gap: 15px;
    }
    .dn-flow-visual {
        flex-direction: column;
        gap: 15px;
    }
    .flow-arrow {
        transform: rotate(90deg);
        animation: pulseArrowVertical 2s infinite ease-in-out;
    }
    .flow-net-wrap {
        width: 100%;
    }
}

@keyframes pulseArrowVertical {
    0%, 100% { transform: rotate(90deg) scale(1); opacity: 0.4; }
    50% { transform: rotate(90deg) scale(1.2); opacity: 0.9; }
}

/* 15. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .hero-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .social-grid { grid-template-columns: 1fr; }
    .risk-dashboard { grid-template-columns: repeat(2, 1fr); }
    .national-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
    .screen { padding-top: 90px; }
    .hero-title { font-size: 1.8rem; }
    .kpi-mini-grid { grid-template-columns: 1fr; }
    .hero-kpi-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .fdi-kpi-row { flex-direction: column; }
    .disease-list { grid-template-columns: 1fr; }
    .risk-dashboard { grid-template-columns: 1fr; }
}
