@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
  --primary: #0056b3;
  --primary-light: #1890ff;
  --bg: #f0f4f8;
  --white: #fff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #28a745;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.logo-text { font-weight: 700; font-size: 14px; color: var(--primary); }
.nav-main { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-main a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 8px; }
.nav-main a:hover, .nav-main a.active { color: var(--primary-light); background: #e6f4ff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.btn-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--white); }
.btn-login:hover { border-color: var(--primary-light); color: var(--primary-light); }
.nav-toggle { display: none; border: none; background: none; font-size: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: #e6f4ff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Hero home */
.hero-home { background: linear-gradient(135deg, #e8f2fc 0%, #f5f9ff 50%, #fff 100%); padding: 56px 0 72px; }
.hero-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-home h1 { font-size: 40px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero-home .lead { color: var(--muted); margin-bottom: 24px; max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.search-inline { display: flex; background: var(--white); border-radius: 50px; box-shadow: var(--shadow); padding: 6px 6px 6px 18px; max-width: 480px; border: 1px solid var(--border); }
.search-inline input { flex: 1; border: none; outline: none; padding: 10px 8px; font-size: 14px; min-width: 0; }
.search-inline button { background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 10px 22px; font-weight: 600; cursor: pointer; }
.hero-art { min-height: 320px; position: relative; }
.hero-shield-3d { width: 100%; height: 300px; background: radial-gradient(circle at 50% 40%, rgba(24,144,255,0.2), transparent 60%); display: flex; align-items: center; justify-content: center; }
.hero-shield-3d .shield { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(0,86,179,0.3)); }

/* Stats */
.stats-bar { margin-top: -40px; position: relative; z-index: 2; padding-bottom: 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.stat-box .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-box .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 32px; }
.section-sub { text-align: center; color: var(--muted); margin: -24px 0 32px; font-size: 15px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-item { background: var(--white); border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
.cat-item:hover { transform: translateY(-4px); }
.cat-item .ico { font-size: 36px; margin-bottom: 10px; }
.cat-item span { font-size: 14px; font-weight: 600; }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.benefit-card { background: var(--white); border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); }
.benefit-card .ico { width: 56px; height: 56px; background: #e6f4ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }
.benefit-card h4 { font-size: 15px; margin-bottom: 6px; }
.benefit-card p { font-size: 12px; color: var(--muted); }

/* App promo */
.app-promo { background: linear-gradient(135deg, #003d82, #0056b3); color: #fff; padding: 56px 0; margin-top: 48px; }
.app-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-promo h2 { font-size: 28px; margin-bottom: 12px; }
.app-promo p { opacity: 0.9; margin-bottom: 24px; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.store-btn { background: #fff; color: var(--text); padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.qr-box { width: 100px; height: 100px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #333; font-size: 11px; font-weight: 700; }
.app-phones { display: flex; gap: 16px; justify-content: center; }
.phone-mock { width: 140px; height: 280px; background: #1a1a2e; border-radius: 24px; border: 4px solid #333; padding: 12px; font-size: 10px; color: #fff; }

/* Page hero blue */
.page-hero { background: linear-gradient(135deg, #004a99, #0056b3); color: #fff; padding: 48px 0 56px; text-align: center; }
.page-hero h1 { font-size: 32px; margin-bottom: 12px; }
.page-hero p { opacity: 0.9; margin-bottom: 24px; }
.page-hero .search-inline { margin: 0 auto; max-width: 560px; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-pad { padding: 24px; }

/* Lookup result */
.result-layout { padding: 32px 0 56px; }
.result-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.result-head img { width: 100px; height: 100px; border-radius: var(--radius); object-fit: cover; background: #f8fafc; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: var(--success); }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

.timeline-h { display: flex; margin-bottom: 28px; position: relative; }
.timeline-h::before { content: ''; position: absolute; top: 14px; left: 8%; right: 8%; height: 3px; background: var(--border); }
.tl-step { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.tl-step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); margin: 0 auto 8px; border: 3px solid var(--white); }
.tl-step.done { color: var(--success); font-weight: 600; }
.tl-step.done .dot { background: var(--success); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 12px 20px; border: none; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--primary-light); border-bottom-color: var(--primary-light); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.detail-grid dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.detail-grid dd { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.map-section { margin-top: 28px; }
.map-box { height: 200px; background: linear-gradient(180deg, #dbeafe, #eff6ff); border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.center-list .item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.center-list .item:last-child { border-bottom: none; }

/* Stepper */
.stepper { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.stepper::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; font-size: 14px; }
.step.active .num, .step.done .num { background: var(--primary); color: #fff; }
.step span { font-size: 12px; color: var(--muted); }
.step.active span { color: var(--primary); font-weight: 600; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.preview-card { text-align: center; padding: 24px; }
.preview-card img { width: 120px; margin: 0 auto 16px; border-radius: 12px; }

/* Success */
.success-page { text-align: center; padding: 64px 20px; max-width: 520px; margin: 0 auto; }
.success-icon { width: 88px; height: 88px; background: #d4edda; color: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 20px; }
.summary-list { text-align: left; margin: 28px 0; }
.summary-list .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.success-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Products page */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0 56px; }
.sidebar-filter { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.sidebar-filter h3 { font-size: 15px; margin-bottom: 14px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-size: 13px; margin-bottom: 6px; cursor: pointer; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tab { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--white); border: 1px solid var(--border); cursor: pointer; }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-card img { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; }
.product-card .body { padding: 16px; }
.product-card h3 { font-size: 15px; margin-bottom: 6px; }
.product-card .price { color: var(--primary); font-weight: 700; margin-bottom: 12px; }

/* News */
.news-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; padding: 32px 0 56px; }
.featured-news { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.featured-news img { width: 100%; height: 280px; object-fit: cover; }
.featured-news .body { padding: 24px; }
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-sidebar .cat-link { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.news-sidebar .cat-link:hover, .news-sidebar .cat-link.active { background: #e6f4ff; color: var(--primary-light); }

/* Support */
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.support-card { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.support-card .ico { font-size: 40px; margin-bottom: 12px; }
.support-card h3 { font-size: 16px; margin-bottom: 8px; }
.support-card .highlight { font-size: 22px; font-weight: 700; color: var(--primary); }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { width: 100%; padding: 16px 20px; border: none; background: none; text-align: left; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--muted); display: none; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer { background: #001529; color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer a, .site-footer p { font-size: 13px; color: rgba(255,255,255,0.6); display: block; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .nav-main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-main.open { display: flex; }
  .hero-home-grid, .app-promo-grid, .form-grid, .page-layout, .news-layout { grid-template-columns: 1fr; }
  .stats-grid, .cat-grid, .benefit-grid, .product-grid, .support-cards { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-grid, .cat-grid, .product-grid, .support-cards { grid-template-columns: 1fr; }
  .hero-home h1 { font-size: 28px; }
}
