/* ============================================================
   HASTEC – giao diện công khai
   Sáng, gọn, "công nghệ": nền trắng xanh nhạt, chữ navy,
   điểm nhấn xanh điện + cyan, khung ngắm 4 góc quanh ảnh.
   ============================================================ */

:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --ink: #0e1b2e;
  --muted: #5a6b84;
  --line: #dee6f0;
  --primary: #0a66f0;
  --primary-ink: #0848ad;
  --cyan: #00c2d6;
  --tint: #e8f0fe;
  --glow: rgba(10, 102, 240, 0.22);
  --shadow: 0 18px 40px -22px rgba(14, 27, 46, 0.35);
  --radius: 18px;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.muted {
  color: var(--muted);
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- khung ngắm 4 góc (viewfinder) ---------- */
.vf {
  position: relative;
}
.vf::before {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 2;
  --c: var(--primary);
  --l: 20px;
  --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-frame.vf::before,
.card.vf:hover::before,
.card.vf:focus-visible::before,
.gallery-item.vf:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 8px 18px -8px var(--glow);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover {
  color: var(--primary);
  background: var(--tint);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- nút, chip, liên kết ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--glow);
}
.btn-primary:hover {
  background: var(--primary-ink);
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 10px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.link-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.link-more:hover svg {
  transform: translateX(3px);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary-ink);
  border: 1px solid rgba(10, 102, 240, 0.18);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 380px at 88% 0%, rgba(0, 194, 214, 0.18), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(10, 102, 240, 0.12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 102, 240, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10, 102, 240, 0.25);
  color: var(--primary-ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 6px 16px -10px var(--glow);
}
.pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 194, 214, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 214, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 194, 214, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 214, 0);
  }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-meta {
  margin: 28px 0 0;
  color: var(--muted);
  white-space: pre-wrap;
}
.hero-media {
  position: relative;
}
.hero-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #fff;
  box-shadow:
    0 40px 70px -40px rgba(14, 27, 46, 0.55),
    0 0 0 1px rgba(10, 102, 240, 0.14);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  animation: scan 2.4s ease-in-out 0.5s 1 forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.hero-frame--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf2ff, #e6fafc);
}
.hero-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--primary-ink);
  font-size: 0.9rem;
  max-width: 28ch;
  padding: 20px;
}
.hero-empty svg {
  width: 40px;
  height: 40px;
}
.hero-chip {
  position: absolute;
  left: -18px;
  bottom: 28px;
  max-width: min(78%, 360px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s;
}
.hero-chip:hover {
  transform: translateY(-2px);
}
.chip-label {
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chip-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* ---------- section chung ---------- */
.section {
  padding: 72px 0;
}
.section--tight {
  padding-top: 0;
}
.section--alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head {
  padding: 56px 0 28px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

/* ---------- thẻ bài viết ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 102, 240, 0.35);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tint);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-noimg {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, #eaf2ff, #e6fafc);
}
.card-noimg svg {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}
.card-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 27, 46, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  backdrop-filter: blur(6px);
}
.card-count svg {
  width: 14px;
  height: 14px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}
.card-date {
  color: var(--primary);
}
.card-body h3 {
  font-size: 1.12rem;
}
.card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
  flex: 1;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.card-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.card:hover .card-more svg {
  transform: translateX(3px);
}

/* ---------- trạng thái trống ---------- */
.empty {
  text-align: center;
  padding: 56px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--primary);
}
.empty-icon svg {
  width: 26px;
  height: 26px;
}
.empty p {
  color: var(--muted);
  margin: 6px auto 0;
  max-width: 48ch;
}
.empty a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- giới thiệu ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}
.intro-text {
  color: #2d3b52;
  font-size: 1.02rem;
}
.panel {
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.panel-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.panel-head .dot:first-child {
  background: var(--cyan);
}
.panel-title {
  margin-left: 8px;
  color: var(--muted);
}
.panel-body {
  margin: 0;
  padding: 8px 16px;
}
.panel-body > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.panel-body > div:last-child {
  border-bottom: 0;
}
.panel-body dt {
  color: var(--muted);
  font-size: 0.92rem;
}
.panel-body dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.panel-body dd a:hover {
  color: var(--primary);
}

/* ---------- bài viết chi tiết ---------- */
.post-head {
  padding: 40px 0 28px;
}
.post-head-inner {
  max-width: 860px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.back-link:hover {
  color: var(--primary);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.post-date,
.post-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary-ink);
}
.post-date svg,
.post-count svg {
  width: 15px;
  height: 15px;
}
.post-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.post-cover .hero-frame {
  aspect-ratio: 16 / 8;
  max-height: 560px;
}
.post-body {
  max-width: 860px;
  padding: 36px 0 64px;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 1.4em 0 0.5em;
}
.post-content h1 {
  font-size: 1.7rem;
}
.post-content h2 {
  font-size: 1.4rem;
}
.post-content h3 {
  font-size: 1.15rem;
}
.post-content p {
  margin: 0 0 1em;
}
.post-content img {
  border-radius: 14px;
  margin: 18px auto;
  box-shadow: var(--shadow);
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}
.post-content blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--primary);
  background: #fff;
  border-radius: 0 12px 12px 0;
  color: #2d3b52;
}
.post-content pre {
  background: var(--ink);
  color: #e6edf7;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.post-content .ql-align-center {
  text-align: center;
}
.post-content .ql-align-right {
  text-align: right;
}
.post-content .ql-align-justify {
  text-align: justify;
}
.post-content .ql-indent-1 {
  padding-left: 2em;
}
.post-content .ql-indent-2 {
  padding-left: 4em;
}
.post-content .ql-size-small {
  font-size: 0.85em;
}
.post-content .ql-size-large {
  font-size: 1.3em;
}
.post-content .ql-size-huge {
  font-size: 1.7em;
}
.post-content .ql-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  margin: 18px 0;
}
.post-gallery {
  margin-top: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item.vf::before {
  inset: 8px;
  --l: 14px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 14, 26, 0.94);
  display: grid;
  place-items: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-close {
  top: 16px;
  right: 16px;
}
.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 40px 0;
}
.notfound h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d4e5;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
  padding: 56px 0 36px;
}
.footer-brand p {
  color: #8fa1bd;
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 44ch;
}
.brand--footer {
  color: #fff;
}
.brand--footer .logo-img {
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.contact-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.contact-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--cyan);
}
.contact-list a:hover,
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa1bd;
}
.admin-link {
  font-size: 0.82rem;
  color: #8fa1bd;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
}
.admin-link:hover {
  color: #fff;
  border-color: var(--cyan);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- hiệu ứng hiện dần ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .hero-chip {
    left: 12px;
    bottom: 12px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav {
    display: flex;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .post-cover .hero-frame {
    aspect-ratio: 16 / 10;
  }
  .lightbox button {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse,
  .hero-frame::after {
    animation: none;
  }
  .card,
  .card-media img,
  .reveal {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
