/* ==========================================================================
   DAU GIA DONG TAY - Design System
   Tong mau chu dao: VANG - CAM - DO, nen kem.
   Viet moi hoan toan, khong phu thuoc style.css cua template cu.
   Nap SAU bootstrap.min.css. Chi dung grid + utilities cua Bootstrap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* DO - mau chu dao. Ma chinh thuc: #ed1613
     ==> Day la mau DUY NHAT can sua neu muon doi sac do toan site.
     Cac bac con lai deu dan xuat tu no bang cach pha den/trang. */
  --dg-brand-900: #5f0908;
  --dg-brand-800: #890d0b;
  --dg-brand-700: #be120f;
  --dg-brand-600: #ed1613;
  /* Ban dam nhe cua #ed1613 - dung lam nen nut co chu trang,
     vi chu trang tren #ed1613 chi dat 4.44:1 (duoi chuan AA 4.5:1) */
  --dg-brand-650: #da1411;
  --dg-brand-500: #f14947;
  --dg-brand-100: #fde3e3;
  --dg-brand-50: #fef6f6;

  /* CAM -> VANG. #e65725 cung lay tu logo (hinh ngon lua) */
  --dg-accent-700: #8f4a15;
  --dg-accent-600: #c04a18;
  --dg-accent-500: #e65725;
  --dg-accent-400: #f5883a;
  --dg-accent-300: #ffc93c;
  --dg-accent-100: #fde3d3;
  --dg-accent-50: #fef7f2;

  /* Vang thuan - diem nhan sang tren nen do/cam */
  --dg-yellow: #ffc93c;

  /* Trung tinh - nga am cho hop tong vang cam do */
  --dg-ink: #1f1a17;
  --dg-ink-2: #4a423c;
  --dg-ink-3: #7b7269;
  --dg-ink-4: #aaa298;
  --dg-line: #ece2d5;
  --dg-line-2: #f5eee4;
  --dg-surface: #ffffff;
  --dg-bg: #fdf7ef;
  --dg-bg-2: #f8efe2;

  /* Trang thai dau gia - dung mau LANH de tach khoi tong vang cam do */
  --dg-live: #126b33;
  --dg-live-bg: #e8f6ed;
  --dg-sold: #1d4ed8;
  --dg-sold-bg: #e7eefd;
  --dg-pause: #7c4a03;
  --dg-pause-bg: #fbeed6;
  --dg-closed: #5b5750;
  --dg-closed-bg: #efece7;

  /* Do sang - dung cho gia, dem nguoc */
  --dg-danger: #ed1613;

  /* Typography */
  --dg-font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --dg-fs-xs: 0.75rem;
  --dg-fs-sm: 0.8125rem;
  --dg-fs-base: 0.9375rem;
  --dg-fs-md: 1rem;
  --dg-fs-lg: 1.125rem;
  --dg-fs-xl: 1.375rem;
  --dg-fs-2xl: 1.75rem;
  --dg-fs-3xl: 2.25rem;
  --dg-fs-4xl: 2.875rem;

  /* Khoang cach */
  --dg-s1: 4px;
  --dg-s2: 8px;
  --dg-s3: 12px;
  --dg-s4: 16px;
  --dg-s5: 24px;
  --dg-s6: 32px;
  --dg-s7: 48px;
  --dg-s8: 64px;
  --dg-s9: 88px;

  /* Bo goc */
  --dg-r-sm: 6px;
  --dg-r: 10px;
  --dg-r-lg: 16px;
  --dg-r-xl: 22px;
  --dg-r-full: 999px;

  /* Do bong */
  --dg-sh-sm: 0 1px 2px rgba(80, 14, 10, .06), 0 1px 3px rgba(80, 14, 10, .05);
  --dg-sh: 0 2px 4px rgba(80, 14, 10, .05), 0 6px 16px rgba(80, 14, 10, .07);
  --dg-sh-lg: 0 8px 20px rgba(80, 14, 10, .10), 0 18px 44px rgba(80, 14, 10, .12);
  --dg-sh-accent: 0 6px 18px rgba(230, 87, 37, .32);

  --dg-header-h: 68px;
  --dg-ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--dg-font);
  font-size: var(--dg-fs-base);
  line-height: 1.65;
  color: var(--dg-ink-2);
  background: var(--dg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--dg-brand-700); text-decoration: none; transition: color .18s var(--dg-ease); }
a:hover { color: var(--dg-accent-600); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--dg-s3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dg-brand-900);
  letter-spacing: -0.015em;
}
h1 { font-size: var(--dg-fs-4xl); }
h2 { font-size: var(--dg-fs-3xl); }
h3 { font-size: var(--dg-fs-2xl); }
h4 { font-size: var(--dg-fs-xl); }
h5 { font-size: var(--dg-fs-lg); }
h6 { font-size: var(--dg-fs-md); }

p { margin: 0 0 var(--dg-s4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 3px solid var(--dg-accent-300);
  outline-offset: 2px;
  border-radius: var(--dg-r-sm);
}

::selection { background: var(--dg-accent-300); color: var(--dg-brand-900); }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.dg-section { padding: var(--dg-s9) 0; }
.dg-section--tight { padding: var(--dg-s7) 0; }
.dg-section--alt { background: var(--dg-surface); }
.dg-section--brand { background: var(--dg-brand-800); color: rgba(255, 255, 255, .82); }
.dg-section--brand h1, .dg-section--brand h2,
.dg-section--brand h3, .dg-section--brand h4 { color: #fff; }

/* Tieu de section: eyebrow + title + gach vang */
.dg-head { margin-bottom: var(--dg-s6); }
.dg-head--center { text-align: center; }

.dg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--dg-s2);
  font-size: var(--dg-fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dg-accent-700);
  margin-bottom: var(--dg-s2);
}
.dg-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--dg-accent-500);
  border-radius: 2px;
}
.dg-head--center .dg-eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--dg-accent-500);
  border-radius: 2px;
}

.dg-head h2 { margin-bottom: var(--dg-s3); }

.dg-head p {
  max-width: 62ch;
  color: var(--dg-ink-3);
  margin-bottom: 0;
}
.dg-head--center p { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dg-s2);
  padding: 11px 22px;
  font-family: inherit;
  font-size: var(--dg-fs-base);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--dg-r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--dg-ease);
}

.dg-btn--primary {
  background: var(--dg-brand-650);
  color: #fff;
  box-shadow: 0 2px 8px rgba(237, 22, 19, .28);
}
.dg-btn--primary:hover {
  background: var(--dg-brand-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(237, 22, 19, .34);
}

.dg-btn--accent {
  background: var(--dg-yellow);
  color: #4a1c05;
  box-shadow: var(--dg-sh-accent);
}
.dg-btn--accent:hover {
  background: #ffd766;
  color: #4a1c05;
  transform: translateY(-1px);
}

.dg-btn--ghost {
  background: transparent;
  color: var(--dg-brand-700);
  border-color: var(--dg-line);
}
.dg-btn--ghost:hover {
  background: var(--dg-brand-50);
  border-color: var(--dg-brand-500);
  color: var(--dg-brand-700);
}

.dg-btn--on-brand {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.dg-btn--on-brand:hover {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.dg-btn--sm { padding: 7px 15px; font-size: var(--dg-fs-sm); }
.dg-btn--lg { padding: 14px 30px; font-size: var(--dg-fs-md); }
.dg-btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   5. BADGE TRANG THAI
   -------------------------------------------------------------------------- */
.dg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: var(--dg-fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--dg-r-full);
  white-space: nowrap;
  line-height: 1.5;
}
.dg-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dg-badge--live   { background: var(--dg-live-bg);   color: var(--dg-live); }
.dg-badge--sold   { background: var(--dg-sold-bg);   color: var(--dg-sold); }
.dg-badge--pause  { background: var(--dg-pause-bg);  color: var(--dg-pause); }
.dg-badge--closed { background: var(--dg-closed-bg); color: var(--dg-closed); }

/* Badge dat tren anh */
.dg-badge--overlay {
  position: absolute;
  top: var(--dg-s3);
  left: var(--dg-s3);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(80, 14, 10, .18);
}
.dg-badge--live.dg-badge--overlay::before { animation: dg-pulse 1.8s infinite; }

@keyframes dg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}

/* Chip loai tai san */
.dg-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--dg-fs-xs);
  font-weight: 600;
  color: var(--dg-brand-600);
  background: var(--dg-brand-100);
  border-radius: var(--dg-r-sm);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. THE TAI SAN DAU GIA
   -------------------------------------------------------------------------- */
.dg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  overflow: hidden;
  transition: transform .25s var(--dg-ease), box-shadow .25s var(--dg-ease), border-color .25s var(--dg-ease);
}
.dg-card:hover {
  transform: translateY(-4px);
  border-color: var(--dg-brand-100);
  box-shadow: var(--dg-sh-lg);
}

.dg-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dg-bg-2);
}
.dg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--dg-ease);
}
.dg-card:hover .dg-card__media img { transform: scale(1.06); }

/* Anh thieu -> hien placeholder */
.dg-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dg-ink-4);
  font-size: 2rem;
}

.dg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--dg-s4);
  gap: var(--dg-s3);
}

.dg-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--dg-fs-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--dg-brand-900);
  margin: 0;
  min-height: calc(1.5em * 3);
}
.dg-card__title:hover { color: var(--dg-brand-600); }

.dg-card__meta { margin-top: auto; }

.dg-card__price-label {
  display: block;
  font-size: var(--dg-fs-xs);
  color: var(--dg-ink-3);
  margin-bottom: 1px;
}
.dg-card__price {
  display: block;
  font-size: var(--dg-fs-lg);
  font-weight: 700;
  color: var(--dg-accent-700);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.dg-card__date {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--dg-s3);
  padding-top: var(--dg-s3);
  border-top: 1px dashed var(--dg-line);
  font-size: var(--dg-fs-sm);
  color: var(--dg-ink-2);
}
.dg-card__date i { color: var(--dg-brand-500); font-size: 1em; }
.dg-card__date strong { color: var(--dg-danger); font-weight: 700; }

/* The hoat dong / tin tuc - bien the gon hon */
.dg-card--news .dg-card__media { aspect-ratio: 16 / 10; }
.dg-card--news .dg-card__title { -webkit-line-clamp: 2; min-height: calc(1.5em * 2); }
.dg-card--news .dg-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--dg-fs-sm);
  color: var(--dg-ink-3);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. HEADER
   -------------------------------------------------------------------------- */
.dg-topbar {
  background: var(--dg-brand-900);
  color: rgba(255, 255, 255, .7);
  font-size: var(--dg-fs-sm);
  padding: 7px 0;
}
.dg-topbar a { color: rgba(255, 255, 255, .82); }
.dg-topbar a:hover { color: var(--dg-accent-300); }
.dg-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dg-s4);
  flex-wrap: wrap;
}
.dg-topbar__list { display: flex; align-items: center; gap: var(--dg-s5); flex-wrap: wrap; }
.dg-topbar__list li { display: inline-flex; align-items: center; gap: 6px; }
.dg-topbar i { color: var(--dg-accent-400); }

.dg-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--dg-brand-800);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 4px 20px rgba(80, 14, 10, .18);
}
.dg-header__row {
  display: flex;
  align-items: center;
  gap: var(--dg-s5);
  min-height: var(--dg-header-h);
}

.dg-brand { display: flex; align-items: center; gap: var(--dg-s3); flex: none; }
.dg-brand img {
  height: 42px;
  width: auto;
  padding: 3px 6px;
  background: #fff;
  border-radius: var(--dg-r-sm);
}
.dg-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.dg-brand__name {
  font-size: var(--dg-fs-md);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.dg-brand__sub {
  font-size: var(--dg-fs-xs);
  color: var(--dg-accent-300);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dg-nav { display: flex; align-items: center; gap: var(--dg-s1); margin-left: auto; }
.dg-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: var(--dg-fs-base);
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  border-radius: var(--dg-r-sm);
  transition: color .18s var(--dg-ease), background .18s var(--dg-ease);
}
.dg-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dg-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--dg-accent-400);
  transform: scaleX(0);
  transition: transform .22s var(--dg-ease);
}
.dg-nav__link.is-active { color: #fff; }
.dg-nav__link.is-active::after { transform: scaleX(1); }

/* Dropdown */
.dg-nav__item { position: relative; }
.dg-nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 236px;
  padding: var(--dg-s2);
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r);
  box-shadow: var(--dg-sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--dg-ease);
}
.dg-nav__item:hover .dg-nav__panel,
.dg-nav__item:focus-within .dg-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dg-nav__panel a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--dg-r-sm);
  font-size: var(--dg-fs-base);
  color: var(--dg-ink-2);
}
.dg-nav__panel a:hover { background: var(--dg-brand-50); color: var(--dg-brand-700); }

.dg-header__actions { display: flex; align-items: center; gap: var(--dg-s3); flex: none; }

.dg-header__phone {
  display: flex;
  align-items: center;
  gap: var(--dg-s2);
  padding: 7px 16px;
  border-radius: var(--dg-r-full);
  background: rgba(255, 201, 60, .14);
  border: 1px solid rgba(255, 201, 60, .3);
  color: var(--dg-accent-300);
  font-weight: 700;
  white-space: nowrap;
}
.dg-header__phone:hover { background: rgba(255, 201, 60, .22); color: #fff; }
.dg-header__phone i { font-size: 1.1em; }

/* Nut hamburger */
.dg-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--dg-r-sm);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.dg-burger:hover { background: rgba(255, 255, 255, .18); }

/* --------------------------------------------------------------------------
   8. MENU MOBILE
   -------------------------------------------------------------------------- */
.dg-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(80, 14, 10, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all .28s var(--dg-ease);
}
.dg-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.dg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--dg-surface);
  box-shadow: -12px 0 40px rgba(80, 14, 10, .22);
  transform: translateX(100%);
  transition: transform .3s var(--dg-ease);
}
.dg-drawer.is-open { transform: translateX(0); }

.dg-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dg-s3);
  padding: var(--dg-s4);
  background: var(--dg-brand-800);
  color: #fff;
}
.dg-drawer__head .dg-brand__name { font-size: var(--dg-fs-base); }

.dg-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: var(--dg-r-sm);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.dg-drawer__close:hover { background: rgba(255, 255, 255, .22); }

.dg-drawer__body { flex: 1; overflow-y: auto; padding: var(--dg-s3); }
.dg-drawer__body a {
  display: block;
  padding: 12px var(--dg-s3);
  border-radius: var(--dg-r-sm);
  font-weight: 500;
  color: var(--dg-ink);
}
.dg-drawer__body a:hover { background: var(--dg-brand-50); color: var(--dg-brand-700); }
.dg-drawer__body .sub a {
  padding-left: var(--dg-s6);
  font-size: var(--dg-fs-sm);
  font-weight: 400;
  color: var(--dg-ink-3);
}
.dg-drawer__foot { padding: var(--dg-s4); border-top: 1px solid var(--dg-line); }

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.dg-hero {
  position: relative;
  overflow: hidden;
  /* Do dam (trai, noi dat chu) -> cam -> vang (phai). Kem vet cheo vang. */
  background:
    linear-gradient(135deg, transparent 60%, rgba(255, 201, 60, .30) 60%,
                            rgba(255, 201, 60, .30) 68%, transparent 68%),
    linear-gradient(112deg,
      #5f0908 0%,
      #970f0c 22%,
      #cb1310 44%,
      #ec2a1a 66%,
      #e65725 84%,
      #f59331 100%);
  color: rgba(255, 255, 255, .84);
  padding: var(--dg-s9) 0 var(--dg-s8);
}
/* Lop hoa tiet mo - tao chieu sau, khong can anh */
.dg-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 90, .40) 0%, transparent 68%);
  pointer-events: none;
}
.dg-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -40%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 9, 8, .46) 0%, transparent 70%);
  pointer-events: none;
}
.dg-hero > .container { position: relative; z-index: 1; }

.dg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--dg-s2);
  padding: 6px 16px;
  margin-bottom: var(--dg-s4);
  font-size: var(--dg-fs-sm);
  font-weight: 600;
  color: var(--dg-accent-300);
  background: rgba(255, 201, 60, .12);
  border: 1px solid rgba(255, 201, 60, .26);
  border-radius: var(--dg-r-full);
}

.dg-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: var(--dg-s4);
}
.dg-hero h1 em {
  font-style: normal;
  color: var(--dg-accent-300);
}

.dg-hero__lead {
  font-size: var(--dg-fs-lg);
  color: rgba(255, 255, 255, .78);
  max-width: 56ch;
  margin-bottom: var(--dg-s6);
}

.dg-hero__cta { display: flex; flex-wrap: wrap; gap: var(--dg-s3); }

/* The thong tin cong ty ben phai hero */
.dg-hero__card {
  padding: var(--dg-s6);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--dg-r-xl);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(70, 16, 12, .32);
}
.dg-hero__card-logo {
  display: block;
  max-width: 168px;
  margin: 0 auto var(--dg-s4);
}
.dg-hero__card h3 {
  font-size: var(--dg-fs-lg);
  color: #fff;
  text-align: center;
  margin-bottom: var(--dg-s5);
}
.dg-hero__info { display: grid; gap: var(--dg-s3); margin-bottom: var(--dg-s5); }
.dg-hero__info li {
  display: flex;
  align-items: flex-start;
  gap: var(--dg-s3);
  font-size: var(--dg-fs-sm);
  color: rgba(255, 255, 255, .8);
  line-height: 1.55;
}
.dg-hero__info i {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 201, 60, .16);
  color: var(--dg-accent-300);
  font-size: .85rem;
}

/* Dong ho */
.dg-clock {
  text-align: center;
  padding: var(--dg-s4);
  background: rgba(70, 16, 12, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--dg-r);
}
.dg-clock__date {
  font-size: var(--dg-fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 2px;
}
.dg-clock__time {
  font-size: var(--dg-fs-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dg-accent-300);
  letter-spacing: .04em;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   10. DAI SO LIEU
   -------------------------------------------------------------------------- */
.dg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--dg-line);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  overflow: hidden;
  box-shadow: var(--dg-sh);
}
.dg-stat { padding: var(--dg-s5); background: var(--dg-surface); text-align: center; }
.dg-stat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto var(--dg-s3);
  border-radius: 50%;
  background: var(--dg-brand-50);
  color: var(--dg-brand-600);
  font-size: 1.15rem;
}
.dg-stat__num {
  font-size: var(--dg-fs-2xl);
  font-weight: 700;
  color: var(--dg-brand-800);
  line-height: 1.2;
}
.dg-stat__label { font-size: var(--dg-fs-sm); color: var(--dg-ink-3); }

/* --------------------------------------------------------------------------
   11. TAB LOC
   -------------------------------------------------------------------------- */
.dg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dg-s2);
  margin-bottom: var(--dg-s5);
}
.dg-filter {
  padding: 8px 18px;
  font-family: inherit;
  font-size: var(--dg-fs-base);
  font-weight: 500;
  color: var(--dg-ink-2);
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-full);
  cursor: pointer;
  transition: all .2s var(--dg-ease);
}
.dg-filter:hover { border-color: var(--dg-brand-500); color: var(--dg-brand-700); }
.dg-filter.is-active {
  background: var(--dg-brand-700);
  border-color: var(--dg-brand-700);
  color: #fff;
  font-weight: 600;
}

/* Sidebar dung cho khoi loc doc */
.dg-side {
  position: sticky;
  top: calc(var(--dg-header-h) + var(--dg-s4));
  display: grid;
  gap: var(--dg-s4);
}
.dg-side__box {
  padding: var(--dg-s5);
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
}
.dg-side__title {
  font-size: var(--dg-fs-md);
  font-weight: 700;
  color: var(--dg-brand-900);
  padding-bottom: var(--dg-s3);
  margin-bottom: var(--dg-s3);
  border-bottom: 2px solid var(--dg-accent-500);
}
.dg-side__list { display: grid; gap: var(--dg-s1); }
.dg-side__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dg-s2);
  padding: 9px 12px;
  border-radius: var(--dg-r-sm);
  font-size: var(--dg-fs-base);
  color: var(--dg-ink-2);
}
.dg-side__list a:hover { background: var(--dg-brand-50); color: var(--dg-brand-700); }
.dg-side__list a.is-active {
  background: var(--dg-brand-700);
  color: #fff;
  font-weight: 600;
}

/* Banner lien he trong sidebar */
.dg-promo {
  position: relative;
  padding: var(--dg-s6) var(--dg-s5);
  border-radius: var(--dg-r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #890d0b 0%, #cb1310 55%, #e65725 100%);
  color: rgba(255, 255, 255, .82);
  text-align: center;
}
.dg-promo::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 90, .42), transparent 70%);
}
.dg-promo > * { position: relative; }
.dg-promo h4 { color: #fff; font-size: var(--dg-fs-lg); margin-bottom: var(--dg-s2); }
.dg-promo p { font-size: var(--dg-fs-sm); margin-bottom: var(--dg-s4); }

/* --------------------------------------------------------------------------
   12. PHAN TRANG
   -------------------------------------------------------------------------- */
.dg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dg-s2);
  margin-top: var(--dg-s6);
}
.dg-pagination a,
.dg-pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: var(--dg-fs-base);
  font-weight: 600;
  color: var(--dg-ink-2);
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
  transition: all .18s var(--dg-ease);
}
.dg-pagination a:hover {
  border-color: var(--dg-brand-500);
  color: var(--dg-brand-700);
  background: var(--dg-brand-50);
}
.dg-pagination .is-active {
  background: var(--dg-brand-700);
  border-color: var(--dg-brand-700);
  color: #fff;
}
.dg-pagination .is-disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   13. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.dg-accordion { display: grid; gap: var(--dg-s3); }
.dg-acc {
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r);
  overflow: hidden;
  transition: border-color .2s var(--dg-ease), box-shadow .2s var(--dg-ease);
}
.dg-acc[open] { border-color: var(--dg-brand-100); box-shadow: var(--dg-sh); }

.dg-acc__q {
  display: flex;
  align-items: center;
  gap: var(--dg-s3);
  padding: var(--dg-s4) var(--dg-s5);
  font-weight: 600;
  color: var(--dg-brand-900);
  cursor: pointer;
  list-style: none;
}
.dg-acc__q::-webkit-details-marker { display: none; }
.dg-acc__q::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: .75rem;
  color: var(--dg-brand-500);
  transition: transform .25s var(--dg-ease);
}
.dg-acc[open] .dg-acc__q::after { transform: rotate(180deg); }
.dg-acc__q .dg-acc__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dg-accent-100);
  color: var(--dg-accent-700);
  font-size: var(--dg-fs-sm);
  font-weight: 700;
}
.dg-acc__a {
  padding: 0 var(--dg-s5) var(--dg-s5) calc(var(--dg-s5) + 28px + var(--dg-s3));
  color: var(--dg-ink-3);
  font-size: var(--dg-fs-base);
}

/* --------------------------------------------------------------------------
   14. LOGO DOI TAC
   -------------------------------------------------------------------------- */
.dg-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--dg-s4);
}
.dg-partner {
  display: grid;
  place-items: center;
  padding: var(--dg-s4);
  min-height: 96px;
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r);
  transition: all .22s var(--dg-ease);
}
.dg-partner:hover { border-color: var(--dg-brand-100); box-shadow: var(--dg-sh); transform: translateY(-2px); }
.dg-partner img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: all .22s var(--dg-ease);
}
.dg-partner:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   15. FORM
   -------------------------------------------------------------------------- */
.dg-field { margin-bottom: var(--dg-s4); }
.dg-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--dg-fs-sm);
  font-weight: 600;
  color: var(--dg-ink);
}
.dg-label .req { color: var(--dg-danger); }

.dg-input,
.dg-select,
.dg-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: var(--dg-fs-base);
  color: var(--dg-ink);
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
  transition: border-color .18s var(--dg-ease), box-shadow .18s var(--dg-ease);
}
.dg-input::placeholder, .dg-textarea::placeholder { color: var(--dg-ink-4); }
.dg-input:focus,
.dg-select:focus,
.dg-textarea:focus {
  outline: none;
  border-color: var(--dg-brand-500);
  box-shadow: 0 0 0 3px rgba(237, 22, 19, .14);
}
.dg-textarea { min-height: 130px; resize: vertical; }
.dg-error { display: block; margin-top: 5px; font-size: var(--dg-fs-sm); color: var(--dg-danger); }

/* Thanh tim kiem noi bat */
.dg-search {
  display: flex;
  align-items: center;
  gap: var(--dg-s2);
  padding: 6px 6px 6px var(--dg-s5);
  background: var(--dg-surface);
  border-radius: var(--dg-r-full);
  box-shadow: var(--dg-sh-lg);
}
.dg-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: var(--dg-fs-md);
  color: var(--dg-ink);
  background: transparent;
}

/* --------------------------------------------------------------------------
   16. BREADCRUMB
   -------------------------------------------------------------------------- */
.dg-crumb {
  background: var(--dg-brand-800);
  padding: var(--dg-s5) 0;
  color: rgba(255, 255, 255, .62);
  font-size: var(--dg-fs-sm);
}
.dg-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dg-s2); }
.dg-crumb a { color: rgba(255, 255, 255, .82); }
.dg-crumb a:hover { color: var(--dg-accent-300); }
.dg-crumb li + li::before { content: "/"; margin-right: var(--dg-s2); opacity: .45; }
.dg-crumb h1 { font-size: var(--dg-fs-2xl); color: #fff; margin: var(--dg-s2) 0 0; }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.dg-footer {
  background: var(--dg-brand-900);
  color: rgba(255, 255, 255, .68);
  padding-top: var(--dg-s8);
  font-size: var(--dg-fs-base);
}
.dg-footer a { color: rgba(255, 255, 255, .72); }
.dg-footer a:hover { color: var(--dg-accent-300); }

.dg-footer__title {
  font-size: var(--dg-fs-md);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--dg-s4);
  padding-bottom: var(--dg-s2);
  position: relative;
}
.dg-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--dg-accent-500);
  border-radius: 2px;
}

.dg-footer__brand { display: flex; align-items: center; gap: var(--dg-s3); margin-bottom: var(--dg-s4); }
.dg-footer__brand img {
  height: 52px;
  width: auto;
  padding: 4px 7px;
  background: #fff;
  border-radius: var(--dg-r-sm);
}

.dg-footer__list { display: grid; gap: 11px; }
.dg-footer__list li { display: flex; align-items: flex-start; gap: var(--dg-s3); line-height: 1.55; }
.dg-footer__list i { flex: none; margin-top: 5px; color: var(--dg-accent-400); font-size: .9em; }

.dg-footer__links { display: grid; gap: 9px; }
.dg-footer__links a { display: inline-flex; align-items: center; gap: 7px; }
.dg-footer__links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dg-accent-500);
  flex: none;
  opacity: .7;
}

.dg-footer__zalo {
  display: inline-block;
  padding: 7px;
  background: #fff;
  border-radius: var(--dg-r);
  line-height: 0;
}
.dg-footer__zalo img { max-width: 128px; }

.dg-footer__bottom {
  margin-top: var(--dg-s7);
  padding: var(--dg-s5) 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--dg-fs-sm);
}
.dg-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dg-s4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   18. NUT LIEN HE NOI (mobile)
   -------------------------------------------------------------------------- */
.dg-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1035;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.dg-fab a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--dg-sh-lg);
}
.dg-fab__call { background: var(--dg-live); }
.dg-fab__zalo { background: #0068ff; }
.dg-fab a:hover { color: #fff; transform: scale(1.06); }

/* --------------------------------------------------------------------------
   19. TIEN ICH
   -------------------------------------------------------------------------- */
.dg-empty {
  padding: var(--dg-s8) var(--dg-s5);
  text-align: center;
  background: var(--dg-surface);
  border: 1px dashed var(--dg-line);
  border-radius: var(--dg-r-lg);
  color: var(--dg-ink-3);
}
.dg-empty i { font-size: 2.4rem; color: var(--dg-ink-4); margin-bottom: var(--dg-s3); display: block; }

.dg-prose { color: var(--dg-ink-2); line-height: 1.8; }
.dg-prose h2 { font-size: var(--dg-fs-xl); margin-top: var(--dg-s6); }
.dg-prose h3 { font-size: var(--dg-fs-lg); margin-top: var(--dg-s5); }
.dg-prose img { border-radius: var(--dg-r); margin: var(--dg-s4) 0; }
.dg-prose ul { margin: 0 0 var(--dg-s4); padding-left: var(--dg-s5); }
.dg-prose ul li { list-style: disc; margin-bottom: 6px; }
.dg-prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--dg-s4); }
.dg-prose td, .dg-prose th { border: 1px solid var(--dg-line); padding: 10px 12px; }

.dg-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Hop thong bao */
.dg-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--dg-s3);
  padding: var(--dg-s3) var(--dg-s4);
  margin-bottom: var(--dg-s4);
  border-radius: var(--dg-r);
  font-size: var(--dg-fs-sm);
  line-height: 1.6;
}
.dg-alert i { margin-top: 3px; flex: none; }
.dg-alert ul { padding-left: var(--dg-s4); }
.dg-alert li { list-style: disc; }
.dg-alert--error   { background: var(--dg-sold-bg);  color: var(--dg-sold);  border: 1px solid rgba(180, 35, 24, .22); }
.dg-alert--success { background: var(--dg-live-bg);  color: var(--dg-live);  border: 1px solid rgba(21, 128, 61, .22); }
.dg-alert--info    { background: var(--dg-brand-50);  color: var(--dg-brand-700); border: 1px solid var(--dg-brand-100); }

.dg-divider { height: 1px; background: var(--dg-line); border: 0; margin: var(--dg-s6) 0; }

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .dg-nav__link { padding: 10px 11px; font-size: var(--dg-fs-sm); }
  .dg-header__phone { padding: 7px 12px; font-size: var(--dg-fs-sm); }
}

@media (max-width: 991.98px) {
  :root { --dg-s9: 56px; --dg-s8: 44px; }
  .dg-nav, .dg-header__phone { display: none; }
  .dg-burger { display: flex; }
  .dg-header__actions { margin-left: auto; }
  .dg-hero { padding: var(--dg-s8) 0; }
  .dg-hero__card { margin-top: var(--dg-s6); }
  .dg-side { position: static; }
}

@media (max-width: 767.98px) {
  :root { --dg-fs-3xl: 1.75rem; --dg-fs-4xl: 2rem; --dg-fs-2xl: 1.4rem; }
  .dg-topbar__list li:not(:first-child) { display: none; }
  .dg-card__body { padding: var(--dg-s3); gap: var(--dg-s2); }
  .dg-card__title { font-size: var(--dg-fs-sm); -webkit-line-clamp: 2; min-height: calc(1.5em * 2); }
  .dg-card__price { font-size: var(--dg-fs-md); }
  .dg-fab { display: flex; }
  .dg-footer { padding-top: var(--dg-s7); }
  .dg-footer__bottom-row { justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
  .dg-hero__cta .dg-btn { width: 100%; }
  .dg-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--dg-s2); }
  .dg-filter { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   21. POPUP THONG BAO
   Truoc day nam trong style.css - chuyen sang day khi bo template cu.
   -------------------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: center;
  padding: var(--dg-s4);
  background: rgba(80, 14, 10, .68);
  backdrop-filter: blur(3px);
}
.popup-box {
  position: relative;
  max-width: min(560px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: var(--dg-s4);
  background: var(--dg-surface);
  border-radius: var(--dg-r-lg);
  box-shadow: var(--dg-sh-lg);
  text-align: center;
}
.popup-img { width: 100%; height: auto; border-radius: var(--dg-r); }
.popup-btn {
  margin-top: var(--dg-s4);
  padding: 10px 26px;
  font-family: inherit;
  font-size: var(--dg-fs-base);
  font-weight: 600;
  color: #fff;
  background: var(--dg-brand-600);
  border: 0;
  border-radius: var(--dg-r-full);
  cursor: pointer;
}
.popup-btn:hover { background: var(--dg-brand-700); }

/* --------------------------------------------------------------------------
   22. MODAL DANG NHAP / DANG KY
   Bootstrap modal - chinh lai cho khop tong mau moi.
   -------------------------------------------------------------------------- */
.modal-content {
  border: 0;
  border-radius: var(--dg-r-lg);
  box-shadow: var(--dg-sh-lg);
  overflow: hidden;
}
.modal-header, .modal-footer { border-color: rgba(255, 255, 255, .18); }
.modal .form-control, .modal .form-select {
  padding: 10px 14px;
  font-size: var(--dg-fs-base);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
}
.modal .form-control:focus, .modal .form-select:focus {
  border-color: var(--dg-brand-500);
  box-shadow: 0 0 0 3px rgba(237, 22, 19, .14);
}
.modal .input-group-text { border: 0; }
.modal .btn-success {
  background: var(--dg-accent-500);
  border-color: var(--dg-accent-500);
  color: var(--dg-brand-900);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--dg-r-full);
}
.modal .btn-success:hover {
  background: var(--dg-accent-400);
  border-color: var(--dg-accent-400);
  color: var(--dg-brand-900);
}
.modal .help-block { display: block; margin-top: 4px; font-size: var(--dg-fs-sm); color: #ffd7d3; }

/* --------------------------------------------------------------------------
   23. TRANG CHI TIET TAI SAN
   -------------------------------------------------------------------------- */

/* Thu vien anh */
.dg-gallery__main {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dg-bg-2);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  cursor: zoom-in;
}
.dg-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.dg-gallery__thumbs {
  display: flex;
  gap: var(--dg-s2);
  margin-top: var(--dg-s3);
  overflow-x: auto;
  padding-bottom: var(--dg-s2);
}
.dg-gallery__thumb {
  flex: none;
  width: 92px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--dg-bg-2);
  border: 2px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
  cursor: pointer;
  transition: border-color .18s var(--dg-ease), opacity .18s var(--dg-ease);
  opacity: .72;
}
.dg-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dg-gallery__thumb:hover { opacity: 1; }
.dg-gallery__thumb.is-active { border-color: var(--dg-accent-500); opacity: 1; }

/* Khoi tom tat */
.dg-detail__title {
  font-size: var(--dg-fs-xl);
  line-height: 1.4;
  margin-bottom: var(--dg-s3);
}
.dg-detail__lead { color: var(--dg-ink-3); margin-bottom: var(--dg-s5); }

.dg-price-box {
  padding: var(--dg-s4) var(--dg-s5);
  margin-bottom: var(--dg-s4);
  background: linear-gradient(135deg, var(--dg-accent-50), var(--dg-accent-100));
  border: 1px solid var(--dg-accent-300);
  border-radius: var(--dg-r-lg);
}
.dg-price-box__label {
  display: block;
  font-size: var(--dg-fs-sm);
  color: var(--dg-accent-700);
  font-weight: 600;
}
.dg-price-box__value {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--dg-brand-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.dg-price-box__note {
  display: block;
  margin-top: 4px;
  font-size: var(--dg-fs-sm);
  color: var(--dg-ink-2);
}

/* Dem nguoc */
.dg-countdown {
  padding: var(--dg-s4);
  margin-bottom: var(--dg-s4);
  background: var(--dg-brand-800);
  border-radius: var(--dg-r-lg);
  color: rgba(255, 255, 255, .8);
}
.dg-countdown__head {
  display: flex;
  align-items: center;
  gap: var(--dg-s2);
  margin-bottom: var(--dg-s3);
  font-size: var(--dg-fs-sm);
  font-weight: 600;
}
.dg-countdown__head i { color: var(--dg-accent-300); }
.dg-countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dg-s2); }
.dg-countdown__cell {
  padding: 10px 4px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--dg-r-sm);
}
.dg-countdown__cell b {
  display: block;
  font-size: var(--dg-fs-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dg-accent-300);
  line-height: 1.2;
}
.dg-countdown__cell span { font-size: var(--dg-fs-xs); color: rgba(255, 255, 255, .6); }
.dg-countdown__over {
  margin: var(--dg-s3) 0 0;
  font-size: var(--dg-fs-sm);
  font-weight: 600;
  color: var(--dg-accent-300);
  text-align: center;
}

/* Bang thong so */
.dg-specs {
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  overflow: hidden;
  background: var(--dg-surface);
}
.dg-specs__row {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: var(--dg-s3);
  padding: 11px var(--dg-s4);
  font-size: var(--dg-fs-base);
  border-bottom: 1px solid var(--dg-line-2);
}
.dg-specs__row:last-child { border-bottom: 0; }
.dg-specs__row:nth-child(odd) { background: var(--dg-brand-50); }
.dg-specs__row > span { color: var(--dg-ink-3); }
.dg-specs__row > strong { color: var(--dg-ink); font-weight: 600; }

/* Khung tab */
.dg-panel {
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  overflow: hidden;
}
.dg-tabs {
  border-bottom: 1px solid var(--dg-line);
  background: var(--dg-brand-50);
  padding: 0 var(--dg-s3);
  flex-wrap: nowrap;
  overflow-x: auto;
}
.dg-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 14px 16px;
  font-family: inherit;
  font-size: var(--dg-fs-base);
  font-weight: 600;
  color: var(--dg-ink-3);
  white-space: nowrap;
  background: transparent;
  transition: color .18s var(--dg-ease), border-color .18s var(--dg-ease);
}
.dg-tabs .nav-link:hover { color: var(--dg-brand-700); }
.dg-tabs .nav-link.active {
  color: var(--dg-brand-800);
  border-bottom-color: var(--dg-accent-500);
  background: transparent;
}
.dg-tabs__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  font-size: var(--dg-fs-xs);
  border-radius: var(--dg-r-full);
  background: var(--dg-accent-500);
  color: var(--dg-brand-900);
}
.dg-tabs__content { padding: var(--dg-s6); }

/* Danh sach tai lieu */
.dg-files { display: grid; gap: var(--dg-s3); }
.dg-file {
  display: flex;
  align-items: center;
  gap: var(--dg-s4);
  padding: var(--dg-s3) var(--dg-s4);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r);
  color: var(--dg-ink-2);
  transition: all .2s var(--dg-ease);
}
.dg-file:hover {
  border-color: var(--dg-brand-500);
  background: var(--dg-brand-50);
  color: var(--dg-brand-700);
  transform: translateX(3px);
}
.dg-file__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--dg-r-sm);
  background: var(--dg-sold-bg);
  color: var(--dg-sold);
  font-size: 1.2rem;
}
.dg-file__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dg-file__body strong { font-size: var(--dg-fs-base); color: var(--dg-brand-900); }
.dg-file__body small {
  font-size: var(--dg-fs-xs);
  color: var(--dg-ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .dg-tabs__content { padding: var(--dg-s4); }
  .dg-specs__row { grid-template-columns: 1fr; gap: 2px; padding: 10px var(--dg-s3); }
}

/* --------------------------------------------------------------------------
   24. TRANG DANG NHAP QUAN TRI
   -------------------------------------------------------------------------- */
.dg-auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--dg-s5);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 60, .20) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(95, 9, 8, .40) 0%, transparent 50%),
    linear-gradient(112deg, #5f0908 0%, #970f0c 28%, #cb1310 52%, #ec2a1a 76%, #e65725 100%);
}

.dg-auth__box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(940px, 100%);
  background: var(--dg-surface);
  border-radius: var(--dg-r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(70, 16, 12, .34);
}

/* Cot thuong hieu */
.dg-auth__brand {
  display: flex;
  flex-direction: column;
  gap: var(--dg-s6);
  padding: var(--dg-s7) var(--dg-s6);
  background: linear-gradient(160deg, #5f0908 0%, #be120f 55%, #e65725 100%);
  color: rgba(255, 255, 255, .84);
}
.dg-auth__brand-top { text-align: center; }

.dg-auth__logo {
  display: block;
  max-width: 150px;
  margin: 0 auto var(--dg-s4);
  padding: var(--dg-s3);
  background: #fff;
  border-radius: var(--dg-r-lg);
}
.dg-auth__brand h1 {
  font-size: var(--dg-fs-lg);
  color: #fff;
  margin-bottom: 6px;
}
.dg-auth__brand p { font-size: var(--dg-fs-sm); margin: 0; }

.dg-auth__list { display: grid; gap: var(--dg-s3); margin-top: auto; }
.dg-auth__list li {
  display: flex;
  align-items: center;
  gap: var(--dg-s3);
  font-size: var(--dg-fs-sm);
}
.dg-auth__list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--dg-accent-300);
  font-size: .8rem;
}

.dg-auth__brand-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--dg-s4);
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: var(--dg-fs-xs);
}
.dg-auth__brand-foot a { color: var(--dg-accent-300); }

/* Cot bieu mau */
.dg-auth__form { padding: var(--dg-s7) var(--dg-s6); }
.dg-auth__head { margin-bottom: var(--dg-s5); }
.dg-auth__head h2 { font-size: var(--dg-fs-2xl); margin-bottom: 6px; }
.dg-auth__head p { font-size: var(--dg-fs-sm); color: var(--dg-ink-3); margin: 0; }

.dg-auth__back {
  margin: var(--dg-s5) 0 0;
  text-align: center;
  font-size: var(--dg-fs-sm);
}

/* O nhap co icon + nut hien mat khau */
.dg-input-group { position: relative; display: flex; align-items: center; }
.dg-input-group > i {
  position: absolute;
  left: 14px;
  color: var(--dg-ink-4);
  font-size: .9rem;
  pointer-events: none;
}
.dg-input-group .dg-input { padding-left: 40px; }
.dg-input-group:focus-within > i { color: var(--dg-brand-600); }

.dg-input-group__toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--dg-r-sm);
  color: var(--dg-ink-3);
  cursor: pointer;
}
.dg-input-group__toggle:hover { background: var(--dg-bg-2); color: var(--dg-brand-600); }
.dg-input-group:has(.dg-input-group__toggle) .dg-input { padding-right: 46px; }

@media (max-width: 767.98px) {
  .dg-auth { padding: var(--dg-s3); }
  .dg-auth__box { grid-template-columns: 1fr; }
  .dg-auth__brand { padding: var(--dg-s6) var(--dg-s5); gap: var(--dg-s4); }
  .dg-auth__list { display: none; }
  .dg-auth__form { padding: var(--dg-s6) var(--dg-s5); }
}

/* In an */
@media print {
  .dg-header, .dg-topbar, .dg-footer, .dg-fab, .dg-drawer, .dg-drawer-overlay { display: none !important; }
  body { background: #fff; }
}
