* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: 'Be Vietnam Pro', sans-serif; }

        body {
            font-family: 'Be Vietnam Pro', sans-serif;
            background: #0a0a0a;
            color: #ffffff;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* BACKGROUND */
        .bg-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
        .bg-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background:
                radial-gradient(ellipse at 20% 50%, rgba(200,0,0,.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(200,0,0,.08) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(100,0,0,.15) 0%, transparent 50%),
                linear-gradient(180deg, #0a0a0a 0%, transparent 30%, transparent 70%, #0a0a0a 100%);
        }
        .particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
        .particle { position: absolute; width: 2px; height: 2px; background: rgba(255,50,50,.4); border-radius: 50%; animation: float-particle linear infinite; }
        @keyframes float-particle { 0%{transform:translateY(100vh) scale(0);opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{transform:translateY(-10vh) scale(1);opacity:0} }
        .glow-line { position: fixed; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,0,0,.2), rgba(255,0,0,.4), rgba(255,0,0,.2), transparent); z-index: 1; animation: glow-line-move 8s ease-in-out infinite; pointer-events: none; }
        .glow-line:nth-child(1){top:15%;left:-100%;width:200%;animation-delay:0s}
        .glow-line:nth-child(2){top:50%;left:-100%;width:150%;animation-delay:3s;opacity:.4}
        .glow-line:nth-child(3){top:80%;left:-100%;width:180%;animation-delay:6s;opacity:.3}
        @keyframes glow-line-move { 0%{transform:translateX(-50%);opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{transform:translateX(50%);opacity:0} }

        /* ANNOUNCEMENT STRIP + SITE HEADER (layout inspired by AI4VN public header) */
        .site-announcement { position: relative; z-index: 30; height: 32px; background: #080809; border-bottom: 1px solid rgba(255,255,255,.055); color: #8f929a; font-size: 10px; }
        .site-announcement-inner { max-width: 1600px; height: 100%; padding: 0 clamp(16px, 2.5vw, 42px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
        .site-announcement-label { display: inline-flex; align-items: center; gap: 8px; color: #ff444a; font-weight: 900; letter-spacing: 1.25px; white-space: nowrap; }
        .site-announcement-label i { font-size: 11px; }
        .site-announcement-copy { flex: 1; color: #666871; letter-spacing: .15px; }
        .site-announcement-link { display: inline-flex; align-items: center; gap: 8px; color: #b4b6bd; text-decoration: none; white-space: nowrap; transition: color .18s ease; }
        .site-announcement-link:hover { color: #fff; }
        .site-announcement-link i { color: #f33; font-size: 9px; }
        header.site-header { position: sticky; top: 0; z-index: 25; width: 100%; min-height: 76px; padding: 0 clamp(16px, 2.5vw, 42px); border-bottom: 1px solid rgba(255,40,45,.16); background: rgba(10,10,12,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; justify-content: space-between; align-items: center; gap: clamp(18px, 2vw, 34px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
        .logo-container { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; min-width: 145px; }
        .logo-container .logo-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #ff343a; background: linear-gradient(145deg,rgba(255,40,45,.14),rgba(255,40,45,.035)); border: 1px solid rgba(255,45,50,.22); font-size: 20px; text-shadow: 0 0 24px rgba(255,0,0,.24); }
        .logo-wordmark { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
        .logo-container .logo-text { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 900; font-size: 21px; letter-spacing: 2.7px; background: linear-gradient(135deg,#ff252d,#ff7377); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .logo-wordmark small { color: #63636b; font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
        .primary-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; flex: 1; }
        .primary-nav-links { display: flex; align-items: center; gap: 3px; min-width: 0; }
        .primary-nav-links a { display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 11px 12px; border-radius: 9px; color: #92929a; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .45px; white-space: nowrap; transition: color .18s ease, background .18s ease; }
        .primary-nav-links a i { color: #6b6c74; font-size: 12px; transition: color .18s ease; }
        .primary-nav-links a:hover { color: #fff; background: rgba(255,255,255,.045); }
        .primary-nav-links a:hover i { color: #ff4a50; }
        .primary-nav-links a.active { color: #fff; background: rgba(255,44,49,.105); box-shadow: inset 0 0 0 1px rgba(255,44,49,.09); }
        .primary-nav-links a.active i { color: #ff4147; }
        .primary-nav-links a.active::after { content: ''; position: absolute; left: 17px; right: 17px; bottom: 4px; height: 2px; border-radius: 2px; background: #f52b32; }
        .primary-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; }
        .nav-account-pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; margin-right: 3px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.025); max-width: 175px; }
        .nav-account-pill > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #ff4147; background: rgba(255,35,42,.1); font-size: 17px; }
        .nav-account-pill span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
        .nav-account-pill small { color: #666872; font-size: 7px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
        .nav-account-pill strong { color: #e6e6e9; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 105px; }
        .nav-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; color: #f8f8f9; font-size: 11px; font-weight: 850; letter-spacing: .2px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
        .nav-action i { font-size: 12px; }
        .nav-action:hover { transform: translateY(-1px); }
        .nav-action-gem, .nav-action-register { background: linear-gradient(135deg,#ef171f,#b90910); border-color: #f22b32; box-shadow: 0 4px 16px rgba(230,0,0,.13); }
        .nav-action-gem:hover, .nav-action-register:hover { box-shadow: 0 7px 24px rgba(230,0,0,.22); }
        .nav-action-account, .nav-action-login { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); color: #d5d5d9; }
        .nav-action-account:hover, .nav-action-login:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
        .nav-action-logout { width: 40px; padding: 0; background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.09); color: #9899a1; }
        .nav-action-logout span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
        .nav-action-logout:hover { color: #ff777c; border-color: rgba(255,60,65,.35); background: rgba(255,0,0,.06); }
        .mobile-toggle { display: none; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.04); color: #f4f4f5; font-size: 18px; cursor: pointer; }

        /* BUTTONS */
        .btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: none; border-radius: 8px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .3s ease; text-transform: uppercase; letter-spacing: .5px; }
        .btn-primary { background: linear-gradient(135deg,#cc0000,#ff0000); color: #fff; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,0,0,.25); }
        .btn-secondary { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.06); }
        .btn-secondary:hover { background: rgba(255,255,255,.10); color: #fff; transform: translateY(-2px); }
        .btn-outline { background: transparent; color: #ff0000; border: 1px solid rgba(255,0,0,.3); }
        .btn-outline:hover { background: rgba(255,0,0,.10); transform: translateY(-2px); }
        .btn-danger { background: rgba(255,0,0,.10); color: #ff6b6b; border: 1px solid rgba(255,0,0,.15); }
        .btn-danger:hover { background: rgba(255,0,0,.20); transform: translateY(-2px); }

        /* HERO */
        .hero { position: relative; z-index: 10; max-width: 1200px; margin: 40px auto 0; padding: 60px 20px; text-align: center; }
        .hero .badge { display: inline-block; background: rgba(255,0,0,.10); border: 1px solid rgba(255,0,0,.15); border-radius: 50px; padding: 6px 20px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #ff4444; margin-bottom: 20px; }
        .hero h1 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 900; font-size: 56px; letter-spacing: 4px; text-transform: uppercase; line-height: 1.1; margin-bottom: 16px; }
        .hero h1 .highlight { background: linear-gradient(135deg,#ff0000,#ff4444,#ff0000); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 4s ease-in-out infinite; }
        @keyframes gradient-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
        .hero p { font-size: 18px; font-weight: 300; color: rgba(255,255,255,.5); max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
        .hero .action-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
        .hero .action-buttons .btn { padding: 14px 32px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
        .hero .stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; flex-wrap: wrap; }
        .hero .stats .stat-item { text-align: center; }
        .hero .stats .stat-item .stat-number { font-family: 'Be Vietnam Pro', sans-serif; font-size: 32px; font-weight: 900; color: #fff; }
        .hero .stats .stat-item .stat-number .accent { color: #ff0000; }
        .hero .stats .stat-item .stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.3); margin-top: 4px; }

        /* NEWS */
        .news-section-wrapper { position: relative; z-index: 10; max-width: 1200px; margin: 20px auto 0; padding: 0 20px 60px; }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
        .section-header h2 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 2px; text-transform: uppercase; }
        .section-header h2 .accent { color: #ff0000; }
        .section-header .view-all { color: rgba(255,255,255,.3); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: all .3s ease; }
        .section-header .view-all:hover { color: #ff0000; }
        .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
        .news-card { background: rgba(10,10,10,.75); backdrop-filter: blur(15px); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.04); transition: all .4s ease; }
        .news-card:hover { transform: translateY(-8px); border-color: rgba(255,0,0,.15); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
        .news-card .news-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg,rgba(255,0,0,.05),rgba(0,0,0,.3)); display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(255,0,0,.1); position: relative; overflow: hidden; }
        .news-card .news-image .image-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(0deg,rgba(10,10,10,.9),transparent); }
        .news-card .news-image .news-tag { position: absolute; top: 16px; left: 16px; background: rgba(255,0,0,.85); padding: 4px 14px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
        .news-card .news-content { padding: 20px 24px 24px; }
        .news-card .news-content .news-title { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 8px; line-height: 1.4; }
        .news-card .news-content .news-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
        .news-card .news-content .news-meta .news-date { font-size: 12px; color: rgba(255,255,255,.3); }
        .news-card .news-content .news-meta .news-category { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #ff4444; background: rgba(255,0,0,.08); padding: 2px 12px; border-radius: 50px; }
        .news-card .news-content .news-excerpt { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; font-weight: 300; }
        .news-card .news-content .read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #ff4444; text-decoration: none; font-size: 13px; font-weight: 600; transition: all .3s ease; }
        .news-card .news-content .read-more:hover { gap: 14px; color: #ff0000; }

        /* FOOTER */
        footer { position: relative; z-index: 10; background: rgba(10,10,10,.90); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,0,0,.06); padding: 40px 20px 24px; }
        .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
        .footer-content .footer-brand .brand-text { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 2px; background: linear-gradient(135deg,#ff0000,#ff4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
        .footer-content .footer-brand p { color: rgba(255,255,255,.3); font-size: 14px; line-height: 1.8; margin-top: 8px; }
        .footer-content .footer-brand .social-links { display: flex; gap: 12px; margin-top: 16px; }
        .footer-content .footer-brand .social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); text-decoration: none; transition: all .3s ease; }
        .footer-content .footer-brand .social-links a:hover { background: rgba(255,0,0,.10); border-color: rgba(255,0,0,.2); color: #ff0000; transform: translateY(-2px); }
        .footer-content .footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
        .footer-content .footer-col ul { list-style: none; }
        .footer-content .footer-col ul li { margin-bottom: 8px; }
        .footer-content .footer-col ul a { color: rgba(255,255,255,.3); text-decoration: none; font-size: 14px; transition: all .3s ease; }
        .footer-content .footer-col ul a:hover { color: #fff; }
        .footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.04); text-align: center; font-size: 13px; color: rgba(255,255,255,.2); }

        /* RESPONSIVE */
        @media (max-width:992px) { .footer-content{grid-template-columns:1fr 1fr;gap:30px} .hero h1{font-size:40px} .hero .stats{gap:30px} }
        @media (max-width:1180px) {
            header.site-header { gap: 14px; }
            .primary-nav { gap: 10px; }
            .primary-nav-links a { padding: 10px 9px; font-size: 10px; }
            .nav-account-pill { display: none; }
            .nav-action { padding: 0 11px; font-size: 10px; }
        }
        @media (max-width:920px) {
            .site-announcement-copy { display: none; }
            header.site-header { min-height: 68px; padding: 0 18px; }
            .mobile-toggle { display: inline-grid; place-items: center; margin-left: auto; }
            .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 18px 18px; align-items: stretch; flex-direction: column; gap: 14px; background: rgba(9,9,11,.985); border-bottom: 1px solid rgba(255,40,45,.18); box-shadow: 0 18px 34px rgba(0,0,0,.35); }
            .primary-nav.open { display: flex; }
            .primary-nav-links, .primary-nav-actions { display: flex; align-items: stretch; flex-direction: column; gap: 5px; width: 100%; }
            .primary-nav-links a { width: 100%; padding: 12px 14px; font-size: 12px; }
            .primary-nav-links a.active::after { display: none; }
            .primary-nav-actions { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; }
            .nav-account-pill { display: inline-flex; max-width: none; margin: 0 0 4px; }
            .nav-account-pill strong { max-width: none; }
            .nav-action, .nav-action-logout { width: 100%; min-height: 42px; padding: 0 14px; justify-content: center; }
            .nav-action-logout span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
            .hero h1{font-size:30px;letter-spacing:2px} .hero p{font-size:15px}
            .hero .action-buttons .btn{padding:12px 24px;font-size:13px;width:100%;justify-content:center}
            .hero .stats .stat-item .stat-number{font-size:24px}
            .news-grid{grid-template-columns:1fr}
            .footer-content{grid-template-columns:1fr;gap:24px;text-align:center} .footer-content .footer-brand .social-links{justify-content:center}
            .section-header h2{font-size:18px}
        }
        @media (max-width:480px) { .site-announcement { height: 29px; } .site-announcement-inner { padding: 0 12px; } .site-announcement-link { font-size: 9px; } .logo-container { min-width: 0; } .logo-container .logo-text{font-size:17px;letter-spacing:1.8px} .logo-wordmark small {font-size:7px} .hero h1{font-size:24px} .hero .stats{gap:20px} .hero .stats .stat-item .stat-number{font-size:20px} }

        /* SCROLLBAR */
        ::-webkit-scrollbar{width:6px} ::-webkit-scrollbar-track{background:rgba(0,0,0,.3)} ::-webkit-scrollbar-thumb{background:rgba(255,0,0,.3);border-radius:3px} ::-webkit-scrollbar-thumb:hover{background:rgba(255,0,0,.5)}


/* CSS formerly attached to markup, moved out of PHP. */
.cf-home-style-ce64735c {font-size:12px;color:rgba(255,255,255,.3);}
.cf-home-style-c37dae9e {color:#4ade80;font-size:8px;}
.cf-home-style-b1279a83 {width:100%;height:100%;object-fit:cover;}
.cf-home-style-b1279a83 {width:100%;height:100%;object-fit:cover;}
.cf-home-style-b1279a83 {width:100%;height:100%;object-fit:cover;}

/* Hide a news image through JS when the asset is missing. */
.news-image img.image-failed { display: none; }
