:root {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #4f46e5;
  --accent-light: #eef1ff;
  --border: #eaeaea;
  --radius: 14px;
  --max-width: 960px;
  --header-bg: rgba(250, 250, 250, 0.9);
}

html.dark {
  --bg: #14151c;
  --bg-alt: #1c1d27;
  --text: #f1f1f4;
  --text-muted: #9a9aa5;
  --accent: #818cf8;
  --accent-light: rgba(129, 140, 248, 0.16);
  --border: #2a2b36;
  --header-bg: rgba(20, 21, 28, 0.88);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }

img, iframe { max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.logo-icon { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  margin-left: 6px;
  border-left: 1px solid var(--border);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, color 0.15s;
}
.lang-btn.active { background: var(--accent); color: #fff; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
  transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* Mobile nav toggle */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 .hero-highlight { color: var(--accent); }

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 11px 25px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.section-title-link {
  transition: color 0.15s;
}
.section-title-link:hover { color: var(--accent); }
.section-title-link::after {
  content: " →";
  opacity: 0;
  transition: opacity 0.15s;
}
.section-title-link:hover::after { opacity: 1; }

/* About */
.about-grid { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-photo {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: var(--accent);
  flex-shrink: 0;
  margin: 0 auto;
}
.about-text { flex: 1; min-width: 260px; }

/* About — alternating image/text rows */
.about-row {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.about-row:last-child { margin-bottom: 0; }
.about-row.reverse { flex-direction: row-reverse; }
.about-row-media { flex: 0 0 260px; }
.about-row-text { flex: 1; min-width: 260px; }
.about-row-text h3 { font-size: 1.2rem; margin-bottom: 12px; }
.about-photo-rect {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  color: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600;
  text-align: center;
  line-height: 1.5;
  overflow: hidden;
}
.about-photo-rect.filled {
  border: none;
  background: none;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.about-photo-rect.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.35s;
}
.about-photo-rect.filled::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  pointer-events: none;
}
.about-photo-rect.filled:hover img { transform: scale(1.06); }
.about-photo-rect.filled:hover::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

/* Lightbox (full-size image viewer) */
.modal-overlay.lightbox-overlay { z-index: 1100; }
.modal-box.lightbox-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}
.lightbox-box img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.lightbox-box .modal-close {
  top: -16px;
  right: -16px;
  background: var(--bg-alt);
}
.about-closing {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.98rem;
}
@media (max-width: 640px) {
  .about-row, .about-row.reverse { flex-direction: column; }
  .about-row-media { flex: 0 0 auto; width: 100%; max-width: 320px; }
}
.about-text h3 { font-size: 1.2rem; margin-bottom: 10px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.skill-tag {
  background: var(--accent-light); color: var(--accent);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.06); }

.card .tag { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.card .read-more { font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.post-date { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.section-view-all { text-align: center; margin-top: 32px; }

/* Scroll wrapper + arrow buttons (Portfolio) */
.scroll-wrapper {
  position: relative;
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: background 0.15s, color 0.15s;
}
.scroll-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.scroll-arrow-left { left: -8px; }
.scroll-arrow-right { right: -8px; }
@media (max-width: 700px) {
  .scroll-arrow { display: none; }
}

/* Horizontal scrolling row (Portfolio) */
.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.scroll-row.dragging { cursor: grabbing; scroll-snap-type: none; }
.scroll-row .card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-track { background: var(--border); border-radius: 999px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.scroll-row { scrollbar-width: thin; scrollbar-color: var(--accent) var(--border); }

/* Portfolio */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
}
.video-embed iframe,
.video-embed video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
  background: #000;
  object-fit: contain;
}
.video-embed img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-embed .play-icon,
.resource-thumb.filled .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.15s, transform 0.15s;
}
.resource-thumb.filled { position: relative; }
.card:hover .play-icon {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Portfolio detail page */
.project-detail { padding: 46px 0 90px; }
.project-detail .back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 52px;
  align-items: start;
}

.project-media { position: sticky; top: 96px; }
.project-media .video-embed { margin-bottom: 0; }

.project-info .tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.project-info h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 22px;
}

.project-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.project-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-meta-item .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.project-meta-item .label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.project-meta-item .value { font-weight: 700; font-size: 0.98rem; }

.project-desc-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.project-desc {
  color: var(--text);
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 30px;
}

.project-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.project-cta-row .btn-outline { margin-left: 0; }

@media (max-width: 800px) {
  .project-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-media { position: static; }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.price-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-name { font-weight: 800; font-size: 1.1rem; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 16px; min-height: 40px; }
.price-amount { font-size: 1.7rem; font-weight: 800; margin-bottom: 20px; }
.price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.price-features { list-style: none; margin: 0 0 24px; flex: 1; }
.price-features li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.price-features li:first-child { border-top: none; }
.price-cta { text-align: center; width: 100%; }

.price-card[data-modal] { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.price-card[data-modal]:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.price-card.featured[data-modal]:hover { transform: scale(1.03) translateY(-3px); }
.price-card[data-modal]:not(.featured):hover { transform: translateY(-3px); }

/* Package detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px 30px 30px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
body.modal-lock { overflow: hidden; }

/* Package detail modal — image left, content right */
.modal-box.pkg-modal-box {
  max-width: 820px;
  padding: 28px;
}
.pkg-modal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.pkg-modal-media {
  position: sticky;
  top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
}
.pkg-modal-media img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.pkg-modal-media::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}
.pkg-modal-media:hover img { transform: scale(1.05); }
.pkg-modal-media:hover::after { opacity: 1; background: rgba(0, 0, 0, 0.3); }
.pkg-modal-content .price-desc { min-height: 0; }
.pkg-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pkg-modal-actions .price-cta { width: auto; flex: 1; min-width: 160px; }

@media (max-width: 700px) {
  .modal-box.pkg-modal-box { max-width: 480px; padding: 20px; }
  .pkg-modal-grid { grid-template-columns: 96px 1fr; gap: 14px; }
  .pkg-modal-content .price-name { font-size: 1rem; }
  .pkg-modal-content .price-desc { font-size: 0.82rem; margin: 4px 0 10px; }
  .pkg-modal-content .price-amount { font-size: 1.3rem; margin-bottom: 10px; }
  .pkg-modal-content .price-features li { font-size: 0.82rem; padding: 6px 0; }
  .pkg-modal-actions { flex-direction: column; }
  .pkg-modal-actions .price-cta { width: 100%; }
}

/* Zalo button */
.zalo-btn {
  background: #0068ff;
  font-size: 1rem;
  padding: 14px 32px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { aspect-ratio: 16 / 10; }
}

.contact-list { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-item .icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.contact-item a, .contact-item span.value { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Resource search bar */
.resource-search {
  position: relative;
  max-width: 480px;
  margin: 0 0 28px;
}
.resource-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.5;
}
.resource-search input[type="text"] {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.resource-search input[type="text"]:focus { border-color: var(--accent); }
.resource-search input[type="text"]::placeholder { color: var(--text-muted); }

.no-results-msg {
  display: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 30px 0;
  text-align: center;
}

/* Resource tabs (Tài nguyên) */
.tab-input { display: none; }
.tab-labels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab-labels label {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab-panel { display: none; }
#tab-ae:checked ~ #panel-ae,
#tab-pr:checked ~ #panel-pr,
#tab-capcut:checked ~ #panel-capcut { display: block; }
#tab-ae:checked ~ .tab-labels label[for="tab-ae"],
#tab-pr:checked ~ .tab-labels label[for="tab-pr"],
#tab-capcut:checked ~ .tab-labels label[for="tab-capcut"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Resource cards */
.resource-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 14px;
  overflow: hidden;
}
.resource-thumb.filled {
  border: none;
  background: none;
}
.resource-thumb.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.35s;
}
.card:hover .resource-thumb.filled img,
.resource-card[data-detail]:hover .resource-thumb.filled img {
  transform: scale(1.05);
}
.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.price-tag {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
}
.price-tag.free { color: #16a34a; }
.resource-btn { padding: 8px 18px; font-size: 0.85rem; white-space: nowrap; }
.resource-card { display: flex; flex-direction: column; }
.resource-card[data-detail] { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.resource-card[data-detail]:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.project-media .resource-thumb { aspect-ratio: 4 / 3; font-size: 1.05rem; margin-bottom: 0; }
.project-info .value.price-tag { font-size: 1rem; }

/* Resource detail page */
.resdetail-description,
.resdetail-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.resdetail-description h2,
.resdetail-related h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.resdetail-related .section-sub2 {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.resdetail-description p {
  color: var(--text);
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 720px;
}

/* Blog post page */
.post-header { padding: 60px 0 30px; text-align: center; }
.post-header .tag { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.post-header h1 { font-size: 2.1rem; margin: 12px 0; letter-spacing: -0.02em; }
.post-header .meta { color: var(--text-muted); font-size: 0.9rem; }
.post-body { max-width: 720px; margin: 0 auto; padding: 0 24px 60px; }
.post-body h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.post-body p { margin-bottom: 16px; color: var(--text); }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 28px;
  overflow: hidden;
}
.post-thumb.filled {
  border: none;
  background: none;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.post-thumb.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.35s;
}
.post-thumb.filled::after {
  content: "\1F50D";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  pointer-events: none;
}
.post-thumb.filled:hover img { transform: scale(1.05); }
.post-thumb.filled:hover::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  nav { padding: 14px 20px; }

  .nav-toggle-label { display: block; }
  .nav-right { gap: 10px; }
  .nav-utils { gap: 6px; padding-left: 10px; margin-left: 4px; }
  .lang-btn { padding: 4px 8px; font-size: 0.68rem; }
  .theme-toggle { width: 28px; height: 28px; font-size: 0.85rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
    padding: 4px 20px 12px;
  }
  .nav-links a {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:first-child { border-top: none; }
  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .hero .btn, .hero .btn-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 12px;
  }
  .hero .btn-outline { margin-left: auto; }

  .section-title { font-size: 1.5rem; }
  section { padding: 48px 0; }

  .price-card.featured { transform: none; }

  .about-photo { width: 130px; height: 130px; font-size: 2rem; }
}


/* Checkout (thanh-toan.html) */
.checkout-wrap { max-width: 460px; margin: 0 auto; }
.checkout-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.checkout-resource-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.checkout-price-row { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 4px; }
.checkout-price { color: var(--accent); font-weight: 800; font-size: 1.5rem; margin-bottom: 20px; }
.checkout-qr-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 0 auto 20px;
  max-width: 260px;
}
.checkout-qr-box img { width: 100%; display: block; border-radius: 6px; }
.checkout-info { text-align: left; margin-bottom: 18px; }
.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-row:last-child { border-bottom: none; }
.checkout-row-label { color: var(--text-muted); font-size: 0.85rem; }
.checkout-row-value { font-weight: 700; font-size: 0.95rem; }
.copy-btn {
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: inherit;
}
.copy-btn:hover { opacity: 0.8; }
.checkout-note {
  background: var(--accent-light);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.6;
}
.checkout-confirm-btn { display: block; width: 100%; text-align: center; border: none; cursor: pointer; }
.checkout-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-success, .checkout-notfound { text-align: center; padding: 12px 0; }
.checkout-success .checkout-icon-big, .checkout-notfound .checkout-icon-big { font-size: 2.4rem; margin-bottom: 12px; }
.checkout-success h2, .checkout-notfound h2 { margin-bottom: 8px; font-size: 1.3rem; }
.checkout-success p, .checkout-notfound p { color: var(--text-muted); margin-bottom: 22px; font-size: 0.92rem; }

.checkout-form-title {
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.checkout-form-group { text-align: left; margin-bottom: 14px; }
.checkout-form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.checkout-form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.checkout-form-group input:focus { border-color: var(--accent); }
.checkout-form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}
