/* Mobile-ID Partner Network V4. Local, buildless, dark-first tokens. */
:root {
   --r: 9px;
   --v4-glass: #102731;
   --v4-soft: #17323e;
   --v4-focus: #8dc7fa;
   --public-max: 1450px;
   --public-pad: 4%;
   font-size: 15px;
   line-height: 1.6;
}
h1 {
   font-size: 40px;
   letter-spacing: -0.035em;
}
.workspace-main {
   max-width: 1680px;
   margin: auto;
   width: 100%;
   padding: 36px 38px 56px;
}
.page-head {
   margin-bottom: 26px;
}
.page-head p {
   max-width: 800px;
}
.panel {
   border-radius: 9px;
   padding: 25px;
}
.table-wrap {
   border-radius: 8px;
}
th {
   font-size: 12px;
   letter-spacing: 0.035em;
}
td {
   font-size: 13px;
   padding: 18px 16px;
}
td small {
   font-size: 12px;
   line-height: 1.5;
   display: block;
   margin-top: 5px;
   overflow-wrap: anywhere;
}
td .actions {
   gap: 7px;
}
.tiny {
   font-size: 12px;
}
.badge {
   font-size: 12px;
   white-space: normal;
   text-align: left;
   line-height: 1.45;
   padding: 5px 9px;
}
.button.small {
   min-height: 40px;
   font-size: 12px;
}
.muted {
   color: var(--muted);
}
.nav-group summary {
   padding-top: 11px;
   padding-bottom: 11px;
}
.nav-item {
   font-size: 13px;
   padding-top: 9px;
   padding-bottom: 9px;
}
.sidebar nav {
   scrollbar-width: thin;
}
.workspace-label {
   font-size: 12px;
}
.topbar {
   position: sticky;
   top: 0;
   z-index: 35;
   backdrop-filter: blur(12px);
}
.topbar .crumb {
   font-size: 12px;
}
.v4-context {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 12px 20px;
   font-size: 12px;
   color: var(--muted);
   margin: 4px 0 23px;
}
.v4-context > span:first-child {
   display: flex;
   align-items: center;
   gap: 9px;
   color: var(--text);
}
.v4-context > span:last-child {
   margin-left: auto;
}
.v4-metrics {
   gap: 12px;
   border: 0;
}
.v4-metrics .metric {
   border: 1px solid var(--line);
   border-radius: 8px;
   background: var(--surface);
   padding: 22px;
}
.v4-metrics .metric:first-child {
   background: var(--accent);
   color: var(--accent-text);
   border-color: var(--accent);
}
.v4-metrics .metric strong {
   font-size: 40px;
   margin: 13px 0 5px;
}
.v4-metrics .metric span {
   font-size: 12px;
}
.v4-metrics .metric small {
   font-size: 12px;
}
.v4-metrics .metric:hover {
   transform: translateY(-2px);
   transition: transform 0.16s;
}
.v4-checklist {
   list-style: none;
   padding: 0;
   margin: 0 0 20px;
}
.v4-checklist li {
   display: flex;
   gap: 10px;
   align-items: center;
   padding: 11px 0;
   border-bottom: 1px solid var(--line);
   font-size: 13px;
}
.v4-checklist li small {
   margin-left: auto;
   font-size: 12px;
   color: var(--muted);
}
.v4-check {
   width: 23px;
   height: 23px;
   border-radius: 50%;
   background: var(--surface3);
   display: grid;
   place-items: center;
   flex-shrink: 0;
   color: var(--muted);
}
.v4-check.done {
   background: var(--accent);
   color: var(--accent-text);
}
.v4-finance + .v4-finance {
   border-top: 1px solid var(--line);
   margin-top: 20px;
   padding-top: 20px;
}
.v4-finance .facts {
   grid-template-columns: repeat(3, 1fr);
}
.v4-finance .fact strong {
   font-size: 16px;
   font-variant-numeric: tabular-nums;
}
.v4-stepper {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 10px;
   margin: 0 0 30px;
}
.v4-stepper > div {
   border: 1px solid var(--line);
   border-radius: 7px;
   padding: 16px;
   color: var(--muted);
   font-size: 12px;
   background: var(--surface);
}
.v4-stepper b {
   display: block;
   font-size: 16px;
   margin-bottom: 6px;
}
.v4-stepper .complete {
   border-color: var(--accent);
   color: var(--accent);
}
.v4-stepper .current {
   background: var(--surface2);
}
.v4-list {
   margin-top: 20px;
}
.v4-list .filterbar {
   background: var(--surface);
   padding: 14px;
   border: 1px solid var(--line);
   border-radius: 8px 8px 0 0;
   margin-bottom: 0;
}
.v4-list .table-wrap {
   border-radius: 0;
}
.v4-list .filterbar input {
   flex: 1;
   min-width: 150px;
}
.v4-list .filterbar select {
   max-width: 100px;
}
.v4-pagination {
   display: flex;
   gap: 15px;
   align-items: center;
   justify-content: flex-end;
   padding: 12px 0;
}
.v4-pagination button:disabled {
   opacity: 0.35;
}
.v4-data {
   display: grid;
   grid-template-columns: 150px 1fr;
   gap: 13px 18px;
   font-size: 13px;
   margin: 0;
}
.v4-data dt {
   color: var(--muted);
}
.v4-data dd {
   margin: 0;
   overflow-wrap: anywhere;
   white-space: pre-wrap;
   max-height: 300px;
   overflow: auto;
}
.v4-shortcuts {
   display: flex;
   gap: 9px;
   flex-wrap: wrap;
}
.v4-advanced {
   margin: 18px 0;
}
.v4-advanced summary {
   cursor: pointer;
   color: var(--muted);
   font-size: 13px;
   margin-bottom: 14px;
}
.v4-principle {
   display: flex;
   gap: 10px;
   align-items: center;
   color: var(--accent);
   font-size: 13px;
   margin-top: 24px;
}
.v4-faq {
   border: 1px solid var(--line);
   background: var(--surface);
   padding: 22px 25px;
   border-radius: 8px;
   margin-bottom: 12px;
}
.v4-faq summary {
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
}
.v4-faq p {
   margin: 15px 0 0;
}
.v4-preview {
   white-space: pre-wrap;
   word-break: break-word;
   font:
      13px/1.7 ui-monospace,
      monospace;
   max-height: 65vh;
   overflow: auto;
   background: var(--bg);
   padding: 18px;
   border: 1px solid var(--line);
   border-radius: 6px;
}
.v4-case-tabs {
   flex-wrap: wrap;
   gap: 10px 20px;
}
.v4-case-tabs a {
   font-size: 12px;
}
.v4-blocker {
   font-size: 12px;
   color: var(--warn);
   margin-top: 8px;
}
.v4-gateway-check {
   margin-bottom: 22px;
}
.public-header .v4-public-toggle {
   display: none;
   flex-shrink: 0;
}
/* PC DOM = visual: logo | nav | theme | extras | hamburger(ẩn) */
.public-header .public-nav-links {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 32px;
   flex: 1 1 auto;
   flex-wrap: nowrap;
   min-width: 0;
   overflow: hidden;
   color: var(--muted);
}
.public-header .public-nav-links a {
   flex: 0 1 auto;
   min-width: 0;
   max-width: 100%;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}
@media (max-width: 1200px) {
   .public-header .public-nav-links {
      gap: 18px;
   }
}
.public-header .public-actions {
   display: flex;
   align-items: center;
   flex-shrink: 0;
   gap: 8px;
}
.public-header .public-menu-extras {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: nowrap;
   flex-shrink: 0;
}
.public-header .public-menu-extras > * {
   flex: 0 0 auto;
}
.public-header .public-menu-extras .button {
   white-space: nowrap;
   max-width: none;
}
.v4-currency-warning {
   padding: 12px;
   background: var(--surface3);
   border-left: 3px solid var(--warn);
   font-size: 12px;
   margin: 10px 0;
}
.v4-demo-note {
   font-size: 12px;
   color: var(--muted);
   max-width: 800px;
}
.v4-toplinks {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-top: 20px;
}
.v4-dialog-context {
   padding: 12px 18px;
   border: 1px solid var(--line);
   background: var(--surface2);
   font-size: 12px;
   margin: 12px 0;
}
.empty {
   padding: 32px;
}
.record-strip {
   flex-wrap: wrap;
}
.section {
   margin-top: 30px;
}
.public-footer a,
.workspace-footer a {
   line-height: 1.8;
}
.public-footer {
   border-top: 1px solid var(--line);
   background: var(--surface);
}
@media (max-width: 1100px) {
   .workspace-main {
      padding: 28px 24px;
   }
   .v4-finance .facts {
      grid-template-columns: 1fr;
   }
   .v4-finance .fact {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
   }
   .v4-finance .fact strong {
      font-size: 15px;
   }
}
@media (max-width: 960px) {
   .public-header {
      position: relative;
      display: grid;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      column-gap: 8px;
      row-gap: 0;
   }
   .public-header .brand {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
   }
   .public-header .public-actions {
      grid-column: 2;
      grid-row: 1;
      margin-left: 0;
   }
   .public-header .v4-public-toggle {
      display: inline-flex;
      grid-column: 3;
      grid-row: 1;
   }
   /* Đóng: ẩn nav + extras; bar = logo | theme | hamburger */
   .public-header .public-nav-links,
   .public-header .public-menu-extras {
      display: none;
   }
   .public-header.v4-public-open .public-nav-links {
      display: flex;
      flex-direction: column;
      grid-column: 1 / -1;
      grid-row: 2;
      gap: 3px;
      flex: none;
      padding: 15px 0 8px;
      border-top: 1px solid var(--line);
      margin-top: 10px;
   }
   .public-header.v4-public-open .public-nav-links {
      overflow: visible;
   }
   .public-header.v4-public-open .public-nav-links a {
      padding: 12px 8px;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      max-width: none;
   }
   .public-header.v4-public-open .public-menu-extras {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      grid-column: 1 / -1;
      grid-row: 3;
      gap: 10px;
      padding: 8px 0 12px;
      border-top: 1px solid var(--line);
   }
   .public-header.v4-public-open .public-menu-extras .button {
      max-width: none;
      width: 100%;
      justify-content: center;
   }
   /* width 100% chỉ khi select nằm trong dropdown hamburger (mobile) */
   .public-header.v4-public-open .public-menu-extras .lang-select {
      width: 100%;
   }
   .public-header.v4-public-open .public-menu-extras .lang-select-trigger {
      width: 100%;
      justify-content: space-between;
   }
   .public-header.v4-public-open .v4-public-toggle {
      border-color: var(--accent);
   }
   .v4-stepper {
      gap: 7px;
   }
   .v4-stepper > div {
      padding: 12px;
   }
   .v4-context > span:last-child {
      margin-left: 0;
   }
}
@media (max-width: 680px) {
   :root {
      font-size: 15px;
   }
   .workspace-main {
      padding: 25px 16px 40px;
   }
   .page-head {
      display: block;
   }
   .page-head > .actions {
      margin-top: 15px;
      justify-content: flex-start;
   }
   .page-head h1 {
      font-size: 25px;
   }
   .v4-metrics {
      gap: 8px;
   }
   .v4-metrics .metric {
      padding: 16px 13px;
   }
   .v4-metrics .metric strong {
      font-size: 40px;
   }
   .v4-metrics .metric span {
      font-size: 12px;
   }
   .v4-context {
      gap: 9px;
      font-size: 12px;
   }
   .v4-context > span:last-child {
      width: 100%;
   }
   .v4-stepper {
      grid-template-columns: 1fr 1fr;
   }
   .v4-stepper > div {
      font-size: 12px;
   }
   .v4-checklist li {
      align-items: flex-start;
      flex-wrap: wrap;
   }
   .v4-checklist li small {
      margin-left: 33px;
      width: 100%;
   }
   .panel {
      padding: 20px;
   }
   .v4-data {
      grid-template-columns: 1fr;
      gap: 5px;
   }
   .v4-data dd {
      margin-bottom: 12px;
   }
   .v4-list .filterbar {
      flex-direction: row;
      flex-wrap: wrap;
   }
   .v4-list .filterbar input {
      width: 100%;
      flex-basis: 100%;
   }
   .v4-list .table-wrap {
      border: 0;
      background: none;
   }
   .v4-list table {
      display: block;
      min-width: 0;
      width: 100%;
      border: 0;
   }
   .v4-list thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(100%);
   }
   .v4-list tbody {
      display: block;
   }
   .v4-list tr {
      display: block;
      border: 1px solid var(--line);
      background: var(--surface);
      border-radius: 7px;
      padding: 7px 15px;
      margin: 10px 0;
   }
   .v4-list td {
      display: block;
      border: 0;
      padding: 9px 0;
      font-size: 13px;
      white-space: normal !important;
      word-break: break-word;
   }
   .v4-list td:before {
      content: attr(data-label);
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 3px;
   }
   .v4-list td .actions {
      justify-content: flex-start;
   }
   .v4-list .filterbar select {
      max-width: 85px;
   }
   .v4-pagination {
      justify-content: space-between;
   }
   .v4-faq {
      padding: 18px;
   }
   .public-header .brand img {
      max-width: 120px;
   }
   .public-header .actions {
      gap: 2px;
   }
   .public-header .button {
      max-width: 112px;
      font-size: 12px;
   }
   .public-header .v4-public-toggle {
      padding: 6px;
      min-width: 32px;
   }
   .public-header .tool {
      min-width: 30px;
   }
   .v4-preview {
      font-size: 12px;
   }
   .workspace-footer {
      font-size: 12px;
   }
   .v4-shortcuts .button {
      font-size: 12px;
      flex: 1 1 120px;
   }
   .form-grid {
      gap: 15px;
   }
   .modal-actions {
      position: sticky;
      bottom: 0;
      background: var(--surface);
      padding: 14px 0 4px;
      z-index: 2;
   }
   .topbar .crumb {
      max-width: 140px;
   }
   .section-title {
      align-items: flex-start;
      flex-wrap: wrap;
   }
}
@media (prefers-reduced-motion: reduce) {
   .v4-metrics .metric:hover {
      transform: none;
      transition: none;
   }
}
@media print {
   .v4-pagination,
   .filterbar,
   .v4-shortcuts,
   .v4-public-toggle {
      display: none !important;
   }
   .v4-list table,
   .v4-list tbody,
   .v4-list tr {
      display: table;
      width: 100%;
   }
   .v4-list thead {
      position: static;
      clip-path: none;
      width: auto;
      height: auto;
      display: table-header-group;
   }
   .v4-list td {
      display: table-cell;
   }
   .v4-list td:before {
      display: none;
   }
   .v4-metrics .metric:first-child {
      background: #eaf5f4;
      color: #153e3d;
   }
   .v4-data {
      font-size: 13px;
   }
}

.v4-contract-paper {
   background: #fbfcfd;
   color: #173342;
   border: 1px solid #c6d8e0;
   max-width: 800px;
   margin: auto;
   padding: 34px;
   border-radius: 4px;
   font-size: 14px;
   line-height: 1.7;
}
.v4-contract-paper h2 {
   font-size: 25px;
   margin: 24px 0 8px;
   color: #173342;
}
.v4-contract-paper h3 {
   font-size: 15px;
   margin: 23px 0 8px;
   color: #1c5c67;
}
.v4-contract-paper p {
   color: #254755;
}
.v4-paper-head {
   font-size: 12px;
   letter-spacing: 0.12em;
   color: #087f87;
   font-weight: 700;
   border-bottom: 2px solid #0c8c90;
   padding-bottom: 15px;
}
.v4-paper-head small {
   display: block;
   font-size: 12px;
   letter-spacing: 0.06em;
   color: #687c86;
}
.v4-paper-ref {
   font-size: 12px;
}
.v4-paper-terms {
   white-space: pre-wrap;
}
.v4-paper-disclaimer {
   margin-top: 30px;
   border-top: 1px solid #ccdce3;
   padding-top: 15px;
   color: #5c737e;
   font-size: 12px;
}
.document-view:has(.v4-contract-paper) {
   padding: 12px;
   background: var(--surface2);
}
@media (max-width: 680px) {
   .v4-contract-paper {
      padding: 22px;
      font-size: 13px;
   }
}

@media (max-width: 680px) {
   table.v4-mobile-table {
      display: block;
      min-width: 0 !important;
      width: 100%;
      border: 0;
   }
   .v4-mobile-table thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(100%);
   }
   .v4-mobile-table tbody {
      display: block;
   }
   .v4-mobile-table tr {
      display: block;
      border: 1px solid var(--line);
      background: var(--surface);
      border-radius: 7px;
      padding: 8px 12px;
      margin: 9px 0;
   }
   .v4-mobile-table td {
      display: block;
      border: 0;
      padding: 8px 0;
      white-space: normal !important;
      overflow-wrap: anywhere;
   }
   .v4-mobile-table td:before {
      content: attr(data-label);
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 4px;
   }
   .v4-mobile-table .empty:before {
      display: none;
   }
   .v4-mobile-table .actions {
      flex-wrap: wrap;
   }
   .panel .table-wrap:has(.v4-mobile-table) {
      border: 0;
      overflow: visible;
   }
}
/* V6 typed transaction rows */
.v6-row {
   border: 1px solid var(--line, #335260);
   border-radius: 12px;
   margin: 12px 0;
   padding: 16px;
}
.v6-row legend {
   padding: 0 8px;
   font-weight: 650;
}
.v6-row label {
   display: flex;
   flex-direction: column;
   gap: 6px;
   min-width: 0;
}
.v6-row .form-grid {
   margin-bottom: 12px;
}
.v6-row input,
.v6-row select {
   width: 100%;
   min-width: 0;
}
.v6-row-editor > label {
   font-weight: 700;
}

.v4-data > .v6-record-rows {
   grid-column: 1/-1;
}
.v6-record-rows .table-wrap {
   width: 100%;
   max-width: 100%;
   overflow: auto;
}
.v6-record-rows table {
   min-width: 0;
   width: 100%;
   table-layout: auto;
}
.v6-record-rows td,
.v6-record-rows th {
   padding: 12px 10px;
   overflow-wrap: normal;
   word-break: normal;
   white-space: nowrap;
}
.v6-record-rows dd {
   margin: 0;
}

/* Public shell — cùng max-width + gutter cho header / content / footer */
.public-header,
.public-main,
.site-footer .footer-inner {
   width: 100%;
   max-width: none;
   box-sizing: border-box;
   padding-left: max(var(--public-pad), calc((100vw - var(--public-max)) / 2));
   padding-right: max(var(--public-pad), calc((100vw - var(--public-max)) / 2));
}
.public-main {
   margin-left: auto;
   margin-right: auto;
}

/* Public header typography */
.public-header,
.public-header nav a,
.public-header .public-nav-links a {
   font-size: 16px;
}

/* Logo header + footer: giống nhau — ảnh trên, PARTNER NETWORK dưới */
.public-header .brand,
.site-footer .footer-brand .brand {
   display: inline-flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   flex-shrink: 0;
}
.public-header .brand img,
.site-footer .footer-brand .brand img {
   width: 148px;
   height: auto;
   object-fit: contain;
   display: block;
}
.public-header .brand span,
.site-footer .footer-brand .brand span {
   font-size: 12px;
   letter-spacing: 0.24em;
   font-weight: 650;
   color: var(--muted);
   margin-left: 3px;
}
.site-footer .footer-brand .brand {
   margin-bottom: 14px;
}

/* Site footer — nền full màn, content max-width như khu vực public cũ */
.site-footer {
   display: block;
   width: 100%;
   max-width: none;
   box-sizing: border-box;
   margin-top: 48px;
   margin-left: 0;
   margin-right: 0;
   padding: 48px 0 28px;
   background: #0b1a22;
   border-top: 1px solid var(--line);
   color: #c5d5dd;
}
.public-footer.site-footer {
   /* Dùng 100% thay vì 100vw để tránh scroll ngang (vw gồm cả scrollbar) */
   width: 100%;
   max-width: 100%;
   position: relative;
   left: auto;
   right: auto;
   margin-left: 0;
   margin-right: 0;
}
.site-footer .footer-inner {
   margin: 0 auto;
}
.site-footer .footer-grid {
   display: grid;
   grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 1fr));
   gap: 36px 28px;
   margin: 0;
}
.site-footer .footer-grid-compact {
   grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.7fr));
   align-items: start;
}
.site-footer .footer-tagline {
   margin: 0 0 14px;
   color: #9fb5c0;
   font-size: 13px;
   max-width: 340px;
   line-height: 1.55;
}
.site-footer .footer-company {
   margin: 0 0 16px;
   color: #eef5f6;
   font-size: 14px;
}
.site-footer .footer-company b {
   font-weight: 650;
}
.site-footer .footer-company a,
.site-footer .footer-bar a {
   color: #eef5f6;
   text-decoration: none;
}
.site-footer .footer-company a:hover,
.site-footer .footer-bar a:hover {
   color: #51ddd0;
}
.site-footer .footer-contact {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 12px;
}
.site-footer .footer-contact li {
   display: grid;
   grid-template-columns: 18px 1fr;
   gap: 10px;
   align-items: start;
   font-size: 13px;
   line-height: 1.55;
   color: #b7c9d2;
}
.site-footer .footer-contact .icon {
   width: 16px;
   height: 16px;
   margin-top: 2px;
   color: #7ec8c0;
}
.site-footer .footer-contact a,
.site-footer .footer-web a,
.site-footer .footer-inline a {
   color: #d7e4ea;
}
.site-footer .footer-contact a:hover,
.site-footer .footer-web a:hover,
.site-footer .footer-link:hover {
   color: #51ddd0;
}
.site-footer .footer-web {
   margin: 14px 0 0;
   font-size: 13px;
}
.site-footer .footer-inline {
   margin: 0;
   font-size: 13px;
   color: #9fb5c0;
   line-height: 1.7;
}
.site-footer .footer-col {
   display: flex;
   flex-direction: column;
   gap: 10px;
   min-width: 0;
}
.site-footer .footer-col h3 {
   margin: 0 0 6px;
   color: #fff;
   font-size: 15px;
   font-weight: 650;
}
.site-footer .footer-link,
.site-footer a.footer-link {
   display: block;
   color: #a9bfc9;
   font-size: 13px;
   line-height: 1.45;
   padding: 0;
   border: 0;
   background: none;
   min-height: 0;
   text-align: left;
   box-shadow: none;
}
.site-footer .footer-bar {
   margin-top: 28px;
   padding-top: 18px;
   border-top: 1px solid #243844;
   display: flex;
   justify-content: space-between;
   gap: 18px;
   flex-wrap: wrap;
   align-items: center;
}
.site-footer .footer-bar p {
   margin: 0;
   font-size: 12px;
   color: #8aa0ab;
}
.site-footer .footer-bar-links {
   display: flex;
   flex-wrap: wrap;
   gap: 18px;
   justify-content: flex-end;
}
.site-footer .footer-bar-links .footer-link {
   display: inline;
   font-size: 12px;
   color: #9fb5c0;
}
.workspace-footer.site-footer {
   margin-top: 24px;
   padding: 28px 24px 20px;
   background: transparent;
   border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
   .site-footer .footer-grid,
   .site-footer .footer-grid-compact {
      grid-template-columns: 1fr 1fr;
      gap: 28px 22px;
   }
}
@media (max-width: 680px) {
   :root {
      --public-pad: 5%;
   }
   .site-footer {
      padding: 36px 0 24px;
   }
   .site-footer .footer-grid,
   .site-footer .footer-grid-compact {
      grid-template-columns: 1fr;
      gap: 26px;
   }
   .site-footer .footer-bar {
      flex-direction: column;
      align-items: flex-start;
   }
   .site-footer .footer-bar-links {
      justify-content: flex-start;
   }
   .public-header .brand img,
   .site-footer .footer-brand .brand img {
      width: 115px;
   }
   .public-header .brand span,
   .site-footer .footer-brand .brand span {
      font-size: 12px;
   }
}

/* Language select (cờ + VI/EN) */
.lang-select {
   position: relative;
   display: inline-flex;
   align-items: center;
   width: auto;
}
.lang-select-trigger {
   appearance: none;
   display: inline-flex;
   align-items: center;
   justify-content: flex-start;
   gap: 8px;
   width: auto;
   min-width: 0;
   min-height: 40px;
   padding: 0 10px;
   border-radius: 8px;
   cursor: pointer;
   border: 1px solid var(--line);
   background: var(--surface2);
   color: var(--text);
   font: inherit;
   font-size: 13px;
   font-weight: 600;
}
.lang-select-trigger:hover {
   border-color: var(--accent);
}
.lang-select-trigger[aria-expanded='true'] {
   border-color: var(--accent);
}
.lang-select-current {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   min-width: 0;
}
.lang-flag {
   width: 20px;
   height: 20px;
   border-radius: 50%;
   display: block;
   object-fit: cover;
   flex: 0 0 auto;
}
.lang-code {
   letter-spacing: 0.04em;
}
.lang-caret {
   opacity: 0.75;
   flex: 0 0 auto;
}
.lang-select-menu {
   position: absolute;
   top: calc(100% + 6px);
   left: 0;
   right: auto;
   width: max-content;
   min-width: 100%;
   box-sizing: border-box;
   z-index: 80;
   margin: 0;
   padding: 6px;
   list-style: none;
   border: 1px solid var(--line);
   border-radius: 10px;
   background: var(--surface);
   box-shadow: 0 14px 36px #0006;
}
.lang-select-menu[hidden] {
   display: none !important;
}
.lang-select-menu li {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 8px;
   cursor: pointer;
   font-size: 13px;
   color: var(--text);
}
.lang-select-menu li:hover,
.lang-select-menu li.is-active {
   background: var(--surface2);
}
.lang-select-menu li.is-active {
   color: var(--accent);
}

/* Cookie consent */
.cookie-consent-root {
   position: relative;
   z-index: 120;
}
.cookie-banner-spacer {
   height: 0;
}
.cookie-banner {
   position: fixed;
   left: 16px;
   right: 16px;
   bottom: 16px;
   z-index: 121;
   display: flex;
   gap: 18px;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   max-width: 1100px;
   margin: 0 auto;
   padding: 18px 20px;
   background: #102731;
   border: 1px solid #2a4552;
   border-radius: 14px;
   box-shadow: 0 18px 50px #0007;
   color: #e8f1f4;
}
.cookie-banner[hidden],
.cookie-banner-spacer[hidden],
.cookie-modal[hidden],
.cookie-fab[hidden] {
   display: none !important;
}
.cookie-banner-copy {
   margin: 0;
   flex: 1 1 320px;
   min-width: 0;
}
.cookie-banner-copy strong {
   display: block;
   margin-bottom: 6px;
   font-size: 15px;
   color: #fff;
}
.cookie-banner-copy span {
   display: block;
   font-size: 13px;
   line-height: 1.55;
   color: #b7c9d2;
}
.cookie-banner-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   justify-content: flex-end;
}
.cookie-btn {
   appearance: none;
   border-radius: 999px;
   min-height: 40px;
   padding: 0 16px;
   font: inherit;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
}
.cookie-btn-outline {
   background: transparent;
   border: 1px solid #4d6a76;
   color: #e8f1f4;
}
.cookie-btn-outline:hover {
   border-color: #51ddd0;
   color: #51ddd0;
}
.cookie-btn-primary {
   background: #51ddd0;
   border: 1px solid #51ddd0;
   color: #062626;
}
.cookie-btn-primary:hover {
   filter: brightness(1.05);
}
.cookie-fab {
   position: fixed;
   left: 18px;
   bottom: 18px;
   z-index: 122;
   width: 48px;
   height: 48px;
   border-radius: 50%;
   border: 1px solid #2f4a56;
   background: #0f222b;
   color: #51ddd0;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 10px 28px #0006;
   cursor: pointer;
}
.cookie-fab:hover {
   border-color: #51ddd0;
}
.cookie-modal {
   position: fixed;
   inset: 0;
   z-index: 130;
   display: grid;
   place-items: center;
   padding: 18px;
   overflow: hidden;
}
.cookie-modal-backdrop {
   position: absolute;
   inset: 0;
   background: #0008;
}
.cookie-modal-panel {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-rows: auto minmax(0, 1fr) auto;
   width: min(680px, 100%);
   max-height: min(86vh, 100%, 820px);
   max-height: min(86dvh, 100%, 820px);
   overflow: hidden;
   background: #102731;
   border: 1px solid #2a4552;
   border-radius: 16px;
   box-shadow: 0 24px 70px #0008;
   color: #e8f1f4;
}
.cookie-modal-head,
.cookie-modal-foot {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 18px 20px;
   border-bottom: 1px solid #243844;
   flex-shrink: 0;
}
.cookie-modal-foot {
   border-bottom: 0;
   border-top: 1px solid #243844;
   justify-content: flex-end;
}
.cookie-modal-head h2 {
   margin: 0;
   font-size: 18px;
   color: #fff;
}
.cookie-modal-close {
   width: 36px;
   height: 36px;
   border-radius: 8px;
   border: 1px solid #355260;
   background: transparent;
   color: #c5d5dd;
   cursor: pointer;
   font-size: 16px;
}
.cookie-modal-body {
   min-height: 0;
   overflow-x: hidden;
   overflow-y: auto;
   overscroll-behavior: contain;
   padding: 8px 20px 16px;
   -webkit-overflow-scrolling: touch;
}
.cookie-pref-row {
   display: grid;
   grid-template-columns: 1fr auto;
   gap: 16px;
   align-items: center;
   padding: 16px 0;
   border-bottom: 1px solid #243844;
}
.cookie-pref-row:last-child {
   border-bottom: 0;
}
.cookie-pref-row b {
   display: block;
   margin-bottom: 6px;
   color: #fff;
   font-size: 14px;
}
.cookie-pref-row p {
   margin: 0;
   color: #9fb5c0;
   font-size: 13px;
   line-height: 1.55;
}
.cookie-always {
   display: inline-flex;
   align-items: center;
   min-height: 34px;
   padding: 0 12px;
   border-radius: 999px;
   background: #17323e;
   color: #7ec8c0;
   font-size: 12px;
   font-weight: 650;
   white-space: nowrap;
}
.cookie-switch {
   width: 48px;
   height: 28px;
   border-radius: 999px;
   border: 0;
   padding: 3px;
   background: #355260;
   cursor: pointer;
   position: relative;
}
.cookie-switch i {
   display: block;
   width: 22px;
   height: 22px;
   border-radius: 50%;
   background: #d7e4ea;
   transition:
      transform 0.15s ease,
      background 0.15s ease;
}
.cookie-switch.is-on {
   background: #1f7f78;
}
.cookie-switch.is-on i {
   transform: translateX(20px);
   background: #51ddd0;
}
body.cookie-modal-open {
   overflow: hidden;
}
@media (max-width: 680px) {
   .cookie-banner {
      left: 10px;
      right: 10px;
      bottom: 10px;
      padding: 16px;
      flex-direction: column;
      align-items: stretch;
   }
   .cookie-banner-actions {
      width: 100%;
   }
   .cookie-banner-actions .cookie-btn {
      flex: 1 1 auto;
   }
   .cookie-pref-row {
      grid-template-columns: 1fr;
      gap: 12px;
   }
   .cookie-fab {
      left: 12px;
      bottom: 12px;
   }
}
