/* ==========================================
   ULTRAKIT TESTIMONIAL GRID — 8 skins
   ========================================== */
.ultrakit-tgr { --a: #6c5ce7; --b: #00cec9; --star: #f5a623; --card: #fff; --cols: 3; --cols-t: 2; --cols-m: 1; --gap: 24px; --r: 22px; --qs: 16px; width: 100%; box-sizing: border-box; font-family: inherit; }
.ultrakit-tgr *, .ultrakit-tgr *::before, .ultrakit-tgr *::after { box-sizing: border-box; }
.tgr-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.tgr-item { position: relative; margin: 0; display: flex; flex-direction: column; padding: 32px; background: var(--card); border-radius: var(--r); border: 1px solid rgba(20,20,43,.05); box-shadow: 0 1px 2px rgba(20,20,43,.04), 0 20px 44px -22px rgba(20,20,43,.22); overflow: hidden; transition: transform .5s cubic-bezier(.22,.9,.3,1), box-shadow .5s, opacity .4s; }
.tgr-item:hover { transform: translateY(-7px); box-shadow: 0 2px 4px rgba(20,20,43,.05), 0 36px 60px -26px color-mix(in srgb, var(--a) 40%, rgba(20,20,43,.3)); }
.tgr-quote { margin: 0 0 4px; font-size: var(--qs); line-height: 1.72; font-weight: 500; color: var(--ink, var(--skin-ink, #2d2d48)); }
.tgr-stars, .ultrakit-tgr .uk-stars { display: inline-flex; gap: 2px; color: var(--star); }
.tgr-stars { margin-bottom: 14px; }
.tgr-who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; }
.tgr-av { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--card), 0 8px 20px -6px rgba(20,20,43,.35); }
.tgr-id { display: flex; flex-direction: column; min-width: 0; }
.tgr-id b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink, var(--skin-ink, #14142b)); }
.tgr-id em { font-style: normal; font-size: 13px; color: var(--skin-mut, #7a7a95); }
.tgr-plat { position: absolute; right: 20px; top: 20px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; background: color-mix(in srgb, var(--pc) 12%, transparent); color: var(--pc); font-size: 11.5px; font-weight: 800; }
.tgr-plat i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.tgr-metric { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 4px; padding-top: 16px; border-top: 1px dashed rgba(20,20,43,.12); }
.tgr-metric b { font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1; background: linear-gradient(120deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tgr-metric span { font-size: 12.5px; font-weight: 700; color: var(--skin-mut, #7a7a95); text-transform: uppercase; letter-spacing: .06em; }
.tgr-qi { display: inline-flex; color: var(--a); margin-bottom: 12px; }

/* summary + filter */
.tgr-summary { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.tgr-score { font-size: 60px; font-weight: 900; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tgr-sum-mid { display: flex; flex-direction: column; gap: 4px; }
.tgr-sum-mid em { font-style: normal; font-size: 14px; font-weight: 600; color: #6b6b85; }
.tgr-stack { display: inline-flex; }
.tgr-stack img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; box-shadow: 0 6px 14px -6px rgba(20,20,43,.4); }
.tgr-stack img:first-child { margin-left: 0; }
.tgr-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.tgr-filter button { padding: 10px 22px !important; border: 0; border-radius: 30px; background: #f1f1f8 !important; color: #4a4a68 !important; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s; }
.tgr-filter button:hover { background: color-mix(in srgb, var(--a) 14%, #fff) !important; }
.tgr-filter button.is-active { background: linear-gradient(120deg, var(--a), var(--b)) !important; color: #fff !important; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--a) 60%, transparent); }
.tgr-item.is-hidden { display: none; }

/* reveal */
.tgr-reveal .tgr-item:not(.is-in) { opacity: 0; }
.tgr-reveal .tgr-item.is-in { animation: tgrIn .8s cubic-bezier(.22,.9,.3,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes tgrIn { from { opacity: 0; transform: translateY(34px); } }

/* ---------- 1 · cards ---------- */
.tgr-s-cards .tgr-plat { position: static; align-self: flex-start; margin-bottom: 14px; }
.tgr-s-cards .tgr-who { border-top: 1px dashed rgba(20,20,43,.12); margin-top: auto; }

/* ---------- 2 · masonry ---------- */
.tgr-s-masonry .tgr-grid { display: block; column-count: var(--cols); column-gap: var(--gap); }
.tgr-s-masonry .tgr-item { break-inside: avoid; margin-bottom: var(--gap); }
.tgr-s-masonry .tgr-plat { position: static; align-self: flex-start; margin-bottom: 12px; }
.tgr-s-masonry .tgr-item:nth-child(3n+2) .tgr-quote { font-size: calc(var(--qs) + 3px); font-weight: 600; }

/* ---------- 3 · big quote ---------- */
.tgr-s-quote .tgr-item { padding-top: 52px; border-top: 4px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(90deg, var(--a), var(--b)) border-box; }
.tgr-s-quote .tgr-qi { position: absolute; left: 32px; top: -1px; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 0 0 20px 20px; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; margin: 0; }
.tgr-s-quote .tgr-qi svg { width: 26px; height: 26px; }
.tgr-s-quote .tgr-plat { top: 20px; }
.tgr-s-quote .tgr-stars { margin-top: 26px; }

/* ---------- 4 · dark ---------- */
.tgr-s-dark { --skin-ink: #fff; --skin-mut: #b4b4d0; }
.tgr-s-dark .tgr-item { background: linear-gradient(160deg, #1c1c3b, #101026); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.tgr-s-dark .tgr-item::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 40%, transparent), transparent 70%); opacity: .7; transition: opacity .4s; }
.tgr-s-dark .tgr-item:hover::before { opacity: 1; }
.tgr-s-dark .tgr-item:hover { border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.tgr-s-dark .tgr-quote { color: #e6e6f7; }
.tgr-s-dark .tgr-qi { color: var(--b); }
.tgr-s-dark .tgr-av { box-shadow: 0 0 0 3px #16162f, 0 0 0 5px color-mix(in srgb, var(--a) 60%, transparent); }
.tgr-s-dark .tgr-who { border-top: 1px solid rgba(255,255,255,.1); }
.tgr-s-dark .tgr-metric { border-top-color: rgba(255,255,255,.14); }
.tgr-s-dark .tgr-plat { background: rgba(255,255,255,.1); }

/* ---------- 5 · featured bento ---------- */
.tgr-s-featured .tgr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tgr-s-featured .tgr-item.is-big { grid-column: span 2; grid-row: span 2; padding: 44px; background: linear-gradient(150deg, var(--a), var(--b)); color: #fff; --skin-ink: #fff; --skin-mut: rgba(255,255,255,.85); border: 0; box-shadow: 0 40px 80px -34px color-mix(in srgb, var(--a) 75%, transparent); }
.tgr-s-featured .tgr-item.is-big .tgr-quote { font-size: calc(var(--qs) + 8px); line-height: 1.55; font-weight: 600; letter-spacing: -.015em; color: #fff; }
.tgr-s-featured .tgr-item.is-big .tgr-qi { color: rgba(255,255,255,.4); }
.tgr-s-featured .tgr-item.is-big .tgr-stars { --star: #ffe27a; }
.tgr-s-featured .tgr-item.is-big .tgr-metric { border-top-color: rgba(255,255,255,.28); }
.tgr-s-featured .tgr-item.is-big .tgr-metric b { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: 52px; }
.tgr-s-featured .tgr-item.is-big .tgr-av { box-shadow: 0 0 0 3px rgba(255,255,255,.4); width: 60px; height: 60px; }
.tgr-s-featured .tgr-item.is-big .tgr-plat { background: rgba(255,255,255,.2); color: #fff; }
.tgr-s-featured .tgr-item.is-big .tgr-plat i { background: #fff; }
.tgr-s-featured .tgr-item:not(.is-big) { padding: 26px; }
.tgr-s-featured .tgr-item:not(.is-big) .tgr-quote { font-size: calc(var(--qs) - 1px); }
.tgr-s-featured .tgr-item:not(.is-big) .tgr-plat, .tgr-s-featured .tgr-item:not(.is-big) .tgr-qi, .tgr-s-featured .tgr-item:not(.is-big) .tgr-metric { display: none; }

/* ---------- 6 · review wall ---------- */
.tgr-s-wall .tgr-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: calc(var(--gap) * .65); }
.tgr-s-wall .tgr-item { padding: 22px; border-radius: calc(var(--r) - 6px); }
.tgr-s-wall .tgr-quote { font-size: calc(var(--qs) - 1.5px); line-height: 1.65; }
.tgr-s-wall .tgr-plat { position: static; align-self: flex-start; order: -1; margin-bottom: 10px; font-size: 11px; }
.tgr-s-wall .tgr-stars { margin-bottom: 8px; }
.tgr-s-wall .tgr-av { width: 40px; height: 40px; }
.tgr-s-wall .tgr-who { padding-top: 16px; }
.tgr-s-wall .tgr-metric { display: none; }

/* ---------- 7 · minimal ---------- */
.tgr-s-minimal .tgr-item { background: none; border: 0; border-left: 3px solid color-mix(in srgb, var(--a) 22%, transparent); box-shadow: none; border-radius: 0; padding: 4px 0 4px 28px; overflow: visible; transition: border-color .4s, transform .5s; }
.tgr-s-minimal .tgr-item:hover { border-left-color: var(--a); transform: translateX(6px); box-shadow: none; }
.tgr-s-minimal .tgr-quote { font-size: calc(var(--qs) + 2px); font-weight: 600; letter-spacing: -.01em; }
.tgr-s-minimal .tgr-plat { position: static; align-self: flex-start; margin-bottom: 12px; }
.tgr-s-minimal .tgr-av { box-shadow: 0 8px 20px -6px rgba(20,20,43,.35); }

/* ---------- 8 · avatar top ---------- */
.tgr-s-avatar .tgr-grid { padding-top: 34px; row-gap: calc(var(--gap) + 34px); }
.tgr-s-avatar .tgr-item { padding-top: 56px; text-align: center; align-items: center; overflow: visible; }
.tgr-av.is-top { position: absolute; top: -34px; left: 50%; margin-left: -37px; width: 74px; height: 74px; box-shadow: 0 0 0 5px var(--card), 0 16px 30px -10px rgba(20,20,43,.45); }
.tgr-s-avatar .tgr-plat { position: static; margin-bottom: 12px; }
.tgr-s-avatar .tgr-who { justify-content: center; }
.tgr-s-avatar .tgr-metric { justify-content: center; }
.tgr-s-avatar .tgr-item:hover .tgr-av.is-top { transform: scale(1.06); }
.tgr-av.is-top { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }

@media (max-width: 1024px) { .tgr-grid { grid-template-columns: repeat(var(--cols-t), minmax(0, 1fr)); } .tgr-s-masonry .tgr-grid { column-count: var(--cols-t); } .tgr-s-featured .tgr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tgr-grid { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); } .tgr-s-masonry .tgr-grid { column-count: var(--cols-m); } .tgr-s-featured .tgr-grid { grid-template-columns: 1fr; } .tgr-s-featured .tgr-item.is-big { grid-column: auto; grid-row: auto; padding: 30px; } .tgr-item { padding: 26px; } .tgr-score { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { .tgr-reveal .tgr-item:not(.is-in) { opacity: 1; } .tgr-reveal .tgr-item.is-in { animation: none; } }
