:root {
  --nen: #FFFFFF;
  --the: #FFFFFF;
  --nen2: #F3F3F3;
  --vien: #D6D2CB;
  --vien-ro: #B9B3AA;
  --chu: #1F1D1A;
  --mo: #6B6660;
  --do: #C0392B;
  --o-tot: #1E7C45;
  --tren-chu: #FFFFFF;
  --bong-the: 0 1px 2px rgba(31, 29, 26, .05), 0 12px 32px -8px rgba(31, 29, 26, .12);
  --vong-focus: 0 0 0 2px var(--the), 0 0 0 4px var(--chu);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --nen: #1C2025;
    --the: #24292F;
    --nen2: #2C3238;
    --vien: #434C55;
    --vien-ro: #727D88;
    --chu: #F4F1EC;
    --mo: #B3AEA6;
    --do: #E5766C;
    --o-tot: #5BB37C;
    --tren-chu: #1C2025;
    --bong-the: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--nen);
  color: var(--chu);
  font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--vong-focus); }

.cg-dau {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 16px;
}
.cg-logo { display: block; line-height: 0; border-radius: 10px; }
.cg-logo img { height: 40px; width: auto; border-radius: 10px; }
.cg-logo img.cg-logo-tt { max-width: 220px; object-fit: contain; border-radius: 0; }
.cg-logo .cg-logo-chu { display: block; line-height: 40px; font-size: 18px; font-weight: 700; color: var(--chu, inherit); }
.cg-dau-phai { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cg-ten-tt { color: var(--mo); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 40vw; }
.cg-nn { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--nen2); }
.cg-nn button {
  border: 0; background: transparent; color: var(--mo); font-size: 12px; font-weight: 600;
  min-width: 36px; height: 26px; border-radius: 999px; transition: background-color .15s, color .15s;
}
.cg-nn button[aria-pressed="true"] { background: var(--the); color: var(--chu); }
.cg-nut-chu { border: 0; background: transparent; color: var(--mo); font-size: 13px; padding: 6px 4px; border-radius: 6px; }
.cg-nut-chu:hover { color: var(--chu); }

.cg-thu {
  max-width: 1120px; margin: 0 auto 4px; padding: 0 16px;
  font-size: 12.5px; color: var(--mo); text-align: center;
}
.cg-thu span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--nen2); }

main { padding: 8px 16px 64px; }

.cg-the-form {
  width: 100%; max-width: 420px; margin: 32px auto 0;
  border-radius: 32px; background: var(--nen2); padding: 4px;
}
.cg-the-trong {
  border-radius: 24px; background: var(--the); padding: 32px; box-shadow: var(--bong-the);
}
.cg-the-trong h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.cg-phu { margin: 0 0 24px; color: var(--mo); font-size: 14px; }
.cg-o { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cg-o label { font-size: 13px; font-weight: 600; }
.cg-o input, .cg-o select {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--vien);
  background: var(--the); font-size: 15px; width: 100%;
}
.cg-o input:focus, .cg-o select:focus { outline: none; border-color: var(--chu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chu) 12%, transparent); }
.cg-o-mk { position: relative; }
.cg-o-mk input { padding-right: 64px; }
.cg-mat {
  position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mo); font-size: 12.5px; font-weight: 600;
}
.cg-mat:hover { background: var(--nen2); color: var(--chu); }
.cg-goi-y { font-size: 12px; color: var(--mo); }
.cg-loi { min-height: 20px; margin: 4px 0 12px; color: var(--do); font-size: 13px; }
.cg-tin { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--nen2); font-size: 13px; color: var(--mo); }
.cg-duoi { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--mo); }
.cg-lien { color: var(--chu); font-weight: 600; text-decoration: none; border: 0; background: none; padding: 0; }
.cg-lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.cg-hang2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cg-o-ma input { text-align: center; font-size: 24px; letter-spacing: .4em; font-variant-numeric: tabular-nums; height: 56px; }

.cg-nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--chu) 80%, #000);
  color: var(--tren-chu); font-size: 15px; font-weight: 600;
  background: linear-gradient(180deg, color-mix(in srgb, var(--chu) 82%, var(--tren-chu)) 0%, var(--chu) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .18);
  transition: filter .15s, transform .15s;
}
.cg-nut:hover { filter: brightness(1.08); }
.cg-nut:active { transform: translateY(1px); }
.cg-nut[disabled] { opacity: .55; cursor: default; filter: none; transform: none; }
.cg-nut svg { width: 16px; height: 16px; flex: none; }
.cg-nut-vien {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px;
  border-radius: 12px; border: 1px solid var(--vien); background: var(--the); font-weight: 600; font-size: 14px;
}
.cg-nut-vien:hover { background: var(--nen2); }

.cg-gia { max-width: 768px; margin: 0 auto; }
.cg-gia-cot { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cg-gia-dau { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cg-nhan {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px;
  background: var(--nen2); font-size: 12px; font-weight: 600; line-height: 16px;
}
.cg-gia-dau h2 {
  margin: 0; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.025em;
}
.cg-gia-dau p { margin: 0; max-width: 672px; font-size: 18px; line-height: 28px; color: var(--mo); }
@media (min-width: 640px) { .cg-gia-dau h2 { font-size: 48px; line-height: 1; } }

.cg-chon {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--nen2);
}
.cg-chon button {
  min-width: 112px; padding: 8px 24px; border: 0; border-radius: 999px;
  background: transparent; color: var(--mo); font-size: 14px; font-weight: 500; line-height: 20px;
  transition: background-color .15s ease, color .15s ease;
}
.cg-chon button:hover { color: var(--chu); }
.cg-chon button[aria-pressed="true"] { background: var(--the); color: var(--chu); }
.cg-chon-nho { margin-top: -20px; }
.cg-chon-nho button { min-width: 0; padding: 4px 14px; font-size: 13px; }
.cg-tiet-kiem { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--o-tot); }

.cg-gia-khung { width: 100%; max-width: 672px; }
.cg-gia-vien { border-radius: 32px; background: var(--nen2); padding: 4px; }
.cg-gia-the {
  display: grid; grid-template-columns: 1fr; align-items: start; gap: 24px;
  border-radius: 24px; background: var(--the); padding: 32px; box-shadow: var(--bong-the);
}
.cg-gia-phai { display: flex; flex-direction: column; gap: 24px; }
.cg-gia-ten { display: flex; flex-direction: column; gap: 8px; }
.cg-gia-ten h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.cg-gia-ten p { margin: 0; font-size: 14px; line-height: 1.625; color: var(--mo); }
.cg-gia-so { display: flex; flex-direction: column; gap: 4px; }
.cg-gia-dong { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cg-gia-tien {
  font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
@media (min-width: 420px) { .cg-gia-tien { font-size: 60px; } }
.cg-gia-ky { font-size: 18px; line-height: 28px; color: var(--mo); }
.cg-gia-ghi { margin: 0; font-size: 14px; color: var(--mo); }
.cg-gia-lien-he { margin: 0; font-size: 15px; font-weight: 500; }
.cg-gia-ngan { display: none; width: 1px; align-self: stretch; background: color-mix(in srgb, var(--vien) 50%, transparent); }
.cg-gia-trai ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cg-gia-trai li { display: flex; align-items: flex-start; gap: 12px; }
.cg-tich {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 999px; background: var(--chu);
  display: flex; align-items: center; justify-content: center;
}
.cg-tich svg { width: 12px; height: 12px; color: var(--tren-chu); }
.cg-gia-trai span { font-size: 14px; color: var(--mo); }
@media (min-width: 768px) {
  .cg-gia-the { grid-template-columns: 1.25fr auto 1fr; }
  .cg-gia-phai { order: 3; }
  .cg-gia-ngan { order: 2; display: block; }
  .cg-gia-trai { order: 1; }
}

.cg-gia-cuoi { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cg-gia-cuoi p { margin: 0; font-size: 16px; color: var(--mo); }
.cg-gia-cuoi a { display: inline-flex; align-items: center; gap: 4px; color: var(--chu); font-weight: 500; text-decoration: none; }
.cg-gia-cuoi a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cg-gia-cuoi a svg { width: 14px; height: 14px; }

.cg-tra { width: 100%; max-width: 520px; margin: 24px auto 0; }
.cg-tra-tom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cg-tra-tom b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cg-tra-ds { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.cg-tra-ds dt { color: var(--mo); }
.cg-tra-ds dd { margin: 0; font-weight: 600; word-break: break-all; }
.cg-qr-thu {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 180px; margin-bottom: 20px; border-radius: 16px; border: 1px dashed var(--vien-ro);
  color: var(--mo); font-size: 13px; padding: 16px;
}
.cg-cho { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0; color: var(--mo); font-size: 13.5px; }
.cg-vong {
  width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--vien); border-top-color: var(--chu);
  animation: cg-quay .8s linear infinite;
}
@keyframes cg-quay { to { transform: rotate(360deg); } }

.cg-dong-y { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--mo); }
.cg-dong-y input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--chu); cursor: pointer; }
.cg-dong-y label { cursor: pointer; }
.cg-dong-y .cg-lien { font-size: inherit; }
.cg-van-ban { width: 100%; max-width: 820px; margin: 0 auto; }
.cg-van-ban .cg-the-form { max-width: none; }
.cg-van-ban .cg-the-trong { font-size: 15px; line-height: 1.65; }
.cg-van-ban h1 { font-size: 24px; line-height: 1.3; margin: 0 0 6px; }
.cg-van-ban h2 { font-size: 16.5px; font-weight: 600; margin: 28px 0 8px; }
.cg-van-ban h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.cg-van-ban p, .cg-van-ban li { margin: 6px 0; }
.cg-van-ban ol, .cg-van-ban ul { margin: 6px 0; padding-left: 22px; }
.cg-van-ban-bang { overflow-x: auto; margin: 10px 0; }
.cg-van-ban table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; line-height: 1.5; }
.cg-van-ban th, .cg-van-ban td { border: 1px solid var(--vien); padding: 8px 10px; text-align: left; vertical-align: top; }
.cg-van-ban th { background: var(--nen2); font-weight: 600; }
.cg-van-ban .cg-duoi { margin-top: 28px; }

.cg-gt { width: 100%; max-width: 640px; margin: 0 auto; }
.cg-gt .cg-the-form { max-width: none; }
.cg-gt-ls { margin-top: 16px; }
.cg-gt-ls h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }

.cg-mt-o { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cg-mt-nhan { font-size: 13px; font-weight: 600; color: var(--mo); }
.cg-mt-hang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cg-mt-gia { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cg-mt-ma { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 22px; letter-spacing: .18em; }
.cg-chep { width: auto; height: 36px; padding: 0 14px; font-size: 13px; }
.cg-mt-hoi .cg-mt-hang { margin-top: 8px; }
.cg-mt-hoi .cg-nut, .cg-mt-hoi .cg-nut-vien, #cgMtDoi { width: auto; height: 36px; padding: 0 16px; font-size: 13.5px; }
.cg-o-duoi { display: flex; align-items: stretch; }
.cg-o-duoi input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cg-duoi-mien { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--vien); border-left: 0;
  border-radius: 0 12px 12px 0; background: var(--nen2); color: var(--mo); font-size: 14px; white-space: nowrap; }
.cg-o-ma-vao input { text-transform: uppercase; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.cg-tin-vang { background: color-mix(in srgb, #E8A33D 16%, var(--the)); color: var(--chu); }
.cg-bang-cuon { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.cg-bang { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.cg-bang th { text-align: left; font-weight: 600; color: var(--mo); padding: 8px 10px; border-bottom: 1px solid var(--vien); }
.cg-bang td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--vien) 55%, transparent); }
.cg-bang tr:last-child td { border-bottom: 0; }
.cg-bang .cg-so { text-align: right; font-variant-numeric: tabular-nums; }
.cg-bang .cg-ma { font-variant-numeric: tabular-nums; color: var(--mo); }
.cg-gh { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--vien); }
.cg-gh h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cg-gh > .cg-goi-y { margin: 0 0 12px; }
.cg-gh .cg-chon-nho { margin-top: 0; }
.cg-gh-gia { margin: 12px 0 0; font-size: 14px; color: var(--mo); }
.cg-gh-gia b { font-size: 22px; font-weight: 700; color: var(--chu); font-variant-numeric: tabular-nums; }
.cg-ng-dong { margin-top: 12px; }
.cg-ng-dong + .cg-ng-dong { margin-top: 16px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--vien) 70%, transparent); }
.cg-ng-dong .cg-gh-gia { margin: 0 0 10px; }
.cg-ha-goi { margin: 16px 0 0; }
.cg-chon-khac { margin-top: 12px; width: 100%; }
.cg-gt-xoa { margin-top: 16px; }
.cg-gt-xoa h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.cg-gt-xoa .cg-the-trong > .cg-goi-y { margin: 0 0 16px; }
.cg-xoa-mo { color: var(--do); border-color: color-mix(in srgb, var(--do) 45%, var(--vien)); }
.cg-xoa-buoc form { margin-top: 4px; }
.cg-nut-xoa { border-color: color-mix(in srgb, var(--do) 80%, #000); background: var(--do); color: var(--tren-chu); }
.cg-tin-do { background: color-mix(in srgb, var(--do) 12%, var(--the)); color: var(--chu); }
.cg-xong { text-align: center; }
.cg-xong h1 { margin: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  .cg-vong { animation-duration: 2s; }
}
@media (max-width: 560px) {
  .cg-ten-tt { display: none; }
  .cg-nut-chu { white-space: nowrap; }
  .cg-logo img { height: 34px; }
}
@media (max-width: 420px) {
  .cg-the-trong, .cg-gia-the { padding: 24px; }
  .cg-chon button { min-width: 96px; padding: 8px 16px; }
  .cg-hang2 { grid-template-columns: 1fr; gap: 0; }
}
