/* Trang Giải pháp Thú y & Petshop (/ai-transformation/thu-y-petshop/), dựng 24/11/2026. Nạp sau agent.css. Ảnh thật chụp từ bản demo thu-y-demo. */

/* Khung trình duyệt bọc ảnh màn hình thật */
.ty-may { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #e3e5ee; box-shadow: 0 24px 60px rgba(10, 15, 46, .16), 0 2px 6px rgba(10, 15, 46, .06); }
.ty-may-thanh { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f4f5f8; border-bottom: 1px solid #e3e5ee; }
.ty-may-thanh i { width: 10px; height: 10px; border-radius: 50%; background: #d9dbe3; }
.ty-may-thanh i:first-child { background: #ff6b5f; } .ty-may-thanh i:nth-child(2) { background: var(--vang-logo); } .ty-may-thanh i:nth-child(3) { background: #2ecc71; }
.ty-may-thanh span { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e5ee; font-size: 12px; color: #6b6b72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-may img { display: block; width: 100%; height: auto; }
.ty-may-ghi { margin-top: 10px; font-size: 13px; color: var(--chu-nhat); }

/* Hero: ảnh lệch nhẹ, nhãn vàng nổi */
.hero-trang .ty-may { transform: perspective(1600px) rotateY(-4deg); }
.ty-tem { position: absolute; left: -14px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--mag-navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 6px 8px 0 var(--vang-logo); }
.ty-tem img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ty-tem small { display: block; font-size: 12px; font-weight: 500; color: var(--vang-logo); }
.hero-trang-anh { position: relative; }

/* Dải số 4 ô */
.dai-so.ty-so .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dai-so.ty-so span small { display: block; margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* Thẻ cảnh: thẻ trắng, giờ là chip navy chữ vàng */
.ty-canh .canh .the { background: #fff; }
.ty-canh .canh .gio { display: inline-flex; align-self: start; padding: 4px 10px; border-radius: 999px; background: var(--mag-navy); color: var(--vang-logo); font-weight: 600; }
.ty-canh .canh .gia { color: var(--danger); }

/* Tab màn hình */
.ty-tab-nut { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ty-tab-nut button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--vien-dam); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--chu); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ty-tab-nut button .i { width: 18px; height: 18px; color: var(--mag-xanh); }
.ty-tab-nut button:hover { border-color: var(--mag-navy); }
.ty-tab-nut button[aria-pressed="true"] { background: var(--mag-navy); border-color: var(--mag-navy); color: #fff; }
.ty-tab-nut button[aria-pressed="true"] .i { color: var(--vang-logo); }
.ty-tab-o { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 40px; align-items: center; animation: ty-hien .3s ease; }
.ty-tab-o h3 { font-size: 26px; line-height: 1.25; }
.ty-tab-o p { margin-top: 12px; color: var(--chu-phu); }
.ty-tab-o .tich { margin-top: 18px; }
.ty-tab-o[hidden] { display: none; }
#so-sanh .hop-chua { margin-top: 32px; }
@keyframes ty-hien { from { opacity: 0; transform: translateY(6px); } }

/* Danh sách phân hệ: chip nền đặc */
.ty-phan-he { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding: 22px 24px; border-radius: 16px; background: var(--nen-menu); border: 1px solid var(--vien); }
.ty-phan-he b { flex-basis: 100%; margin-bottom: 4px; font-family: var(--font-tieu-de); font-weight: 500; font-size: 18px; }
.ty-phan-he span { padding: 6px 12px; border-radius: 8px; background: var(--mag-navy); color: #fff; font-size: 14px; font-weight: 600; }
.ty-phan-he span.ai { background: var(--mag-xanh); }
.ty-phan-he span.ai::after { content: 'AI'; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--vang-logo); color: var(--mag-navy); font-size: 11px; font-weight: 700; }

/* Hai cột chữ + ảnh */
.ty-hai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ty-hai.dao > :first-child { order: 2; }
.ty-hai .cam-ve { grid-template-columns: minmax(0, 1fr); }

/* Mốc nhắc */
.ty-moc { display: grid; gap: 12px; margin-top: 8px; }
.ty-moc li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--vien); border-radius: 14px; background: #fff; list-style: none; }
.ty-moc { padding: 0; }
.ty-moc li > b { flex: none; display: grid; place-items: center; min-width: 52px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--mag-vang); color: var(--mag-navy); font-family: var(--font-tieu-de); font-weight: 600; font-size: 16px; }
.ty-moc h3 { font-size: 17px; }
.ty-moc p { margin-top: 2px; font-size: 15px; color: var(--chu-phu); }

/* Máy tính tiền trong lịch tiêm */
.ty-tinh { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: stretch; }
.ty-tinh-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; padding: 26px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.ty-tinh-o label { display: block; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .82); margin-bottom: 8px; }
.ty-tinh-o input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 20px; font-family: var(--font-tieu-de); }
.ty-tinh-o input:focus { outline: 2px solid var(--vang-logo); outline-offset: 1px; }
.ty-tinh-kq { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px; border-radius: 16px; background: #fff; color: var(--chu, #18181b); }
.ty-tinh-kq span { font-size: 14px; font-weight: 600; color: #6b6b72; }
.ty-tinh-kq b { font-family: var(--font-tieu-de); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; color: var(--mag-navy); }
.ty-tinh-kq b em { font-style: normal; color: #c99a00; }
.ty-tinh-kq small { font-size: 13px; color: #6b6b72; }

/* Lỗi hay gặp trên nền tối dùng .loi-cap; nhãn nhỏ */
.ty-loi .loi-cu span { color: #ff9b8f; }

/* Bốn bước triển khai + tiêu đề phụ */
.duong-di.ty-buoc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ty-h3 { margin: 48px 0 16px; font-size: 22px; }

/* Dẫn sang MAG OS Admin */
.ty-chuoi { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 22px 24px; border-radius: 16px; background: var(--mag-navy); color: #fff; }
.ty-chuoi .o-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--vang-logo); color: var(--mag-navy); }
.ty-chuoi p { margin-top: 4px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.ty-chuoi a.nut { margin-left: auto; flex: none; }

@media (max-width: 1020px) {
  .dai-so.ty-so .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-tab-o, .ty-hai, .ty-tinh { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ty-hai.dao > :first-child { order: 0; }
  .duong-di.ty-buoc { grid-template-columns: minmax(0, 1fr); }
  .hero-trang .ty-may { transform: none; }
}
@media (max-width: 700px) {
  .ty-tinh-o { grid-template-columns: minmax(0, 1fr); }
  .ty-tem { left: 8px; bottom: -18px; font-size: 13px; }
  .ty-chuoi { flex-direction: column; align-items: flex-start; }
  .ty-chuoi a.nut { margin-left: 0; }
  .ty-tab-nut button { padding: 8px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ty-tab-o { animation: none; } }
