/* Layout: cổng bán lẻ tiệm vàng — dải đỏ son trên cùng, hàng biểu tượng danh mục, banner + khối phụ, hai bảng giá khung đỏ, các tủ trưng bày sản phẩm. Một giao diện sáng cố định. */
:root {
  --red: #9e0f17;
  --red-dk: #7a0a10;
  --gold: #e8c46a;
  --gold-dk: #b88a2c;
  --paper: #f3ece4;
  --card: #ffffff;
  --ink: #2a1a16;
  --muted: #7a6a62;
  --line: #e4d6c6;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--red); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* ===== Header ===== */
.hdr { background: var(--red); color: #fff; }
.hdr-main { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 12px; }
.seal { width: 68px; height: 68px; flex: none; background: var(--red-dk); border: 2px solid var(--gold); display: grid; place-items: center; text-align: center; color: var(--gold); font-family: var(--serif); line-height: 1; box-shadow: inset 0 0 0 3px var(--red-dk), inset 0 0 0 4px var(--gold); }
.seal b { font-size: 1.6rem; display: block; }
.seal small { font: 600 .55rem var(--sans); letter-spacing: .08em; }
.logo-txt b { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); display: block; letter-spacing: .02em; line-height: 1.2; }
.logo-txt span { font-size: .72rem; letter-spacing: .12em; color: #ffe6b0; text-transform: uppercase; display: block; }
.logo-txt i { font-size: .78rem; color: #fff; opacity: .85; }
.hdr-title { text-align: center; font-family: var(--serif); }
.hdr-title b { display: block; font-size: 1.05rem; letter-spacing: .03em; }
.hdr-title span { font-size: .8rem; color: #ffe6b0; font-family: var(--sans); }
.hdr-tools { display: grid; gap: 8px; justify-items: end; font-size: .82rem; }
.hdr-tools .acts { display: flex; gap: 14px; }
.search { display: flex; background: #fff; border-radius: 3px; overflow: hidden; }
.search input { border: 0; padding: 7px 10px; font: inherit; width: 170px; color: var(--ink); }
.search button { border: 0; background: var(--gold); color: var(--red-dk); padding: 0 12px; font-weight: 700; cursor: pointer; }

.cats { border-top: 1px solid rgba(232,196,106,.35); }
.cats-scroll { overflow-x: auto; }
.cats ul { list-style: none; margin: 0 auto; padding: 8px 0; display: flex; justify-content: center; gap: 4px; min-width: max-content; }
.cats a { display: grid; justify-items: center; gap: 2px; padding: 4px 14px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; border-radius: 3px; }
.cats a:hover { background: var(--red-dk); color: var(--gold); }
.cats svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.6; }

.pricebar { background: var(--red-dk); color: #fff; font-size: .8rem; }
.pricebar .wrap { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-block: 7px; }
.pricebar b { color: var(--gold); }
.pricebar a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 900px) {
  .hdr-main { grid-template-columns: 1fr auto; }
  .hdr-title { display: none; }
  .search input { width: 120px; }
  .cats ul { justify-content: flex-start; padding-inline: 8px; }
}
@media (max-width: 520px) {
  .hdr-tools .acts { display: none; }
  .seal { width: 54px; height: 54px; }
  .seal b { font-size: 1.25rem; }
  .logo-txt b { font-size: 1.1rem; }
  .logo-txt i { display: none; }
  .search input { width: 90px; }
}

/* ===== Banner ===== */
.top-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 12px; margin-top: 14px; }
.banner { position: relative; background: var(--card); border: 1px solid var(--line); min-width: 0; display: grid; grid-template-rows: auto auto; }
.slides { position: relative; aspect-ratio: 16 / 7.2; max-width: 100%; overflow: hidden; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 12px; padding: 4% 6%; opacity: 0; transition: opacity .7s; }
.slide.on { opacity: 1; }
.s1 { background: radial-gradient(circle at 75% 50%, #fff3d6 0, #f6e2b8 35%, #e9c98c 100%); }
.s2 { background: radial-gradient(circle at 75% 50%, #fde7e3 0, #f4cfc8 40%, #e2a59a 100%); }
.s3 { background: radial-gradient(circle at 75% 50%, #ffffff 0, #ece4dc 50%, #d6c6b6 100%); }
.slide .t { display: grid; gap: 6px; text-align: center; color: var(--red); min-width: 0; }
.slide .t small { font-size: clamp(.6rem, 1.3vw, .85rem); letter-spacing: .14em; color: var(--gold-dk); font-weight: 600; text-transform: uppercase; }
.slide .t b { font-family: var(--serif); font-size: clamp(1rem, 3vw, 2rem); line-height: 1.2; }
.slide .t em { font-style: normal; display: inline-block; justify-self: center; margin-top: 4px; background: var(--red); color: var(--gold); font-size: clamp(.6rem, 1.2vw, .82rem); padding: 4px 12px; font-weight: 600; }
.slide svg { width: 100%; height: 100%; max-height: 100%; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--red); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: var(--red); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.perks div { padding: 10px 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink); border-left: 1px solid var(--line); text-transform: uppercase; line-height: 1.35; }
.perks div:first-child { border-left: 0; }
.perks span { display: block; color: var(--muted); font-weight: 400; text-transform: none; font-size: .74rem; }
.side { display: grid; gap: 12px; grid-template-rows: auto 1fr; min-width: 0; }
.side-list { display: grid; gap: 12px; grid-auto-rows: 1fr; min-width: 0; }
.side-list .empty-note { border: 1px solid var(--line); }
.side-card { min-width: 0; }
.side-card > span { min-width: 0; }
.side-card img { width: 110px; height: 80px; object-fit: cover; display: block; }
.side-card svg { width: 110px; height: 80px; }
.side-head { background: var(--red); color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: 8px 12px; text-transform: uppercase; }
.side-card { background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 8px; padding: 12px 14px; }
.side-card b { font-family: var(--serif); color: var(--red); font-size: 1.05rem; display: block; line-height: 1.3; }
.side-card span { font-size: .8rem; color: var(--muted); }
.side-card svg { width: 110px; height: 80px; }
@media (max-width: 900px) {
  .top-grid { grid-template-columns: 1fr; }
  .side { grid-template-rows: none; }
  .side-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .slides { aspect-ratio: 4 / 3; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 18px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perks div:nth-child(3) { border-left: 0; }
  .perks div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .side-list { grid-template-columns: 1fr; }
}

/* ===== Bảng giá ===== */
.boards { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 14px; }
.board { background: var(--red); padding: 4px; min-width: 0; }
.board-h { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; color: #fff; }
.board-h .seal { width: 52px; height: 52px; }
.board-h .seal b { font-size: 1.1rem; }
.board-h h2 { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: #fff; text-transform: uppercase; line-height: 1.15; }
.board-h h2 span { display: block; color: var(--gold); }
.board-body { background: #fff8ea; }
.tscroll { overflow-x: auto; }
table.pt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
.pt th { background: var(--red-dk); color: #fff; font-size: .78rem; font-weight: 600; padding: 8px 6px; border: 1px solid #b2343a; }
.pt th small { display: block; font-weight: 400; font-style: italic; opacity: .8; font-size: .68rem; }
.pt td { padding: 9px 8px; border: 1px solid var(--line); font-size: .86rem; text-align: center; }
.pt td.name { text-align: left; font-weight: 600; color: var(--red); }
.pt td.name small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; }
.pt td.p { font-weight: 700; font-size: .98rem; color: var(--ink); }
.pt tr:nth-child(even) td { background: #fdf1dc; }
.board-f { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px; font-size: .74rem; color: #fff; font-style: italic; }

.calc { padding: 14px 16px 16px; display: grid; gap: 12px; }
.calc label { font-size: .78rem; font-weight: 600; color: var(--red); display: grid; gap: 4px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc input, .calc select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.calc .out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc .out div { background: #fff; border: 1px solid var(--line); padding: 10px; }
.calc .out span { font-size: .74rem; color: var(--muted); display: block; }
.calc .out b { font-family: var(--serif); font-size: 1.15rem; color: var(--red); overflow-wrap: anywhere; }
.calc .note { font-size: .76rem; color: var(--muted); }
@media (max-width: 900px) { .boards { grid-template-columns: 1fr; } }

/* ===== Section chung ===== */
.sec { margin-top: 14px; background: var(--card); border: 1px solid var(--line); }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--red); padding: 10px 16px; }
.sec-h h2 { font-family: var(--serif); color: var(--red); font-size: 1.15rem; text-transform: uppercase; }
.sec-h a { font-size: .82rem; color: var(--red); font-weight: 600; }
.sec-h a:hover { text-decoration: underline; }

/* Nhẫn cưới */
.rings { display: grid; grid-template-columns: repeat(5, 1fr); }
.ring { text-align: center; padding: 16px 10px; border-left: 1px solid var(--line); display: grid; gap: 6px; justify-items: center; }
.ring:first-child { border-left: 0; }
.ring svg { width: 100%; max-width: 150px; height: 90px; }
.ring b { font-family: var(--serif); color: var(--red); text-transform: uppercase; font-size: .9rem; }
.ring span { font-size: .76rem; color: var(--muted); }
.ring:hover { background: #fffaf0; }
@media (max-width: 760px) { .rings { grid-template-columns: repeat(2, 1fr); } .ring { border-left: 0; border-top: 1px solid var(--line); } .ring:nth-child(even) { border-left: 1px solid var(--line); } .ring:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ring svg { height: 96px; }
.ring .ring-img { width: 100%; max-width: 150px; aspect-ratio: 1; display: block; overflow: hidden; background: #f7f0e7; }
.ring .ring-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring .rp { font-style: normal; font-weight: 700; color: var(--red); font-size: .82rem; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) { .ring:nth-child(5n+1) { border-left: 0; } .rings > .ring:nth-child(n+6) { border-top: 1px solid var(--line); } }
.rings .empty-note { grid-column: 1 / -1; }

/* Đá quý */
.gems { display: grid; grid-template-columns: repeat(6, 1fr); padding: 14px 6px; }
.gem { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px; }
.gem svg { width: 48px; height: 48px; }
.gem b { font-size: .8rem; text-transform: uppercase; color: var(--red); line-height: 1.3; }
.gem:hover b { text-decoration: underline; }
@media (max-width: 760px) { .gems { grid-template-columns: repeat(3, 1fr); } }

/* Sản phẩm */
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.prods .prod .img { aspect-ratio: 4 / 3; }
.prod { background: var(--card); padding: 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.prod .img { aspect-ratio: 1; max-width: 100%; background: radial-gradient(circle, #fff 30%, #f5eee6 100%); display: grid; place-items: center; }
.prod .img svg { width: 72%; height: 72%; }
.prod .badge { justify-self: start; background: var(--red); color: var(--gold); font-size: .68rem; font-weight: 700; padding: 2px 8px; text-transform: uppercase; }
.prod h3 { font-size: .88rem; font-weight: 600; text-transform: uppercase; line-height: 1.4; }
.prod .kt { font-size: .76rem; color: var(--muted); }
.prod .price { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.prod:hover h3 { color: var(--red); }
@media (max-width: 900px) { .prods { grid-template-columns: repeat(2, 1fr); } }

/* Cam kết */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.promises div { background: var(--card); padding: 18px 16px; display: grid; gap: 6px; align-content: start; }
.promises b { color: var(--red); font-family: var(--serif); font-size: 1rem; }
.promises p { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* Footer */
footer { margin-top: 18px; background: var(--red); color: #fff; }
.ft { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 36px; padding-block: 32px; font-size: .88rem; align-items: start; }
.ft-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ft h4 { margin: 0; }
.ft-logo { display: flex; align-items: center; gap: 12px; }
.ft-logo span { display: block; font-size: .76rem; color: #ffe6b0; letter-spacing: .08em; text-transform: uppercase; }
.ft-info li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: baseline; }
.ft-info b { color: #ffe6b0; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ft-info .phone { font-size: 1.05rem; line-height: 1.4; }
.ft-links a { display: inline-block; padding: 2px 0; border-bottom: 1px solid transparent; }
.ft-links a::before { content: "›"; color: var(--gold); margin-right: 8px; }
.ft-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.fb-btn { display: inline-flex; align-items: center; gap: 12px; justify-self: start; background: #fff; color: var(--red); padding: 10px 16px 10px 12px; border-radius: 4px; border: 2px solid var(--gold); font-weight: 700; }
.fb-btn svg { width: 30px; height: 30px; background: #1877f2; fill: #fff; border-radius: 50%; padding: 3px; flex: none; }
.fb-btn small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
.fb-btn:hover { background: #fff8ea; }
.ft-note { font-size: .82rem; color: #f3d9c0; line-height: 1.5; }
@media (max-width: 900px) and (min-width: 761px) { .ft { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
.ft h4 { margin: 0 0 10px; color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft .phone { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); user-select: all; }
.copy { font: 600 .74rem var(--sans); background: transparent; color: var(--gold); border: 1px solid var(--gold); padding: 4px 8px; border-radius: 3px; cursor: pointer; margin-left: 8px; vertical-align: middle; }
.ft-bottom { background: var(--red-dk); font-size: .76rem; color: #f3d9c0; }
.ft-bottom .wrap { padding-block: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .ft { grid-template-columns: 1fr; } }

/* Dải giá chạy chữ */
.ticker { background: #1f0a0b; color: #f3d9c0; font-size: .78rem; overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; padding-block: 6px; }
.ticker .lbl { flex: none; background: var(--gold); color: var(--red-dk); font-weight: 700; padding: 2px 8px; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.ticker .track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .move { display: inline-flex; gap: 32px; white-space: nowrap; animation: tick 40s linear infinite; font-variant-numeric: tabular-nums; }
.ticker .move b { color: var(--gold); font-weight: 600; }
.ticker:hover .move { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header dính khi cuộn */
.hdr { position: sticky; top: calc(env(safe-area-inset-top, 0px) - 1px); z-index: 6; box-shadow: 0 2px 10px rgba(60,10,10,.25); }
@media (max-width: 900px) { .hdr { position: static; } }

/* Tiêu đề mục có hoa văn */
.sec-h { border-bottom: 0; background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat; }
.sec-h h2 { display: flex; align-items: center; gap: 10px; }
.sec-h h2::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--gold); border: 2px solid var(--red); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--gold); }

/* Thẻ sản phẩm */
.prod { transition: box-shadow .2s, transform .2s; position: relative; }
.prod:hover { box-shadow: 0 8px 22px rgba(122,10,16,.15); transform: translateY(-2px); z-index: 1; }
.prod .img svg { transition: transform .3s; }
.prod:hover .img svg { transform: scale(1.06); }
.prod .more { justify-self: start; margin-top: 4px; font-size: .76rem; font-weight: 600; color: var(--red); border: 1px solid var(--red); padding: 4px 10px; border-radius: 2px; }
.prod:hover .more { background: var(--red); color: var(--gold); }
.ring, .gem { transition: background .2s; }
.gem svg { transition: transform .2s; }
.gem:hover svg { transform: translateY(-3px); }

/* Nút nổi */
.float { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 8; display: grid; gap: 8px; justify-items: end; }
.float a, .float button { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--gold); border: 2px solid var(--gold); border-radius: 999px; padding: 9px 16px; font: 700 .85rem var(--sans); box-shadow: 0 6px 16px rgba(60,10,10,.3); cursor: pointer; }
.float .top-btn { padding: 8px 12px; }
.float svg { width: 16px; height: 16px; fill: var(--gold); }

.prod .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-note { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--card); grid-column: 1 / -1; }
.ft-bottom a { color: var(--gold); text-decoration: underline; }

/* ===== Trang quản trị ===== */
.admin { position: fixed; inset: 0; z-index: 20; background: var(--paper); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ad-bar { background: var(--red); color: #fff; position: sticky; top: 0; z-index: 2; }
.ad-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.ad-bar b { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }
.ad-back { color: #fff; font-weight: 600; font-size: .88rem; border: 1px solid var(--gold); padding: 6px 12px; border-radius: 3px; }
.ad-back:hover { background: var(--red-dk); }
.ad-body { padding-block: 20px 48px; display: grid; gap: 16px; }
.ad-gate { background: var(--card); border: 1px solid var(--line); padding: 24px; color: var(--ink); }
.ad-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--red); flex-wrap: wrap; }
.ad-tabs button { font: 600 .9rem var(--sans); border: 1px solid var(--line); border-bottom: 0; background: var(--card); color: var(--ink); padding: 10px 18px; cursor: pointer; border-radius: 3px 3px 0 0; }
.ad-tabs button[aria-selected="true"] { background: var(--red); color: var(--gold); border-color: var(--red); }
.ad-panel { background: var(--card); border: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.ad-panel h3 { font-family: var(--serif); color: var(--red); font-size: 1.1rem; }
.ad-help { font-size: .84rem; color: var(--muted); }
.ad-table-wrap { overflow-x: auto; }
table.ad-t { width: 100%; border-collapse: collapse; min-width: 760px; }
.ad-t th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); }
.ad-t td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ad-t input { width: 100%; }
.ad-t td.acts { white-space: nowrap; }
.admin input, .admin select, .admin textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); min-width: 0; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid var(--gold-dk); outline-offset: 0; }
.admin input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
.ad-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ad-btn { font: 600 .86rem var(--sans); padding: 9px 16px; border-radius: 3px; cursor: pointer; border: 1px solid var(--red); background: var(--red); color: var(--gold); }
.ad-btn:hover { background: var(--red-dk); }
.ad-btn.ghost { background: #fff; color: var(--red); }
.ad-btn.ghost:hover { background: #fff3f0; }
.ad-btn.small { padding: 5px 10px; font-size: .78rem; }
.ad-btn.danger { background: #fff; color: #a3161e; border-color: #d9a3a6; }
.ad-btn.danger.armed { background: #a3161e; color: #fff; }
.ad-btn:disabled { opacity: .55; cursor: wait; }
.ad-status { font-size: .84rem; color: var(--muted); }
.ad-status.ok { color: #1e7a45; }
.ad-status.err { color: #a3161e; }
.ad-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ad-list { display: grid; gap: 6px; max-height: 620px; overflow-y: auto; }
.ad-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); border-radius: 3px; }
.ad-item:hover, .ad-item.on { border-color: var(--red); background: #fffaf0; }
.ad-item .th { width: 52px; height: 52px; background: #f7f0e7; display: grid; place-items: center; overflow: hidden; }
.ad-item .th img, .ad-item .th svg { width: 100%; height: 100%; object-fit: cover; }
.ad-item b { display: block; font-size: .88rem; }
.ad-item small { color: var(--muted); font-size: .76rem; }
.ad-form { display: grid; gap: 12px; }
.ad-form label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--red); }
.ad-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-img { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.ad-img .pv { width: 110px; height: 110px; border: 1px dashed var(--line); background: #faf6f0; display: grid; place-items: center; overflow: hidden; font-size: .74rem; color: var(--muted); text-align: center; }
.ad-img .pv img { width: 100%; height: 100%; object-fit: cover; }
.ad-info { display: grid; gap: 12px; max-width: 640px; }
.ad-info label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--red); }
/* Dải vòng nguyệt quế (thay cho hàng danh mục) */
.laurel-band { border-top: 1px solid rgba(232,196,106,.35); background: linear-gradient(180deg, var(--red) 0%, var(--red-dk) 100%); }
.laurel-inner { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.5vw, 14px); padding-block: 4px 5px; }
.laurel { width: clamp(70px, 15vw, 150px); height: auto; flex: 0 1 auto; min-width: 0; overflow: visible; }
.laurel.r { transform: scaleX(-1); }
.motto { margin: 0; text-align: center; color: var(--gold); font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.45rem); letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; flex: none; }
.motto small, .motto span { display: block; font-family: var(--sans); text-transform: uppercase; font-weight: 500; color: #ffe6b0; }
.motto small { font-size: .45em; letter-spacing: .4em; margin-bottom: 2px; }
.motto span { font-size: .42em; letter-spacing: .22em; margin-top: 4px; }
.logo-img { width: 72px; height: 72px; flex: none; object-fit: contain; display: block; box-shadow: 0 0 0 1px rgba(232,196,106,.5), 0 2px 8px rgba(40,0,0,.35); }
.logo-img.sm { width: 54px; height: 54px; }
@media (max-width: 520px) { .logo-img { width: 56px; height: 56px; } .logo-img.sm { width: 46px; height: 46px; } }
.board-clock { margin-left: auto; text-align: right; display: grid; gap: 2px; padding: 6px 10px; border: 1px solid rgba(232,196,106,.55); background: var(--red-dk); flex: none; }
.board-clock b { font-family: var(--serif); color: var(--gold); font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1.1; }
.board-clock span { font-size: .72rem; color: #ffe6b0; white-space: nowrap; }
@media (max-width: 460px) { .board-h { flex-wrap: wrap; } .board-clock { margin-left: 0; width: 100%; text-align: left; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; } }
.knot { width: clamp(42px, 5.5vw, 58px); height: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(40,0,0,.45)); }

/* Trang "Về chúng tôi" */
/* Tinh chỉnh cho điện thoại */
@media (max-width: 600px) {
  .slide .t small, .slide .t em { font-size: .72rem; }
  .dots { gap: 14px; }
  .dots button { width: 13px; height: 13px; position: relative; }
  .dots button::after { content: ""; position: absolute; inset: -12px; }
  .sec-h a { display: inline-block; padding: 10px 0; }
  .ft-links a { padding: 9px 0; }
  .copy { padding: 8px 12px; }
  table.pt { min-width: 0; }
  .pt th small { display: none; }
  .pt th, .pt td { padding: 8px 5px; font-size: .8rem; }
  .pt td.p { font-size: .9rem; }
  .pt td.name small { font-size: .7rem; }
  .board-h h2 { font-size: 1.15rem; }
  .ft-info li { grid-template-columns: 1fr; gap: 2px; }
}
.slide.img-slide { padding: 0; display: block; }
@media (max-width: 600px) { .slides.has-img { aspect-ratio: 16 / 7.2; } }
.slide.img-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-pv { aspect-ratio: 16 / 7.2; max-width: 100%; background: #faf6f0; border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; font-size: .8rem; color: var(--muted); }
.sl-pv img { width: 100%; height: 100%; object-fit: cover; }
.ad-item.sl { grid-template-columns: 110px 1fr auto; }
.ad-item.sl .th { width: 110px; height: 50px; }
/* Khung tính giá: kéo dài hết chiều cao, khối định giá nằm ở đáy */
.calc-board { display: flex; flex-direction: column; }
.calc-board .calc { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.calc-cta { margin-top: auto; display: grid; gap: 12px; padding: 14px; background: #fff3cf; border: 1px solid var(--gold); border-left: 4px solid var(--red); }
.cc-head { display: flex; gap: 10px; align-items: flex-start; }
.cc-icon { width: 30px; height: 30px; flex: none; fill: var(--red); }
.cc-head b { display: block; font-family: var(--serif); color: var(--red); font-size: 1.08rem; line-height: 1.3; }
.cc-head span { font-size: .84rem; color: var(--ink); line-height: 1.45; }
.cc-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed rgba(158,15,23,.25); }
.cc-phone { min-width: 0; }
.cc-phone small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cc-phone span { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: .98rem; line-height: 1.35; }
/* Biểu đồ giá vàng thế giới (bản dùng thử: ảnh chụp) */
.chart-sec .sec-h { align-items: baseline; }
.chart-note { font-size: .78rem; color: var(--muted); }
.chart-box { position: relative; padding: 8px; background: #fff; }
.tv-mock { position: relative; border: 1px solid #e0e3eb; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #131722; background: #fff; }
.tv-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #e0e3eb; font-size: 13px; overflow: hidden; white-space: nowrap; }
.tv-bar span { padding: 3px 8px; border-radius: 4px; color: #131722; }
.tv-bar span.on { background: #f0f3fa; font-weight: 600; }
.tv-bar i { width: 1px; height: 18px; background: #e0e3eb; margin: 0 4px; }
.tv-legend { position: absolute; left: 10px; top: 44px; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 1; background: rgba(255,255,255,.75); padding: 2px 4px; }
.tv-legend b { font-weight: 600; }
.tv-legend span { font-variant-numeric: tabular-nums; }
#tv-svg { display: block; width: 100%; height: auto; }
.chart-badge { position: absolute; top: 16px; right: 16px; background: var(--red); color: var(--gold); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(60,10,10,.25); }
.chart-foot { padding: 8px 16px 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .chart-badge { position: static; display: inline-block; margin: 8px 8px 0; } .chart-box { padding: 4px; } }
/* Trang chi tiết sản phẩm */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); padding: clamp(14px, 3vw, 28px); }
.pd-media { min-width: 0; }
.pd-zoom { position: relative; display: block; width: 100%; aspect-ratio: 1; max-width: 100%; padding: 0; border: 1px solid var(--line); background: radial-gradient(circle, #fff 35%, #f5eee6 100%); cursor: zoom-in; overflow: hidden; }
.pd-zoom #pd-visual { position: absolute; inset: 0; display: grid; place-items: center; }
.pd-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pd-zoom svg { width: 78%; height: 78%; transition: transform .35s; }
.pd-zoom:hover img, .pd-zoom:hover #pd-visual > svg { transform: scale(1.05); }
.pd-zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(42,26,22,.75); color: #fff; font: 600 .76rem var(--sans); padding: 5px 10px; border-radius: 999px; }
.pd-zoom-hint svg { width: 14px; height: 14px; fill: currentColor; }
.pd-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pd-coll { justify-self: start; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dk); }
.pd-coll:hover { color: var(--red); }
.pd-info h1 { font-family: var(--serif); color: var(--red); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0; }
.pd-info .badge { justify-self: start; background: var(--red); color: var(--gold); font-size: .72rem; font-weight: 700; padding: 3px 10px; text-transform: uppercase; }
.pd-price { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; background: #fff8ea; border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.pd-price small { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.pd-price b { font-family: var(--serif); color: var(--red); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.pd-specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.pd-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pd-specs dt { color: var(--muted); font-weight: 600; }
.pd-specs dd { margin: 0; }
.pd-desc { font-size: .95rem; }
.pd-cta { display: grid; gap: 8px; justify-items: start; padding: 14px; background: linear-gradient(90deg, var(--red-dk), var(--red)); color: #fff; border: 1px solid var(--gold); }
.pd-cta b { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.pd-cta .num { color: #ffe6b0; font-weight: 700; }
.pd-note { font-size: .78rem; color: var(--muted); margin: 0; }
#pd-related-sec { margin-top: 14px; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } .pd-specs div { grid-template-columns: 100px 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(20,8,8,.92); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); cursor: zoom-out; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 82vh; object-fit: contain; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.lb-stage svg { width: min(82vh, 92vw); height: min(82vh, 92vw); background: radial-gradient(circle, #fff 35%, #f5eee6 100%); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(158,15,23,.85); color: var(--gold); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 1; }
.lb-nav.prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lb-nav.next { right: max(12px, env(safe-area-inset-right, 0px)); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pd-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; border-radius: 2px; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumbs button[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--gold); }
.pd-thumbs button:hover { border-color: var(--gold-dk); }
.ad-gal { display: grid; gap: 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gal-item { position: relative; aspect-ratio: 1; border: 2px solid var(--line); background: #faf6f0; overflow: hidden; }
.gal-item.cover { border-color: var(--red); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tag { position: absolute; left: 0; top: 0; background: var(--red); color: var(--gold); font-size: .62rem; font-weight: 700; padding: 2px 6px; text-transform: uppercase; }
.gal-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(42,26,22,.7); }
.gal-acts button { flex: 1; border: 0; background: transparent; color: #fff; font-size: 1rem; padding: 4px 0; cursor: pointer; }
.gal-acts button:hover:not(:disabled) { background: rgba(232,196,106,.35); color: var(--gold); }
.gal-acts button:disabled { opacity: .35; cursor: default; }
.lb-cap { color: #f3d9c0; font-size: .9rem; margin: 10px 0 0; text-align: center; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--red); color: var(--gold); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.board-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 12px; background: #fff3cf; color: var(--red-dk); font-size: .82rem; font-weight: 600; line-height: 1.45; border-top: 1px solid var(--gold); }
.board-warn svg { width: 16px; height: 16px; flex: none; fill: var(--red); margin-top: 1px; }
.page-main { padding-bottom: 8px; }
.cm-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; }
.cm-count { font-size: .9rem; color: var(--muted); }
.cm-count b { color: var(--red); font-variant-numeric: tabular-nums; }
.cm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-tabs a { font-size: .82rem; font-weight: 600; padding: 6px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; }
.cm-tabs a:hover { border-color: var(--red); color: var(--red); }
.cm-tabs a[aria-current="page"] { background: var(--red); border-color: var(--red); color: var(--gold); }
.cm-sec { margin-top: 10px; }
.cm-grid .ring { padding-block: 22px; }
.cm-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 14px; padding: 18px clamp(16px, 3vw, 28px); background: linear-gradient(90deg, var(--red-dk), var(--red)); border: 1px solid var(--gold); color: #fff; }
.cm-cta b { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.15rem; }
.cm-cta span { font-size: .9rem; }
.cm-cta .num { color: #ffe6b0; font-weight: 700; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); padding: 12px 0 10px; }
.crumb a { color: var(--red); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb span:last-child { color: var(--ink); font-weight: 600; }
.page-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); padding: clamp(20px, 4vw, 36px); background: radial-gradient(ellipse 60% 120% at 90% 50%, #b3141d 0%, var(--red) 45%, var(--red-dk) 100%); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--red-dk), inset 0 0 0 5px rgba(232,196,106,.5); }
.page-hero > div { position: relative; z-index: 1; min-width: 0; }
.page-hero small { display: block; color: #ffe6b0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.page-hero h1 { font-family: var(--serif); color: var(--gold); font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 4px 0 6px; }
.page-hero p { color: #fff; opacity: .9; font-size: .95rem; }
.page-hero .logo-img { position: relative; z-index: 1; }
.page-hero-knot { position: absolute; right: -30px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); opacity: .22; pointer-events: none; }
.pv-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; padding-block: 16px 24px; align-items: start; }
.pv-side { display: grid; gap: 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 150px); }
.pv-nav { background: var(--card); border: 1px solid var(--line); }
.pv-nav-h { background: var(--red); color: var(--gold); font-family: var(--serif); font-size: 1rem; padding: 10px 14px; text-transform: uppercase; letter-spacing: .04em; }
#pv-nav { display: grid; }
.pv-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: .9rem; border-left: 3px solid transparent; border-top: 1px solid var(--line); }
.pv-nav a:first-child { border-top: 0; }
.pv-nav a::after { content: "›"; color: var(--gold-dk); font-size: 1.1rem; }
.pv-nav a:hover { background: #fffaf0; color: var(--red); }
.pv-nav a[aria-current="page"] { border-left-color: var(--red); color: var(--red); background: #fff8ea; }
.pv-help { display: grid; gap: 8px; background: #fff8ea; border: 1px solid var(--line); padding: 14px; font-size: .86rem; }
.pv-help b { color: var(--red); font-family: var(--serif); font-size: 1rem; }
.pv-help span { font-variant-numeric: tabular-nums; line-height: 1.5; }
.fb-btn.sm { padding: 6px 12px 6px 8px; font-size: .84rem; border-width: 1px; }
.fb-btn.sm svg { width: 24px; height: 24px; }
.pv-body { background: var(--card); border: 1px solid var(--line); padding: clamp(18px, 4vw, 40px); min-width: 0; }
.pv-content { max-width: 70ch; display: grid; gap: 14px; font-size: 1rem; line-height: 1.8; }
.pv-content > p:first-child { font-size: 1.08rem; color: var(--ink); padding-left: 14px; border-left: 3px solid var(--gold); }
.pv-content h2 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); color: var(--red); font-size: 1.2rem; margin: 12px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pv-content h2::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); border: 2px solid var(--red); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--gold); }
.pv-content ul { list-style: none; padding-left: 0 !important; }
.pv-content li { position: relative; padding-left: 22px; }
.pv-content li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold-dk); font-size: .8rem; line-height: 1.8rem; }
.pv-updated { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) { .pv-wrap { grid-template-columns: 1fr; } .pv-side { position: static; order: 2; } .page-hero .logo-img { width: 52px; height: 52px; } }
.pv-content p, .pv-content ul { margin: 0; }
.pv-content ul { padding-left: 1.2em; display: grid; gap: 6px; }
.pv-content li::marker { color: var(--gold-dk); }
.pv-contact { display: grid; gap: 10px; background: #fff8ea; border: 1px solid var(--line); padding: 16px 18px; }
.pv-contact div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.pv-contact b { color: var(--red); font-size: .85rem; }
.pv-contact a { color: var(--red); text-decoration: underline; }
@media (max-width: 760px) { .pv-wrap { grid-template-columns: 1fr; } .pv-nav { position: static; grid-template-columns: 1fr 1fr; } .pv-contact div { grid-template-columns: 1fr; gap: 2px; } }
.ad-page-body { width: 100%; min-height: 360px; font: inherit; line-height: 1.6; resize: vertical; }
.ad-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ad-filter button { font: 600 .8rem var(--sans); padding: 6px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.ad-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--gold); }
.ad-item .tagc { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--red); border: 1px solid var(--line); padding: 0 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.ad-auth { max-width: 440px; }
.ad-auth label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--red); }
.ad-bar .ad-acts { display: flex; gap: 8px; align-items: center; }
.ad-bar button.ad-back { background: transparent; font: 600 .88rem var(--sans); cursor: pointer; }
@media (max-width: 820px) { .ad-prod { grid-template-columns: 1fr; } .ad-list { max-height: 320px; } .ad-form .two { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .slide, .prod, .prod .img svg, .gem svg { transition: none; } .ticker .move { animation: none; } }

/* ===== Bổ sung cho website kienthu.com ===== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a.prod, a.ring, a.side-card { color: inherit; }

/* Trang lỗi 404 */
.nf { text-align: center; padding: 60px 16px; background: var(--card); border: 1px solid var(--line); margin-top: 14px; }
.nf h1 { font-family: var(--serif); color: var(--red); }
.nf a { color: var(--red); font-weight: 700; text-decoration: underline; }

/* Trang quản trị /kadmin */
.admin.page { position: static; overflow: visible; min-height: 100vh; }
.ad-tabs a { font: 600 .9rem var(--sans); border: 1px solid var(--line); border-bottom: 0; background: var(--card); color: var(--ink); padding: 10px 18px; border-radius: 3px 3px 0 0; }
.ad-tabs a[aria-current="page"] { background: var(--red); color: var(--gold); border-color: var(--red); }
.ad-flash { padding: 10px 14px; border: 1px solid; border-radius: 3px; font-size: .9rem; }
.ad-flash.ok { border-color: #8cc5a2; background: #eef8f1; color: #1e5c37; }
.ad-flash.err { border-color: #e0a3a6; background: #fdf0f0; color: #8a1219; }
.ad-auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding-block: 24px; }
.ad-auth .logo-img { margin-bottom: 4px; }
a.ad-item { text-decoration: none; }
.ad-check { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: #a3161e; }
.gal-item .gal-ctl { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(42,26,22,.78); color: #fff; font-size: .7rem; padding: 4px; }
.gal-item .gal-ctl label { display: flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; font-size: .7rem; text-transform: none; letter-spacing: 0; }
.gal-item .gal-ctl input[type="number"] { width: 100%; padding: 2px 4px; font-size: .72rem; grid-column: 1 / -1; }
