/* Màu lấy từ logo phường: đỏ vành trăng, vàng trăng, xanh trời. */
:root {
  --do: #d23a2c;
  --do-dam: #b02c20;
  --vang: #f5c933;
  --xanh: #2f8fd6;
  --xanh-dam: #1b5f9e;
  --muc: #14202f;
  --muc-2: #4a5768;
  --muc-3: #7b8696;
  --vien: #e3e8ef;
  --nen: #f4f7fb;
  --the: #ffffff;
  --xanh-la: #1f9d6b;
  --bo: 14px;
  --bong: 0 1px 2px rgba(20, 32, 47, .06), 0 8px 24px -8px rgba(20, 32, 47, .14);
  --chu: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --em: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--chu); color: var(--muc); background: var(--nen); line-height: 1.5; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: 10px; border: 1px solid var(--vien);
  background: var(--the); color: var(--muc); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s var(--em), box-shadow .15s;
}
.nut:hover { border-color: #c8d1dd; }
.nut:active { transform: scale(.97); }
.nut:focus-visible, .chip:focus-within, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--xanh) 45%, transparent); outline-offset: 2px;
}
.nut:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.nut--chinh { background: var(--do); border-color: var(--do); color: #fff; box-shadow: 0 6px 18px -6px rgba(210, 58, 44, .55); }
.nut--chinh:hover { background: var(--do-dam); border-color: var(--do-dam); }
.nut--xanh { background: var(--xanh-la); border-color: var(--xanh-la); color: #fff; }
.nut--xanh:hover { filter: brightness(.94); border-color: var(--xanh-la); }
.nut--nhe { background: transparent; }
.nut--nguy { color: var(--do-dam); }
.nut--nho { min-height: 36px; padding: .4rem .8rem; font-size: .875rem; border-radius: 8px; }

.dau-trang {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(16px, calc((100vw - 1180px) / 2)); background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--vien);
}
.dau-trang .thuong-hieu { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.dau-trang .thuong-hieu img { width: 44px; height: 44px; }
.dau-trang strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: -.01em; }
.dau-trang small { color: var(--muc-3); font-size: .8rem; }

.thong-bao {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); opacity: 0;
  padding: .75rem 1.1rem; border-radius: 12px; background: var(--muc); color: #fff; font-weight: 500;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35); transition: opacity .25s var(--em), transform .25s var(--em);
  max-width: calc(100vw - 32px); pointer-events: none;
}
.thong-bao.hien { opacity: 1; transform: translate(-50%, 0); }
.thong-bao.loi { background: var(--do-dam); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Menu điều hướng chung: Trang chủ · Gửi hình · Quản trị ── */
.menu { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: #eef2f7; }
.menu a {
  display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 9px;
  color: var(--muc-2); font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.menu a:hover { color: var(--muc); background: rgba(255, 255, 255, .7); }
.menu a[aria-current="page"] { background: #fff; color: var(--do-dam); box-shadow: 0 1px 3px rgba(20, 32, 47, .12); }
.menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dau-phai { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .menu a { padding: 0 10px; }
  .menu a span { display: none; }          /* điện thoại: chỉ còn biểu tượng */
  .menu a { min-height: 40px; min-width: 40px; justify-content: center; }
  .dau-trang strong { font-size: .9rem; }
}
