@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

/* ===================== Brand tokens ===================== */
:root {
  --orange: #c8551e;
  --orange-light: #e07a3c;
  --orange-dark: #a8410f;
  --red: #8b2e1f;
  --red-dark: #6e2317;
  --cream: #f6f1e7;
  --cream-dark: #ece3d2;
  --wood: #b5773f;
  --ink: #2a211b;
  --muted: #6b5d50;
  --white: #fff;
  --shadow: 0 10px 30px -12px rgba(42, 33, 27, 0.25);
  --radius: 16px;
}

/* ===================== Reset / base ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--cream); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-red { border: 2px solid var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ===================== Logo ===================== */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 24px; font-weight: 800; letter-spacing: 0.04em; }
.logo-name .moc { color: var(--orange); }
.logo-name .loi { color: var(--red); }
.logo-name.light .loi { color: #fff; }
.logo-tag {
  margin-top: 4px; font-size: 9.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted);
}
.logo-tag.light { color: rgba(246,241,231,0.8); }

/* ===================== Header ===================== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.topbar { background: var(--red); color: #fff; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--cream); }
.topbar-right { display: flex; gap: 20px; }
.header-main { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--orange); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; left: 0; top: 100%; width: 260px; background: #fff;
  border: 1px solid var(--cream-dark); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.2s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink);
}
.dropdown a:hover { background: var(--cream); color: var(--orange); }
.dropdown a span { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle { display: none; font-size: 26px; color: var(--ink); width: 44px; height: 44px; }
.mobile-menu { display: none; border-top: 1px solid var(--cream-dark); background: #fff; }
.mobile-menu .container { display: flex; flex-direction: column; padding: 12px 16px; }
.mobile-menu a { padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.mobile-menu a.active { background: var(--cream); color: var(--orange); }
.mobile-menu .sub-label { padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.mobile-menu.open { display: block; }

/* ===================== Sections / headings ===================== */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); }
.section-red { background: var(--red); color: #fff; }
.section-heading { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); }
.section-heading h2 { font-size: 34px; font-weight: 800; line-height: 1.2; }
.section-heading.light h2 { color: #fff; }
.section-heading p { margin-top: 12px; color: var(--muted); }
.section-heading.light p { color: rgba(246,241,231,0.8); }
.heading-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--orange); margin-top: 16px; }
.section-heading:not(.left) .heading-rule { margin-left: auto; margin-right: auto; }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, var(--ink) 30%, rgba(42,33,27,0.85) 60%, rgba(139,46,31,0.4)); }
.hero-inner { position: relative; padding: 80px 0; max-width: 640px; }
.hero .chip { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(200,85,30,0.2); color: var(--orange-light); font-size: 14px; font-weight: 600; }
.hero h1 { margin-top: 16px; font-size: 48px; font-weight: 800; line-height: 1.1; color: #fff; }
.hero h1 .accent { color: var(--orange-light); }
.hero p { margin-top: 20px; font-size: 18px; color: rgba(246,241,231,0.8); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--orange-light); }
.hero-stats .lbl { font-size: 14px; color: rgba(246,241,231,0.7); }

/* ===================== Grids ===================== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Category tiles */
.cat-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--cream-dark); aspect-ratio: 1/1; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card .cat-label { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; background: linear-gradient(to top, rgba(42,33,27,0.8), transparent); color: #fff; font-weight: 700; font-size: 14px; }

/* Product card */
.product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; transition: all 0.25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badge-featured { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.product-cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange); }
.product-name { margin-top: 4px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card:hover .product-name { color: var(--orange); }
.product-excerpt { margin-top: 6px; flex: 1; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cream-dark); display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; color: var(--red); }
.product-more { font-size: 14px; font-weight: 600; color: var(--orange); }

/* Features / steps */
.feature-card { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; padding: 24px; transition: all 0.2s; }
.feature-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cream); font-size: 28px; }
.feature-card h3 { margin-top: 16px; font-size: 18px; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.step-card { border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); padding: 24px; }
.step-num { font-size: 36px; font-weight: 800; color: rgba(200,85,30,0.6); }
.step-card h3 { margin-top: 8px; font-size: 18px; color: #fff; }
.step-card p { margin-top: 6px; font-size: 14px; color: rgba(246,241,231,0.7); }

/* ===================== Page header / breadcrumb ===================== */
.page-header { border-bottom: 1px solid var(--cream-dark); background: var(--cream); }
.page-header .container { padding-top: 40px; padding-bottom: 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--orange); }
.page-header h1 { font-size: 34px; font-weight: 800; }
.page-header p { margin-top: 8px; max-width: 640px; color: var(--muted); }

/* ===================== Product explorer ===================== */
.explorer { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; }
.sidebar-box { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; padding: 20px; }
.sidebar-box h2 { font-size: 18px; margin-bottom: 12px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cat-list a:hover { background: var(--cream); }
.cat-list a.active { background: var(--orange); color: #fff; }
.cat-list a.active span { color: rgba(255,255,255,0.8); }
.cat-list a span { font-size: 12px; color: var(--muted); }
.search-box { margin-top: 16px; }
.search-box label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.results-count { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.empty-state { border-radius: var(--radius); border: 1px dashed var(--cream-dark); padding: 80px 20px; text-align: center; color: var(--muted); }

/* ===================== Product detail ===================== */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0; }
.gallery-main { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--cream-dark); background: var(--cream); }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery-thumbs button { overflow: hidden; border-radius: 10px; border: 2px solid transparent; opacity: 0.7; transition: all 0.2s; }
.gallery-thumbs button.active { border-color: var(--orange); opacity: 1; }
.gallery-thumbs img { aspect-ratio: 1/1; object-fit: cover; }
.detail-cat { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--orange); }
.detail-title { margin-top: 4px; font-size: 30px; font-weight: 800; }
.detail-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.detail-price .muted { line-height: 1; }
.detail-price .val { font-size: 26px; font-weight: 800; color: var(--red); line-height: 1; }
.spec-table { margin-top: 24px; border: 1px solid var(--cream-dark); border-radius: 12px; overflow: hidden; }
.spec-row { display: flex; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--cream-dark); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { width: 130px; flex-shrink: 0; font-weight: 500; color: var(--muted); }
.spec-row dd { font-weight: 600; }
.detail-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.detail-commit { margin-top: 24px; border-radius: 12px; background: var(--cream); padding: 16px; font-size: 14px; color: var(--muted); }
.detail-commit strong { color: var(--ink); }
.share-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--cream-dark); background: #fff; color: var(--ink); transition: all 0.2s; }
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.share-btn .share-ic { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.share-fb .share-ic { background: #1877f2; }
.share-zalo .share-ic { background: #0068ff; font-size: 11px; }
.share-copy .share-ic { background: var(--wood); }
.share-fb:hover { border-color: #1877f2; color: #1877f2; }
.share-zalo:hover { border-color: #0068ff; color: #0068ff; }
.share-copy.copied { border-color: var(--orange); color: var(--orange); }

.prose { line-height: 1.75; color: var(--muted); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 700; margin: 24px 0 8px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 19px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose ol { list-style: decimal; padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange); text-decoration: underline; }
.prose a:hover { color: var(--orange-dark); }
.prose blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 8px 8px 0; }
.prose figure { margin: 0 0 16px; max-width: 100%; overflow-x: auto; }
.prose img { border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
.prose th, .prose td { border: 1px solid var(--cream-dark); padding: 8px 12px; text-align: left; }
.prose th { background: var(--cream); color: var(--ink); font-weight: 600; }
.detail-desc-box { border: 1px solid var(--cream-dark); border-radius: var(--radius); background: #fff; padding: 28px; }
.detail-desc-box h2 { font-size: 20px; border-bottom: 1px solid var(--cream-dark); padding-bottom: 12px; margin-bottom: 16px; }

/* ===================== Forms ===================== */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field .req { color: var(--orange); }
.input, .textarea, .select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--cream-dark); border-radius: 10px;
  font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(200,85,30,0.18); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.form-product-tag { border-radius: 10px; background: var(--cream); padding: 10px 14px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.form-product-tag strong { color: var(--red); }

/* ===================== Modal ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center;
  background: rgba(42,33,27,0.6); backdrop-filter: blur(3px); padding: 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 520px; margin: 40px 0; background: #fff; border-radius: 20px; box-shadow: 0 25px 60px -15px rgba(0,0,0,0.4); padding: 28px; }
.modal-wide { max-width: 760px; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 999px; color: var(--muted); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--cream); }
.modal h2 { font-size: 20px; font-weight: 800; }
.modal .sub { margin-top: 4px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }

/* ===================== Alerts / badges ===================== */
.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fee; color: #b91c1c; }
.alert-success { background: #f0fdf4; color: #15803d; }
.form-success { border-radius: 12px; background: #f0fdf4; padding: 24px; text-align: center; }
.form-success .ic { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 999px; background: #dcfce7; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.form-success h3 { color: #166534; }
.form-success p { color: #15803d; font-size: 14px; margin-top: 4px; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* ===================== Floating contact ===================== */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.floating-btn { width: 50px; height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; box-shadow: var(--shadow); transition: transform 0.2s; position: relative; }
.floating-btn:hover { transform: scale(1.1); }
.floating-zalo { background: #2563eb; font-size: 11px; }
.floating-phone { background: var(--orange); font-size: 20px; }
.floating-phone .ping { position: absolute; inset: 0; border-radius: 999px; background: rgba(200,85,30,0.6); animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* ===================== Footer ===================== */
.footer { margin-top: 80px; background: var(--ink); color: rgba(246,241,231,0.8); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 0; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer h3 { color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--orange-light); }
.footer-contact li { margin-bottom: 8px; font-size: 14px; }
.footer-contact a { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.social a:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 16px; font-size: 12px; }

/* ===================== Projects ===================== */
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; scroll-margin-top: 100px; }
.project-row + .project-row { margin-top: 64px; }
.project-gallery-main { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--cream-dark); }
.project-gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-thumbs img { aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
.project-loc { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--orange); }
.project-row h2 { margin-top: 8px; font-size: 24px; font-weight: 800; }
.project-row p { margin-top: 12px; color: var(--muted); }

/* ===================== Contact page ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0; }
.contact-item { display: flex; gap: 16px; border: 1px solid var(--cream-dark); border-radius: 12px; background: #fff; padding: 16px; }
.contact-item .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-item .lbl { font-size: 14px; color: var(--muted); }
.contact-item .val { font-weight: 600; }
.contact-item a.val { color: var(--red); }
.map-box { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--cream-dark); }
.map-box iframe { width: 100%; height: 260px; border: 0; }
.card-box { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; padding: 28px; box-shadow: var(--shadow); }

/* lists with checks */
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.check-list .ck { color: var(--orange); font-weight: 700; }

/* ===================== Utilities ===================== */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-6 { margin-bottom: 24px; }

/* ===================== Admin ===================== */
.admin-wrap { display: flex; min-height: 100vh; background: var(--cream); }
.admin-sidebar { width: 256px; flex-shrink: 0; background: var(--ink); color: rgba(246,241,231,0.8); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; font-weight: 800; }
.admin-brand svg { width: 36px; height: 36px; }
.admin-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav a.active { background: var(--orange); color: #fff; }
.admin-nav a .count { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.admin-sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar-foot a, .admin-sidebar-foot button { display: block; text-align: left; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: rgba(246,241,231,0.8); width: 100%; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--cream-dark); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.admin-topbar h1 { font-size: 18px; font-weight: 700; }
.admin-content { padding: 24px; }
.admin-content h2.page-title { font-size: 24px; font-weight: 800; }
.admin-content .page-sub { font-size: 14px; color: var(--muted); }
.flash { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.flash-success { background: #dcfce7; color: #15803d; }
.flash-error { background: #fee2e2; color: #b91c1c; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; padding: 20px; }
.stat-card .row { display: flex; align-items: center; justify-content: space-between; }
.stat-card .ic { font-size: 28px; }
.stat-card .val { font-size: 30px; font-weight: 800; }
.stat-card .lbl { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }

.panel { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cream-dark); }
.panel-head h3 { font-weight: 700; }
.panel-body { padding: 16px 20px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; background: rgba(246,241,231,0.5); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--cream-dark); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--cream-dark); vertical-align: middle; }
.data-table tr:hover td { background: rgba(246,241,231,0.3); }
.data-table .table-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.cell-flex { display: flex; align-items: center; gap: 12px; }
.row-actions { text-align: right; white-space: nowrap; }
.link-edit { color: var(--orange); font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.link-edit:hover { background: var(--cream); }
.link-delete { color: #dc2626; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.link-delete:hover { background: #fee2e2; }

.admin-form-card { margin-bottom: 20px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col-span-2 { grid-column: span 2; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin: 8px 0; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--orange); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--cream-dark); margin-top: 12px; }

/* Upload ảnh trong admin */
.img-manage { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.img-chip { position: relative; width: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--cream-dark); background: var(--cream); cursor: pointer; }
.img-chip img { width: 92px; height: 92px; object-fit: cover; display: block; }
.img-chip .img-rm { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 3px; background: #fff; }
.img-chip .img-rm input { accent-color: #dc2626; }
.img-chip:has(input:checked) { border-color: #dc2626; opacity: 0.55; }
.img-chip:has(input:checked) .img-rm { color: #dc2626; }
.file-input { padding: 8px; background: var(--cream); cursor: pointer; }
.file-input::file-selector-button { margin-right: 12px; padding: 6px 14px; border: none; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 600; cursor: pointer; }
.file-input::file-selector-button:hover { background: var(--orange-dark); }
.form-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); }
.tab.active { background: var(--orange); color: #fff; }
.lead-card { border-radius: var(--radius); border: 1px solid var(--cream-dark); background: #fff; padding: 16px; margin-bottom: 12px; }
.lead-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.lead-meta a { color: var(--red); font-weight: 600; }
.lead-msg { margin-top: 8px; border-radius: 10px; background: var(--cream); padding: 8px 12px; font-size: 14px; }
.admin-mobile-toggle { display: none; font-size: 24px; }
.recent-lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--cream-dark); }
.recent-lead:last-child { border-bottom: none; }

@media (max-width: 1024px) {
  .admin-sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform 0.2s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .admin-form-grid, .admin-form-grid-3 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .data-table { font-size: 13px; }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .explorer { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mobile-toggle { display: flex; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .section-heading h2 { font-size: 28px; }
  .detail-grid, .contact-grid, .project-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .btn-hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
