/* Lop giao dien thuong mai dung chung tinh than voi trang Nap: gon, ro va uu tien thao tac. */
:root {
  --ink: #123c37; --ink-2: #1c4c44; --ink-foot: #10332f;
  --paper: #f5f3ec; --paper-2: #ece8dc; --paper-3: #d7c49a; --field: #fffdf7;
  --brown: #183a34; --brown-2: #345747; --brown-mute: #5f7168; --tan: #cbbd9b;
  --gold: #d9b56c; --gold-hi: #f4dfaa; --gold-lo: #987139;
  --red: #a53524; --red-hi: #c95035; --red-lo: #752719; --ink-red: #872e21;
  --night-text: #fff7e7; --night-mute: #d9dcc5; --slot: #163c33;
  --d0: #233e36; --d1: #296e20; --d5: #826000;
  --f-body: "Be Vietnam Pro", "Roboto", system-ui, sans-serif;
  --f-display: "Space Grotesk", "Cafeta", sans-serif;
}

body.mk { background: var(--paper); font-size: 14px; }
.wrap { width: min(1180px, 100% - 44px); }

/* Cung mot shell voi trang nap. */
.top { min-height: 76px; padding-block: 0; gap: 44px; flex-wrap: nowrap; background: var(--ink); box-shadow: 0 1px 0 var(--gold-lo), 0 6px 20px #102e2826; }
.brand img { width: 128px; height: auto; }
.tabs { align-self: stretch; align-items: center; gap: 28px; }
.tabs a { display: grid; place-items: center; align-self: stretch; min-width: 0; padding: 0 2px; border: 0; border-radius: 0; color: #c8d6c7; font: 600 14px/1 var(--f-body); }
.tabs a:hover { color: var(--gold-hi); background: transparent; }
.tabs a.on { position: relative; color: var(--gold-hi); background: transparent; border: 0; text-shadow: none; }
.tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.who { gap: 10px; }
.who .name { color: var(--gold-hi); font: 600 14px/1 var(--f-body); }
.who .note { font-size: 11px; }
.who .money { padding: 3px 8px 3px 4px; }
.who > .btn { min-height: 36px; padding: 0 12px; color: #f5f7ee; background: transparent; border: 1px solid #83a096; border-radius: 8px; box-shadow: none; text-shadow: none; font: 600 13px/1 var(--f-body); }
.who > .btn:hover { color: var(--gold-hi); background: transparent; border-color: var(--gold); box-shadow: none; transform: none; }

/* Tieu de va dieu huong chuc nang thay cho hero lon cu. */
.market-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-top: 32px; }
.market-head h1 { margin: 0; color: var(--ink); font: 700 31px/1.15 var(--f-display); letter-spacing: -.025em; }
.market-head p { margin: 7px 0 0; color: var(--brown-mute); }
.market-nav { display: flex; gap: 4px; padding: 4px; background: #e8e4d8; border-radius: 8px 14px; }
.market-nav a { min-width: 104px; padding: 9px 13px; color: var(--brown-mute); text-align: center; text-decoration: none; border-radius: 6px 11px; font-weight: 700; }
.market-nav a:hover { color: var(--ink); background: #f7f4eb; }
.market-nav a.on { color: #fff7e7; background: var(--ink); }
#view { position: relative; padding-bottom: 16px; }

/* Bo khung long, giu mot lop panel nhu trang nap. */
.panel::after, .dlgf::after, .filters::after { display: none; }
.filters { margin: 22px 0 16px; padding: 22px; background: var(--field); border: 1px solid #d2ddd4; border-radius: 16px; box-shadow: 0 16px 34px -28px #123c37a8; }
.chips { gap: 6px; padding: 0 0 12px; border-bottom: 1px solid #e1ddd1; scrollbar-width: thin; }
.mk button.chip { min-height: 37px; padding: 7px 11px; color: var(--brown-mute); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; text-shadow: none; font: 700 13px/1 var(--f-body); }
.mk button.chip:hover { color: var(--red-lo); background: #f2eee4; transform: none; }
.mk button.chip.on { color: var(--red-lo); background: transparent; border-bottom-color: var(--red); box-shadow: none; }
.row-f { gap: 13px; margin-top: 2px; }
.field { gap: 6px; color: var(--brown-mute); font: 600 12px/1.5 var(--f-body); }
.mk input, .mk select { height: 42px; color: var(--brown); background: #fff; border: 1px solid #b7c5bd; border-radius: 8px; box-shadow: none; caret-color: var(--red); }
.mk input::placeholder { color: #78877f; }
.mk input:focus, .mk select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px #28564b1a; }
.mk input[type=checkbox] { height: 18px; accent-color: var(--ink); }

.mk button, .btn { min-height: 42px; border-width: 1px; border-radius: 8px 12px; background: linear-gradient(#bc4933, #8b2e22); box-shadow: 0 4px 9px -6px #54221990; transition: transform .18s, box-shadow .18s, border-color .18s, background-color .18s; }
.mk button:hover:not(:disabled), .btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 7px 12px -8px #54221980; }
.mk button:active:not(:disabled), .btn:active { transform: none; }
.mk button.ghost, .btn.ghost { color: var(--ink); background: transparent; border-color: var(--tan); box-shadow: none; }
.top button.ghost { color: var(--night-text); border-color: #83a096; }

.meta { margin: 7px 0 13px; color: var(--ink); font: 600 16px/1.3 var(--f-body); }
.meta button { font-size: 13px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mk button.card2 { min-height: 146px; padding: 16px; gap: 13px; color: var(--brown); background: #fff; border: 1px solid #ccd9d1; border-radius: 13px; box-shadow: none; text-shadow: none; }
.mk button.card2:hover { border-color: var(--gold-lo); background: #fffdf7; box-shadow: 0 10px 20px -16px #123c3780; }
.card2 .nm { margin-bottom: 4px; font: 600 17px/1.3 var(--f-body); }
.card2 .sub { color: var(--brown-mute); font-size: 11px; line-height: 1.55; }
.card2 .pr { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e5e0d3; font-size: 14px; }
.ico { background: var(--slot); border-radius: 10px; box-shadow: inset 0 0 0 1px #ffffff12; }
.grid > .empty { grid-column: 1 / -1; }
.empty { padding: 42px 22px; color: var(--brown-mute); background: #fffdf780; border: 1px dashed #9da78f; border-radius: 13px; }
.skel { min-height: 146px; background-color: var(--paper-2); border-radius: 13px; }

.split { gap: 22px; grid-template-columns: minmax(0, 1fr) 380px; }
.panel { padding: 28px; background: var(--field); border: 1px solid #d2ddd4; border-radius: 16px; box-shadow: 0 16px 34px -28px #123c37a8; }
.panel h3 { color: var(--ink); font: 700 24px/1.2 var(--f-display); }
.sticky { top: 98px; }
.bag { gap: 12px; padding-block: 12px; }
.mk button.slot { border-radius: 10px; }
.mk button.slot.sel { box-shadow: 0 0 0 2px var(--gold-lo); }
.seg { padding: 3px; background: var(--paper-2); border-radius: 8px 12px; }
.mk .seg button { color: var(--brown); background: transparent; border: 0; box-shadow: none; text-shadow: none; }
.mk .seg button.on { color: var(--gold-hi); background: var(--ink); }
.hrow { padding: 16px 2px; gap: 15px; background: transparent; border: 0; border-bottom: 1px solid #ccd9d1; border-radius: 0; }
.hrow .nm { font: 600 17px/1.3 var(--f-body); }
.hrow .r { gap: 7px; }

.ov { background: #092c29c9; backdrop-filter: blur(4px); }
.dlgf { width: min(520px, 100%); background: var(--field); border-radius: 16px; animation: none; }
.dlg { padding: 30px; background: var(--field); border-radius: inherit; }
.dlg .lines { background: var(--ink); border-color: #61745a; border-radius: 12px; }
.dlg .x { width: 36px; min-height: 36px; padding: 8px; }
.toast { background: var(--ink); border-radius: 12px; }

.foot { margin-top: 38px; background: var(--ink-foot); border-top: 1px solid var(--gold-lo); }
.foot__in { gap: 24px; }
.foot a { color: var(--gold-hi); }

@media (max-width: 860px) {
  .top { gap: 18px; }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .who { gap: 8px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .top { min-height: auto; padding: 8px 14px; gap: 8px 18px; flex-wrap: wrap; }
  .brand img { width: 104px; }
  .tabs { order: 3; width: 100%; height: 42px; gap: 22px; }
  .tabs a { flex: 1; }
  .who { max-width: calc(100% - 122px); margin-left: auto; font-size: 12px; }
  .who .note, .who .money { display: none; }
  .market-head { display: block; padding-top: 24px; }
  .market-head h1 { font-size: 27px; }
  .market-nav { margin-top: 17px; }
  .market-nav a { flex: 1; min-width: 0; padding-inline: 8px; font-size: 12px; }
  .filters { margin-top: 16px; padding: 18px; }
  .row-f { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .row-f .grow { grid-column: 1 / -1; }
  .row-f .field, .row-f input, .row-f select { min-width: 0; }
  .grid { grid-template-columns: 1fr; }
  .panel, .dlg { padding: 22px; }
  .foot__in { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .mk button:hover:not(:disabled), .btn:hover { transform: none; }
}
