:root {
  --bg: #131f35;
  --bg2: #1a2a45;
  --card: #1e3050;
  --card2: #243660;
  --border: rgba(255,255,255,0.12);
  --border2: rgba(99,179,237,0.3);
  --gold: #fbbf24;
  --gold2: #f59e0b;
  --blue: #3b82f6;
  --blue2: #93c5fd;
  --cyan: #22d3ee;
  --green: #10b981;
  --green2: #6ee7b7;
  --text: #f0f6ff;
  --muted: #7a90b0;
  --muted2: #b0c4de;
  --accent: #818cf8;
  --r: 16px;
  --r2: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; list-style: none; }
li::marker { display: none; content: ''; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.orb-1 { width: 600px; height: 600px; background: rgba(59,130,246,0.13); top: -200px; right: -200px; }
.orb-2 { width: 500px; height: 500px; background: rgba(99,102,241,0.11); bottom: 20%; left: -150px; }
.orb-3 { width: 400px; height: 400px; background: rgba(6,182,212,0.10); top: 50%; right: 10%; }

/* ===== NAV ===== */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}
.nav-inner {
  width: 100%;
  padding: 0 40px 0 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; color: #fff; font-weight: 900;
}
.nav-logo-text { font-size: 17px; font-weight: 800; color: #0f1729; letter-spacing: -0.3px; line-height: 1.1; }
.nav-logo .custom-logo-link, .nav-logo .custom-logo-link img { display: block; height: 40px; width: auto; }

.nav-menu-wrap { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links li { margin: 0; padding: 0; }
.nav-links li a { color: #374151; text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 8px; transition: background 0.15s, color 0.15s; white-space: nowrap; display: block; }
.nav-links li a:hover { background: #f0f7ff; color: #2563eb; }
.nav-links li.current-menu-item > a { color: #2563eb; background: #eff6ff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #1f2937; border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero { position: relative; z-index: 1; padding: 160px 40px 100px; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); border-radius: 100px; padding: 6px 16px; font-size: 12px; font-weight: 600; color: var(--blue2); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px; animation: fadeDown 0.6s ease; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(38px, 6vw, 68px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; animation: fadeUp 0.7s ease 0.1s both; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--blue2), var(--cyan), var(--green2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--muted2); max-width: 560px; margin: 0 auto 40px; font-weight: 400; animation: fadeUp 0.7s ease 0.2s both; }
.hero-stats { display: flex; justify-content: center; gap: 48px; animation: fadeUp 0.7s ease 0.3s both; }
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--gold), var(--gold2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ===== PAGE WRAPPER ===== */
#page-wrapper { padding-top: 100px; }

/* ===== SECTION ===== */
.section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-title p { color: var(--muted2); font-size: 15px; }
.section-title .tag { display: inline-block; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--green2); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }

/* ===== COMPARE TABLE ===== */
.compare-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead tr { background: linear-gradient(90deg, #1a2d50, #243660); }
.compare-table th { padding: 18px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.compare-table th:first-child { text-align: left; padding-left: 28px; }
.compare-table td { padding: 20px 16px; font-size: 14px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; transition: background 0.2s; }
.compare-table td:first-child { text-align: left; padding-left: 28px; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .featured-row td { background: rgba(59,130,246,0.06); border-top: 1px solid rgba(59,130,246,0.2); border-bottom: 1px solid rgba(59,130,246,0.2); padding-top: 28px; }
.compare-table .featured-row td:first-child { overflow: visible; }
.compare-table .featured-row .lender-name { position: relative; display: inline-block; }
.compare-table .featured-row .lender-name::before { content: '⭐ Nổi bật'; position: absolute; top: -22px; left: 75%; background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.5px; white-space: nowrap; box-shadow: 0 2px 8px rgba(59,130,246,0.4); }
.lender-cell { display: flex; align-items: center; gap: 14px; }
.lender-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); }
.lender-name { font-weight: 700; font-size: 15px; color: #fff; }
.lender-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.badge-zero { display: inline-block; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.badge-fast { display: inline-block; background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.amount-text { font-weight: 700; color: var(--gold); font-size: 15px; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--text); }
.btn-apply { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: 100px; background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.25s; white-space: nowrap; box-shadow: 0 4px 16px rgba(59,130,246,0.25); }
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
.btn-apply-green { background: linear-gradient(135deg, var(--green), #059669); box-shadow: 0 4px 16px rgba(16,185,129,0.25); }
.btn-apply-green:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.4); }

/* ===== MOBILE CARDS ===== */
.mobile-cards { display: none; }
@media (max-width: 768px) { .compare-wrap { display: none; } .mobile-cards { display: grid; gap: 16px; } }
.loan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); padding: 24px; transition: all 0.3s; position: relative; overflow: hidden; }
.loan-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0; transition: opacity 0.3s; }
.loan-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.loan-card:hover::after { opacity: 1; }
.loan-card.featured { border-color: rgba(59,130,246,0.3); background: linear-gradient(135deg, rgba(59,130,246,0.05), var(--card)); }
.loan-card.featured::after { opacity: 1; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-lender { display: flex; align-items: center; gap: 12px; }
.card-avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid rgba(255,255,255,0.08); }
.card-name { font-weight: 800; font-size: 16px; }
.card-type { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-featured-badge { background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.5px; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.card-stat { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.card-stat-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.card-stat-val { font-size: 14px; font-weight: 700; color: var(--text); }
.card-stat-val.gold { color: var(--gold); }
.card-stat-val.green { color: var(--green2); }
.card-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 20px rgba(59,130,246,0.2); margin-top: 16px; }
.card-btn:hover { box-shadow: 0 8px 32px rgba(59,130,246,0.4); transform: translateY(-2px); }
.card-btn.green { background: linear-gradient(135deg, var(--green), #059669); box-shadow: 0 4px 20px rgba(16,185,129,0.2); }
.card-btn.green:hover { box-shadow: 0 8px 32px rgba(16,185,129,0.4); }

/* ===== SUGGEST ===== */
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.suggest-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.25s; }
.suggest-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.suggest-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }
.suggest-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.suggest-content p { font-size: 12px; color: var(--muted2); margin-bottom: 10px; line-height: 1.5; }
.suggest-links { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest-link { font-size: 12px; font-weight: 700; color: var(--blue2); text-decoration: none; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); padding: 4px 10px; border-radius: 6px; transition: all 0.2s; }
.suggest-link:hover { background: rgba(59,130,246,0.18); color: #fff; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--border2); }
.faq-q { padding: 20px 24px; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; user-select: none; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--blue2); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px; font-size: 14px; color: var(--muted2); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }
.faq-icon { font-size: 18px; }

/* ===== TIPS ===== */
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: all 0.25s; position: relative; overflow: hidden; }
.tip-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tip-card:nth-child(1)::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.tip-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.tip-card:nth-child(3)::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.tip-card:nth-child(4)::before { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.tip-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.tip-emoji { font-size: 28px; margin-bottom: 14px; display: block; }
.tip-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.tip-body { font-size: 13px; color: var(--muted2); line-height: 1.7; }

/* ===== CTA ===== */
.cta-banner { background: linear-gradient(135deg, #1a2e55, #22184a); border: 1px solid rgba(99,102,241,0.3); border-radius: var(--r2); padding: 64px 40px; text-align: center; position: relative; overflow: hidden; margin-bottom: 80px; }
.cta-banner::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%); }
.cta-banner h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--muted2); font-size: 16px; margin-bottom: 32px; position: relative; }
.cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; padding: 14px 32px; border-radius: 100px; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 24px rgba(99,102,241,0.3); transition: all 0.25s; }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(99,102,241,0.5); }
.cta-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: var(--text); padding: 14px 32px; border-radius: 100px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.25s; }
.cta-secondary:hover { background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); position: relative; z-index: 1; padding: 48px 40px 32px; max-width: 1100px; margin: 0 auto; width: 100%; }
.footer-grid { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 40px; margin-bottom: 48px; width: 100%; align-items: flex-start; }
.footer-brand { flex: 2; min-width: 0; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col { flex: 1; min-width: 0; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-bottom .copyright { font-size: 13px; font-weight: 600; color: var(--muted2); }
.disclaimer { font-size: 11px; color: var(--muted); max-width: 680px; line-height: 1.7; padding: 10px 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 20px; }
  .nav-menu-wrap { display: none; }
  .nav-menu-wrap.open { display: flex; position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e8edf5; box-shadow: 0 8px 24px rgba(0,0,0,0.10); padding: 12px 20px 20px; z-index: 999; }
  .nav-menu-wrap.open .nav-links { flex-direction: column; width: 100%; gap: 2px; }
  .nav-menu-wrap.open .nav-links li a { font-size: 15px; padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .hero { padding: 130px 20px 80px; }
  .hero-stats { gap: 32px; }
  .footer-grid { flex-wrap: wrap; }
  .footer-brand { flex: 100%; }
  .footer-col { flex: 1; min-width: 120px; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 22px; }
  .section { padding: 0 16px 60px; }
  .cta-banner { padding: 40px 20px; }
  footer { padding: 40px 16px 24px; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-brand, .footer-col { flex: none; width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== BLOG ===== */
.archive-hero { padding: 120px 24px 60px; text-align: center; position: relative; z-index: 1; }
.archive-hero-inner { max-width: 700px; margin: 0 auto; }
.archive-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; margin: 12px 0 16px; }
.archive-desc { color: var(--muted2); font-size: 16px; }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { display: none; } }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 768px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.post-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-cat { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.5px; }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.post-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.post-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.post-card-title a:hover { color: var(--blue2); }
.post-card-excerpt { font-size: 13px; color: var(--muted2); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue2); text-decoration: none; transition: gap 0.2s; }
.post-card-link:hover { gap: 10px; }

.no-posts { text-align: center; padding: 80px 20px; }
.no-posts span { font-size: 48px; display: block; margin-bottom: 16px; }
.no-posts h3 { font-size: 22px; margin-bottom: 8px; }
.no-posts p { color: var(--muted2); }

.pagination-wrap { margin-top: 40px; }
.pagination-wrap .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination-wrap .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.pagination-wrap .page-numbers:hover, .pagination-wrap .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination-wrap .page-numbers.prev, .pagination-wrap .page-numbers.next { width: auto; padding: 0 16px; }

.single-hero { position: relative; padding: 120px 24px 60px; z-index: 1; }
.single-hero-img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19,31,53,0.6) 0%, rgba(19,31,53,0.95) 100%); }
.single-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.single-title { font-size: clamp(24px, 4vw, 48px); font-weight: 900; line-height: 1.2; margin: 16px 0 24px; }
.single-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted2); }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.single-meta-info { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta-sep { color: var(--muted); }
.single-article { max-width: 100%; }

.toc-box { background: var(--card); border: 1px solid var(--border2); border-radius: var(--r); padding: 20px 24px; margin-bottom: 32px; }
.toc-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: var(--blue2); }
.toc-list { padding: 0; margin: 0; }
.toc-list li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 13px; color: var(--muted2); text-decoration: none; transition: color 0.2s; display: block; padding: 2px 0; }
.toc-list a:hover, .toc-list a.active { color: var(--blue2); }
.toc-list .toc-sub a { padding-left: 16px; font-size: 12px; }

.single-content { font-size: 16px; line-height: 1.85; color: var(--muted2); }
.single-content h2 { font-size: 24px; font-weight: 800; color: var(--text); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid rgba(59,130,246,0.2); }
.single-content h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.single-content p { margin-bottom: 20px; }
.single-content ul { padding-left: 24px; margin-bottom: 20px; list-style: disc; }
.single-content ol { padding-left: 24px; margin-bottom: 20px; list-style: decimal; }
.single-content li { margin-bottom: 8px; list-style: inherit; }
.single-content a { color: var(--blue2); text-decoration: underline; }
.single-content blockquote { border-left: 3px solid var(--blue); background: rgba(59,130,246,0.06); padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--text); }
.single-content img { border-radius: 12px; max-width: 100%; height: auto; margin: 16px 0; }
.single-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.single-content th { background: var(--card2); color: var(--text); padding: 12px 16px; text-align: left; }
.single-content td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--muted2); }
.single-content code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--cyan); }
.single-content pre { background: var(--card2); padding: 20px; border-radius: var(--r); overflow-x: auto; margin: 20px 0; }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.single-tags a { font-size: 12px; font-weight: 600; color: var(--blue2); background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); padding: 5px 12px; border-radius: 100px; text-decoration: none; transition: all 0.2s; }
.single-tags a:hover { background: rgba(59,130,246,0.18); }

.share-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; margin: 32px 0; }
.share-title { font-weight: 700; font-size: 14px; color: var(--muted2); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); transition: all 0.2s; }
.share-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border2); }
.share-fb { color: #60a5fa; } .share-tw { color: #38bdf8; } .share-zalo { color: #a78bfa; }

.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); padding: 24px; margin: 32px 0; }
.author-box-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.author-box-name { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.author-box-bio { font-size: 13px; color: var(--muted2); line-height: 1.6; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; gap: 6px; }
.post-nav-item:hover { border-color: var(--border2); transform: translateY(-2px); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 11px; font-weight: 700; color: var(--blue2); text-transform: uppercase; letter-spacing: 0.5px; }
.post-nav-title { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.4; }

.related-posts { margin: 40px 0; }
.related-posts h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.sidebar-widget-title { font-size: 13px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-widget .search-form { display: flex; gap: 8px; }
.sidebar-widget .search-field { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; font-family: inherit; }
.sidebar-widget .search-field:focus { outline: none; border-color: var(--blue); }
.sidebar-widget .search-submit { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.sidebar-widget .search-submit:hover { background: var(--accent); }

.sidebar-cats { padding: 0; margin: 0; }
.sidebar-cats li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { font-size: 13px; color: var(--muted2); text-decoration: none; transition: color 0.2s; display: flex; justify-content: space-between; }
.sidebar-cats a:hover { color: var(--blue2); }
.sidebar-cats .post-count { font-size: 11px; background: rgba(255,255,255,0.06); padding: 1px 7px; border-radius: 100px; }

.sidebar-recent { padding: 0; margin: 0; }
.sidebar-recent li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-recent li:last-child { border-bottom: none; }
.recent-thumb { flex-shrink: 0; }
.recent-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.sidebar-recent a { font-size: 13px; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.4; display: block; margin-bottom: 3px; }
.sidebar-recent a:hover { color: var(--blue2); }
.sidebar-recent span { font-size: 11px; color: var(--muted); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tags a { font-size: 11px; font-weight: 600; color: var(--muted2); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.sidebar-tags a:hover { color: var(--blue2); border-color: var(--border2); background: rgba(59,130,246,0.08); }

.sidebar-cta { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.12)); border-color: rgba(59,130,246,0.25); text-align: center; }
.sidebar-cta-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.sidebar-cta h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: var(--muted2); line-height: 1.5; }

.comments-area { margin-top: 48px; }
.comments-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.comment-list { padding: 0; }
.comment-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.comment-author { font-weight: 700; color: var(--text); font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.comment-content { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.comment-reply-link { font-size: 12px; color: var(--blue2); font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.comment-form label { font-size: 12px; font-weight: 700; color: var(--muted2); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 14px; font-family: inherit; margin-bottom: 16px; transition: border-color 0.2s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit { cursor: pointer; }

.lender-avatar-img, .card-avatar-img { background: #fff !important; display: flex; align-items: center; justify-content: center; padding: 6px; }
.lender-avatar-img img, .card-avatar-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }

/* Hide scroll-to-top button */
#ast-scroll-top,
.ast-scroll-top,
[id*="scroll-top"],
[class*="scroll-top"] {
  display: none !important;
}

/* Hide any floating action buttons not part of theme */
.hero ~ a[href="#compare"],
.site-main > a,
body > a:not([class]) {
  display: none !important;
}
