/* Giá Nông Sản — UI 2026 */
:root {
  --bg: #f4f7f2;
  --bg-2: #ffffff;
  --ink: #14201a;
  --muted: #5c6b62;
  --line: rgba(20, 40, 28, 0.1);
  --green: #1f9d5a;
  --green-2: #0d7a42;
  --lime: #9fe870;
  --gold: #e8a317;
  --orange: #f07830;
  --red: #e04b4b;
  --blue: #2f7cf6;
  --grad: linear-gradient(135deg, #1f9d5a 0%, #2f7cf6 55%, #0d7a42 100%);
  --grad-warm: linear-gradient(135deg, #e8a317, #f07830);
  --shadow: 0 18px 50px rgba(20, 40, 28, 0.1);
  --radius: 20px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  --header: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; border: none; outline: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px rgba(31, 157, 90, 0.5);
}

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(31,157,90,.25), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(47,124,246,.2), transparent 45%),
    #0a1610;
  transition: opacity .55s var(--ease), visibility .55s, transform .55s var(--ease);
  /* CSS fallback: auto-hide if JS fails */
  animation: preloaderAutoHide 2.2s var(--ease) 0.3s forwards;
}
.preloader.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.03);
  pointer-events: none !important;
  animation: none !important;
}
@keyframes preloaderAutoHide {
  0%, 70% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader-inner { text-align: center; color: #e8f5ee; }
.preloader-logo {
  width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 24px;
  background: var(--grad); display: grid; place-items: center;
  font-size: 2.2rem; box-shadow: 0 20px 50px rgba(31,157,90,.4);
  animation: breath 2s ease-in-out infinite;
  overflow: hidden; padding: 0;
}
.preloader-logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.preloader-brand {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em;
}
.preloader-brand span { color: var(--lime); }
.preloader-brand .logo-vn {
  background: var(--lime) !important;
  color: #0b1f14 !important;
  margin-left: .2rem;
  padding: .08rem .4rem;
  border-radius: 6px;
  font-size: .72em;
}
.preloader-bar {
  width: 200px; height: 4px; margin: 1.4rem auto 0; border-radius: 99px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #2f7cf6);
  animation: load 1.4s var(--ease) forwards;
}
@keyframes breath { 50% { transform: scale(1.06); } }
@keyframes load { to { width: 100%; } }

/* Header — luôn 1 hàng gọn */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header);
  min-height: var(--header);
  display: flex; align-items: center;
  background: rgba(244,247,242,.92); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: .3s;
}
.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20,40,28,.06);
}
.header-inner {
  width: min(1200px, calc(100% - 1.25rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 0.65rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.logo {
  display: flex; align-items: center; gap: .45rem;
  font-weight: 800; font-family: var(--display);
  text-decoration: none; color: var(--ink);
  flex: 0 0 auto;
  min-width: 0;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(31,157,90,.3);
  overflow: hidden; flex-shrink: 0; padding: 0;
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo-text {
  font-size: clamp(.82rem, 1.6vw, 1.02rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.logo-text span { color: var(--green); }
.logo-text .logo-vn {
  display: inline-block;
  margin-left: .12rem;
  padding: .04rem .28rem;
  border-radius: 5px;
  background: var(--green);
  color: #fff !important;
  font-size: .7em;
  letter-spacing: .04em;
  vertical-align: middle;
}
/* Menu 1 hàng: không wrap, chữ gọn */
.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; height: 0; }
.nav a {
  flex: 0 0 auto;
  padding: .38rem .55rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.2;
  min-height: 0 !important;
  transition: .15s background, .15s color;
}
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(31,157,90,.1); }
.header-actions {
  display: flex;
  gap: .35rem;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}
.header-actions .live-pill { flex-shrink: 0; }
.header-actions #authBox {
  display: flex; align-items: center; gap: .3rem; flex-wrap: nowrap;
}
.header-actions .btn-sm {
  padding: .35rem .65rem;
  font-size: .78rem;
  white-space: nowrap;
}
.live-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600;
  background: rgba(31,157,90,.12); color: var(--green-2);
  white-space: nowrap;
}
.live-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(31,157,90,.5); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(31,157,90,0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.2rem; border-radius: 99px; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px rgba(31,157,90,.28);
}
.btn-ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative; padding: 2.5rem 0 1.5rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(31,157,90,.14), transparent),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(47,124,246,.1), transparent),
    radial-gradient(ellipse 40% 40% at 70% 90%, rgba(232,163,23,.08), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 99px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 420px;
}
.hero-stats .stat {
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem; backdrop-filter: blur(8px);
}
.hero-stats strong {
  display: block; font-family: var(--display); font-size: 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats p { font-size: .78rem; color: var(--muted); }

/* Hero visual collage */
.hero-visual { position: relative; min-height: 420px; }
.hero-main-card {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8);
  transform: rotate(-2deg); transition: transform .5s var(--ease);
  aspect-ratio: 4/3;
}
.hero-main-card:hover { transform: rotate(0) scale(1.02); }
.hero-main-card img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 16s ease-in-out infinite alternate;
}
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate(-2%, -1%); }
}
.hero-main-card .cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  padding: .7rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  font-weight: 600; font-size: .9rem;
}
.float-img {
  position: absolute; border-radius: 18px; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 16px 40px rgba(20,40,28,.18);
  animation: floatY 5s ease-in-out infinite;
}
.float-img img { width: 100%; height: 100%; object-fit: cover; }
.float-1 { width: 140px; height: 140px; top: -10px; right: -8px; animation-delay: -.5s; }
.float-2 { width: 120px; height: 120px; bottom: 20px; left: -16px; animation-delay: -2s; }
.float-3 {
  width: 100px; height: 100px; bottom: -8px; right: 40px; animation-delay: -3.2s;
  border-radius: 50%;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Search bar */
.search-panel {
  margin: 0 auto 2rem; position: relative; z-index: 5;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1rem 1.1rem;
}
.search-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .65rem;
}
.search-row input, .search-row select {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
}
.search-row input:focus, .search-row select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}

/* Price blocks at top of homepage */
.price-top-bar {
  padding: 1rem 0 0;
}
.price-top-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.price-top-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -.02em;
  margin: 0;
}
.price-top-sub {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
#trong-nuoc.section,
#quoc-te.section {
  padding-top: 1.1rem;
  padding-bottom: 1.5rem;
}
#trong-nuoc .card.table-wrap,
#quoc-te .card.table-wrap {
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(20,40,28,.07);
}

/* Section */
.section { padding: 2rem 0 3rem; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -.02em;
}
.section-head p { color: var(--muted); font-size: .95rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .4rem .8rem; border-radius: 99px; font-size: .82rem; font-weight: 600;
  background: #fff; border: 1px solid var(--line); cursor: pointer; transition: .2s;
}
.chip:hover, .chip.active {
  background: rgba(31,157,90,.1); border-color: rgba(31,157,90,.35); color: var(--green-2);
}

/* Priority products */
.priority-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.priority-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20,40,28,.06);
  transition: transform .4s var(--ease), box-shadow .4s;
  cursor: pointer;
}
.priority-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(20,40,28,.12);
}
.priority-card .img-wrap {
  position: relative; aspect-ratio: 16/11; overflow: hidden;
}
.priority-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.priority-card:hover img { transform: scale(1.08); }
.priority-card .rank {
  position: absolute; top: 12px; left: 12px;
  background: var(--grad-warm); color: #fff; font-weight: 800; font-size: .75rem;
  padding: .3rem .65rem; border-radius: 99px;
}
.priority-card .body { padding: 1rem 1.1rem 1.15rem; }
.priority-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.priority-card .price {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--green-2);
}
.priority-card .meta {
  display: flex; justify-content: space-between; gap: .5rem;
  margin-top: .45rem; font-size: .8rem; color: var(--muted);
}
.change-up { color: var(--green); font-weight: 700; }
.change-down { color: var(--red); font-weight: 700; }

/* Tables */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20,40,28,.05); overflow: hidden;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: #f8faf7; font-weight: 700;
}
tr:hover td { background: rgba(31,157,90,.03); }
.prod-cell { display: flex; align-items: center; gap: .7rem; }
.prod-cell img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.price-num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700;
}
.badge-intl { background: rgba(47,124,246,.12); color: #1d5fd0; }
.badge-vn { background: rgba(31,157,90,.12); color: var(--green-2); }

/* Auth modal / pages */
.auth-page {
  min-height: calc(100dvh - var(--header));
  display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(31,157,90,.12), transparent 50%),
    var(--bg);
}
.auth-card {
  width: min(440px, 100%); background: #fff; border-radius: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 2rem;
}
.auth-card h1 { font-family: var(--display); font-size: 1.6rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.4rem; font-size: .92rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
}
.field textarea { min-height: 80px; resize: vertical; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.tabs button {
  flex: 1; padding: .65rem; border-radius: 12px; font-weight: 600; cursor: pointer;
  background: var(--bg); color: var(--muted);
}
.tabs button.active { background: var(--grad); color: #fff; }
.msg { margin-top: .8rem; font-size: .88rem; border-radius: 10px; padding: .65rem .8rem; }
.msg-err { background: #fde8e8; color: #b42318; }
.msg-ok { background: #e8f8ef; color: #067647; }
.demo-hint {
  margin-top: 1rem; padding: .8rem; border-radius: 12px; background: #f4faf6;
  font-size: .82rem; color: var(--muted); line-height: 1.55;
}
.demo-hint code {
  background: #fff; padding: .1rem .35rem; border-radius: 6px; border: 1px solid var(--line);
  font-size: .8rem;
}

/* Dealer dashboard */
.dash-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.25rem;
}
.form-card, .list-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 10px 30px rgba(20,40,28,.05);
}
.form-card h2, .list-card h2 {
  font-family: var(--display); font-size: 1.2rem; margin-bottom: 1rem;
}

/* Toast */
.toast-wrap {
  position: fixed; right: 16px; bottom: 16px; z-index: 300;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  background: #14201a; color: #fff; padding: .75rem 1rem; border-radius: 12px;
  font-size: .88rem; box-shadow: 0 12px 30px rgba(0,0,0,.2);
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Footer */
.footer {
  margin-top: 2rem; padding: 2rem 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.footer-seo {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  width: 100%;
}
.footer-seo h3 {
  margin: 0 0 .55rem; font-size: .92rem; font-family: var(--display); color: var(--ink);
}
.seo-kw-cloud {
  display: flex; flex-wrap: wrap; gap: .45rem .55rem; list-style: none; margin: 0; padding: 0;
}
.seo-kw-cloud a {
  display: inline-block; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(31,157,90,.08); border: 1px solid rgba(31,157,90,.18);
  color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.seo-kw-cloud a:hover { background: rgba(31,157,90,.16); color: var(--green, #1f9d5a); }

/* SEO product landing + homepage SEO block */
.seo-breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.seo-breadcrumb a { color: var(--green, #1f9d5a); font-weight: 600; text-decoration: none; }
.seo-product-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start;
  margin-bottom: 1.5rem;
}
.seo-kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green, #1f9d5a); margin: 0 0 .4rem;
}
.seo-product-hero h1 {
  font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 .55rem; letter-spacing: -.02em;
}
.seo-lead { color: var(--muted); line-height: 1.55; margin: 0 0 1rem; max-width: 40rem; }
.seo-cta-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.seo-price-card {
  background: linear-gradient(135deg, #0f2419 0%, #1a3d2a 100%);
  color: #e8f5ee; border-radius: 18px; padding: 1.2rem 1.25rem;
  box-shadow: 0 14px 36px rgba(15,36,25,.18);
}
.seo-price-card .lab { font-size: .8rem; opacity: .8; margin-bottom: .25rem; }
.seo-price-card .px { font-family: var(--display); font-size: 1.8rem; font-weight: 800; }
.seo-price-card .px small { font-size: .5em; opacity: .75; font-weight: 600; }
.seo-price-card .meta {
  display: flex; justify-content: space-between; gap: .5rem; margin-top: .55rem;
  font-size: .88rem; font-weight: 700;
}
.seo-price-card .meta .up { color: #6ee7a8; }
.seo-price-card .meta .down { color: #fca5a5; }
.seo-price-card .note { margin: .65rem 0 0; font-size: .78rem; opacity: .75; line-height: 1.4; }
.seo-block {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.15rem 1.25rem; margin-bottom: 1rem;
}
.seo-block h2 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .55rem; }
.seo-block p, .seo-block li { color: var(--muted); line-height: 1.55; }
.seo-block ul { margin: .4rem 0 0; padding-left: 1.15rem; }
.seo-faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.seo-faq details:first-child { border-top: 0; }
.seo-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.seo-faq p { margin: .45rem 0 0; }
.seo-kw-list { columns: 2; gap: 1.5rem; margin: .4rem 0 0; padding-left: 1.15rem; }
.seo-kw-list a { color: var(--green, #1f9d5a); font-weight: 600; text-decoration: none; }
.seo-kw-list a:hover { text-decoration: underline; }
.seo-cta-box {
  background: linear-gradient(90deg, rgba(31,157,90,.1), rgba(47,124,246,.06));
}
.seo-home-block { margin: 1.5rem 0 0; }
.seo-home-block h2 {
  font-family: var(--display); font-size: 1.2rem; margin: 0 0 .35rem;
}
.seo-home-block > p { color: var(--muted); margin: 0 0 .85rem; font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) {
  .seo-product-hero { grid-template-columns: 1fr; }
  .seo-kw-list { columns: 1; }
}

/* Mobile / tablet nav — hamburger sớm để không vỡ 2 hàng */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 10px;
}
.nav-toggle:hover { background: rgba(31,157,90,.08); }
.nav-toggle span { height: 2px; width: 18px; background: var(--ink); border-radius: 2px; display: block; }

/* Desktop hẹp / tablet: 1 hàng = logo + actions + hamburger */
@media (max-width: 1100px) {
  .hero-grid, .dash-grid, .priority-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; max-width: 420px; margin: 0 auto; }
  .header { height: var(--header); }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .15rem;
    padding: .65rem .75rem .85rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(20,40,28,.1);
    z-index: 1002;
    overflow: visible;
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }
  .nav.open {
    display: flex !important;
  }
  .nav a {
    width: 100%;
    padding: .75rem .9rem;
    border-radius: 12px;
    font-size: .92rem;
    min-height: 44px !important;
  }
  .nav-toggle { display: flex; }
  .header-actions .live-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main-card img, .float-img, .preloader-logo, .live-pill .dot { animation: none !important; }
}

/* ========== Full-bleed hero slider ========== */
.hero-bleed {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(78vh, 640px);
  min-height: 380px;
  overflow: hidden;
  background: #0a1610;
}
.bleed-track { position: absolute; inset: 0; }
.bleed-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  z-index: 1;
}
.bleed-slide.is-active {
  opacity: 1; visibility: visible; z-index: 2;
}
.bleed-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 6.5s linear;
  filter: saturate(1.08) contrast(1.04);
}
.bleed-slide.is-active img {
  transform: scale(1);
  animation: bleedKen 8s ease-in-out infinite alternate;
}
@keyframes bleedKen {
  from { transform: scale(1) translate(0,0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}
.bleed-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,18,12,.82) 0%, rgba(8,18,12,.45) 45%, rgba(8,18,12,.2) 100%),
    linear-gradient(0deg, rgba(8,18,12,.75) 0%, transparent 45%);
  z-index: 2;
}
.bleed-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3; padding: 2.5rem 0 3.2rem; color: #f3faf5;
}
.bleed-tag {
  display: inline-flex; padding: .35rem .8rem; border-radius: 99px;
  background: rgba(159,232,112,.18); border: 1px solid rgba(159,232,112,.35);
  color: #c8f5a8; font-size: .8rem; font-weight: 700; margin-bottom: .75rem;
}
.bleed-content h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.12; letter-spacing: -.03em; max-width: 16ch; margin-bottom: .6rem;
}
.bleed-content h1 em {
  font-style: normal; color: var(--lime);
}
.bleed-content p {
  max-width: 36rem; color: rgba(232,245,238,.85); font-size: 1.02rem;
}
.bleed-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: .25s;
}
.bleed-nav:hover { background: rgba(31,157,90,.85); }
.bleed-nav.prev { left: 14px; }
.bleed-nav.next { right: 14px; }
.bleed-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 8px;
}
.bleed-dots button {
  width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.35);
  cursor: pointer; padding: 0; transition: .3s;
}
.bleed-dots button.is-active {
  width: 28px; background: linear-gradient(90deg, #9fe870, #1f9d5a);
}
.bleed-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.12); z-index: 6;
}
.bleed-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #9fe870, #2f7cf6);
  transition: width .1s linear;
}

.hero-compact { padding: 1.75rem 0 0.5rem; }
.hero-grid.single { grid-template-columns: 1fr; }
.hero-sub {
  font-family: var(--display); font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  letter-spacing: -.02em; margin-bottom: .75rem;
}

/* ========== Priority full-bleed cards ========== */
.section-bleed-priority { padding-bottom: 1rem; }
.priority-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 420px;
}
.priority-card {
  position: relative;
  border-radius: 0;
  border: none;
  box-shadow: none;
  min-height: 460px;
  overflow: hidden;
  cursor: pointer;
  background: #0a1610;
}
.priority-card .img-wrap {
  position: absolute; inset: 0; aspect-ratio: auto;
}
.priority-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
  filter: saturate(1.05);
}
.priority-card:hover .img-wrap img { transform: scale(1.1); }
.priority-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,16,10,.92) 0%, rgba(6,16,10,.25) 55%, rgba(6,16,10,.15) 100%);
}
.priority-card .rank {
  z-index: 2;
  background: linear-gradient(135deg, #1f9d5a, #0d7a42);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.priority-card .body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2; padding: 1.4rem 1.3rem 1.5rem; color: #f2faf5;
  background: transparent;
}
.priority-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: .35rem; }
.priority-card .price {
  color: #9fe870;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  font-size: 1.55rem;
}
.priority-card .meta { color: rgba(230,245,236,.78); }
.priority-card:hover {
  transform: none;
  box-shadow: inset 0 0 0 3px rgba(159,232,112,.55);
  z-index: 2;
}
.priority-card .shine {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%);
}
.priority-card:hover .shine { animation: cardShine .9s var(--ease); }
@keyframes cardShine { to { transform: translateX(120%); } }

@media (max-width: 900px) {
  .hero-bleed { height: min(62vh, 480px); min-height: 300px; }
  .priority-bleed { grid-template-columns: 1fr; min-height: 0; }
  .priority-card { min-height: 280px; }
  .bleed-nav { width: 38px; height: 38px; }
}

/* Support banner */
.support-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.5rem 1.6rem; border-radius: 22px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(31,157,90,.18), transparent 50%),
    linear-gradient(135deg, #0f1f16, #143024);
  color: #eaf7ef; box-shadow: 0 16px 40px rgba(15,40,28,.18);
}
.support-banner h2 { font-family: var(--display); font-size: 1.35rem; margin-bottom: .35rem; color: #fff; }
.support-banner p { color: rgba(234,247,239,.8); max-width: 36rem; font-size: .95rem; }
.support-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.support-banner .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.footer a { color: var(--green-2); font-weight: 600; }

/* All products chips — full width = search-panel */
.product-all-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto .85rem;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.product-all-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin-bottom: .55rem;
}
.product-all-label {
  font-size: .8rem; font-weight: 800; color: var(--ink);
  letter-spacing: .01em;
}
.product-chip-search {
  flex: 1 1 140px;
  max-width: 200px;
  min-width: 120px;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .8rem;
}
.product-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .65rem;
}
.product-cat-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: .15s;
}
.product-cat-tab em {
  font-style: normal;
  opacity: .65;
  margin-left: .15rem;
}
.product-cat-tab:hover { border-color: rgba(31,157,90,.35); color: var(--green-2); }
.product-cat-tab.active {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}
.product-cat-tab.active em { opacity: .85; color: #fff; }
.product-all-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: .15rem;
}
.product-all-chips.grouped {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: .55rem;
  max-height: 280px;
}
.product-chip-group-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .3rem;
}
.product-chip-group-title span { font-weight: 600; opacity: .75; }
.product-chip-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.product-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem .28rem .28rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: .78rem; font-weight: 600;
  color: var(--ink); transition: .2s; box-shadow: 0 1px 4px rgba(20,40,28,.04);
  line-height: 1.2;
}
.product-chip img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.product-chip:hover, .product-chip.top, .product-chip.active {
  border-color: rgba(31,157,90,.4);
  background: rgba(31,157,90,.1);
  color: var(--green-2);
}
.product-chip.top { box-shadow: 0 3px 10px rgba(31,157,90,.1); }
.product-chip.active { outline: 2px solid rgba(31,157,90,.35); }
.product-chip-empty {
  margin: 0; font-size: .85rem; color: var(--muted); padding: .35rem 0;
}
.product-all-hint {
  margin: .55rem 0 0;
  font-size: .72rem;
  color: var(--muted);
}

/* All products grid (was 3-col priority only) */
.priority-bleed {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.priority-bleed .priority-card {
  min-height: 320px !important;
}
@media (max-width: 640px) {
  .priority-bleed { grid-template-columns: 1fr !important; }
  .priority-bleed .priority-card { min-height: 240px !important; }
}

/* Online price policy + report form */
.price-policy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(20,40,28,.05);
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}
.price-policy-box p { margin-bottom: .55rem; }
.price-policy-box p:last-child { margin-bottom: 0; }
.price-policy-box strong { color: var(--ink); }
.price-policy-box a { color: var(--green-2); font-weight: 700; }
.traders-today {
  margin-top: .75rem !important;
  padding: .65rem .85rem;
  border-radius: 12px;
  background: rgba(31,157,90,.08);
  color: var(--green-2) !important;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 28px rgba(20,40,28,.05);
}
.report-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.report-sub { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.report-form .field { margin-bottom: .75rem; }
.report-form .field label {
  display: block; font-size: .78rem; font-weight: 700; margin-bottom: .3rem; color: var(--muted);
}
.report-form .field input,
.report-form .field select {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.report-note-sm {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}
.price-note-sm {
  font-size: .72rem;
  color: rgba(242,250,245,.72);
  margin: .15rem 0 .45rem;
  line-height: 1.35;
  max-width: 28ch;
}
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .report-grid { grid-template-columns: 1fr; }
}

/* Compact product grid: 4 per row, pager for 3 rows (12/page) */
.priority-bleed {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  min-height: 0 !important;
}
.priority-bleed .priority-card.compact,
.priority-bleed .priority-card {
  min-height: 250px !important;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.priority-bleed .priority-card h3 { font-size: 1.05rem !important; }
.priority-bleed .priority-card .price { font-size: 1.2rem !important; }
.priority-bleed .priority-card .body { padding: .9rem 1rem 1rem !important; }
.priority-bleed .priority-card .meta { font-size: .72rem; }
.product-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.product-pager .pager-info {
  font-size: .9rem;
  color: var(--muted);
}
.product-pager button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.row-online { background: rgba(31,157,90,.04); }
.row-note {
  font-size: .72rem;
  color: #5c6b62;
  margin-top: .2rem;
  line-height: 1.35;
}
.price-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
  color: var(--green-2);
}
@media (max-width: 1100px) {
  .priority-bleed { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) {
  .priority-bleed { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .priority-bleed { grid-template-columns: 1fr !important; }
  .priority-bleed .priority-card { min-height: 220px !important; }
}

/* ========== Responsive mobile / tablet ========== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.container { width: min(1180px, calc(100% - 1.25rem)); }

@media (max-width: 1024px) {
  .hero-bleed { height: min(56vh, 420px); min-height: 280px; }
  .bleed-content { padding: 1.5rem 0 2.5rem; }
  .bleed-content h1 { font-size: clamp(1.45rem, 4vw, 2.2rem); max-width: 18ch; }
  .priority-bleed { grid-template-columns: repeat(3, 1fr) !important; }
  .report-grid { grid-template-columns: 1fr 1fr !important; }
  .dash-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  :root { --header: 60px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-text { font-size: .78rem; }
  .logo-text .logo-vn { font-size: .68em; padding: .04rem .28rem; }
  .header .live-pill { display: none; }
  .hero-compact { padding: 1.25rem 0 .25rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; max-width: 100%; }
  .hero-stats .stat { padding: .65rem .5rem; }
  .hero-stats strong { font-size: 1.1rem; }
  .hero-stats p { font-size: .68rem; }
  .product-all-wrap { padding: .85rem; border-radius: 16px; width: 100%; max-width: none; }
  .product-all-chips { gap: .3rem; max-height: 200px; }
  .product-all-chips.grouped { max-height: 240px; }
  .product-chip { font-size: .72rem; padding: .25rem .5rem .25rem .25rem; }
  .product-chip img { width: 22px; height: 22px; }
  .product-chip-search { max-width: 100%; flex: 1 1 100%; }
  .search-panel { margin: .5rem auto 1.25rem; padding: .85rem; border-radius: 16px; }
  .search-row { grid-template-columns: 1fr !important; }
  .chip-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .chip { white-space: nowrap; flex: 0 0 auto; }
  .priority-bleed { grid-template-columns: repeat(2, 1fr) !important; }
  .priority-bleed .priority-card { min-height: 230px !important; }
  .price-policy-box, .report-card { padding: 1rem; }
  .table-wrap { margin: 0 -0.25rem; border-radius: 14px; }
  table { font-size: .82rem; }
  th, td { padding: .65rem .55rem; }
  .prod-cell img { width: 36px; height: 36px; border-radius: 10px; }
  .support-banner, .cta-engage { flex-direction: column; align-items: stretch; text-align: left; }
  .support-actions, .cta-engage-actions { width: 100%; }
  .support-actions .btn, .cta-engage-actions .btn { flex: 1; justify-content: center; }
  .footer-inner { flex-direction: column; gap: .75rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: .75rem; }
  .bleed-nav { width: 36px; height: 36px; }
  .bleed-nav.prev { left: 8px; }
  .bleed-nav.next { right: 8px; }
}

@media (max-width: 480px) {
  .hero-bleed { height: min(48vh, 340px); min-height: 240px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .priority-bleed { grid-template-columns: 1fr !important; }
  .report-grid { grid-template-columns: 1fr !important; }
  .header-actions .btn-sm { padding: .4rem .65rem; font-size: .78rem; }
}

/* News */
.news-page h1 { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .35rem; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,40,28,.05);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); }
.news-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.news-card-body h2 { font-size: 1.05rem; line-height: 1.35; }
.news-card-body h2 a:hover { color: var(--green-2); }
.news-card-body p { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--muted); }
.news-tag {
  display: inline-flex; padding: .2rem .55rem; border-radius: 99px;
  background: rgba(31,157,90,.1); color: var(--green-2); font-weight: 700; font-size: .72rem;
}
.news-price { font-size: .9rem; }
.news-more { margin-top: auto; font-weight: 700; color: var(--green-2); font-size: .9rem; }
.news-loading, .news-empty { color: var(--muted); padding: 1.5rem 0; }

.home-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.home-news-item {
  display: flex; gap: .75rem; align-items: center;
  padding: .65rem; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); transition: .2s;
}
.home-news-item:hover { border-color: rgba(31,157,90,.35); box-shadow: 0 8px 20px rgba(20,40,28,.06); }
.home-news-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.home-news-item strong { display: block; font-size: .85rem; color: var(--green-2); }
.home-news-item span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.cta-engage {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.35rem; border-radius: 20px;
  background: linear-gradient(135deg, rgba(31,157,90,.1), rgba(47,124,246,.08));
  border: 1px solid rgba(31,157,90,.2);
  margin-bottom: 1.25rem;
}
.cta-engage strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; color: var(--ink); }
.cta-engage p { color: var(--muted); font-size: .92rem; max-width: 40rem; }
.cta-engage-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.container.narrow { width: min(760px, calc(100% - 1.25rem)); }
.article h1 { font-family: var(--display); font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.25; margin: .75rem 0 1rem; }
.article-hero { border-radius: 18px; overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/9; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; gap: .75rem; align-items: center; color: var(--muted); font-size: .85rem; }
.article-price-box {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 14px; background: rgba(31,157,90,.08);
  border: 1px solid rgba(31,157,90,.2); margin-bottom: 1.25rem;
}
.article-price-box .note { width: 100%; font-size: .8rem; color: var(--muted); }
.article-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.article-body h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; font-family: var(--display); }
.article-body ul, .article-body ol { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.article-body li { margin: .35rem 0; }
.article-body a { color: var(--green-2); font-weight: 600; }
.article-body .news-cta-box {
  margin: 1.75rem 0 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(31,157,90,.25);
  background: linear-gradient(135deg, rgba(31,157,90,.08), rgba(47,124,246,.06));
}
.article-body .news-cta-box h2 { margin-top: 0; }
.article-body .faq-block p { margin: .75rem 0; }
.article-body .news-cta-inline { margin-top: .85rem; font-size: .95rem; }
.news-card .news-tag.pillar {
  background: rgba(31,157,90,.15);
  color: var(--green-2);
}
.news-card .news-tag.pin {
  background: rgba(232,163,23,.2);
  color: #b45309;
}
.share-box, .cta-strip {
  margin-top: 1.5rem; padding: 1.1rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
}
.share-btns, .cta-strip { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share-box strong { display: block; width: 100%; margin-bottom: .5rem; }
.cta-strip p { width: 100%; margin-bottom: .35rem; color: var(--muted); }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .home-news-list { grid-template-columns: 1fr; }
}

/* Old / new / change columns */
.price-old { color: #64748b !important; font-weight: 600 !important; text-decoration: line-through; text-decoration-thickness: 1px; opacity: .9; }
.price-new { color: var(--green-2) !important; font-weight: 800 !important; }
.change-cell { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-utc { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .time-utc { font-size: .68rem; }
  th, td { padding: .55rem .4rem; }
}

/* Listings marketplace */
.listing-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
  margin-bottom: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem;
}
.listing-filters select,
.listing-filters input {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.listing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(20,40,28,.05);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.listing-top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.listing-type {
  font-weight: 800; font-size: .72rem; padding: .25rem .55rem; border-radius: 99px;
}
.tag-buy { background: rgba(47,124,246,.12); color: #1d5fd0; }
.tag-sell { background: rgba(31,157,90,.12); color: var(--green-2); }
.tag-garden { background: rgba(232,163,23,.15); color: #b45309; }
/* Homepage domestic price notes */
.price-region-legend {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 .85rem;
  padding: .7rem .95rem;
  background: rgba(31,157,90,.07);
  border: 1px solid rgba(31,157,90,.18);
  border-radius: 12px;
}
.price-region-legend a { color: var(--green-2); font-weight: 700; }
.region-trade-note {
  font-size: .75rem !important;
  color: #3d6b52 !important;
  font-weight: 600;
  margin-top: .2rem !important;
  line-height: 1.35;
}
.region-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .15rem;
}
.row-dealer-live td { background: rgba(31,157,90,.035); }
.row-no-price td { opacity: .88; }
.muted-dash { color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-note-sm.region-trade-note {
  display: flex; align-items: flex-start; gap: .3rem;
  font-size: .72rem; opacity: .95;
}
.price-note-sm.region-trade-note i { margin-top: .15rem; opacity: .8; }

/* Dealer trade products + daily prices */
.dealer-product-chips, .reg-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  max-height: 280px; overflow: auto; padding: .15rem 0;
}
.dealer-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600;
  user-select: none;
}
.dealer-chip input { accent-color: var(--green, #1f9d5a); }
.dealer-chip.on, .dealer-chip:has(input:checked) {
  background: rgba(31,157,90,.12); border-color: rgba(31,157,90,.35); color: #0f5132;
}
.dealer-price-rows { display: grid; gap: .65rem; margin: .75rem 0; }
.dealer-price-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: .55rem; align-items: center;
  padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb;
}
.dealer-price-name strong { display: block; font-size: .92rem; }
.dealer-price-name small { color: var(--muted); font-size: .78rem; }
.dealer-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.dealer-price-inputs input {
  width: 100%; padding: .5rem .55rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit;
}
.dealer-dash { align-items: start; }
tr.row-today td { background: rgba(31,157,90,.04); }
@media (max-width: 720px) {
  .dealer-price-row { grid-template-columns: 1fr; }
}

.tag-export-find { background: rgba(14,116,144,.14); color: #0e7490; }
.tag-export-offer { background: rgba(30,64,175,.14); color: #1e40af; }
.listing-export { border-color: rgba(14,116,144,.25); box-shadow: 0 8px 24px rgba(14,116,144,.08); }
.listing-export-meta {
  font-size: .82rem; font-weight: 600; color: #0e7490; margin: .25rem 0 .35rem;
}
.export-hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; align-items: start;
  margin-bottom: 1.35rem; padding: 1.25rem 1.35rem; border-radius: 18px;
  background: linear-gradient(135deg, #0c4a6e 0%, #155e75 45%, #0f766e 100%);
  color: #e0f2fe;
}
.export-hero h1 {
  font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 .5rem; letter-spacing: -.02em;
}
.export-hero .seo-lead { color: rgba(224,242,254,.9); max-width: 36rem; }
.export-hero .btn-ghost {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff;
}
.export-hero-cards { display: grid; gap: .65rem; }
.export-mini {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: .9rem 1rem;
}
.export-mini strong { display: block; margin-bottom: .25rem; font-size: 1rem; }
.export-mini p { margin: 0; font-size: .88rem; opacity: .9; line-height: 1.45; }
@media (max-width: 900px) {
  .export-hero { grid-template-columns: 1fr; }
}
.listing-card h3 { font-size: 1.05rem; line-height: 1.35; }
.listing-product { font-size: .88rem; color: var(--muted); }
.listing-price { font-size: 1.2rem; font-weight: 800; color: var(--green-2); font-family: var(--display); }
.listing-price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.listing-loc { font-size: .88rem; color: var(--ink); }
.listing-desc {
  font-size: .86rem; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-contact { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .35rem; }
.listing-user { font-size: .82rem; color: var(--muted); }
.phone-hint { font-size: .72rem; color: var(--muted); margin: 0; }
.btn-reveal-phone.revealed { background: var(--green-2); }
.notif-list { display: grid; gap: .65rem; }
.notif-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
}
.notif-item.unread { border-left: 4px solid var(--green); }
.notif-item p { color: var(--muted); font-size: .9rem; margin: .3rem 0 .45rem; }
.notif-item a { font-weight: 700; color: var(--green-2); font-size: .88rem; }

@media (max-width: 900px) {
  .listing-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .listing-filters { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
}

/* Mục đại lý nổi bật */
.dealers-meta {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dealer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(20,40,28,.05);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dealer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.dealer-rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-2);
}
.dealer-badge {
  font-size: .68rem;
  font-weight: 800;
  padding: .22rem .55rem;
  border-radius: 99px;
  background: rgba(20,40,28,.06);
  color: var(--muted);
}
.dealer-badge.live {
  background: rgba(31,157,90,.14);
  color: var(--green-2);
}
.dealer-badge.stale {
  background: rgba(180,80,40,.1);
  color: #b45309;
}
.dealer-card h3 {
  font-size: 1.08rem;
  margin: .15rem 0 0;
  line-height: 1.3;
}
.dealer-company {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.35;
}
.dealer-loc {
  font-size: .88rem;
  color: var(--ink);
}
.dealer-spec {
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dealer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .15rem;
}
.dealer-tag {
  font-size: .68rem;
  font-weight: 700;
  padding: .18rem .45rem;
  border-radius: 99px;
  background: rgba(31,157,90,.08);
  color: var(--green-2);
  border: 1px solid rgba(31,157,90,.15);
}
.dealer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .85rem;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .15rem;
}
.dealer-contact {
  margin-top: .35rem;
}
.btn-reveal-dealer-phone.revealed {
  background: var(--green-2);
}
.dealers-page-hint {
  margin: .4rem 0 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-2);
}
.dealers-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.25rem;
  padding: .75rem;
}
.dealers-pager .dealer-page-num {
  min-width: 2.25rem;
}
.dealer-card.is-pinned {
  border-color: rgba(232,163,23,.45);
  box-shadow: 0 10px 28px rgba(232,163,23,.12);
}
.dealer-card.is-top {
  border-color: rgba(31,157,90,.28);
  box-shadow: 0 12px 30px rgba(31,157,90,.08);
}
@media (max-width: 560px) {
  .dealers-grid { grid-template-columns: 1fr; }
  .dealers-pager { gap: .35rem; }
}

/* ===== Verification badges ===== */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vbadge i { flex-shrink: 0; }
.vbadge-text { overflow: hidden; text-overflow: ellipsis; }
.vbadge-none { color: var(--muted); }
.vbadge-basic { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.vbadge-pending { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.vbadge-verified { background: rgba(31,157,90,.12); color: var(--green-2); border-color: rgba(31,157,90,.3); }
.vbadge-dealer { background: rgba(47,124,246,.12); color: #1d5fd0; border-color: rgba(47,124,246,.28); }
.vbadge-admin { background: #111; color: #fff; border-color: #111; }
.verify-levels { display: grid; gap: .65rem; margin: 1rem 0; }
.verify-level-card {
  display: flex; gap: .75rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
}
.verify-level-card p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.verify-status-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.verify-status-list { margin: .65rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.container.narrow { max-width: 640px; }

/* ===== Analytics / price alerts / stats ===== */
.price-alert-bar {
  position: sticky;
  top: var(--header, 72px);
  z-index: 90;
  background: linear-gradient(90deg, #0f3d28, #1f9d5a 55%, #1d5fd0);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.price-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
}
.price-alert-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.price-alert-item {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.35;
}
.price-alert-item strong { display: block; font-size: .92rem; }
.price-alert-item span { opacity: .9; font-size: .8rem; }
.price-alert-item.up strong::before { content: ""; }
.price-alert-close {
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}
.price-notif-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff !important;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.stat-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(20,40,28,.04);
}
.stat-kpi strong {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--green-2);
  display: block;
}
.stat-kpi p { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stats-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(20,40,28,.05);
}
.stats-card h2 { font-size: 1.1rem; margin: 0 0 .35rem; font-family: var(--display); }
.stats-card .muted { color: var(--muted); font-size: .85rem; margin: 0 0 .85rem; }
.stat-bar-row { margin-bottom: .55rem; }
.stat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.stat-bar-label em { font-style: normal; color: var(--muted); font-weight: 700; }
.stat-bar-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(20,40,28,.06);
  overflow: hidden;
}
.stat-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
}
.alert-feed { display: grid; gap: .55rem; }
.alert-feed-item {
  border-radius: 12px;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  background: var(--bg);
}
.alert-feed-item.up { border-left: 4px solid #16a34a; }
.alert-feed-item.down { border-left: 4px solid #dc2626; }
.alert-feed-item p { margin: .3rem 0; font-size: .88rem; color: var(--muted); }
.alert-feed-item time { font-size: .72rem; color: var(--muted); }
.email-queue-list { padding-left: 1.1rem; font-size: .88rem; }
.email-queue-list li { margin: .35rem 0; }

/* ===== Mobile / tablet tối ưu thêm ===== */
@media (max-width: 1024px) {
  .stats-kpis { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .btn, .chip, .product-chip, .product-cat-tab {
    min-height: 40px;
  }
  /* Chỉ ép min-height link khi menu mobile (đã mở dạng cột) — không làm vỡ hàng desktop */
  input, select, textarea, button {
    font-size: 16px; /* tránh zoom iOS */
  }
  .search-row input, .search-row select, .search-row .btn {
    min-height: 48px;
  }
  .listing-filters { gap: .5rem; }
  .dealers-grid, .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 640px; }
}

@media (max-width: 768px) {
  .price-alert-inner { padding: .55rem .15rem; }
  .price-alert-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stats-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .stat-kpi { padding: .75rem .5rem; }
  .stat-kpi strong { font-size: 1.25rem; }
  .header-actions .btn-sm { padding: .4rem .65rem; font-size: .78rem; }
  .section { padding: 1.25rem 0 2rem; }
  .section-head h1, .section-head h2 { font-size: 1.35rem; }
  .auth-card, .form-card, .report-card { padding: 1rem; }
  .dealer-card, .listing-card, .news-card { border-radius: 14px; }
  .footer-inner { text-align: center; }
  /* sticky safe area */
  .header { padding-top: env(safe-area-inset-top, 0); }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
  .priority-bleed { grid-template-columns: 1fr !important; }
  .cta-engage-actions { flex-direction: column; }
  .cta-engage-actions .btn { width: 100%; }
  .product-cat-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
  .product-cat-tab { flex: 0 0 auto; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* tablet landscape */
  .priority-bleed { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-bleed { height: min(48vh, 400px); }
  .container { width: min(1180px, calc(100% - 2rem)); }
}

/* =========================================================
   RESPONSIVE AUDIT v42 — Mobile / Tablet toàn site
   (chống tràn ngang, form, bảng, card, filter, auth, export)
   ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}
/* full-bleed an toàn hơn 100vw (tránh scrollbar ngang) */
.hero-bleed,
.priority-bleed,
.product-pager {
  max-width: 100vw;
  box-sizing: border-box;
}
.section-head {
  flex-wrap: wrap;
  gap: .75rem;
}
.section-head .btn,
.section-head .btn-ghost {
  flex-shrink: 0;
}

/* Bảng: luôn cuộn ngang mượt, không phá layout */
.table-wrap,
.card.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-wrap table {
  width: 100%;
}

/* Filter tin rao / xuất khẩu */
@media (max-width: 900px) {
  .listing-filters {
    grid-template-columns: 1fr 1fr !important;
  }
  .listing-filters .btn {
    grid-column: 1 / -1;
  }
  .export-hero {
    grid-template-columns: 1fr !important;
    padding: 1.1rem 1rem !important;
  }
  .export-hero h1 { font-size: 1.35rem !important; }
  .export-hero .seo-cta-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .price-top-head {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .price-top-head .btn {
    width: 100%;
    justify-content: center;
  }
  .dealer-dash,
  .dash-grid {
    grid-template-columns: 1fr !important;
  }
  .dealer-price-row {
    grid-template-columns: 1fr !important;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }
  .home-news-list {
    grid-template-columns: 1fr;
  }
  .dealers-grid,
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  }
  .seo-product-hero,
  .coffee-hero-inner {
    grid-template-columns: 1fr !important;
  }
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .container,
  .container.narrow {
    width: min(100% - 1rem, 1180px);
    padding-left: 0;
    padding-right: 0;
  }
  .header-inner {
    width: min(100% - 0.85rem, 1200px);
  }
  /* Ẩn bớt chữ logo dài trên mobile rất hẹp */
  .listing-filters {
    grid-template-columns: 1fr !important;
    padding: .7rem;
  }
  .listing-filters select,
  .listing-filters input,
  .listing-filters .btn {
    min-height: 48px;
    font-size: 16px !important;
  }
  .auth-page {
    padding: 1rem .65rem 2rem;
    align-items: start;
  }
  .auth-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
  }
  .form-card,
  .list-card,
  .report-card,
  .seo-block,
  .coffee-board {
    border-radius: 14px;
  }
  /* Bảng giá: font nhỏ hơn, cho phép wrap note */
  .table-wrap table {
    min-width: 560px;
    font-size: .78rem;
  }
  .prod-cell {
    min-width: 9.5rem;
  }
  .region-trade-note,
  .row-note {
    white-space: normal !important;
    max-width: 14rem;
  }
  .price-region-legend {
    font-size: .82rem;
    padding: .65rem .8rem;
  }
  .section-head {
    flex-direction: column;
    align-items: stretch !important;
  }
  .section-head > a.btn,
  .section-head .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-engage,
  .support-banner {
    padding: 1rem;
  }
  .footer {
    padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0));
  }
  .footer-links {
    justify-content: center;
  }
  /* chips / tabs cuộn ngang */
  .product-all-head {
    flex-direction: column;
    align-items: stretch;
  }
  .product-chip-search {
    width: 100% !important;
    max-width: none !important;
  }
  /* touch targets */
  .btn {
    min-height: 44px;
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
  }
  /* preloader full screen an toàn */
  .preloader {
    width: 100%;
    max-width: 100vw;
  }
  /* article / tin */
  .article-hero {
    aspect-ratio: 16/10;
    border-radius: 12px;
  }
  .article h1 {
    font-size: 1.35rem;
  }
  .share-btns,
  .cta-strip {
    flex-direction: column;
  }
  .share-btns .btn,
  .cta-strip .btn {
    width: 100%;
  }
  /* dealer admin price rows */
  .dealer-product-chips {
    max-height: 200px;
  }
  .dealer-price-inputs {
    grid-template-columns: 1fr !important;
  }
  /* toast / fixed UI */
  .toast-wrap,
  .toasts {
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: .72rem;
  }
  .header-actions .btn-sm {
    padding: .35rem .5rem;
    font-size: .72rem;
  }
  .bleed-content p {
    font-size: .88rem;
    max-width: 100%;
  }
  .bleed-content .btn {
    width: 100%;
    justify-content: center;
  }
  .priority-bleed .priority-card {
    min-height: 200px !important;
  }
  .priority-bleed .priority-card h3 {
    font-size: .95rem !important;
  }
  .priority-bleed .priority-card .price {
    font-size: 1.05rem !important;
  }
  .table-wrap table {
    min-width: 520px;
    font-size: .74rem;
  }
  th, td {
    padding: .5rem .4rem !important;
  }
  .live-pill {
    font-size: .68rem;
    padding: .22rem .45rem;
  }
  .seo-kw-cloud a {
    font-size: .75rem;
    padding: .3rem .55rem;
  }
  .home-news-item {
    flex-direction: row;
  }
  .home-news-item img {
    width: 64px;
    height: 64px;
  }
  /* Ẩn LIVE pill trong header actions nếu còn */
  .header-actions > .live-pill {
    display: none !important;
  }
}

/* Tablet portrait 600–900 */
@media (min-width: 600px) and (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dealers-grid,
  .listings-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .listing-filters {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .priority-bleed {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Landscape phone */
@media (max-height: 430px) and (orientation: landscape) {
  .hero-bleed {
    height: 70vh;
    min-height: 200px;
  }
  .preloader p {
    display: none;
  }
  .nav.open {
    max-height: 80vh;
  }
}

/* Print / accessibility */
@media (prefers-reduced-motion: reduce) {
  .news-card:hover,
  .home-news-item:hover {
    transform: none;
  }
}
