/* ==========================================================================
   KING ULTRA — Hệ thống giao diện công khai (v13)
   Nguyên tắc: mobile-first, tương phản đạt WCAG AA, không ảnh hưởng PHP/JS.
   Giữ nguyên các class/ID mà template và main.js đang dùng.
   ========================================================================== */

/* 1. TOKEN -------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #08090D;
  --bg-2: #0D1017;
  --surface: #151923;
  --surface-2: #1B2030;
  --surface-3: #232A3D;
  --text: #F5F6FA;
  --text-2: #A1A7B4;
  --text-3: #868DA0;
  --accent: #E63946;
  --accent-strong: #D62839;
  --accent-hover: #B81D2B;
  --accent-text: #FF6B76;
  --accent-soft: rgba(230, 57, 70, .14);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --glass: rgba(8, 9, 13, .74);
  --glow: radial-gradient(60% 55% at 50% 0%, rgba(230, 57, 70, .16), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 34px -16px rgba(0, 0, 0, .75);
  --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .85);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

/* 2. NỀN & CHỮ ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: #fff; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 .5em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-2); }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.site-main { min-height: 60vh; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 3. THANH TIẾN ĐỘ ĐỌC -------------------------------------------------- */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-text));
  z-index: 120; transition: width .1s linear;
}

/* 4. HEADER ------------------------------------------------------------- */
.editorial-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.top-bar { display: none; background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-divider { opacity: .4; }
.top-link { color: var(--text-2); font-weight: 600; }
.top-link:hover { color: var(--text); }
.top-link.admin-pill {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(230, 57, 70, .3);
}
.brand-area { padding: 10px 0; }
.brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-left, .brand-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand-center { flex: 1; min-width: 0; text-align: center; }
.mobile-menu-btn, .search-toggle-btn, .drawer-close, .search-close-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mobile-menu-btn:hover, .search-toggle-btn:hover, .drawer-close:hover, .search-close-btn:hover {
  background: var(--surface-2); border-color: var(--border-strong);
}
.site-logo {
  display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--text); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}
.site-logo:hover { color: var(--text); }
.logo-main { color: var(--text); }
.logo-accent { color: var(--accent); }
.logo-domain { font-size: .62em; font-weight: 600; letter-spacing: .08em; color: var(--text-2); }
.site-tagline { display: none; margin: 2px 0 0; font-size: 11px; letter-spacing: .12em; color: var(--text-3); }
.main-navbar { display: none; border-top: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: center; }
.nav-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 8px 0; }
.nav-menu a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); color: var(--text-2); font-weight: 600; font-size: 14px;
}
.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-menu a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* 5. MENU DI ĐỘNG (drawer) --------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  width: min(86vw, 340px); display: flex; flex-direction: column; gap: 8px;
  padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-2); border-right: 1px solid var(--border);
  transform: translateX(-102%); transition: transform .35s var(--ease);
  visibility: hidden;
}
.mobile-drawer.open { transform: none; visibility: visible; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); }
.drawer-logo { font-weight: 800; font-size: 1.2rem; color: var(--text); }
.drawer-logo span { color: var(--accent); }
.drawer-nav { list-style: none; margin: 0; padding: 12px 0; display: grid; gap: 4px; }
.drawer-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 12px; color: var(--text); font-weight: 600;
}
.drawer-nav a:hover, .drawer-nav a.active { background: var(--surface); color: var(--text); }
.drawer-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* 6. TÌM KIẾM (modal) --------------------------------------------------- */
.search-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  padding: max(72px, 10vh) 16px 16px;
  background: rgba(5, 6, 9, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.search-modal.active { display: flex; animation: kuFade .25s var(--ease); }
.search-modal-content {
  width: min(640px, 100%); padding: 20px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.search-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search-modal-header h3, .search-modal-header .search-modal-title { margin: 0; font-size: 1.1rem; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(230, 57, 70, .25); }
.search-form button {
  min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent-strong); color: #fff; font-weight: 700;
}
.search-form button:hover { background: var(--accent-hover); }

/* 7. THÔNG BÁO (toast) -------------------------------------------------- */
#toastNotice, .toast-notification, .toast-notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  max-width: calc(100% - 32px); padding: 12px 18px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
#toastNotice.show, .toast-notification.show, .toast-notice.show {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

/* 8. NÚT BẤM ------------------------------------------------------------ */
.btn-editorial-solid, .btn-cred-primary, .btn-submit-comment, .v-btn-full, .newsroom-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 15px;
  text-align: center; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), transform .15s var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-editorial-solid:hover, .btn-cred-primary:hover, .btn-submit-comment:hover, .v-btn-full:hover, .newsroom-cta-btn:hover {
  background: var(--accent-hover); color: #fff; box-shadow: 0 10px 26px -12px rgba(214, 40, 57, .7);
}
.btn-editorial-solid:active, .btn-cred-primary:active, .btn-submit-comment:active { transform: scale(.98); }
.btn-editorial-solid:disabled, .btn-submit-comment:disabled, .btn-cred-primary:disabled {
  background: var(--surface-3); color: var(--text-3); cursor: not-allowed; box-shadow: none; transform: none;
}
.btn-editorial-outline, .btn-cred-secondary, .btn-profile-verify, .btn-profile-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 15px; text-align: center; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-editorial-outline:hover, .btn-cred-secondary:hover, .btn-profile-verify:hover, .btn-profile-share:hover {
  background: var(--surface); border-color: var(--text-3); color: var(--text);
}
.btn-editorial-outline:disabled, .btn-cred-secondary:disabled, .btn-profile-share:disabled {
  color: var(--text-3); border-color: var(--border); cursor: not-allowed;
}
.btn-share, .btn-profile-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-share:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

/* 9. CHÂN TRANG (footer) ----------------------------------------------- */
.editorial-footer {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(40px, 6vw, 64px) 0 24px;
  background: var(--bg-2); border-top: 1px solid var(--border);
}
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-col { min-width: 0; }
.footer-heading { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text); margin: 0 0 14px; }
.contact-info p, .footer-col p { font-size: 14px; color: var(--text-2); margin: 0 0 8px; }
.contact-info a, .footer-col a { color: var(--text-2); word-break: break-word; }
.contact-info a:hover, .footer-col a:hover { color: var(--text); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 12px; letter-spacing: .04em;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-icon:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.footer-bottom-bar { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.footer-bottom-bar p { color: var(--text-3); margin: 0 0 6px; font-size: 13px; }
.footer-disclaimer { font-size: 12px !important; color: var(--text-3) !important; }

/* 10. TRANG CHỦ — khu vực nổi bật ------------------------------------- */
.search-results-banner { padding: clamp(24px, 4vw, 40px) 0 8px; }
.search-banner-title { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0 0 6px; }
.search-banner-title em { font-style: normal; color: var(--accent-text); }
.search-banner-count { color: var(--text-3); margin: 0; font-size: 14px; }

.hero-editorial-section {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 0 clamp(16px, 3vw, 32px);
  background: var(--glow);
}
.hero-editorial-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 28px); }
.hero-editorial-grid > * { min-width: 0; }

.lead-story-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.lead-story-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.lead-story-thumb img, .lead-story-thumb > a { display: block; width: 100%; height: 100%; }
.lead-story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-badge-pill, .cat-pill, .feed-category {
  display: inline-flex; align-items: center; width: max-content; max-width: 100%;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text);
  border: 1px solid rgba(230, 57, 70, .28);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.lead-story-thumb .category-badge-pill { position: absolute; top: 16px; left: 16px; background: rgba(8, 9, 13, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lead-story-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); }
.lead-story-title { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.lead-story-title a { color: var(--text); }
.lead-story-title a:hover { color: var(--accent-text); }
.lead-story-sapo { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--text-2); margin: 0; }
.story-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--text-3); }
.story-meta-row .author-name { color: var(--text-2); font-weight: 600; }
.meta-dot { opacity: .45; }
.view-count { white-space: nowrap; }

.sub-stories-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sub-stories-header { display: flex; align-items: center; justify-content: space-between; }
.column-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-2); margin: 0; }
.sub-stories-list { display: flex; flex-direction: column; gap: 10px; }
.sub-story-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sub-story-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sub-story-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.sub-story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-story-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sub-story-cat { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.sub-story-title { font-size: 15px; line-height: 1.35; margin: 0; }
.sub-story-title a { color: var(--text); }
.sub-story-title a:hover { color: var(--accent-text); }
.sub-story-date { font-size: 12px; color: var(--text-3); }

/* 11. TIÊU ĐỀ MỤC ------------------------------------------------------- */
.editorial-section-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px;
  margin: clamp(40px, 7vw, 80px) 0 clamp(18px, 3vw, 28px);
}
.header-left { min-width: 0; }
.header-right { display: flex; align-items: center; gap: 12px; }
.section-tag-sub { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent-text); }
.editorial-section-title { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: 0; }
.view-all-link { color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.view-all-link:hover { color: var(--text); }

/* 12. NHÂN VẬT (profiles) ---------------------------------------------- */
.section-profiles-showcase, .credibility-banner-section, .section-category-blocks { padding-bottom: clamp(16px, 3vw, 32px); }
.profiles-cards-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.profile-card-item {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.profile-card-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.profile-card-cover { height: 112px; background: var(--surface-2) center / cover no-repeat; }
.profile-card-content { position: relative; display: flex; flex-direction: column; padding: 0 20px 20px; }
.profile-avatar-wrapper { position: relative; width: 72px; height: 72px; margin-top: -36px; }
.profile-avatar-wrapper img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.profile-verified-badge {
  position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--accent-strong); border: 2px solid var(--surface);
}
.profile-card-name { font-size: 1.15rem; margin: 12px 0 4px; }
.profile-card-name a { color: var(--text); }
.profile-card-role { font-size: 14px; color: var(--text-2); margin: 0 0 8px; }
.profile-card-bio { font-size: 14px; color: var(--text-2); margin: 0; }
.profile-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.profile-badge-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); }
.profile-btn-link { font-size: 14px; font-weight: 700; color: var(--text); }
.profile-btn-link:hover { color: var(--accent-text); }

/* 13. KHỐI THẨM ĐỊNH (credibility) ------------------------------------- */
.credibility-box {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(230, 57, 70, .12), transparent 55%), var(--surface);
  border: 1px solid rgba(230, 57, 70, .22);
}
.credibility-text { min-width: 0; }
.cred-pill { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.credibility-text h2, .credibility-text h3 { margin: 0 0 8px; }
.credibility-text p { margin: 0; }
.credibility-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 14. DANH SÁCH BÀI & SIDEBAR ------------------------------------------ */
.two-columns-layout { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.two-columns-layout > * { min-width: 0; }
.articles-list-feed { display: grid; gap: 14px; }
.feed-article-item {
  display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feed-article-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feed-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-content { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feed-cat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.feed-title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.feed-title a { color: var(--text); }
.feed-title a:hover { color: var(--accent-text); }
.feed-sapo { font-size: 14px; color: var(--text-2); margin: 0; }
.feed-author-row, .feed-date { font-size: 12px; color: var(--text-3); }
.read-more-link { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.read-more-link:hover { color: #fff; }

.sidebar-widget, .newsroom-card-box {
  padding: clamp(18px, 2.4vw, 24px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.widget-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-2); margin: 0 0 14px; }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.popular-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.popular-rank { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text-3); }
.popular-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); margin: 0 0 4px; }
.popular-title a { color: var(--text); }
.popular-title a:hover { color: var(--accent-text); }
.popular-views, .popular-info, .popular-cat { font-size: 12px; color: var(--text-3); }
.newsroom-checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.newsroom-checklist li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 14px; }
.newsroom-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 800; }
.newsroom-logo { display: inline-block; margin-bottom: 10px; font-weight: 800; }
.tags-list .tag-pill, .tag-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; text-decoration: none; }
.tag-pill:hover { color: var(--text); border-color: var(--border-strong); }

/* 15. TRANG BÀI VIẾT (article.php) ------------------------------------- */
.article-reading-page, .article-single-page { padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 8vw, 96px); }
.article-layout-container { max-width: 920px; }
.editorial-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 22px; font-size: 13px; color: var(--text-3);
}
.editorial-breadcrumb a { color: var(--text-2); }
.editorial-breadcrumb a:hover { color: var(--text); }
.bc-sep { opacity: .5; }
.bc-current { color: var(--text-2); overflow-wrap: anywhere; }
.single-article-content, .article-single-page .article-single-content { min-width: 0; }
.single-article-header { margin-bottom: 28px; }
.article-category-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.reading-time { font-size: 13px; color: var(--text-3); }
.article-main-headline {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 18px; color: var(--text);
}
.article-lead-sapo {
  font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; color: var(--text-2);
  max-width: 62ch; margin: 0 0 24px;
}
.article-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; margin-bottom: 28px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meta-author-box { display: flex; align-items: center; gap: 12px; min-width: 0; }
.author-avatar-circle {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: grid; place-items: center;
}
.author-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.author-info-text { display: flex; flex-direction: column; min-width: 0; }
.author-name-bold { font-weight: 700; color: var(--text); }
.author-sub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--text-3); }
.published-time { color: var(--text-3); }
.views-tag, .meta-sep { color: var(--text-3); }
.article-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Nút thích (like) */
.btn-like-heart {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform .15s var(--ease);
}
.btn-like-heart:hover { border-color: var(--accent-text); color: var(--text); }
.btn-like-heart:active { transform: scale(.97); }
.btn-like-heart:disabled { opacity: .55; cursor: not-allowed; }
.btn-like-heart.liked { background: var(--accent-soft); border-color: rgba(230, 57, 70, .55); color: #fff; }
.btn-like-heart.liked .heart-svg-icon { fill: var(--accent); stroke: var(--accent); }
.btn-like-heart.pulse-anim { animation: kuPulse .3s var(--ease); }
.heart-svg-icon { flex-shrink: 0; }
.like-count-pill {
  min-width: 26px; padding: 2px 8px; border-radius: var(--radius-pill); text-align: center;
  background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700;
}

/* Ảnh chính & chú thích */
.article-main-figure { margin: 0 0 28px; }
.article-main-figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--surface-2);
}
.article-figure-caption { margin-top: 10px; font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* Nội dung bài viết */
.article-body-text {
  max-width: 68ch; margin: 0 auto;
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem); line-height: 1.8; color: #D7DBE4;
  overflow-wrap: anywhere;
}
.article-body-text > * { margin-top: 0; }
.article-body-text p { color: #D7DBE4; margin: 0 0 1.25em; }
.article-body-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.9em 0 .6em; }
.article-body-text h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 1.6em 0 .5em; }
.article-body-text h4 { margin: 1.4em 0 .4em; }
.article-body-text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body-text ul, .article-body-text ol { margin: 0 0 1.25em; padding-left: 1.3em; color: #D7DBE4; }
.article-body-text li { margin-bottom: .45em; }
.article-body-text li::marker { color: var(--accent-text); }
.article-body-text strong { color: var(--text); font-weight: 700; }
.article-body-text img {
  display: block; width: 100%; height: auto; margin: 1.6em auto; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-body-text figure { margin: 1.6em 0; }
.article-body-text figure img { margin: 0 auto; }
.article-body-text figcaption { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 8px; }
.article-body-text blockquote {
  margin: 1.8em 0; padding: 18px 22px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface); color: var(--text); font-size: 1.1em; line-height: 1.6;
}
.article-body-text blockquote p { color: var(--text); margin: 0; }
.article-body-text code {
  padding: 2px 6px; border-radius: 6px; background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--text);
}
.article-body-text pre {
  overflow-x: auto; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border);
}
.article-body-text pre code { padding: 0; background: none; }
.article-body-text hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Thẻ xác minh chính chủ */
.verified-character-card-box {
  margin: 40px 0; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(230, 57, 70, .08), transparent 60%), var(--surface);
  border: 1px solid rgba(230, 57, 70, .25);
}
.v-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.v-badge { font-size: 12px; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; }
.v-card-body { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.v-avatar { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; border: 1px solid var(--border-strong); }
.v-info { min-width: 0; }
.v-info p { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.v-info strong { color: var(--text); }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.v-btn-full { min-height: 44px; font-size: 14px; }
.contact-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 13px; font-weight: 600;
}
.contact-btn:hover { color: var(--text); border-color: var(--text-3); }

/* Thẻ từ khoá */
.article-tags-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0; }
.tags-label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Chia sẻ phía dưới bài */
.article-share-bottom { margin: 24px 0 8px; }
.share-bottom-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Chữ ký biên tập */
.article-editorial-signature {
  display: flex; align-items: center; gap: 14px; margin: 28px 0;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.sig-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.sig-text { font-size: 14px; color: var(--text-2); }
.sig-text strong { color: var(--text); }

/* Bài liên quan */
.related-articles-section { margin-top: 56px; }
.related-grid-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.related-card-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.related-card-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rel-thumb { width: 96px; height: 72px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-cat { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.rel-title { display: block; margin: 4px 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
.rel-title:hover { color: var(--accent-text); }
.rel-date { font-size: 12px; color: var(--text-3); }

/* Bình luận */
.editorial-comments-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.comments-sub-badge { font-size: 12px; color: var(--text-3); }
.comment-compose-box {
  padding: 20px; margin-bottom: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.comment-form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.comment-input-col { min-width: 0; display: flex; flex-direction: column; }
.comment-input-col label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.comment-compose-box input, .comment-compose-box select, .comment-compose-box textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
  border: 1px solid var(--border-strong); border-radius: 12px;
}
.comment-compose-box textarea { min-height: 124px; resize: vertical; }
.comment-compose-box input::placeholder, .comment-compose-box textarea::placeholder { color: var(--text-3); }
.comment-compose-box input:focus, .comment-compose-box select:focus, .comment-compose-box textarea:focus {
  outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(230, 57, 70, .22);
}
.comment-compose-box input:disabled, .comment-compose-box textarea:disabled { opacity: .6; cursor: not-allowed; }
.quick-reactions-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.q-react-pill {
  min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.q-react-pill:hover { color: var(--text); border-color: var(--border-strong); }
.comment-submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.comment-hint { font-size: 12px; color: var(--text-3); }
.comments-list-container { display: grid; gap: 14px; }
.no-comments-yet {
  margin: 0; padding: 24px; text-align: center; color: var(--text-3);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.comment-item-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.comment-item-card.is-admin-comment {
  border-color: rgba(230, 57, 70, .35);
  background: linear-gradient(180deg, rgba(230, 57, 70, .07), transparent 80%), var(--surface);
}
.comment-avatar-col { min-width: 0; }
.comment-avatar-img, .comment-avatar-letter {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 700;
}
.comment-body-col { min-width: 0; }
.comment-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.comment-author-name { color: var(--text); font-weight: 700; }
.comment-role-badge {
  padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2);
}
.comment-role-badge.admin { background: var(--accent-soft); color: var(--accent-text); }
.comment-date-time { color: var(--text-3); font-size: 12px; }
.comment-text-content { margin: 8px 0 10px; color: var(--text-2); overflow-wrap: anywhere; }
.comment-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-comment-like, .btn-comment-reply, .btn-comment-del {
  min-height: 34px; padding: 0 12px; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 600;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-comment-like:hover, .btn-comment-reply:hover { color: var(--text); border-color: var(--border-strong); }
.btn-comment-del:hover { color: var(--accent-text); border-color: rgba(230, 57, 70, .5); }
.cm-like-num { font-variant-numeric: tabular-nums; }

/* 16. TRANG HỒ SƠ (profile.php) ---------------------------------------- */
.profile-single-page { padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 8vw, 96px); }
.profile-hero-card {
  position: relative; margin-bottom: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.profile-cover-img {
  position: relative; height: clamp(140px, 22vw, 260px);
  background: var(--surface-2) center / cover no-repeat;
}
.profile-cover-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.profile-header-main {
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px;
  margin-top: -48px; padding: 0 clamp(16px, 3vw, 32px) 24px;
}
.profile-avatar-box { position: relative; flex-shrink: 0; }
.profile-avatar-box img {
  width: 112px; height: 112px; border-radius: 28px; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: var(--shadow-md); background: var(--surface-2);
}
.verified-seal {
  position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
  background: var(--accent-strong); border: 3px solid var(--surface);
}
.profile-primary-details { flex: 1 1 260px; min-width: 0; }
.profile-name-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-hero-name { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }
.profile-verified-pill {
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(230, 57, 70, .3);
}
.profile-hero-role { margin: 4px 0 12px; font-size: 1.05rem; color: var(--text-2); }
.profile-meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; max-width: 100%;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; overflow-wrap: anywhere;
}
.link-chip:hover { color: var(--text); border-color: var(--border-strong); }
.profile-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 clamp(16px, 3vw, 32px) 24px; }
.btn-profile-verify { color: var(--accent-text); }
.profile-content-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.profile-content-grid > * { min-width: 0; }
.profile-section-card {
  margin-bottom: 20px; padding: clamp(20px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.profile-card-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.heading-accent { width: 4px; height: 22px; flex-shrink: 0; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-text)); }
.profile-sapo-quote {
  margin: 0 0 18px; padding-left: 16px; border-left: 3px solid var(--accent);
  font-size: 1.12rem; line-height: 1.6; color: var(--text);
}
.profile-rich-story { color: var(--text-2); line-height: 1.8; }
.profile-rich-story p { color: var(--text-2); }
.achieve-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.verification-tag { font-size: 12px; color: var(--text-3); }
.achieve-lead-note { color: var(--text-2); font-size: 14px; }
.achieve-list-items { display: grid; gap: 0; }
.achieve-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.achieve-row:last-child { border-bottom: 0; }
.achieve-check-icon {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-text);
}

/* 16b. KHỐI BỔ SUNG: dòng thời gian, dự án, kỹ năng, chứng nhận, kêu gọi, sidebar, footer */
.editorial-body { background: var(--bg); }
.top-date, .top-edition { white-space: nowrap; }
.top-edition { overflow: hidden; text-overflow: ellipsis; max-width: 56ch; }
.publish-date { font-size: 14px; color: var(--text-3); }
.editorial-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 600;
}
.badge-icon {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 800;
}
.achieve-status-badge {
  padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-text);
}
.achieve-title-text { color: var(--text); font-weight: 600; }
.profile-main-col, .profile-sidebar-col, .main-articles-col, .sidebar-articles-col {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.profile-articles-feed { display: grid; gap: 12px; }

/* Dòng thời gian */
.editorial-timeline { position: relative; display: grid; margin: 8px 0 0; padding: 0; }
.editorial-timeline::before {
  content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}
.timeline-step-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.timeline-step-item:last-child { padding-bottom: 0; }
.timeline-marker-year {
  position: relative; z-index: 1; min-width: 56px; padding: 4px 8px; text-align: center;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid rgba(230, 57, 70, .55);
  color: var(--text); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: start;
}
.timeline-step-body { min-width: 0; padding-top: 2px; }
.step-title { font-size: 1.05rem; margin: 0 0 4px; }
.step-desc { margin: 0; font-size: 14px; color: var(--text-2); }

/* Dự án */
.projects-cards-list { display: grid; gap: 12px; }
.project-mini-box {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.proj-title { margin: 0; font-size: 1rem; color: var(--text); }
.proj-desc { margin: 0; font-size: 14px; color: var(--text-2); }
.proj-link-btn { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.proj-link-btn:hover { color: #fff; }

/* Kỹ năng */
.skills-tags-cluster { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag-pill {
  padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 600;
}

/* Chứng nhận & kêu gọi hợp tác */
.cert-box { display: grid; justify-items: center; gap: 8px; text-align: center; }
.cert-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-size: 22px; font-weight: 800;
}
.cert-code { font-size: 12px; color: var(--text-3); letter-spacing: .04em; overflow-wrap: anywhere; }
.cert-code strong { color: var(--text); }
.cta-apply-widget { background: linear-gradient(135deg, rgba(230, 57, 70, .14), transparent 60%), var(--surface); }
.apply-box { display: grid; gap: 12px; text-align: center; }
.apply-box p { margin: 0; font-size: 14px; color: var(--text-2); }
.btn-apply-full {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  padding: 0 18px; border-radius: 12px; background: var(--accent-strong); color: #fff; font-weight: 700; text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.btn-apply-full:hover { background: var(--accent-hover); color: #fff; }

/* Hồ sơ liên quan (mini) */
.other-profiles-mini-list { display: grid; gap: 4px; }
.mini-profile-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.mini-profile-row:last-child { border-bottom: 0; }
.mini-profile-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mini-profile-meta { min-width: 0; display: flex; flex-direction: column; }
.mini-name { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.mini-name:hover { color: var(--accent-text); }
.mini-role { font-size: 12px; color: var(--text-3); }
.mini-feed a { color: var(--text-2); font-size: 14px; }

/* Footer mở rộng */
.footer-top-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.brand-col, .links-col, .contact-col { min-width: 0; }
.footer-logo { margin-bottom: 10px; font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.footer-desc { max-width: 42ch; font-size: 14px; color: var(--text-2); }
.footer-links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links-list a { font-size: 14px; color: var(--text-2); }
.footer-links-list a:hover { color: var(--text); }

/* 17. RESPONSIVE — mobile-first ---------------------------------------- */
@media (min-width: 480px) {
  .profiles-cards-grid { gap: 20px; }
  .comment-item-card { padding: 20px; }
}
@media (min-width: 640px) {
  .profiles-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-article-item { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
  .related-grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-card-body { grid-template-columns: 88px minmax(0, 1fr); }
  .footer-inner, .footer-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credibility-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .profile-header-main { align-items: flex-end; }
}
@media (min-width: 768px) {
  .top-bar { display: block; }
  .site-tagline { display: block; }
  .main-navbar { display: block; }
  .mobile-menu-btn { display: none; }
  .brand-area { padding: 14px 0; }
  .footer-inner, .footer-top-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .sub-story-item { grid-template-columns: 128px minmax(0, 1fr); }
  .lead-story-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
  .profile-content-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .hero-editorial-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
  .profiles-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-columns-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .sidebar-widget { position: sticky; top: 96px; }
  .feed-article-item { grid-template-columns: 260px minmax(0, 1fr); }
  .article-meta-bar { flex-wrap: nowrap; }
  .v-card-body { grid-template-columns: 96px minmax(0, 1fr) auto; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 40px; }
}

/* 18. HOẠT ẢNH & CHUYỂN ĐỘNG ------------------------------------------- */
@keyframes kuFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kuPulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 19. WIDGET QUẢN TRỊ (chỉ hiện với admin, giữ nguyên giao diện cũ) ---- */
.container {width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;}
.nav-menu li a:hover,
.nav-menu li a.active {color: var(--brand-accent);}
.nav-menu li a.active::after {content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-accent);}
.search-modal.active {display: flex;}
.mobile-drawer-overlay.active {display: block;}
.admin-showcase-section {padding: 44px 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #F8FAFC;
  border-top: 3px solid #9E1B32;}
.admin-live-card {background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);}
.admin-live-header {display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;}
@media (max-width: 900px) {
.admin-live-header {grid-template-columns: 1fr;}
}
.admin-live-profile {display: flex;
  gap: 20px;
  align-items: flex-start;}
@media (max-width: 600px) {
.admin-live-profile {flex-direction: column;
    align-items: center;
    text-align: center;}
}
.admin-live-avatar-wrap {position: relative;
  flex-shrink: 0;}
.admin-live-avatar {width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);}
.admin-online-dot {position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #10B981;
  border: 3px solid #0F172A;
  border-radius: 50%;}
.admin-badge-row {display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;}
.admin-crown-badge {background: linear-gradient(90deg, #F59E0B, #D97706);
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;}
.admin-live-name {font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;}
.admin-live-role {font-size: 0.92rem;
  color: #CBD5E1;
  margin: 0 0 16px;
  line-height: 1.5;}
.admin-live-quickpanel {background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;}
.admin-live-quickpanel h4 {margin: 0 0 14px;
  font-size: 0.9rem;
  color: #FBBF24;
  letter-spacing: 0.04em;}
.admin-mini-stats {display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;}
.mini-stat-box {background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
  text-align: center;}
.mini-stat-box strong {display: block;
  font-size: 1.25rem;
  color: #FFFFFF;}
.mini-stat-box span {font-size: 0.75rem;
  color: #94A3B8;}
.admin-quick-btns {display: flex;
  flex-direction: column;
  gap: 8px;}
.btn-q-admin {display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;}
.btn-q-admin.primary {background: #10B981;
  color: #FFFFFF;}
.btn-q-admin.primary:hover {background: #059669;}
.btn-q-admin.secondary {background: #2563EB;
  color: #FFFFFF;}
.btn-q-admin.secondary:hover {background: #1D4ED8;}
.btn-q-admin.warning {background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);}
.inline-admin-drawer {margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);}
.inline-admin-tabs {display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;}
.ia-tab {background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;}
.ia-tab.active {background: #F59E0B;
  color: #0F172A;
  border-color: #F59E0B;}
.ia-panel {display: none;
  background: #FFFFFF;
  color: #1E293B;
  padding: 20px;
  border-radius: 8px;}
.ia-panel.active {display: block;}
.ia-grid-2 {display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;}
@media (max-width: 700px) {
.ia-grid-2 {grid-template-columns: 1fr;}
}
.ia-field {margin-bottom: 12px;}
.ia-field label {display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;}
.ia-field input,
.ia-field select,
.ia-field textarea {width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;}
.ia-actions {display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;}
.btn-ia-submit {background: #9E1B32;
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;}
.btn-ia-link {color: #2563EB;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;}
.ia-table-wrap {overflow-x: auto;}
.ia-table {width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;}
.ia-table th,
.ia-table td {padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;}
.ia-btn {display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;}
.ia-btn.view {background: #E0F2FE; color: #0369A1;}
.ia-btn.edit {background: #FEF3C7; color: #B45309;}
.ia-btn.del {background: #FEE2E2; color: #B91C1C;}
.badge-admin-mini {background: #9E1B32;
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;}
.profile-avatar-wrapper img,
.profile-avatar-box img,
.v-avatar,
.character-box-avatar img,
.contact-avatar,
.admin-live-avatar {object-fit: cover !important;
  object-position: center center !important;
  background: #0F172A;}
.admin-showcase-section {padding: 44px 0 !important;
  background: #F4F2ED !important;
  color: #1F2937 !important;
  border-top: 1px solid #E5E3DC !important;
  border-bottom: 1px solid #E5E3DC !important;}
.admin-live-card {background: #FFFFFF !important;
  border: 1px solid #E5E3DC !important;
  border-top: 3px solid #9E1B32 !important;
  border-radius: 6px !important;
  padding: 30px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;}
.admin-live-avatar {width: 92px !important;
  height: 92px !important;
  border-radius: 50% !important;
  border: 3px solid #9E1B32 !important;
  box-shadow: 0 4px 12px rgba(158, 27, 50, 0.14) !important;}
.admin-online-dot {border-color: #FFFFFF !important;}
.admin-crown-badge {background: #9E1B32 !important;
  color: #FFFFFF !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  letter-spacing: 0.04em !important;}
.admin-live-name {font-family: var(--font-serif) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  margin: 4px 0 6px !important;}
.admin-live-role {font-size: 0.9rem !important;
  color: #4B5563 !important;
  margin: 0 0 16px !important;}
.admin-live-quickpanel {background: #FAF9F5 !important;
  border: 1px solid #E5E3DC !important;
  border-radius: 6px !important;
  padding: 20px !important;}
.admin-live-quickpanel h4 {margin: 0 !important;
  font-size: 0.8rem !important;
  color: #57534E !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;}
.admin-auth-tag.active {background: #DCFCE7;
  color: #166534;}
.mini-stat-box {background: #FFFFFF !important;
  border: 1px solid #E5E3DC !important;
  padding: 10px !important;
  border-radius: 4px !important;}
.mini-stat-box strong {color: #111111 !important;
  font-family: var(--font-serif);
  font-size: 1.3rem !important;}
.mini-stat-box span {color: #6B7280 !important;}
.btn-q-admin.primary {background: #9E1B32 !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;}
.btn-q-admin.primary:hover {background: #7D1527 !important;}
.btn-q-admin.secondary {background: #1F2937 !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;}
.btn-q-admin.secondary:hover {background: #111827 !important;}
.btn-q-admin.warning {background: #FFFFFF !important;
  color: #9E1B32 !important;
  border: 1px solid #D6D3CD !important;
  border-radius: 4px !important;}
.inline-admin-drawer {border-top: 1px solid #E5E3DC !important;}
.ia-tab {background: #F5F3EE !important;
  color: #44403C !important;
  border: 1px solid #D6D3CD !important;
  border-radius: 4px !important;}
.ia-tab.active {background: #9E1B32 !important;
  color: #FFFFFF !important;
  border-color: #9E1B32 !important;}
.ia-panel {border: 1px solid #E5E3DC !important;
  background: #FAF9F5 !important;}

/* 20. SỬA SAU KIỂM TRA: icon menu, logo liền mạch, ảnh lỗi không hiện chữ alt đè lên */
.mobile-menu-btn span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--text); }
.site-logo { gap: 0; }
img { color: transparent; }
