/* v23: BestPetPass + Team Buy */
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tb-card { background: var(--bs-body-bg); border: 1px solid var(--line, #e7e3dc); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); color: inherit; }
.tb-img { aspect-ratio: 4 / 3; background: var(--brand-soft) center / cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.tb-off { position: absolute; top: .6rem; left: .6rem; background: #e03131; color: #fff; font-weight: 800; border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; }
.tb-tag { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.tb-tag.unlocked { background: #2b8a3e; }
.tb-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tb-title { font-weight: 700; line-height: 1.25; }
.tb-shop { font-size: .82rem; color: var(--bs-secondary-color); }
.tb-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.tb-price .now { font-size: 1.35rem; font-weight: 800; color: var(--brand); }
.tb-price .was { text-decoration: line-through; color: var(--bs-secondary-color); font-size: .9rem; }
.tb-bar { height: 10px; border-radius: 999px; background: var(--bs-secondary-bg); overflow: hidden; }
.tb-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #f59f00); border-radius: 999px; }
.tb-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--bs-secondary-color); }
.tb-meta b { color: var(--bs-body-color); }
.tb-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.tb-chips a { border: 1px solid var(--line, #e7e3dc); border-radius: 999px; padding: .3rem .8rem; text-decoration: none; color: inherit; font-weight: 600; font-size: .9rem; background: var(--bs-body-bg); }
.tb-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pet-hero { background: linear-gradient(135deg, var(--brand) 0%, #13b5a0 55%, #f59f00 130%); color: #fff; padding: 3rem 0 2.5rem; }
.pet-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; }
.pet-hero .lead { color: #e9fffb; max-width: 640px; }
.pet-hero .btn-light { color: var(--brand); font-weight: 800; }
.pet-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: s; }
.pet-step { background: var(--bs-body-bg); border: 1px solid var(--line, #e7e3dc); border-radius: 16px; padding: 1rem 1.1rem; position: relative; }
.pet-step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.tb-voucher { max-width: 420px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line, #e7e3dc); background: var(--bs-body-bg); }
.tb-voucher .top { background: var(--brand); color: #fff; padding: 1rem 1.2rem; }
.tb-voucher .qr { display: flex; justify-content: center; padding: 1.2rem 0 .4rem; background: #fff; }
.tb-voucher .code { text-align: center; font-family: ui-monospace, monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; }
.tb-voucher .body { padding: 1rem 1.2rem 1.2rem; }
.tb-voucher .pay { background: var(--brand-soft); border-radius: 12px; padding: .7rem .9rem; }
.tb-voucher .pay .big { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.tb-status { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 700; background: var(--bs-secondary-bg); }
.tb-status.ready, .tb-status.live, .tb-status.unlocked { background: #d3f9d8; color: #2b8a3e; }
.tb-status.joined, .tb-status.pending { background: #fff3bf; color: #946200; }
.tb-status.refund_due, .tb-status.failed, .tb-status.rejected, .tb-status.forfeited { background: #ffe3e3; color: #c92a2a; }
html[data-bs-theme=dark] .tb-status.ready, html[data-bs-theme=dark] .tb-status.live, html[data-bs-theme=dark] .tb-status.unlocked { background: #1f3b26; color: #8ce99a; }
/* links in the BestPetPass colour (BestFnB keeps its orange) */
body.site-pet { --bs-link-color-rgb: 11, 112, 99; --bs-link-hover-color-rgb: 8, 84, 74; }
html[data-bs-theme=dark] body.site-pet { --bs-link-color-rgb: 99, 230, 190; --bs-link-hover-color-rgb: 150, 242, 215; }
.pet-hero .btn-light, html[data-bs-theme=dark] .pet-hero .btn-light { background: #fff; border-color: #fff; color: var(--brand); }
.pet-hero .btn-light:hover { background: #f1fffc; color: var(--brand-dark); }
.pet-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.pet-services a { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; padding: 1rem .6rem; border: 1px solid var(--line, #e7e3dc); border-radius: 16px; background: var(--bs-body-bg); color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; }
.pet-services a i { font-size: 1.6rem; color: var(--brand); }
.pet-services a:hover { border-color: var(--brand); }
/* v27 Pet Passport card */
.pet-passport { border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(140deg, #0b5e54 0%, #0e8f7e 55%, #12b39d 100%); box-shadow: 0 14px 30px rgba(11,94,84,.28); max-width: 560px; margin: 0 auto; position: relative; }
.pet-passport::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.pet-passport .pp-top { display: flex; justify-content: space-between; padding: .9rem 1.2rem; font-weight: 800; letter-spacing: .14em; font-size: .8rem; background: rgba(0,0,0,.15); }
.pet-passport .pp-body { display: flex; gap: 1.1rem; align-items: center; padding: 1.2rem; }
.pet-passport .pp-paw { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; flex: none; }
.pet-passport .pp-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.pet-passport .pp-name { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin-bottom: .5rem; }
.pet-passport .pp-row { display: flex; gap: 1.6rem; }
.pet-passport .pp-val { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .06em; }
.pet-passport .pp-bottom { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem 1rem; border-top: 1px dashed rgba(255,255,255,.35); }
.pet-passport .pp-tokens { font-size: 1.6rem; font-weight: 800; }
.pet-passport .pp-tokens small { font-size: .8rem; opacity: .85; }
/* v27 Pet Cute Videos */
.moment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.moment-card { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; background: var(--brand-soft) center / cover no-repeat; color: #fff; text-decoration: none; }
.moment-card .mc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.moment-card .mc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: .82rem; }
.moment-card .mc-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moment-card .mc-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.moment-card .mc-plat { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.55); border-radius: 999px; padding: .1rem .5rem; font-size: .7rem; }
/* v27 Pet Games */
.game-card { display: flex; gap: 1rem; align-items: center; }
.game-card .gi { width: 64px; height: 64px; border-radius: 16px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex: none; }
.lb { list-style: none; padding: 0; margin: 0; }
.lb li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line, #e7e3dc); }
.lb li:last-child { border-bottom: 0; }
.lb .rk { width: 28px; height: 28px; border-radius: 50%; background: var(--bs-secondary-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex: none; }
.lb li:nth-child(1) .rk { background: #ffd43b; color: #5c3c00; }
.lb li:nth-child(2) .rk { background: #dee2e6; color: #333; }
.lb li:nth-child(3) .rk { background: #f4a261; color: #4a2300; }
.lb .sc { margin-left: auto; font-weight: 800; }
.mem-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 420px; margin: 0 auto; }
.mem-card { aspect-ratio: 1; border-radius: 14px; border: 0; font-size: 2.2rem; background: var(--brand); color: transparent; cursor: pointer; transition: transform .2s, background .2s; user-select: none; }
.mem-card.open, .mem-card.done { background: var(--bs-body-bg); color: inherit; box-shadow: inset 0 0 0 2px var(--brand); transform: rotateY(180deg) scaleX(-1); }
.mem-card.done { opacity: .55; }
.paw-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 360px; margin: 0 auto; }
.paw-hole { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 60%, #7b5e45 0 45%, #a4825f 46% 100%); font-size: 2.6rem; cursor: pointer; user-select: none; touch-action: manipulation; }
.paw-hole.up { background: radial-gradient(circle at 50% 60%, #ffe8cc 0 45%, #a4825f 46% 100%); }
.paw-hole.hit { background: radial-gradient(circle at 50% 60%, #b2f2bb 0 45%, #a4825f 46% 100%); }
.game-hud { display: flex; justify-content: center; gap: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
/* v28 pet profiles */
.pet-photo { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 2rem; flex: none; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.vp-card { background: var(--bs-body-bg); border: 1px solid var(--line, #e7e3dc); border-radius: 16px; padding: 1.1rem 1.2rem; }
.vp-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .5rem; }
.qr-poster { max-width: 520px; margin: 0 auto 2rem; text-align: center; border: 3px solid var(--brand); border-radius: 24px; padding: 2rem 1.5rem; background: #fff; color: #222; page-break-after: always; }
.qr-poster h2 { color: #0b5e54; font-weight: 800; }
.qr-poster .qr { display: inline-block; padding: 12px; background: #fff; border-radius: 12px; }
@media print { .navbar, footer, .office-head, .office-nav, .no-print { display: none !important; } .qr-poster { border-color: #0b5e54; } }
/* v29 AI Pet Concierge */
.chat-box { height: 52vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.chat-box .msg { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; line-height: 1.45; font-size: .95rem; }
.chat-box .msg.bot { align-self: flex-start; background: var(--brand-soft); border-bottom-left-radius: 4px; }
.chat-box .msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-box .msg.err { background: #fff3bf; color: #5c3c00; }
.chat-box .typing .dot { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--brand); animation: cdot 1s infinite; }
.chat-box .typing .dot:nth-child(2) { animation-delay: .15s; } .chat-box .typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes cdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.concierge-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1040; background: var(--brand); color: #fff; border-radius: 999px; padding: .65rem 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); text-decoration: none; font-weight: 700; }
.concierge-fab:hover { color: #fff; filter: brightness(1.08); }
