/* AsiaFarm – giao diện cửa hàng. Màu theo bản AI Studio: xanh lục đậm + vàng hổ phách + đỏ giá. */
:root {
  --green-950: #022c22;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #f5f5f4;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 1px 3px rgba(28, 25, 23, .05);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, .14);
  --wrap: 1240px;
  --tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.muted-light { color: #a7f3d0; opacity: .85; font-size: 14px; margin-top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }
[data-icon] { display: inline-flex; align-items: center; gap: .45em; }
.show-sm { display: none; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--sm { padding: 6px 14px; font-size: 13px; border-radius: 999px; }
.btn--lg { padding: 14px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-800); }
.btn--amber { background: linear-gradient(180deg, var(--amber-400), var(--amber-500)); color: var(--green-950); }
.btn--amber:hover { filter: brightness(1.05); }
.btn--red { background: var(--red-600); color: #fff; }
.btn--red:hover { background: #b91c1c; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-800); }
.btn--glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255,255,255,.28); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--bg); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.tag--lime { background: #bef264; color: var(--green-950); }
.tag--amber { background: var(--amber-400); color: var(--green-950); }
.tag--red { background: var(--red-600); color: #fff; }
.tag--soft { background: var(--green-50); color: var(--green-800); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--green-950); color: #d1fae5; font-size: 12.5px; font-weight: 600; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar__in p { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__hot b { color: var(--amber-400); }

.header { background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: var(--amber-400); justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.logo__mark .ico { width: 22px; height: 22px; }
.logo__text { font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-400); margin-top: 4px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 5px 5px 16px; max-width: 560px; }
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; padding: 6px 0; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 14px; }
.cartbtn:hover { background: rgba(255,255,255,.18); }
.cartbtn__n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red-600); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--green-900); }
.cartbtn__n[hidden] { display: none; }
.nav { background: var(--green-800); border-top: 1px solid rgba(255,255,255,.08); }
.nav__row { display: flex; align-items: center; gap: 4px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.nav__row::-webkit-scrollbar { display: none; }
.nav__row a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #d1fae5; white-space: nowrap; }
.nav__row a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__row a.is-active { background: var(--green-600); color: #fff; }
.nav__live { margin-left: auto; font-size: 12.5px; color: #a7f3d0; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav__live i { width: 8px; height: 8px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }

/* ---------- Khối chung ---------- */
main { min-height: 60vh; outline: none; }
.section { margin-top: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-title { font-size: 20px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 22px; border-radius: 999px; background: var(--green-600); }
.sec-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.link { color: var(--green-700); font-weight: 700; font-size: 14px; }
.link:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a:hover { color: var(--green-700); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- Banner ---------- */
.hero { position: relative; margin-top: 16px; border-radius: 24px; overflow: hidden; background: var(--green-950); aspect-ratio: 26 / 8; min-height: 230px; box-shadow: var(--shadow-lg); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,44,34,.94) 0%, rgba(2,44,34,.7) 45%, rgba(2,44,34,.05) 100%); display: flex; align-items: center; }
.hero__txt { padding: 28px 36px; max-width: 620px; color: #fff; display: grid; gap: 10px; justify-items: start; }
.hero__txt h1, .hero__txt h2 { font-size: clamp(20px, 2.6vw, 32px); font-weight: 800; }
.hero__txt p { color: #d1fae5; font-size: 14.5px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero__arrow:hover { background: rgba(0,0,0,.6); }
.hero__arrow--l { left: 12px; } .hero__arrow--r { right: 12px; }
.hero__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero__dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); transition: width .25s; }
.hero__dots button.is-on { width: 24px; background: var(--amber-400); }

/* Cam kết */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.trust__i { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.trust__i > span { width: 38px; height: 38px; border-radius: 10px; background: var(--green-50); color: var(--green-700); justify-content: center; flex: none; }
.trust__i b { display: block; font-size: 13.5px; }
.trust__i small { color: var(--muted); font-size: 12px; }

/* Nhóm vật nuôi */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.group { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fafaf9; text-align: left; transition: all .15s; }
.group:hover { background: var(--green-50); border-color: #a7f3d0; }
.group.is-on { background: var(--green-800); color: #fff; border-color: var(--green-900); box-shadow: 0 0 0 3px rgba(16,185,129,.3); }
.group__ic { width: 44px; height: 44px; border-radius: 12px; justify-content: center; flex: none; font-size: 22px; }
.group__ic--a { background: var(--amber-100); } .group__ic--b { background: #ffe4e6; } .group__ic--c { background: #cffafe; }
.group.is-on .group__ic { background: rgba(255,255,255,.18); }
.group b { display: block; text-transform: uppercase; font-size: 14.5px; font-weight: 800; }
.group small { font-size: 12px; opacity: .75; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; margin-top: 14px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.chip:hover { background: var(--green-100); color: var(--green-900); }
.chip.is-on { background: var(--green-700); color: #fff; }

/* Sale sốc */
.sale { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--red-600), #f97316, var(--amber-400)) border-box; }
.sale__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-600); color: #fff; justify-content: center; flex: none; }
.sale__title { display: flex; gap: 12px; align-items: center; }
.sale__title h2 { font-size: 22px; font-weight: 800; }
.countdown { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.countdown b { background: var(--ink); color: #fff; border-radius: 8px; padding: 4px 7px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Thẻ sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__img { position: relative; aspect-ratio: 1; background: #fafaf9; overflow: hidden; display: block; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; align-items: flex-start; }
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__name:hover { color: var(--green-700); }
.card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stars { color: var(--amber-500); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { color: var(--red-600); font-size: 18px; font-weight: 800; }
.price s { color: var(--muted); font-size: 13px; }
.price small { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.boxdeal { display: block; padding: 8px 10px; border-radius: 12px; border: 1px solid #fcd34d; background: linear-gradient(90deg, var(--amber-50), #fff7ed); font-size: 12px; text-align: left; width: 100%; }
.boxdeal:hover { border-color: var(--amber-500); }
.boxdeal__row { display: flex; justify-content: space-between; gap: 6px; }
.boxdeal__row b { color: #92400e; font-weight: 800; }
.boxdeal__row em { font-style: normal; color: var(--green-700); font-weight: 700; }
.boxdeal__save { color: var(--red-600); font-weight: 800; }
.card__foot { margin-top: auto; }

/* ---------- Bộ lọc kho sản phẩm ---------- */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 132px; display: grid; gap: 18px; }
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; width: 100%; text-align: left; }
.opt:hover { background: var(--bg); }
.opt.is-on { background: var(--green-50); color: var(--green-800); }
.opt input { accent-color: var(--green-700); width: 16px; height: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; font-weight: 600; font-size: 14px; }
.filters-toggle { display: none; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; margin-top: 12px; }
.gallery__main { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gallery__thumbs button.is-on { border-color: var(--green-600); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { display: grid; gap: 16px; align-content: start; }
.pd__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
.pd__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); }
.pd__price { background: var(--red-50); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.pd__price .price b { font-size: 30px; }
.promo-note { font-size: 13.5px; color: #9a3412; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; width: 100%; }
.mode:hover { border-color: #a7f3d0; }
.mode.is-on { border-color: var(--green-600); background: var(--green-50); }
.mode__dot { width: 18px; height: 18px; border-radius: 999px; border: 2px solid #a8a29e; }
.mode.is-on .mode__dot { border: 5px solid var(--green-700); }
.mode b { display: block; font-size: 14.5px; }
.mode small { color: var(--muted); font-size: 12.5px; }
.mode__price { text-align: right; }
.mode__price b { color: var(--red-600); font-size: 16px; }
.mode__price small { display: block; color: var(--green-700); font-weight: 700; }
.qtyrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qty button { width: 40px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { color: var(--green-700); }
.qty input { width: 48px; text-align: center; border: 0; outline: 0; font-weight: 800; font-size: 15px; background: transparent; }
.qty--sm button { width: 30px; height: 32px; } .qty--sm input { width: 34px; font-size: 14px; }
.pd__total { font-size: 14px; color: var(--muted); }
.pd__total b { color: var(--ink); font-size: 18px; }
.pd__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd__assure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; color: var(--ink-2); }
.pd__assure span { gap: 8px; }
.pd__assure .ico { color: var(--green-700); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.is-on { color: var(--green-800); border-color: var(--green-600); }
.tabpane { padding-top: 16px; font-size: 15px; color: var(--ink-2); display: grid; gap: 12px; }
.spec { display: grid; grid-template-columns: 160px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec dt, .spec dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { background: #fafaf9; font-weight: 700; color: var(--ink); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 6px; }
.review:last-child { border-bottom: 0; }
.review__who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.review__who small { color: var(--muted); }
.verified { color: var(--green-700); font-weight: 700; font-size: 12px; }
.mobile-buy { display: none; }

/* ---------- Sổ bệnh ---------- */
.dz-hero { margin-top: 16px; border-radius: 24px; padding: 28px; background: radial-gradient(circle at 85% 20%, rgba(251,191,36,.25), transparent 40%), linear-gradient(135deg, var(--green-900), var(--green-950)); color: #fff; display: grid; gap: 12px; }
.dz-hero h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.dz-hero p { color: #d1fae5; max-width: 720px; }
.dz-search { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; align-items: center; color: var(--ink); max-width: 640px; }
.dz-search input { flex: 1; border: 0; outline: 0; padding: 8px 0; min-width: 0; }
.dz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.dz-card:hover { box-shadow: var(--shadow-lg); }
.dz-card__img { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.dz-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dz-card__img .tag { position: absolute; top: 10px; left: 10px; }
.dz-card__body { padding: 14px; display: grid; gap: 8px; }
.dz-card__body h3 { font-size: 16px; font-weight: 800; }
.dz-card__body ul { font-size: 13px; color: var(--ink-2); display: grid; gap: 3px; }
.dz-card__body li::before { content: "• "; color: var(--green-600); font-weight: 800; }
.danger { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.danger--1 { background: var(--green-50); color: var(--green-800); }
.danger--2 { background: var(--amber-100); color: #92400e; }
.danger--3 { background: #ffedd5; color: #9a3412; }
.danger--4 { background: var(--red-600); color: #fff; }
.dz-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 12px; align-items: start; }
.dz-block { display: grid; gap: 10px; }
.dz-block h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dz-block ul { display: grid; gap: 6px; }
.dz-block li { padding-left: 22px; position: relative; }
.dz-block li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 999px; background: var(--green-600); }
.callout { border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }
.callout--warn { background: var(--red-50); color: #7f1d1d; border: 1px solid #fecaca; }
.callout--info { background: var(--green-50); color: var(--green-900); border: 1px solid #a7f3d0; }
.callout--amber { background: var(--amber-50); color: #78350f; border: 1px solid #fde68a; }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.mini b { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini span { color: var(--red-600); font-weight: 800; font-size: 14px; }

/* ---------- Trò chơi ---------- */
.qz { margin-top: 16px; border-radius: 24px; background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0b1437 60%); color: #fff; padding: 28px; min-height: 520px; }
.qz h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-align: center; }
.qz h1 span { color: var(--amber-400); }
.qz__intro { text-align: center; color: #c7d2fe; max-width: 640px; margin: 10px auto 22px; }
.qz__pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; }
.qz__pick button { padding: 16px 8px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); display: grid; gap: 6px; justify-items: center; font-weight: 700; }
.qz__pick button:hover { background: rgba(251,191,36,.18); border-color: var(--amber-400); }
.qz__pick span { font-size: 30px; }
.qz__play { display: grid; grid-template-columns: 1fr 230px; gap: 20px; }
.qz__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.qz__life { display: flex; gap: 8px; }
.qz__life button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-weight: 800; font-size: 13px; color: #fff; }
.qz__life button:hover { background: rgba(255,255,255,.1); }
.qz__life button[disabled] { opacity: .35; text-decoration: line-through; }
.qz__timer { font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; }
.qz__timer.is-low { background: var(--red-600); }
.qz__q { background: linear-gradient(180deg, #1e40af, #1e3a8a); border: 2px solid #60a5fa; border-radius: 18px; padding: 20px; font-size: 17px; font-weight: 700; text-align: center; }
.qz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.qz__opt { text-align: left; padding: 14px 16px; border-radius: 14px; background: #172554; border: 2px solid #3b82f6; color: #fff; font-weight: 600; display: flex; gap: 10px; }
.qz__opt b { color: var(--amber-400); }
.qz__opt:hover { background: #1e3a8a; }
.qz__opt.is-picked { background: var(--amber-500); border-color: var(--amber-400); color: var(--green-950); }
.qz__opt.is-right { background: #16a34a; border-color: #4ade80; color: #fff; }
.qz__opt.is-wrong { background: var(--red-600); border-color: #f87171; color: #fff; }
.qz__opt.is-hidden { visibility: hidden; }
.qz__explain { margin-top: 14px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; color: #e0e7ff; font-size: 14px; }
.qz__ladder { display: grid; gap: 3px; align-content: start; font-size: 13px; font-weight: 700; }
.qz__ladder li { display: flex; justify-content: space-between; padding: 5px 12px; border-radius: 8px; color: #a5b4fc; }
.qz__ladder li.is-safe { color: #fff; }
.qz__ladder li.is-now { background: var(--amber-500); color: var(--green-950); }
.qz__ladder li.is-done { color: #4ade80; }
.qz__end { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.qz__end .big { font-size: 40px; font-weight: 800; color: var(--amber-400); }
.qz__end input { padding: 10px 14px; border-radius: 12px; border: 0; width: min(320px, 100%); color: var(--ink); }
.board { width: min(520px, 100%); text-align: left; background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px 16px; }
.board li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* ---------- Giỏ hàng ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 18px; font-weight: 800; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: #fafaf9; }
.ci { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.ci__name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ci__unit { display: flex; gap: 4px; margin: 6px 0; flex-wrap: wrap; }
.ci__unit button { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.ci__unit button.is-on { background: var(--green-700); color: #fff; }
.ci__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci__price { text-align: right; }
.ci__price b { color: var(--red-600); }
.ci__price small { display: block; color: var(--green-700); font-size: 11.5px; font-weight: 700; }
.ci__rm { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.ci__rm:hover { color: var(--red-600); }
.sum { display: flex; justify-content: space-between; font-size: 14px; }
.sum--big { font-size: 16px; font-weight: 800; }
.sum--big b { color: var(--red-600); font-size: 20px; }
.sum--save { color: var(--green-700); font-weight: 700; }
.form { display: grid; gap: 12px; padding: 12px 0; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 700; }
.field label i { color: var(--red-600); font-style: normal; }
.field input, .field textarea { border: 1px solid #d6d3d1; border-radius: 12px; padding: 11px 12px; font-size: 15px; outline: 0; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.field .err { color: var(--red-600); font-size: 12px; font-weight: 600; }
.field.has-err input { border-color: var(--red-600); }
.done { text-align: center; display: grid; gap: 12px; padding: 20px 0; justify-items: center; }
.done__ic { width: 64px; height: 64px; border-radius: 999px; background: var(--green-100); color: var(--green-700); justify-content: center; }
.done__ic .ico { width: 34px; height: 34px; }
.done__box { background: var(--bg); border-radius: 14px; padding: 14px; text-align: left; font-size: 13.5px; width: 100%; display: grid; gap: 4px; }

/* ---------- Nổi & toast ---------- */
.fab { position: fixed; right: 16px; bottom: calc(20px + var(--tabbar-h)); z-index: 45; display: grid; gap: 10px; }
.fab__btn { width: 52px; height: 52px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-lg); }
.fab__btn--zalo { background: #0068ff; }
.fab__btn--call { background: var(--red-600); animation: ring 2.4s infinite; }
.fab__btn--call .ico { width: 22px; height: 22px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 50% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } }
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -150%); z-index: 80; background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.tabbar { display: none; }

/* ---------- Đáp ứng ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hscroll { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .hide-md { display: none !important; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .qz__pick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .pd, .dz-detail, .qz__play { grid-template-columns: 1fr; }
  .dz-grid { grid-template-columns: repeat(2, 1fr); }
  .qz__ladder { grid-auto-flow: column; overflow-x: auto; order: -1; }
  .qz__ladder li { flex-direction: column; text-align: center; white-space: nowrap; }
}
@media (max-width: 680px) {
  :root { --tabbar-h: 62px; }
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  .header__row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .logo__text { font-size: 19px; }
  .logo__mark { width: 36px; height: 36px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hscroll { grid-auto-columns: 46%; gap: 10px; }
  .card__body { padding: 10px; }
  .card__name { font-size: 13px; }
  .price b { font-size: 16px; }
  .price small { display: none; }
  .topbar p .show-sm { display: none; }
  .hero { aspect-ratio: auto; min-height: 250px; border-radius: 18px; }
  .hero__shade { background: linear-gradient(0deg, rgba(2,44,34,.95) 0%, rgba(2,44,34,.75) 55%, rgba(2,44,34,.25) 100%); align-items: flex-end; }
  .hero__txt { padding: 18px 18px 34px; gap: 8px; }
  .hero__txt h1, .hero__txt h2 { font-size: 19px; }
  .hero__txt p { font-size: 13px; }
  .hero__cta .btn--glass { display: none; }
  .trust { gap: 8px; }
  .trust__i { gap: 8px; }
  .trust__i small { display: none; }
  .trust__i > span { width: 32px; height: 32px; }
  .trust__i b { font-size: 12.5px; }
  .hero__txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__arrow { display: none; }
  .groups { gap: 8px; }
  .group { flex-direction: column; text-align: center; padding: 12px 6px; gap: 6px; }
  .group small { display: none; }
  .group b { font-size: 13px; }
  .panel { padding: 14px; border-radius: 16px; }
  .sec-title { font-size: 17px; }
  .trust__i { padding: 10px; }
  .dz-grid { grid-template-columns: 1fr; }
  .qz { padding: 18px 14px; border-radius: 18px; }
  .qz__opts { grid-template-columns: 1fr; }
  .qz__pick { grid-template-columns: repeat(2, 1fr); }
  .pd__buy { display: none; }
  .mobile-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 44; background: #fff; padding: 10px 12px; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
  .mobile-buy .btn { padding: 12px 10px; }
  body.has-mobile-buy { padding-bottom: calc(var(--tabbar-h) + 68px); }
  body.has-mobile-buy .fab { bottom: calc(var(--tabbar-h) + 82px); }
  .spec { grid-template-columns: 110px 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; height: var(--tabbar-h); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar .is-active { color: var(--green-700); }
  .tabbar b { position: absolute; margin: -34px 0 0 22px; background: var(--red-600); color: #fff; border-radius: 999px; font-size: 10px; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
  .tabbar b:empty { display: none; }
  .tabbar button { position: relative; }
  .footer { padding-bottom: 12px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: #d1fae5; margin-top: 48px; padding-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr; gap: 28px; }
.footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer li { font-size: 14px; padding: 4px 0; color: #a7f3d0; }
.footer a:hover { color: var(--amber-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 16px; padding-bottom: 20px; font-size: 12.5px; color: #6ee7b7; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hệ thống (quản trị) ---------- */
.adm { padding-top: 16px; }
.adm__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm__tabs a { padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.adm__tabs a.is-on { color: var(--green-800); border-color: var(--green-600); }
.adm__login { max-width: 420px; margin: 40px auto 0; display: grid; gap: 16px; }
.adm__search { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 240px; background: #fff; }
.adm__orders { display: grid; gap: 12px; }
.adm__order { display: grid; gap: 10px; padding: 16px; }
.adm__order-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.adm__money { margin-left: auto; color: var(--red-600); font-size: 17px; }
.adm__order-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; font-size: 14px; }
.adm__items { white-space: pre-line; background: #fafaf9; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.adm__order-edit { display: grid; grid-template-columns: 160px 1fr 2fr auto; gap: 8px; }
.adm__order-edit select, .adm__order-edit input, .adm__form select { border: 1px solid #d6d3d1; border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 14px; }
.adm__row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm__row:last-child { border-bottom: 0; }
.adm__row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.adm__toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.adm__toggle input { accent-color: var(--green-700); width: 17px; height: 17px; }
.adm__form { display: grid; gap: 14px; }
.adm__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm__grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adm__h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
.adm__animals { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.adm__thumbs { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.adm__thumbs img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.adm__actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 6px; }
.adm__banners { display: grid; gap: 14px; }
.adm__banner { display: grid; gap: 10px; }
.adm__banner-img { aspect-ratio: 26 / 7; border-radius: 12px; overflow: hidden; background: var(--green-950); }
.adm__banner-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .adm__order-grid, .adm__grid2 { grid-template-columns: 1fr; }
  .adm__grid4 { grid-template-columns: 1fr 1fr; }
  .adm__order-edit { grid-template-columns: 1fr 1fr; }
  .adm__row { grid-template-columns: 48px 1fr; }
  .adm__row img { width: 48px; height: 48px; }
  .adm__search { min-width: 0; width: 100%; }
}

/* ---------- Giao diện theo cài đặt ---------- */
.logo__mark--img { background: #fff; overflow: hidden; padding: 3px; }
.logo__mark--img .ico { display: none; }
.logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.header.has-cover { background: linear-gradient(rgba(0, 0, 0, var(--cover-dim, .7)), rgba(0, 0, 0, var(--cover-dim, .7))), var(--cover) center / cover no-repeat, var(--green-900); }
.header.has-cover .nav { background: rgba(0, 0, 0, .28); }
.header.has-cover .header__row { min-height: 96px; }
body.has-bg { background: linear-gradient(rgba(245, 245, 244, .9), rgba(245, 245, 244, .9)), var(--page-bg) center / cover fixed, var(--bg); }
body[data-hero="gon"] .hero { aspect-ratio: 30 / 8; min-height: 190px; }
body[data-hero="cao"] .hero { aspect-ratio: 22 / 8; min-height: 300px; }
@media (max-width: 680px) { .header.has-cover .header__row { min-height: 0; } body[data-hero] .hero { aspect-ratio: auto; } }

/* ---------- Hệ thống: bố cục theo bản AI Studio ---------- */
.adm__hero { border-radius: 22px; padding: 22px 24px; background: radial-gradient(circle at 90% 10%, rgba(251,191,36,.22), transparent 40%), linear-gradient(135deg, var(--green-900), var(--green-950)); color: #fff; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.adm__hero h1 { font-size: 24px; font-weight: 800; margin: 6px 0 4px; }
.adm__hero p { color: #d1fae5; font-size: 14px; max-width: 620px; }
.adm__hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.adm__alert { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--amber-100); color: #78350f; font-size: 14px; border: 1px solid #fcd34d; }
.adm__tabs2 { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: thin; }
.adm__tabs2 a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.adm__tabs2 a .ico { color: var(--green-700); }
.adm__tabs2 a.is-on { background: var(--green-800); color: #fff; border-color: var(--green-900); box-shadow: var(--shadow); }
.adm__tabs2 a.is-on .ico { color: var(--amber-400); }
.adm__tabs2 i { font-style: normal; background: var(--red-600); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.adm__lock { width: 52px; height: 52px; border-radius: 16px; background: var(--green-50); color: var(--green-700); justify-content: center; }
.adm__lock .ico { width: 26px; height: 26px; }
.adm__stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.adm__stat { padding: 14px 16px; display: grid; gap: 2px; }
.adm__stat span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.adm__stat b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm__stat small { font-size: 12px; color: var(--muted); }
.adm__stat--red b { color: var(--red-600); }
.adm__stat--amber b { color: #d97706; }
.adm__stat--blue b { color: #0284c7; }
.adm__stat--green b { color: var(--green-700); }
.adm__two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.adm__mini { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm__mini:last-child { border-bottom: 0; }
.adm__quick { display: grid; gap: 10px; align-content: start; }
.st { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st--new { background: var(--amber-100); color: #92400e; }
.st--ok { background: #e0f2fe; color: #075985; }
.st--ship { background: #ede9fe; color: #5b21b6; }
.st--done { background: #dcfce7; color: #166534; }
.st--cancel { background: var(--bg); color: var(--muted); }
.adm__pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.adm__pcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.adm__pcard.is-hidden { opacity: .55; }
.adm__pimg { aspect-ratio: 4 / 3; position: relative; background: #fafaf9; }
.adm__pimg img { width: 100%; height: 100%; object-fit: cover; }
.adm__pimg .tag { position: absolute; top: 8px; left: 8px; }
.adm__pbody { padding: 12px 14px; display: grid; gap: 4px; flex: 1; }
.adm__pname { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm__pact { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.adm__pact .adm__toggle { margin-right: auto; }
.adm__del { color: var(--red-600); }
.adm__step { display: grid; gap: 14px; }
.adm__step-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm__step-h h3 { font-size: 16px; font-weight: 800; }
.adm__badge { background: var(--green-700); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.adm__badge--amber { background: var(--amber-500); color: var(--green-950); }
.adm__badge--soft { background: var(--green-100); color: var(--green-900); }
.adm__step--scan { border: 2px solid #6ee7b7; background: linear-gradient(90deg, var(--green-50), #f0fdfa 60%, var(--amber-50)); }
.adm__step--price { border: 2px solid #fcd34d; }
.adm__scanbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm__scanbar .pick__url { flex: 1; min-width: 200px; width: auto; }
.adm__scanmsg { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.adm__scanmsg.ok { border-color: #6ee7b7; color: var(--green-900); }
.adm__scanmsg.err { border-color: #fca5a5; color: #7f1d1d; background: var(--red-50); }
.adm__imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.adm__img { position: relative; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.adm__img.is-main { border-color: var(--amber-500); }
.adm__img img { width: 100%; height: 100%; object-fit: cover; }
.adm__img .tag { position: absolute; left: 6px; bottom: 6px; }
.adm__img-act { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.adm__img-act button { width: 26px; height: 26px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; }
.adm__more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--green-800); }
.adm__more textarea { width: 100%; margin-top: 8px; border: 1px solid #d6d3d1; border-radius: 12px; padding: 10px; }
.adm__sub { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.adm__sub h4 { font-size: 14px; font-weight: 800; }
.adm__toggle--big { font-size: 15px; }
.adm__combos { display: grid; gap: 8px; }
.adm__crow { display: grid; grid-template-columns: 2fr 90px 140px 1.2fr auto; gap: 8px; align-items: center; }
.adm__crow--h span { font-size: 12px; font-weight: 700; color: var(--muted); }
.adm__crow input { border: 1px solid #d6d3d1; border-radius: 10px; padding: 8px 10px; font-size: 14px; min-width: 0; }
.adm__csave { grid-column: 1 / -1; color: var(--green-700); font-weight: 600; margin-top: -4px; }
.adm__savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.pick { display: grid; gap: 6px; }
.pick__label { font-size: 13px; font-weight: 700; }
.pick__box { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; }
.pick__preview { aspect-ratio: 4 / 3; border-radius: 12px; background: repeating-conic-gradient(#f5f5f4 0 25%, #fff 0 50%) 50% / 16px 16px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; }
.pick__preview img { width: 100%; height: 100%; object-fit: contain; }
.pick__ctl { display: grid; gap: 8px; justify-items: start; }
.pick__btn { cursor: pointer; }
.pick__url { width: 100%; border: 1px solid #d6d3d1; border-radius: 10px; padding: 8px 10px; font-size: 13px; background: #fff; }
.adm__swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm__swatches button { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; text-align: left; }
.adm__swatches button.is-on { border-color: var(--ink); }
.adm__swatches i { width: 16px; height: 16px; border-radius: 999px; flex: none; }
.adm__form input[type=range] { width: 100%; accent-color: var(--green-700); }
.adm__bprev { aspect-ratio: 26 / 7; border-radius: 14px; background-size: cover; background-position: center; color: #fff; display: grid; align-content: center; justify-items: start; gap: 6px; padding: 18px 22px; }
.adm__bprev b { font-size: clamp(16px, 2vw, 22px); font-weight: 800; max-width: 70%; }
.adm__bprev small { color: #d1fae5; max-width: 70%; }
@media (max-width: 1080px) { .adm__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .adm__stats { grid-template-columns: repeat(2, 1fr); }
  .adm__two { grid-template-columns: 1fr; }
  .adm__crow { grid-template-columns: 1fr 70px 110px; }
  .adm__crow--h { display: none; }
  .adm__crow input[data-c="gift"] { grid-column: 1 / 3; }
  .pick__box { grid-template-columns: 110px 1fr; }
  .adm__swatches { grid-template-columns: repeat(2, 1fr); }
  .adm__hero h1 { font-size: 20px; }
}

/* Nút Hệ thống ở đầu trang chỉ hiện trên điện thoại (máy tính đã có ở thanh menu) */
.only-sm { display: none !important; }
@media (max-width: 680px) { .only-sm { display: inline-flex !important; } }

.is-armed { background: var(--red-600) !important; color: #fff !important; border-color: var(--red-600) !important; }

/* Trang Hệ thống: ẩn nút Zalo/Gọi nổi để không che nút Lưu */
body.is-admin .fab { display: none; }

/* Thành phần, công dụng, liều dùng: giữ xuống dòng như trên nhãn */
.spec dd, .tabpane > p:first-child { white-space: pre-line; }

/* Khách lần đầu: che nội dung mẫu cho tới khi dữ liệu Sheet về */
body.is-loading #main { visibility: hidden; min-height: 60vh; }
body.is-loading #main::before { content: "Đang tải sản phẩm…"; visibility: visible; display: block; text-align: center; padding: 18vh 16px; color: var(--muted, #6b7280); font-weight: 600; }

/* Sổ bệnh: thẻ không ảnh, sao mức độ nguy hiểm, khung AI */
.dz-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { letter-spacing: 1px; color: #f59e0b; }
.stars i { font-style: normal; color: rgba(0, 0, 0, .15); }
.danger--4 .stars { color: #fde68a; }
.danger--4 .stars i { color: rgba(255, 255, 255, .35); }
.chip .stars { font-size: 11px; margin-left: 4px; }
.ai-box { display: grid; gap: 12px; margin-top: 16px; border: 2px solid var(--green-600); }
.ai-box__head { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--green-800); }
.ai-box__text { white-space: pre-line; line-height: 1.6; }
.ai-box__sub { font-weight: 800; font-size: 14px; }
.ai-box__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-box__prods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ai-box__note { font-size: 13px; }
.ai-box__wait::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--green-600); border-right-color: transparent; border-radius: 50%; animation: aispin .8s linear infinite; vertical-align: -1px; }
@keyframes aispin { to { transform: rotate(360deg); } }

/* Đánh giá thật + lời dược sĩ */
.tip { background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.tip__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--green-800); }
.tip__head small { color: var(--muted); font-weight: 400; }
.tip p { white-space: pre-line; }
.rv-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.rv-sum > b { font-size: 26px; color: var(--ink); }
.review__img img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.review__reply { background: #f8fafc; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.rv-form { display: grid; gap: 12px; margin-top: 8px; background: #fffdf7; }
.rv-form h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.rv-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rv-stars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rv-stars button { font-size: 30px; line-height: 1; color: rgba(0, 0, 0, .18); background: none; border: 0; padding: 2px; cursor: pointer; }
.rv-stars button.is-on { color: #f59e0b; }
.rv-stars .muted { margin-left: 8px; font-size: 14px; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Nông trại AsiaFarm */
.nt { display: grid; gap: 16px; }
.nt-coin { vertical-align: -4px; }
.nt-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: aispin .8s linear infinite; vertical-align: -2px; }
.nt-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; background: linear-gradient(160deg, #ecfccb, #d1fae5 55%, #bae6fd); border-radius: 24px; padding: 28px; overflow: hidden; }
.nt-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--green-900); margin: 8px 0; }
.nt-hero__txt > p { font-size: 16px; color: var(--ink-2); }
.nt-rules { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: 15px; }
.nt-rules li { padding-left: 28px; text-indent: -28px; }
.nt-rules li .nt-coin { display: inline-block; margin-right: 6px; text-indent: 0; }
.nt-login { display: grid; gap: 8px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(6, 78, 59, .12); max-width: 420px; }
.nt-login label { font-weight: 700; font-size: 14px; }
.nt-login input { font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; width: 100%; }
.nt-login #ntNameBox { display: grid; gap: 8px; }
.nt-login #ntNameBox[hidden] { display: none; }
.nt-hero__art { position: relative; height: 320px; }
.nt-hero__art img { position: absolute; width: 38%; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .18)); animation: ntBob 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
.nt-hero__art img:nth-child(1) { left: 2%; top: 8%; } .nt-hero__art img:nth-child(2) { left: 36%; top: 0; } .nt-hero__art img:nth-child(3) { left: 64%; top: 12%; }
.nt-hero__art img:nth-child(4) { left: 12%; top: 56%; width: 30%; } .nt-hero__art img:nth-child(5) { left: 56%; top: 58%; width: 32%; }
@keyframes ntBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.nt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nt-top h1 { font-size: 24px; font-weight: 800; color: var(--green-900); }
.nt-top__act { display: flex; gap: 8px; align-items: center; }
.nt-wallet { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #fef3c7, #fde68a); border: 1px solid #fcd34d; color: #78350f; padding: 8px 14px; border-radius: 999px; font-size: 16px; }

/* Cảnh trại */
.nt-scene { --k: 1; position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(6, 78, 59, .18); user-select: none; background: #bae6fd; }
.nt-sky { position: absolute; inset: 0 0 72% 0; background: linear-gradient(180deg, #7dd3fc, #e0f2fe); }
.nt-sun { position: absolute; right: 6%; top: 8%; width: 8%; animation: ntSpin 40s linear infinite; }
.nt-cloud { position: absolute; top: 12%; width: 11%; opacity: .95; animation: ntCloud 60s linear infinite; }
.nt-cloud--2 { top: 30%; width: 8%; animation-duration: 85s; animation-delay: -40s; }
@keyframes ntCloud { from { left: -15%; } to { left: 110%; } }
@keyframes ntSpin { to { transform: rotate(360deg); } }
.nt-land { position: absolute; left: 0; right: 0; top: 26%; bottom: 0; background: radial-gradient(120% 70% at 50% 0%, #86efac, #4ade80 45%, #22c55e); }
.nt-fence { position: absolute; left: 25%; right: 28%; top: 31%; height: 30%; border: 5px solid #b45309; border-radius: 14px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(180, 83, 9, .25) 22px 26px), rgba(254, 243, 199, .35); box-shadow: inset 0 0 0 3px #fbbf24; }
.nt-pond { position: absolute; left: 3%; right: 3%; top: 66%; bottom: -8%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background: radial-gradient(80% 90% at 50% 20%, #38bdf8, #0284c7 70%, #075985); box-shadow: inset 0 10px 0 rgba(255, 255, 255, .25), 0 -6px 0 #a3e635; overflow: hidden; }
.nt-pond::before { content: ""; position: absolute; inset: 0 -30px 0 -30px; background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .18) 0 2px, transparent 3px 26px); animation: ntWater 6s linear infinite; }
@keyframes ntWater { to { transform: translateX(26px); } }
.nt-dec { position: absolute; width: 7%; transform: translate(-10%, -60%); filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .2)); pointer-events: none; }
.nt-dec--nha { width: 12%; }
.nt-dec--cay { width: 10%; }
.nt-dec--hoa { width: 4.6%; }
.nt-dec--ao { width: 5%; animation: ntFloat 4s ease-in-out infinite; }
@keyframes ntFloat { 50% { transform: translate(-10%, -66%); } }
.nt-rainbow { position: absolute; left: 30%; top: 0; width: 30%; opacity: .85; }
.nt-fly { position: absolute; top: var(--y); left: 0; width: 4%; animation: ntFlyX var(--d) ease-in-out infinite alternate; z-index: 80; pointer-events: none; }
.nt-fly img { width: 100%; animation: ntBob 1.2s ease-in-out infinite; }
@keyframes ntFlyX { from { left: 4%; } to { left: 90%; } }

.nt-ani { position: absolute; width: calc(var(--w) * var(--k) * 1%); transform: translate(-50%, -85%); transition: left 2s linear, top 2s linear; pointer-events: none; }
.nt-ani img { width: 100%; display: block; filter: drop-shadow(0 8px 5px rgba(0, 0, 0, .22)); transform-origin: 50% 100%; }
.nt-ani::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4%; height: 12%; background: rgba(0, 0, 0, .18); border-radius: 50%; z-index: -1; }
.nt-ani.is-flip img { transform: scaleX(-1); }
.nt-ani.is-move img { animation: ntHop .4s ease-in-out infinite; }
.nt-ani.is-flip.is-move img { animation-name: ntHopFlip; }
@keyframes ntHop { 50% { transform: translateY(-8%) rotate(-4deg); } }
@keyframes ntHopFlip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-8%) rotate(4deg); } }
.nt-swim { transition-duration: 2.2s; }
.nt-swim img { opacity: .92; filter: drop-shadow(0 4px 6px rgba(7, 89, 133, .5)); }
.nt-swim::after { display: none; }
.nt-swim.is-move img { animation: ntSwim .8s ease-in-out infinite; }
.nt-swim.is-flip.is-move img { animation-name: ntSwimFlip; }
@keyframes ntSwim { 50% { transform: rotate(-8deg) translateY(-6%); } }
@keyframes ntSwimFlip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) rotate(8deg) translateY(-6%); } }
.nt-ani.is-sick img { filter: saturate(.55) drop-shadow(0 8px 5px rgba(0, 0, 0, .22)); }
.nt-ani.is-sick { transition-duration: 3.5s; }
.nt-pet { transition-duration: 2.6s; }
.nt-empty { position: absolute; z-index: 90; border: 2px dashed #fff; background: rgba(6, 78, 59, .55); color: #fff; font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 14px; cursor: pointer; transform: translate(-50%, -50%); }
.nt-empty--bo { left: 48%; top: 46%; } .nt-empty--ao { left: 50%; top: 84%; }
.nt-alert { position: absolute; z-index: 95; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; background: #fff; color: #b91c1c; border: 2px solid #fca5a5; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); animation: ntPulse 1.4s ease-in-out infinite; transform: translateX(-50%); }
.nt-alert img { width: 26px; height: 26px; }
.nt-alert--bo { left: 48%; top: 27%; } .nt-alert--ao { left: 50%; top: 67%; }
@keyframes ntPulse { 50% { transform: translateX(-50%) scale(1.07); } }

.nt-tabs { display: flex; gap: 6px; overflow-x: auto; }
.nt-tabs button { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; }
.nt-tabs button.is-on { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.nt-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.nt-slot { display: grid; gap: 12px; scroll-margin-top: 120px; }
.nt-slot h3 { font-size: 18px; font-weight: 800; }
.nt-slot__head { display: flex; gap: 12px; align-items: center; }
.nt-slot__head img { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
.nt-bar { height: 12px; background: var(--green-50); border-radius: 999px; overflow: hidden; border: 1px solid var(--green-100); }
.nt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a3e635, var(--green-600)); border-radius: inherit; }
.nt-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.nt-meta .ok { color: var(--green-700); }
.nt-tip { font-size: 14px; background: var(--green-50); border-radius: 12px; padding: 10px 12px; color: var(--green-900); }
.nt-care { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nt-care .btn { gap: 6px; flex-wrap: wrap; }
.nt-care small { font-weight: 500; opacity: .8; }
.nt-due { display: grid; gap: 8px; }
.nt-due h4 { display: flex; gap: 6px; align-items: center; font-size: 15px; color: #b91c1c; }
.nt-ev { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; font: inherit; background: var(--amber-50); border: 1px solid #fde68a; border-radius: 14px; padding: 8px 10px; cursor: pointer; }
.nt-ev.is-hot { background: var(--red-50); border-color: #fecaca; }
.nt-ev img { width: 40px; height: 40px; }
.nt-ev small { display: block; color: var(--muted); font-size: 12.5px; }
.nt-calm { font-size: 14px; }
.nt-used summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.nt-used > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nt-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; background: #f5f5f4; border-radius: 999px; padding: 3px 10px 3px 4px; }
.nt-chip img { width: 20px; height: 20px; }
.nt-pick h2 { font-size: 20px; font-weight: 800; }
.nt-pick__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.nt-pick__grid--sm { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.nt-pickcard { display: grid; justify-items: center; gap: 4px; text-align: center; font: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 8px; cursor: pointer; transition: transform .15s, border-color .15s; }
.nt-pickcard:hover { transform: translateY(-3px); border-color: var(--green-600); }
.nt-pickcard img { width: 72px; height: 72px; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .15)); }
.nt-pickcard b { font-size: 16px; }
.nt-pickcard small { font-size: 12px; color: var(--muted); }
.nt-hist h3 { font-weight: 800; margin-bottom: 6px; }
.nt-hist img { vertical-align: -5px; }
.nt-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.nt-item { display: grid; justify-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; background: #fff; }
.nt-item img { width: 64px; height: 64px; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .15)); }
.nt-item small { color: var(--muted); font-size: 12px; }
.nt-item .btn { gap: 4px; }
.nt-guide { display: grid; gap: 10px; }
.nt-guide h2 { font-size: 20px; font-weight: 800; }
.nt-guide ol { padding-left: 20px; display: grid; gap: 6px; }

.nt-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.nt-modal__bg { position: absolute; inset: 0; background: rgba(2, 44, 34, .55); }
.nt-modal__box { position: relative; background: #fff; border-radius: 22px; padding: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; animation: ntIn .2s ease-out; }
@keyframes ntIn { from { transform: translateY(16px); opacity: 0; } }
.nt-modal__x { position: absolute; right: 10px; top: 10px; }
.nt-modal h2 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.nt-modal h4 { font-size: 15px; font-weight: 800; }
.nt-evhead { display: flex; gap: 12px; align-items: flex-start; padding-right: 32px; }
.nt-evhead small { color: var(--muted); }
.nt-why { display: grid; grid-template-columns: 40px 1fr; gap: 10px; background: var(--green-50); border-radius: 14px; padding: 12px; }
.nt-why a { color: var(--green-700); font-weight: 700; font-size: 14px; }
.nt-choice { display: grid; gap: 8px; }
.nt-choice .btn { flex-direction: column; gap: 2px; height: auto; padding: 12px 14px; line-height: 1.3; }
.nt-choice .btn small { font-weight: 500; font-size: 12.5px; opacity: .9; }
.nt-note { font-size: 13px; }
.nt-trader { display: grid; grid-template-columns: 72px 1fr 64px; gap: 10px; align-items: center; }
.nt-say { background: var(--amber-50); border: 1px solid #fde68a; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 15px; }
.nt-truck { animation: ntDrive 1.2s ease-out; }
@keyframes ntDrive { from { transform: translateX(80px); opacity: 0; } }
.nt-price { display: grid; gap: 2px; text-align: center; background: linear-gradient(180deg, #fffbeb, #fef3c7); border-radius: 16px; padding: 14px; }
.nt-price > b { font-size: 30px; color: #92400e; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.nt-price .nt-coin { width: 30px; height: 30px; }
.nt-price small { color: var(--muted); }
.nt-loi { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.nt-loi li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; }
.nt-loi li small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.nt-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 10px 0; }
.nt-pay { background: var(--amber-50); border: 1px solid #fde68a; border-radius: 14px; padding: 10px 12px; }
.nt-pay[hidden] { display: none; }
.nt-pay__in { display: grid; grid-template-columns: auto 28px 1fr; gap: 8px; align-items: center; cursor: pointer; }
.nt-pay__in input { width: 20px; height: 20px; accent-color: var(--green-700); }
.nt-pay__in small { display: block; color: var(--ink-2); font-size: 12.5px; }

@media (max-width: 860px) {
  .nt-hero { grid-template-columns: 1fr; padding: 20px; }
  .nt-hero__art { height: 200px; order: -1; }
  .nt-slots { grid-template-columns: 1fr; }
  .nt-pick__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .nt-scene { --k: 1.55; aspect-ratio: 4 / 5; }
  .nt-dec--nha { width: 17%; } .nt-dec--cay { width: 14%; } .nt-dec--hoa { width: 7%; } .nt-dec--ao { width: 8%; }
  .nt-sun { width: 13%; } .nt-cloud { width: 18%; } .nt-fly { width: 7%; } .nt-rainbow { width: 50%; left: 20%; }
  .nt-fence { left: 18%; right: 20%; }
  .nt-alert { font-size: 12.5px; }
  .nt-care { grid-template-columns: 1fr; }
  .nt-trader { grid-template-columns: 56px 1fr; } .nt-truck { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nt-ani, .nt-ani img, .nt-fly, .nt-cloud, .nt-sun, .nt-hero__art img, .nt-alert, .nt-pond::before { animation: none !important; transition: none !important; } }

/* Nông trại: kho AsiaFarm, 1 con mỗi lứa */
.nt-slots { grid-template-columns: 1fr; max-width: 760px; }
.nt-empty { left: 50%; top: 50%; }
.nt-barn { position: absolute; left: 3%; top: 9%; width: 19%; z-index: 20; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .25)); pointer-events: none; }
.nt-barn__roof { height: 0; padding-bottom: 34%; background: linear-gradient(160deg, #7f1d1d, #991b1b); clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%); }
.nt-barn__sign { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); background: var(--green-800); color: #fef3c7; border: 2px solid #fbbf24; border-radius: 6px; font-weight: 800; font-size: clamp(7px, 1.25vw, 13px); letter-spacing: .04em; padding: 2px 6px; white-space: nowrap; }
.nt-barn__body { position: relative; height: 0; padding-bottom: 52%; background: linear-gradient(180deg, #dc2626, #b91c1c); border: 3px solid #fef2f2; border-top: 0; }
.nt-barn__body i { position: absolute; left: 33%; right: 33%; top: 25%; bottom: 0; background: #fff7ed; border: 3px solid #fef2f2; background-image: linear-gradient(45deg, transparent 46%, #b45309 47% 53%, transparent 54%), linear-gradient(-45deg, transparent 46%, #b45309 47% 53%, transparent 54%); }
.nt-dec--nha { width: 11%; }
@media (max-width: 560px) { .nt-barn { width: 30%; } }
.nt-land { background: radial-gradient(60% 30% at 70% 30%, rgba(255, 255, 255, .18), transparent 70%), repeating-linear-gradient(100deg, rgba(255, 255, 255, .05) 0 18px, transparent 18px 40px), radial-gradient(120% 70% at 50% 0%, #86efac, #4ade80 45%, #16a34a); }
.nt-pond { left: 14%; right: 10%; top: 70%; bottom: -12%; border-radius: 50%; box-shadow: inset 0 10px 0 rgba(255, 255, 255, .25), 0 0 0 6px #a3e635, 0 0 0 12px rgba(120, 53, 15, .25); }
/* Đồ trang trí đứng dưới đất: điểm đặt là chân món đồ */
.nt-dec { transform: translate(-50%, -100%); }
.nt-dec--ao { transform: translate(-50%, -70%); animation: ntFloatAo 4s ease-in-out infinite; }
@keyframes ntFloatAo { 50% { transform: translate(-50%, -78%); } }
/* Chăm sóc ngay trong trại */
.nt-bubble { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; max-width: 240px; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; line-height: 1.2; color: #78350f; background: #fffbeb; border: 2px solid #fbbf24; border-radius: 14px; padding: 4px 9px 4px 4px; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); cursor: pointer; z-index: 99; animation: ntBubble 1.6s ease-in-out infinite; white-space: normal; width: max-content; }
.nt-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fbbf24; }
.nt-bubble img { width: 24px; height: 24px; flex: none; }
.nt-bubble b { background: #dc2626; color: #fff; border-radius: 999px; padding: 1px 6px; font-size: 11px; }
.nt-bubble.is-hot { color: #7f1d1d; background: #fef2f2; border-color: #f87171; }
.nt-bubble.is-hot::after { border-top-color: #f87171; }
.nt-ani.is-flip .nt-bubble { transform: translate(-50%, -6px); }
@keyframes ntBubble { 50% { transform: translate(-50%, -12px); } }
.nt-hud { position: absolute; left: 2%; bottom: 3%; z-index: 120; display: flex; gap: 8px; flex-wrap: wrap; max-width: 75%; }
.nt-hudbtn { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; font: inherit; font-weight: 800; font-size: 14px; color: var(--green-900); background: rgba(255, 255, 255, .95); border: 2px solid #fff; border-radius: 16px; padding: 6px 12px 6px 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); cursor: pointer; }
.nt-hudbtn img { grid-row: span 2; width: 30px; height: 30px; }
.nt-hudbtn small { font-weight: 600; font-size: 11px; color: var(--muted); }
.nt-hudbtn.is-need { border-color: #fbbf24; animation: ntPulseHud 1.4s ease-in-out infinite; }
.nt-hudbtn.is-done small { color: var(--green-700); }
.nt-hudbtn:disabled { opacity: .7; cursor: default; animation: none; }
.nt-hudbtn--sell { background: var(--red-600); color: #fff; border-color: #fecaca; animation: ntPulseHud 1.2s ease-in-out infinite; }
@keyframes ntPulseHud { 50% { transform: scale(1.05); } }
.nt-drop { position: absolute; width: 3%; z-index: 98; pointer-events: none; animation: ntDrop 1s ease-in forwards; }
@keyframes ntDrop { from { transform: translate(-50%, -60px) rotate(0); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, 30px) rotate(160deg); opacity: 0; } }
@media (max-width: 560px) { .nt-hud { left: 2%; right: 2%; max-width: none; justify-content: center; } .nt-hudbtn { font-size: 12.5px; } .nt-drop { width: 5%; } .nt-bubble { max-width: 160px; font-size: 11.5px; } }

/* Chuông việc cần làm ở tab Nông trại */
.nav-bell { display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; background: #dc2626; color: #fff; border-radius: 999px; padding: 1px 6px 1px 5px; font-size: 11px; font-weight: 800; line-height: 1.4; box-shadow: 0 0 0 2px #fff; animation: ntRing 2.4s ease-in-out infinite; }
.nav-bell[hidden] { display: none; }
.tabbar .nav-bell { position: absolute; top: 2px; left: 52%; margin: 0; }
.tabbar a { position: relative; }
@keyframes ntRing { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } }

/* Cảnh trại ảnh thật */
.nt-scene { background: #cfe8f7; }
.nt-sky { inset: 0 0 70% 0; background: linear-gradient(180deg, #7fb6e6 0%, #b9dcf2 60%, #e3f1f7 100%); overflow: hidden; }
.nt-cl { position: absolute; top: 18%; left: -30%; width: 34%; height: 38%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); filter: blur(6px); animation: ntCl 120s linear infinite; }
.nt-cl--2 { top: 44%; width: 26%; height: 28%; animation-duration: 160s; animation-delay: -70s; opacity: .8; }
@keyframes ntCl { to { left: 110%; } }
.nt-trees { position: absolute; left: 0; right: 0; top: 19%; height: 10%; background: radial-gradient(14% 100% at 6% 100%, #2f5d2a 60%, transparent 62%), radial-gradient(10% 80% at 20% 100%, #3b6b31 60%, transparent 62%), radial-gradient(16% 110% at 38% 100%, #2c5626 60%, transparent 62%), radial-gradient(12% 90% at 57% 100%, #3d6e34 60%, transparent 62%), radial-gradient(18% 100% at 77% 100%, #2f5d2a 60%, transparent 62%), radial-gradient(12% 85% at 95% 100%, #386630 60%, transparent 62%); filter: blur(1.5px); }
.nt-land { top: 28%; background: linear-gradient(180deg, rgba(255, 255, 240, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 30, 0, .18)), var(--co) 0 0 / 260px 260px; }
.nt-pond { left: 12%; right: 9%; top: 71%; bottom: -10%; border-radius: 46% 54% 40% 60% / 58% 50% 50% 42%; background: radial-gradient(70% 60% at 45% 35%, rgba(255, 255, 255, .18), transparent 60%), radial-gradient(closest-side, transparent 70%, rgba(20, 45, 30, .45)), var(--nuoc) 0 0 / 300px 300px; box-shadow: inset 0 8px 18px rgba(10, 30, 20, .55), 0 0 0 4px rgba(110, 88, 52, .7), 0 0 14px 8px rgba(70, 90, 40, .45); }
.nt-pond::before { display: none; }
.nt-barn { top: 7%; left: 2%; width: 22%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); }
.nt-barn img { width: 100%; display: block; }
.nt-barn__sign { top: 30%; left: 50%; width: 32%; padding: 1px 0; text-align: center; border-width: 1px; border-radius: 2px; background: #14532d; font-size: clamp(6px, 1vw, 12px); }
.nt-ani img { filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .3)); }
.nt-dec { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .3)); transform-origin: 50% 100%; }
.nt-dec--hoa, .nt-dec--cay { animation: ntSway 4.5s ease-in-out infinite alternate; }
.nt-dec--cay { animation-duration: 6s; }
@keyframes ntSway { from { transform: translate(-50%, -100%) rotate(-2.2deg); } to { transform: translate(-50%, -100%) rotate(2.2deg); } }
.nt-dec--xe { width: 13%; animation: ntXe 22s ease-in-out infinite; }
@keyframes ntXe { 0% { transform: translate(-50%, -100%) translateX(-55%) scaleX(-1); } 45% { transform: translate(-50%, -100%) translateX(55%) scaleX(-1); } 50% { transform: translate(-50%, -100%) translateX(55%) scaleX(1); } 95% { transform: translate(-50%, -100%) translateX(-55%) scaleX(1); } 100% { transform: translate(-50%, -100%) translateX(-55%) scaleX(-1); } }
.nt-dec--ao { width: 6%; }
.nt-hello { position: absolute; left: 50%; bottom: 105%; transform: translateX(-50%); width: max-content; max-width: 240px; background: #fff; color: var(--green-900); font-weight: 800; font-size: 13.5px; line-height: 1.3; padding: 8px 12px; border-radius: 16px; border: 2px solid #86efac; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); z-index: 100; animation: ntHelloIn .4s ease-out; }
.nt-hello::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #86efac; }
@keyframes ntHelloIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (max-width: 560px) { .nt-barn { width: 34%; } .nt-dec--xe { width: 22%; } .nt-dec--ao { width: 10%; } .nt-hello { max-width: 180px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .nt-dec, .nt-cl, .nav-bell { animation: none !important; } }
.nt-trees { top: 22%; height: 8%; background: linear-gradient(180deg, rgba(79, 122, 58, 0), #557f40 45%, #44702f); filter: blur(3px); }
.nt-dec--nha { width: 16%; }
.nt-dec--cay { width: 11%; }
.nt-dec--hoa { width: 6%; }
@media (max-width: 560px) { .nt-dec--nha { width: 24%; } .nt-dec--cay { width: 17%; } .nt-dec--hoa { width: 9%; } }

/* Trả lại cảnh vẽ như cũ (giữ kho và hoa ảnh thật), ao tự nhiên không sóng tròn */
.nt-sky { inset: 0 0 72% 0; background: linear-gradient(180deg, #7dd3fc, #e0f2fe); }
.nt-land { top: 26%; background: radial-gradient(120% 70% at 50% 0%, #86efac, #4ade80 45%, #22c55e); }
.nt-pond { left: 12%; right: 9%; top: 71%; bottom: -10%; border-radius: 46% 54% 40% 60% / 58% 50% 50% 42%; background: radial-gradient(70% 55% at 45% 30%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(180deg, #3aa0c8, #1d6f93 60%, #155a78); box-shadow: inset 0 8px 18px rgba(10, 40, 60, .45), 0 0 0 4px rgba(120, 95, 55, .55), 0 0 12px 6px rgba(80, 140, 60, .4); }
.nt-dec--nha { width: 12%; }
.nt-dec--cay { width: 10%; }
.nt-dec--hoa { width: 6%; }
@media (max-width: 560px) { .nt-dec--nha { width: 17%; } .nt-dec--cay { width: 14%; } .nt-dec--hoa { width: 9%; } }

/* Kéo thả đồ trang trí */
.nt-scene .nt-dec, .nt-scene .nt-barn { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.nt-scene .is-drag { cursor: grabbing; animation-play-state: paused; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .35)) brightness(1.05); z-index: 110 !important; }

#xuRow[hidden] { display: none; }

/* Giá thị trường 3 miền */
.gia { display: grid; gap: 10px; }
.gia__head { margin-bottom: 0; }
.gia__head .sec-title { display: flex; align-items: center; gap: 8px; }
.gia__head .sec-title svg { color: var(--red-600); }
.gia__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
.gia__tb { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.gia__tb th, .gia__tb td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.gia__tb thead th { background: var(--green-50); color: var(--green-900); font-size: 13px; font-weight: 800; white-space: nowrap; }
.gia__tb tbody tr:last-child > * { border-bottom: 0; }
.gia__tb tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.gia__tb tbody th small, .gia__tb td small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.gia__tb td b { font-size: 16px; color: var(--ink); }
.gia__doi { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gia__doi--len { color: #15803d; }
.gia__doi--xuong { color: var(--red-600); }
.gia__cu { color: #b45309 !important; }
.gia__no { color: #a8a29e; }
.gia__db { max-width: 240px; }
.gia__db b { font-size: 14px !important; white-space: nowrap; }
.gia__db--len b { color: #15803d !important; } .gia__db--xuong b { color: var(--red-600) !important; } .gia__db--ngang b { color: #b45309 !important; }
.gia__db small { line-height: 1.35; }
.gia__chua, .gia__note { font-size: 12.5px; color: var(--muted); }
.gia__note a { color: var(--green-700); }
.gia__nd { font-size: 14.5px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.gia__wait { display: flex; align-items: center; gap: 8px; }
.gia--sp { border-left: 4px solid var(--green-600); }

/* Lượt truy cập trên chân trang */
.visit { background: var(--green-900); color: #d1fae5; border-top: 1px solid rgba(255, 255, 255, .08); }
.visit[hidden] { display: none; }
.visit__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 12px 16px; font-size: 14px; }
.visit__i { display: inline-flex; align-items: center; gap: 6px; }
.visit__i b { color: #fff; font-size: 16px; }
.visit__i--on i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: visitPulse 1.8s infinite; }
@keyframes visitPulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (max-width: 560px) { .visit__in { gap: 6px 16px; font-size: 13px; } .gia__tb { font-size: 13.5px; } }
