@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/bevietnampro-400-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/bevietnampro-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(fonts/bevietnampro-600-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(fonts/bevietnampro-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/bevietnampro-700-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/bevietnampro-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --chinh: #047283; --chinh-dam: #035e6c; --mam: #61c091; --muc: #10222c; --nhat: #4c5e68; --vien: #d5dfe2; --nen: #f2f6f6; --trang: #fff; --do: #b3261e; --dung: #17663f; --cho: #8a5a00; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--muc); font: 400 16px/1.55 "Be Vietnam Pro", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--chinh-dam); }
h1 { font-size: 26px; line-height: 1.25; margin: 16px 0; letter-spacing: -.01em; }
h2 { font-size: 18px; line-height: 1.3; margin: 0 0 12px; }
h2 small { font-weight: 400; color: var(--nhat); font-size: 14px; }
small, .phu { color: var(--nhat); font-size: 14px; }
.bt { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
:focus-visible { outline: 3px solid var(--mam); outline-offset: 2px; }

.thanh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px; background: var(--trang); border-bottom: 1px solid var(--vien); }
.hieu { display: flex; align-items: center; min-height: 44px; gap: 8px; color: var(--muc); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hieu b { color: var(--chinh); }
.thanh nav { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.thanh nav form { margin: 0; }
.lien { min-height: 44px; padding: 0; border: 0; background: none; color: var(--chinh-dam); font: inherit; text-decoration: underline; cursor: pointer; }
.thanh nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.hieu i { font-style: normal; }
@media (max-width: 479px) { .thanh .ten-dai { display: none; } }

.vua { max-width: 1040px; margin: 0 auto; padding: 16px; }
.hep { max-width: 560px; }
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1.5px solid var(--chinh); border-radius: 8px; background: var(--trang); color: var(--chinh-dam); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center; }
.nut.chinh { background: var(--chinh); border-color: var(--chinh); color: #fff; }
@media (hover: hover) { .nut.chinh:hover { background: var(--chinh-dam); } }
.nut.rong { width: 100%; }
.nut-do { border-color: var(--do); color: var(--do); }
.bao { padding: 12px; border-radius: 8px; margin: 0 0 16px; }
.bao-dung { background: #e4f4ea; color: var(--dung); }
.bao-sai { background: #fbe9e7; color: var(--do); }
.bao-cho { background: #fdf3dc; color: var(--cho); }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; }

.bieu, .o-email { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
label { font-weight: 600; font-size: 14px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--vien); border-radius: 8px; background: var(--trang); color: var(--muc); font: inherit; }
input:focus, textarea:focus, select:focus { border-color: var(--chinh); outline: 0; }
.bieu label:not(:first-of-type), .bieu .nut { margin-top: 4px; }
.hop { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; font-weight: 400; font-size: 15px; }
.hop input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--chinh); }
fieldset { border: 0; margin: 0; padding: 0; } legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.o-slug { display: flex; flex-direction: column; align-items: stretch; border: 1.5px solid var(--vien); border-radius: 8px; background: var(--trang); overflow: hidden; }
.o-slug:focus-within { border-color: var(--chinh); }
.o-slug span { flex: none; padding: 8px 12px 0; color: var(--nhat); font-size: 13px; line-height: 1.2; }
.o-slug input:not([type=checkbox]) { min-width: 0; border: 0; min-height: 40px; padding-top: 2px; font-weight: 600; }

/* Trang đầu */
.dau-trang { display: grid; gap: 24px; padding-top: 24px; }
.mo-dau h1 { font-size: clamp(30px, 8.4vw, 46px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.02em; }
.dan { font-size: 17px; color: var(--nhat); margin: 0 0 20px; max-width: 34em; }
.o-email { max-width: 420px; }
.mau-the { justify-self: center; width: min(100%, 300px); }
.mau-dien { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px 20px; border-radius: 16px; background: var(--gd-the); color: var(--gd-chu); border: 1px solid var(--gd-vien); text-align: center; }
.mau-bang { align-self: stretch; height: 72px; margin: 0 -16px; background: var(--gd-mau); background-image: var(--gd-hoa); }
.mau-anh { display: grid; place-items: center; width: 72px; height: 72px; margin-top: -44px; border-radius: 50%; background: var(--gd-mau); color: var(--gd-mau-chu); border: 3px solid var(--gd-the); font-weight: 700; font-size: 28px; }
.mau-dien small { color: var(--gd-nhat); margin-bottom: 4px; }
.mau-nut { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border-radius: 8px; border: 1.5px solid var(--gd-mau); color: var(--gd-mau-dam); font-weight: 600; font-size: 14px; }
.mau-duong { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--nhat); }
.mau-duong b { color: var(--chinh-dam); }
.ba-viec { display: grid; gap: 20px; padding-top: 8px; padding-bottom: 32px; }
.ba-viec h2 { margin-bottom: 4px; font-size: 17px; } .ba-viec p { margin: 0; color: var(--nhat); font-size: 15px; }
.chan { padding: 16px; text-align: center; font-size: 14px; color: var(--nhat); }
.chan a { display: inline-block; padding: 12px 4px; }
.van-ban h2 { margin-top: 24px; } .van-ban code { font-size: .92em; overflow-wrap: anywhere; } .van-ban li { margin-bottom: 8px; }
@media (min-width: 760px) {
  .dau-trang { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 56px; gap: 48px; }
  .ba-viec { grid-template-columns: 1fr 1fr 1fr; }
}

/* Trang sửa */
.o-dau { margin-bottom: 8px; }
.duong-lon { margin: 8px 0 12px; font-size: 16px; overflow-wrap: anywhere; }
.duong-lon a { color: var(--nhat); text-decoration: none; } .duong-lon b { color: var(--chinh-dam); }
.hang-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hang-nut .chinh { grid-column: 1 / -1; }
.muc { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vien); }
.so-lieu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.so-lieu div { padding: 10px 8px; background: var(--trang); border: 1px solid var(--vien); border-radius: 8px; }
.so-lieu dt { font-size: 12px; line-height: 1.3; color: var(--nhat); }
.so-lieu dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.so-lieu + .phu { margin: 0; }
.dong-anh { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dong-anh form { margin: 0; }
.anh-nho { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.chu-dau { display: grid; place-items: center; background: var(--chinh); color: #fff; font-weight: 700; font-size: 28px; }
.nut-tep { position: relative; overflow: hidden; }
.nut-tep input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ds-sua { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-sua li { background: var(--trang); border: 1px solid var(--vien); border-radius: 8px; }
.ds-sua .dang-an { opacity: .62; }
.ds-sua summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; cursor: pointer; list-style: none; }
.ds-sua summary::-webkit-details-marker { display: none; }
.ds-sua details form { padding: 0 12px 12px; }
.lk-chu { min-width: 0; display: flex; flex-direction: column; } .lk-chu b { font-weight: 600; overflow-wrap: anywhere; }
.nut-lk { display: flex; justify-content: flex-end; gap: 4px; padding: 0 8px 8px; }
.nut-lk form { margin: 0; }
.nut-bt { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--nhat); cursor: pointer; }
@media (hover: hover) { .nut-bt:hover:not(:disabled) { background: var(--nen); color: var(--chinh-dam); } }
.nut-bt:disabled { opacity: .3; cursor: default; }
.rong-lk { color: var(--nhat); }
.chon-gd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.o-gd { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; border: 2px solid var(--vien); border-radius: 8px; background: var(--trang); color: var(--muc); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.o-gd i { display: block; height: 52px; border-radius: 4px; background: var(--gd-mau); background-image: var(--gd-hoa); }
.o-gd[aria-current] { border-color: var(--chinh); box-shadow: 0 0 0 1px var(--chinh); }
.muc-xoa h2 { color: var(--do); }
.chon-mau { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin-top: 2px; }
.chon-mau legend { font-size: 14px; }
.o-mau { position: relative; display: block; height: 44px; font-weight: 400; cursor: pointer; }
.o-mau input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.o-mau i { display: grid; place-items: center; height: 100%; border: 2px solid transparent; border-radius: 8px; background: var(--lk-nen, var(--trang)); color: var(--lk-chu, var(--muc)); font-size: 11px; font-style: normal; line-height: 1.1; text-align: center; }
.o-mau.tu-dong i { border-color: var(--vien); }
.o-mau input:checked + i { border-color: var(--muc); box-shadow: inset 0 0 0 2px #fff; }
.o-mau input:checked + i::after { content: "✓"; font-size: 16px; font-weight: 700; }
.o-mau.tu-dong input:checked + i::after { display: none; }
.o-mau input:focus-visible + i { outline: 3px solid var(--mam); outline-offset: 2px; }

.nhay { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px -16px 0; background: var(--trang); border-block: 1px solid var(--vien); }
.nhay a { display: grid; place-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.muc { scroll-margin-top: 48px; }
.nhay + .muc { margin-top: 0; border-top: 0; }
.gap { padding-top: 8px; }
.gap summary { display: flex; align-items: center; min-height: 48px; font-weight: 600; cursor: pointer; }
.gap details form, .gap details p { margin-top: 8px; }
.muc-xoa summary { color: var(--do); }

/* Trang QR */
.ban-in { background: #fff; border: 1px solid var(--vien); border-radius: 8px; overflow: hidden; }
.ban-in img { display: block; width: 100%; height: auto; }
.cot-nut { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .thanh, .khong-in { display: none !important; }
  .vua { padding: 0; max-width: none; }
  .ban-in { border: 1px dashed #999; border-radius: 0; width: 90mm; margin: 0 auto; }
}

/* Quản trị */
.rong-qt { max-width: 900px; }
.so-qt { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.dong-cd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } .dong-cd p { margin: 0; flex: 1 1 280px; }
.loc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .loc input { flex: 1 1 220px; width: auto !important; } .loc select { flex: 0 1 170px; width: auto !important; }
.ds-qt, .ds-bc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-qt > li, .ds-bc > li { padding: 12px; background: var(--trang); border: 1px solid var(--vien); border-radius: 8px; }
.ds-bc > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; } .ds-bc form { margin: 0; }
.muc-bc h2 { color: var(--do); }
.qt-dau { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.ds-qt .phu { margin: 4px 0 8px; overflow-wrap: anywhere; }
.nhan { padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; background: #fdf3dc; color: var(--cho); }
.nhan-an { background: #fbe9e7; color: var(--do); } .nhan-xn { background: #e4f4ea; color: var(--dung); }
.qt-nut { display: flex; flex-wrap: wrap; gap: 8px; } .qt-nut form { margin: 0; } .qt-nut .nut { min-height: 44px; font-size: 14px; }
.qt-them { margin-top: 8px; } .qt-them summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--nhat); font-size: 14px; } .qt-them form { margin-top: 8px; }

/* Sáu bộ màu lấy từ chất liệu di sản */
[data-gd] { --gd-hoa: none; }
[data-gd="connect"] { --gd-nen: #e9f3f2; --gd-the: #fff; --gd-chu: #10222c; --gd-nhat: #4c5e68; --gd-vien: #cfe0df; --gd-mau: #047283; --gd-mau-dam: #035e6c; --gd-mau-chu: #fff;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%2361c091' stroke-opacity='.38'%3E%3Ccircle cx='28' cy='28' r='8'/%3E%3Ccircle cx='28' cy='28' r='18'/%3E%3Ccircle cx='28' cy='28' r='27'/%3E%3C/g%3E%3C/svg%3E"); }
[data-gd="men-lam"] { --gd-nen: #e8eef6; --gd-the: #fff; --gd-chu: #13294b; --gd-nhat: #4a5d7a; --gd-vien: #cbd8ea; --gd-mau: #1d4f91; --gd-mau-dam: #1d4f91; --gd-mau-chu: #fff;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.3'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M12 24a12 12 0 0 1 24 0M-24 12a24 24 0 0 1 48 0M24 12a24 24 0 0 1 48 0'/%3E%3C/g%3E%3C/svg%3E"); }
[data-gd="son-son"] { --gd-nen: #f7ebe3; --gd-the: #fffaf5; --gd-chu: #3a1410; --gd-nhat: #6f4a40; --gd-vien: #ebd4c4; --gd-mau: #9d1f1a; --gd-mau-dam: #8c1a16; --gd-mau-chu: #ffe9a8;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 3 29 16 16 29 3 16Z' fill='none' stroke='%23e7bb55' stroke-opacity='.5'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23e7bb55' fill-opacity='.6'/%3E%3C/svg%3E"); }
[data-gd="reu-da"] { --gd-nen: #e8ece4; --gd-the: #fbfcf8; --gd-chu: #1f2c22; --gd-nhat: #54614f; --gd-vien: #d3dacb; --gd-mau: #3f5b47; --gd-mau-dam: #35503d; --gd-mau-chu: #f2f5e8;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22'%3E%3Cpath d='M0 0h64v32H0zM32 0v16M0 16h64M16 16v16M48 16v16'/%3E%3C/g%3E%3C/svg%3E"); }
[data-gd="giay-do"] { --gd-nen: #ece2cb; --gd-the: #faf4e4; --gd-chu: #2b2419; --gd-nhat: #65583f; --gd-vien: #dccfae; --gd-mau: #5e4b2b; --gd-mau-dam: #5e4b2b; --gd-mau-chu: #faf4e4;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg stroke='%23faf4e4' stroke-opacity='.28' fill='none'%3E%3Cpath d='M0 7c10-4 18 4 40 0M0 22c14 3 24-4 40 1M0 34c8-3 26 3 40-2'/%3E%3C/g%3E%3C/svg%3E"); }
[data-gd="son-mai"] { --gd-nen: #120e0b; --gd-the: #211a15; --gd-chu: #f5ead6; --gd-nhat: #c2b39a; --gd-vien: #453729; --gd-mau: #c9a24a; --gd-mau-dam: #e2bf6d; --gd-mau-chu: #1c150f;
  --gd-hoa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='%23120e0b' fill-opacity='.4'%3E%3Ccircle cx='6' cy='8' r='1.4'/%3E%3Ccircle cx='24' cy='5' r='2.2'/%3E%3Ccircle cx='15' cy='20' r='1.1'/%3E%3Ccircle cx='30' cy='27' r='1.7'/%3E%3Ccircle cx='8' cy='31' r='2'/%3E%3C/g%3E%3C/svg%3E"); }

/* Trang công khai */
.cong-khai { background: var(--gd-nen); color: var(--gd-chu); min-height: 100dvh; display: flex; flex-direction: column; }
.bang-chu { margin: 0; padding: 10px 16px; background: var(--muc); color: #fff; font-size: 14px; text-align: center; }
.bang-chu a { color: #9fe6c3; }
.ho-so { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px 24px; background: var(--gd-the); display: flex; flex-direction: column; align-items: center; text-align: center; }
.dau-the { align-self: stretch; height: 136px; margin: 0 -20px; background: var(--gd-mau); background-image: var(--gd-hoa); }
.anh-dd { width: 128px; height: 128px; margin-top: -68px; border-radius: 50%; border: 4px solid var(--gd-the); object-fit: cover; background: var(--gd-mau); color: var(--gd-mau-chu); }
.ho-so .chu-dau { font-size: 52px; background: var(--gd-mau); color: var(--gd-mau-chu); }
.ho-so h1 { margin: 12px 0 2px; font-size: 26px; overflow-wrap: anywhere; }
.xac-nhan { color: var(--gd-mau-dam); display: inline-block; vertical-align: -1px; }
.xac-nhan .bt { width: 22px; height: 22px; }
.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chuyen { margin: 0; font-weight: 600; color: var(--gd-mau-dam); overflow-wrap: anywhere; }
.noi { margin: 4px 0 0; font-size: 14px; color: var(--gd-nhat); } .noi .bt { width: 15px; height: 15px; vertical-align: -2px; }
.gt { margin: 12px 0 0; color: var(--gd-chu); overflow-wrap: anywhere; }
.ds-lk { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 20px; }
.lk { --lk-nen: var(--gd-mau); --lk-chu: var(--gd-mau-chu); display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 10px; background: var(--lk-nen) border-box; color: var(--lk-chu); font-weight: 600; text-decoration: none; text-align: left; overflow-wrap: anywhere; transition: filter .15s, transform .15s; }
.lk:active { filter: brightness(.88); transform: scale(.985); }
@media (hover: hover) { .lk:hover { filter: brightness(1.1); } }
.lk-bt { display: grid; place-items: center; width: 24px; flex: none; }
.lk-fav { display: block; width: 28px; height: 28px; margin: -2px; padding: 2px; border-radius: 7px; background: #fff; object-fit: contain; }
/* Màu thương hiệu; vài màu đậm hơn bản gốc một chút để chữ trắng đủ tương phản trên điện thoại */
.lk-facebook { --lk-nen: #0866ff; --lk-chu: #fff; }
.lk-youtube { --lk-nen: #d90000; --lk-chu: #fff; }
.lk-tiktok, .lk-x, .lk-threads { --lk-nen: #000; --lk-chu: #fff; }
.lk-instagram { --lk-nen: linear-gradient(90deg, #833ab4, #c13584 45%, #d92d62 72%, #d03c2a); --lk-chu: #fff; }
.lk-zalo { --lk-nen: #0068ff; --lk-chu: #fff; }
.lk-linkedin { --lk-nen: #0a66c2; --lk-chu: #fff; }
.lk-telegram { --lk-nen: #0e78bb; --lk-chu: #fff; }
.lk-spotify { --lk-nen: #1db954; --lk-chu: #000; }
.lk-shopee { --lk-nen: #d73f1f; --lk-chu: #fff; }
.lk-phone { --lk-nen: #15803d; --lk-chu: #fff; }
/* Màu người dùng tự chọn, đứng sau màu thương hiệu để đè lên */
.lk-m-lam { --lk-nen: #1d4f91; --lk-chu: #fff; }
.lk-m-troi { --lk-nen: #0369a1; --lk-chu: #fff; }
.lk-m-ngoc { --lk-nen: #047283; --lk-chu: #fff; }
.lk-m-la { --lk-nen: #15803d; --lk-chu: #fff; }
.lk-m-reu { --lk-nen: #3f5b47; --lk-chu: #fff; }
.lk-m-vang { --lk-nen: #f2b705; --lk-chu: #000; }
.lk-m-cam { --lk-nen: #c2410c; --lk-chu: #fff; }
.lk-m-do { --lk-nen: #c81e3a; --lk-chu: #fff; }
.lk-m-son { --lk-nen: #8c1a16; --lk-chu: #fff; }
.lk-m-hong { --lk-nen: #be185d; --lk-chu: #fff; }
.lk-m-tim { --lk-nen: #6d28d9; --lk-chu: #fff; }
.lk-m-nau { --lk-nen: #6b4423; --lk-chu: #fff; }
.lk-m-xam { --lk-nen: #475569; --lk-chu: #fff; }
.lk-m-den { --lk-nen: #111111; --lk-chu: #fff; }
/* Nút đen tiệp vào nền Sơn mài nên cần viền */
[data-gd="son-mai"] .lk-tiktok, [data-gd="son-mai"] .lk-x, [data-gd="son-mai"] .lk-threads, [data-gd="son-mai"] .lk-m-den { border-color: #6a5a48; }
.mau-nut.lk-facebook, .mau-nut.lk-tiktok, .mau-nut.lk-youtube { background: var(--lk-nen); color: var(--lk-chu); border-color: transparent; }
.ds-sua .lk-bt { color: var(--chinh-dam); }
.ds-sua .lk-bt[class*="lk-"] { width: 32px; height: 32px; border-radius: 8px; background: var(--lk-nen, var(--chinh)); color: var(--lk-chu, #fff); }
.ds-sua .lk-bt .bt { width: 18px; height: 18px; }
.nut-chia { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 16px; padding: 8px 12px; border: 0; background: none; color: var(--gd-mau-dam); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hop-chia { width: min(92vw, 400px); padding: 20px; border: 0; border-radius: 14px; text-align: center; color: var(--muc); }
.hop-chia::backdrop { background: rgba(5, 15, 20, .72); }
.hop-chia h2 { margin: 0 0 8px; }
.hop-chia canvas { width: 100%; height: auto; }
.hop-chia .duong { margin: 4px 0 12px; font-size: 14px; color: var(--nhat); overflow-wrap: anywhere; }
.hop-chia .nut + .nut { margin-top: 8px; }
.chan-the { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 20px 24px; text-align: center; font-size: 13px; color: var(--gd-nhat); }
.chan-the { display: flex; flex-direction: column; align-items: center; }
.chan-the a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gd-nhat); }
.lk-chan { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 16px; }
.chan-the p { margin: 0; }
.chan-the .tao { color: var(--gd-chu); font-weight: 600; text-decoration: none; }
.chan-the .tao img { flex: none; }
@media (min-width: 520px) { .ho-so { margin-top: 24px; border-radius: 16px 16px 0 0; overflow: hidden; } .ho-so { border-radius: 16px; } .chan-the { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .lk { transition: none; } .lk:active { transform: none; } }
