/**
 * @file
 * BUILDTEK – design tokens và component bổ sung cho Bootstrap 5.3.
 *
 * Nguồn: D01 Brand & UI Guideline, D02 Global Shell & States. Bootstrap, icon
 * và font do các library buildtek/bootstrap, buildtek/bootstrap-icons(-site)
 * và buildtek/fonts nạp (xem buildtek.libraries.yml).
 */

/* ---------- 1. Tokens ---------- */
:root,
[data-bs-theme="light"] {
  --bt-green: #66C25B;          /* Xanh lá – chủ đạo */
  --bt-primary: #0B7A5A;        /* Xanh đậm – nút, link, tin cậy */
  --bt-primary-hover: #096349;
  --bt-ink: #1E293B;            /* Text chính */
  --bt-muted: #64748B;          /* Text phụ */
  --bt-bg: #F8FAFC;             /* Nền trang */
  --bt-surface: #FFFFFF;        /* Nền card, header */
  --bt-soft: #E8F5EA;           /* Xanh nhạt – nền phụ */
  --bt-warm: #F7EDE2;           /* Be ấm – điểm nhấn */
  --bt-orange: #F59E0B;         /* CTA nhấn mạnh / cảnh báo */
  --bt-blue: #3B82F6;           /* Thông tin */
  --bt-border: #E5EAF0;
  --bt-footer: #0B3A3C;
  --bt-hero-fade: 248, 250, 252;

  --bs-primary: var(--bt-primary);
  --bs-primary-rgb: 11, 122, 90;
  --bs-primary-bg-subtle: var(--bt-soft);
  --bs-primary-border-subtle: #BFE3C6;
  --bs-primary-text-emphasis: #0B7A5A;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-secondary-color: var(--bt-muted);
  --bs-warning-rgb: 245, 158, 11;
  --bs-info-rgb: 59, 130, 246;
  --bs-body-font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--bt-ink);
  --bs-body-color-rgb: 30, 41, 59;
  --bs-body-bg: var(--bt-bg);
  --bs-heading-color: var(--bt-ink);
  --bs-border-color: var(--bt-border);
  --bs-link-color: var(--bt-primary);
  --bs-link-color-rgb: 11, 122, 90;
  --bs-link-hover-color: var(--bt-primary-hover);
  --bs-link-hover-color-rgb: 9, 99, 73;
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .75rem;
  --bs-border-radius-xl: 1rem;
}

[data-bs-theme="dark"] {
  --bt-primary: #12A678;
  --bt-primary-hover: #19C38A;
  --bt-ink: #E8F1F0;
  --bt-muted: #9AB0B3;
  --bt-bg: #06181E;
  --bt-surface: #0B242B;
  --bt-soft: rgba(25, 195, 138, .14);
  --bt-warm: rgba(245, 158, 11, .12);
  --bt-border: #1A3A41;
  --bt-footer: #04141A;
  --bt-hero-fade: 6, 24, 30;

  --bs-primary-rgb: 25, 195, 138;
  --bs-primary-border-subtle: #1F5B52;
  --bs-primary-text-emphasis: #4ADEAA;
  --bs-secondary-rgb: 154, 176, 179;
  --bs-body-color-rgb: 232, 241, 240;
  --bs-link-color: #2FD39C;
  --bs-link-color-rgb: 47, 211, 156;
  --bs-link-hover-color: #5BE3B6;
  --bs-link-hover-color-rgb: 91, 227, 182;
  --bs-tertiary-bg: #0F2D35;
  --bs-secondary-bg: #12333B;
}

/* ---------- 2. Base ---------- */
body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { letter-spacing: -.01em; }
a { text-decoration: none; }
.surface { background-color: var(--bt-surface); }
.bg-soft { background-color: var(--bt-soft); }
.bg-warm { background-color: var(--bt-warm); }
.text-green { color: var(--bt-green); }
.fs-7 { font-size: .8125rem; }
.fs-8 { font-size: .75rem; }
.min-w-0 { min-width: 0; }
.quote-script { font-family: "Dancing Script", cursive; font-size: 1.5rem; line-height: 1.35; color: var(--bs-primary-text-emphasis); transform: rotate(-4deg); }
.link-more { font-weight: 500; font-size: .875rem; white-space: nowrap; }

/* ---------- 3. Bootstrap component overrides ---------- */
.btn { --bs-btn-font-weight: 500; --bs-btn-padding-x: 1.125rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .9375rem; }
.btn-sm { --bs-btn-padding-x: .75rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .8125rem; }
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .7rem; --bs-btn-font-size: 1rem; }
.btn-primary {
  --bs-btn-bg: var(--bt-primary); --bs-btn-border-color: var(--bt-primary);
  --bs-btn-hover-bg: var(--bt-primary-hover); --bs-btn-hover-border-color: var(--bt-primary-hover);
  --bs-btn-active-bg: #1E293B; --bs-btn-active-border-color: #1E293B;
  --bs-btn-disabled-bg: #94A3B8; --bs-btn-disabled-border-color: #94A3B8;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary-text-emphasis); --bs-btn-border-color: var(--bt-primary);
  --bs-btn-hover-bg: var(--bt-primary); --bs-btn-hover-border-color: var(--bt-primary); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bt-primary-hover); --bs-btn-active-border-color: var(--bt-primary-hover); --bs-btn-active-color: #fff;
  --bs-btn-bg: var(--bt-surface);
}
.btn-icon { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; flex-shrink: 0; }
.btn-icon.btn-sm { width: 2rem; height: 2rem; }

.card { --bs-card-bg: var(--bt-surface); --bs-card-border-color: var(--bt-border); --bs-card-border-radius: .75rem; --bs-card-inner-border-radius: calc(.75rem - 1px); --bs-card-spacer-x: 1.25rem; --bs-card-spacer-y: 1.25rem; --bs-card-cap-bg: transparent; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .1); }

.form-control, .form-select { --bs-border-color: var(--bt-border); background-color: var(--bt-surface); font-size: .9375rem; padding-top: .5rem; padding-bottom: .5rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--bt-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18); }
.form-check-input:checked { background-color: var(--bt-primary); border-color: var(--bt-primary); }
.form-label { font-size: .8125rem; color: var(--bt-muted); margin-bottom: .375rem; }
.form-range::-webkit-slider-thumb { background: var(--bt-primary); }
.form-range::-moz-range-thumb { background: var(--bt-primary); }
.input-group-text { background-color: var(--bt-surface); border-color: var(--bt-border); color: var(--bt-muted); }

.progress { --bs-progress-height: .5rem; --bs-progress-bar-bg: var(--bt-primary); --bs-progress-bg: var(--bs-secondary-bg); --bs-progress-border-radius: 1rem; }
.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-font-size: .875rem; --bs-breadcrumb-item-active-color: var(--bs-body-color); margin-bottom: 0; }
.breadcrumb a { color: var(--bt-muted); }
.pagination { --bs-pagination-color: var(--bs-body-color); --bs-pagination-bg: var(--bt-surface); --bs-pagination-border-color: var(--bt-border); --bs-pagination-active-bg: var(--bt-primary); --bs-pagination-active-border-color: var(--bt-primary); --bs-pagination-font-size: .875rem; --bs-pagination-border-radius: .5rem; gap: .375rem; margin-bottom: 0; }
.pagination .page-link { border-radius: .5rem !important; min-width: 2.25rem; text-align: center; }
.dropdown-menu { --bs-dropdown-bg: var(--bt-surface); --bs-dropdown-border-color: var(--bt-border); --bs-dropdown-font-size: .9375rem; --bs-dropdown-link-active-bg: var(--bt-primary); box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .12); }
.offcanvas, .offcanvas-lg { --bs-offcanvas-bg: var(--bt-surface); }
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--bt-border); font-size: .875rem; margin-bottom: 0; }
.table > thead th { font-weight: 500; color: var(--bt-muted); font-size: .8125rem; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .75rem .75rem; vertical-align: middle; }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--bt-border); --bs-accordion-btn-padding-x: 0; --bs-accordion-body-padding-x: 0; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-button { font-weight: 500; font-size: .9375rem; }

/* Tabs gạch chân (Tổng quan | Thiết kế | …) */
.nav-underline { --bs-nav-underline-gap: 1.5rem; --bs-nav-link-color: var(--bt-muted); --bs-nav-link-hover-color: var(--bs-primary-text-emphasis); --bs-nav-underline-link-active-color: var(--bs-primary-text-emphasis); --bs-nav-link-font-size: .9375rem; border-bottom: 1px solid var(--bt-border); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-underline .nav-link { white-space: nowrap; }
/* Tabs dạng viên (Tất cả | Nhà phố | …) */
.nav-pills { --bs-nav-pills-link-active-bg: var(--bt-primary); --bs-nav-link-color: var(--bs-body-color); --bs-nav-link-font-size: .875rem; --bs-nav-link-padding-y: .4rem; --bs-nav-pills-border-radius: 50rem; gap: .5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-pills .nav-link { white-space: nowrap; border: 1px solid var(--bt-border); background: var(--bt-surface); }
.nav-pills .nav-link.active { border-color: var(--bt-primary); }

/* ---------- 4. Component riêng ---------- */
/* Chip / tag */
.chip { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .75rem; border-radius: 50rem; font-size: .8125rem; font-weight: 500; background: var(--bs-tertiary-bg); color: var(--bs-body-color); border: 1px solid var(--bt-border); white-space: nowrap; }
.chip-primary { background: var(--bt-soft); color: var(--bs-primary-text-emphasis); border-color: transparent; }
.chip-warning { background: rgba(245, 158, 11, .15); color: #B45309; border-color: transparent; }
.chip-danger { background: rgba(239, 68, 68, .13); color: #DC2626; border-color: transparent; }
.chip-info { background: rgba(59, 130, 246, .13); color: #2563EB; border-color: transparent; }
.chip-muted { background: rgba(100, 116, 139, .15); color: var(--bt-muted); border-color: transparent; }
[data-bs-theme="dark"] .chip-warning { color: #FBBF24; }
[data-bs-theme="dark"] .chip-danger { color: #F87171; }
[data-bs-theme="dark"] .chip-info { color: #7CB1FF; }

/* Ô icon vuông bo góc */
.icon-box { width: 3rem; height: 3rem; border-radius: .75rem; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 1.375rem; background: var(--bt-soft); color: var(--bs-primary-text-emphasis); }
.icon-box-sm { width: 2.25rem; height: 2.25rem; font-size: 1rem; border-radius: .5rem; }
.icon-box-lg { width: 4rem; height: 4rem; font-size: 1.75rem; }

/* Avatar chữ cái */
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 600; font-size: .875rem; background: var(--bt-primary); color: #fff; }
.avatar-sm { width: 2rem; height: 2rem; font-size: .75rem; }

/* Ô chọn dạng thẻ (loại công trình, phong cách…) */
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; padding: .875rem .5rem; text-align: center; border: 1px solid var(--bt-border); border-radius: .75rem; background: var(--bt-surface); color: var(--bs-body-color); font-size: .8125rem; font-weight: 500; height: 100%; cursor: pointer; transition: border-color .15s, background-color .15s; }
.tile > .bi { font-size: 1.375rem; color: var(--bs-primary-text-emphasis); }
.tile:hover, .tile.active, .btn-check:checked + .tile { border-color: var(--bt-primary); background: var(--bt-soft); color: var(--bs-primary-text-emphasis); }

/* Danh sách thông số (label – value) */
.spec-list { margin: 0; font-size: .9375rem; }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--bt-border); }
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { font-weight: 400; color: var(--bt-muted); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; }

/* Các bước (stepper) */
.stepper { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: step; overflow-x: auto; scrollbar-width: none; }
.stepper > li { flex: 1 0 6.5rem; position: relative; text-align: center; font-size: .8125rem; color: var(--bt-muted); counter-increment: step; }
.stepper > li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0 auto .5rem; border-radius: 50%; border: 2px solid var(--bt-border); background: var(--bt-surface); font-weight: 600; color: var(--bt-muted); }
.stepper > li::after { content: ""; position: absolute; top: calc(1rem - 1px); right: 50%; width: 100%; height: 2px; background: var(--bt-border); }
.stepper > li:first-child::after { display: none; }
.stepper > li.done::before, .stepper > li.active::before { background: var(--bt-primary); border-color: var(--bt-primary); color: #fff; }
.stepper > li.done::after, .stepper > li.active::after { background: var(--bt-primary); }
.stepper > li.active::before { box-shadow: 0 0 0 .3rem rgba(var(--bs-primary-rgb), .2); }
.stepper > li strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--bs-body-color); }
.stepper > li.done strong, .stepper > li.active strong { color: var(--bs-primary-text-emphasis); }

/* Biểu đồ thuần CSS */
.donut { --size: 9rem; width: var(--size); aspect-ratio: 1; border-radius: 50%; position: relative; display: grid; place-items: center; flex-shrink: 0; }
.donut::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--bt-surface); }
.donut > * { position: relative; z-index: 1; text-align: center; line-height: 1.2; }
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 10rem; border-bottom: 1px solid var(--bt-border); }
.bars > div { flex: 1; border-radius: .25rem .25rem 0 0; background: var(--bt-primary); opacity: .9; }
.bars > div:nth-child(even) { background: var(--bt-green); }
.dot { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; flex-shrink: 0; }

/* Ảnh so sánh trước / sau (AI render) */
.compare { position: relative; overflow: hidden; border-radius: .75rem; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: grayscale(1); }
.compare .compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .compare-handle::after { content: "\2194"; font-size: 1rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--bt-primary); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .chip { position: absolute; top: auto; bottom: .75rem; width: auto; height: auto; background: rgba(15, 23, 42, .7); color: #fff; border: 0; }

/* Ảnh có lớp phủ chữ */
.media-overlay { position: relative; overflow: hidden; border-radius: .75rem; color: #fff; }
.media-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 20, 26, .85)); }
.media-overlay > .media-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; z-index: 1; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0F172A; display: grid; place-items: center; font-size: 1.5rem; border: 0; }
.thumb { border-radius: .5rem; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.thumb.active { border-color: var(--bt-primary); }

/* Vùng kéo thả tải lên */
.dropzone { border: 1.5px dashed var(--bs-primary-border-subtle); border-radius: .75rem; background: var(--bs-tertiary-bg); padding: 1.5rem 1rem; text-align: center; font-size: .875rem; color: var(--bt-muted); }

/* Dòng thời gian (nhật ký) */
.timeline { border-left: 2px solid var(--bt-border); margin-left: .5rem; padding-left: 1.5rem; }
.timeline > .timeline-item { position: relative; }
.timeline > .timeline-item::before { content: ""; position: absolute; left: calc(-1.5rem - 6px); top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--bt-primary); box-shadow: 0 0 0 4px var(--bt-bg); }

/* ---------- 5. Header dùng chung ---------- */
.site-header { background: var(--bt-surface); border-bottom: 1px solid var(--bt-border); z-index: 1030; }
.site-header .navbar { --bs-navbar-padding-y: .75rem; --bs-navbar-nav-link-padding-x: .875rem; --bs-navbar-color: var(--bs-body-color); --bs-navbar-hover-color: var(--bs-primary-text-emphasis); --bs-navbar-active-color: var(--bs-primary-text-emphasis); }
.site-header .nav-link { font-weight: 500; font-size: .9375rem; position: relative; white-space: nowrap; }
.site-header .navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .875rem; right: .875rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--bt-primary); }
.brand-logo { height: 2.25rem; width: auto; }
@media (min-width: 576px) { .brand-logo { height: 2.75rem; } }
.logo-on-dark, [data-bs-theme="dark"] .logo-on-light { display: none; }
[data-bs-theme="dark"] .logo-on-dark { display: inline-block; }
.header-icon { position: relative; color: var(--bs-body-color); font-size: 1.25rem; width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; }
.header-icon:hover { background: var(--bs-tertiary-bg); color: var(--bs-primary-text-emphasis); }
.header-icon .badge { position: absolute; top: .125rem; right: .125rem; font-size: .625rem; padding: .2rem .35rem; }

/* ---------- 6. Footer dùng chung ---------- */
.site-footer { background: var(--bt-footer); color: rgba(255, 255, 255, .75); font-size: .875rem; }
.site-footer h6 { color: #fff; font-size: .9375rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .social { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: inline-grid; place-items: center; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .form-control { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-footer .form-control::placeholder { color: rgba(255, 255, 255, .55); }

/* ---------- 7. Website: hero ---------- */
.hero { position: relative; background: var(--bt-surface) url("../image/hero.jpg") right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(var(--bt-hero-fade), .88); }
.hero > * { position: relative; }
@media (min-width: 992px) {
  .hero { background-size: auto 100%; }
  .hero::before { background: linear-gradient(90deg, rgb(var(--bt-hero-fade)) 0%, rgb(var(--bt-hero-fade)) 42%, rgba(var(--bt-hero-fade), 0) 68%); }
}
[data-bs-theme="dark"] .hero { background-blend-mode: multiply; background-color: #35525a; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2; font-weight: 700; }
.page-title { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.25; font-weight: 700; margin-bottom: .375rem; }

/* ---------- 8. Quản lý: layout sidebar ---------- */
.admin-shell { display: flex; align-items: flex-start; }
.admin-sidebar { --bs-offcanvas-width: 17rem; }
@media (min-width: 992px) {
  .admin-sidebar { width: 16.5rem; flex-shrink: 0; position: sticky; top: var(--header-h, 4.5rem); height: calc(100vh - var(--header-h, 4.5rem)); overflow-y: auto; border-right: 1px solid var(--bt-border); background: var(--bt-surface); }
}
.admin-main { flex: 1; min-width: 0; }
.side-nav { display: grid; gap: .125rem; }
.side-nav .nav-link { display: flex; align-items: center; gap: .75rem; padding: .625rem .875rem; border-radius: .5rem; color: var(--bs-body-color); font-size: .9375rem; }
.side-nav .nav-link > .bi { font-size: 1.125rem; color: var(--bt-muted); }
.side-nav .nav-link:hover { background: var(--bs-tertiary-bg); }
.side-nav .nav-link.active { background: var(--bt-soft); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.side-nav .nav-link.active > .bi { color: inherit; }
.side-title { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); padding: 0 .875rem; margin-bottom: .5rem; }
.stat-value { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }

/* Thanh điều hướng đáy (mobile – khu quản lý) */
.bottom-nav { background: var(--bt-surface); border-top: 1px solid var(--bt-border); z-index: 1020; }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .125rem; padding: .5rem 0; font-size: .6875rem; color: var(--bt-muted); background: none; border: 0; }
.bottom-nav .bi { font-size: 1.25rem; }
.bottom-nav .active { color: var(--bs-primary-text-emphasis); font-weight: 600; }
@media (max-width: 991.98px) { body.bt-so-nha { padding-bottom: 4rem; } }
.media-overlay.ratio > .media-caption { top: auto; height: auto; }
.media-overlay.ratio > .play-btn { top: 50%; left: 50%; width: 3rem; height: 3rem; }

/* ---------- 9. Đăng nhập ---------- */
/* Gói trọn trong một màn hình, không cuộn trang */
.auth-page { height: 100vh; height: 100dvh; overflow: hidden; }
.auth-page > * { height: 100%; overflow: hidden; }
.auth-page > .auth-panel { overflow-y: auto; }
@media (max-height: 720px) { .auth-cover .auth-extra { display: none; } }
.auth-cover { position: relative; background: #0B3A3C url("../image/hero.jpg") center / cover no-repeat; color: #fff; }
.auth-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6, 40, 42, .92) 0%, rgba(11, 122, 90, .78) 55%, rgba(6, 40, 42, .55) 100%); }
.auth-cover > * { position: relative; }
.auth-cover .quote-script { color: #fff; transform: none; }
.auth-form { width: 100%; max-width: 26rem; }

/* ---------- 10. Drupal ---------- */
/* Form đăng nhập / quên mật khẩu của Drupal trong layout page--auth. */
.auth-form form { display: grid; gap: 1rem; }
.auth-form .form-item, .auth-form .js-form-item { margin: 0; }
.auth-form label { font-size: .8125rem; color: var(--bt-muted); margin-bottom: .375rem; }
.auth-form .form-required::after { content: " *"; color: #DC2626; }
.auth-form .description { font-size: .8125rem; color: var(--bt-muted); margin-top: .25rem; }
.auth-forgot { text-align: right; font-size: .8125rem; margin-top: -.5rem; }
/* Trang Drupal thông thường (tài khoản, node...) dùng chung header/footer. */
.bt-generic { min-height: 50vh; }

/* ---------- 11. Trang lỗi (403, 404) ---------- */
.error-page { max-width: 44rem; }
.error-code { font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--bt-primary); margin-bottom: 1rem; }
.error-code .bi { font-size: .8em; color: var(--bt-green); margin: 0 .05em; vertical-align: -.02em; }

/* ---------- 12. Trang tài khoản ---------- */
.profile-cover { height: 7rem; background: linear-gradient(120deg, rgba(6, 40, 42, .9), rgba(11, 122, 90, .8)), url("../image/hero.jpg") center / cover no-repeat; }
.profile-avatar { width: 6rem; height: 6rem; font-size: 2rem; margin-top: -4rem; border: 4px solid var(--bt-surface); }
