/* The v7 product card (homepage, Explore, Models, LoRAs, Tools): picture with its category pill,
   a solid panel with the name, the price and Pro. Markup: EB.kaCard (assets/js/core.js), mv_card (php/models_showcase.php).
   Taken from assets/home-v7.css, unscoped. */
.ka { --o: #ff6a2b; --o2: #e8642d; --fr: #4ade80; --ease: cubic-bezier(.2,.7,.2,1); }
.ka .pr {color: #ff8a55; font-size: 15.6px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1;}
.ka .pr small {margin-right: 3px; color: rgba(255,255,255,.66); font-size: 10.8px;}
.ka .pr.fr {color: var(--fr);}
.ka .ip {display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid rgba(196,181,253,.4); border-radius: 99px; background: rgba(30,22,52,.6); color: #e4dcff; font-size: 10.5px; font-weight: 800;}
@media (max-width: 760px){
.ka .pr {font-size: 13.5px;}
.ka .ip {height: 20px; padding: 0 7px; font-size: 9.3px;}
}
.ka .pr {font-size: 16.5px;}
@media (max-width: 760px){
.ka .pr {font-size: 13.8px;}
}
.ka .pr {font-size: 15.3px;}
.ka {display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: #141518; color: #fff; text-decoration: none; transition: background .25s;}
.ka-im {position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #0b0c0f;}
.ka-im img {display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; transition: filter .35s var(--ease);}
.ka-new {position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: 8.7px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;}
.ka-new::before {content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--o2);}
.ka-cat {position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 20px); height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(8,9,11,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: rgba(255,255,255,.9); font-size: 9.6px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; overflow: hidden;}
.ka-cat i {flex: none; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5);}
.ka-cat b {color: #ffb48f; font-weight: 800; overflow: hidden; text-overflow: ellipsis;}
.ka-tx {display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 9px 13px 10px;}
.ka-n {display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; color: #fff; font-size: 15.6px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; transition: color .25s;}
.ka-f {display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto;}
.ka .pr {font-size: 15px;}
.ka .ip {height: 22px; padding: 0 8px; font-size: 9.9px;}
.ka:hover {background: #191a1d;}
.ka:hover .ka-n {color: #ffb48f;}
.ka:hover .ka-im img {filter: brightness(1.08);}
.ka:focus-visible {outline: 2px solid var(--o); outline-offset: 3px;}
@media (max-width: 760px){
.ka {border-radius: 12px;}
.ka-tx {padding: 8px 9px 9px; gap: 3px;}
.ka-n {font-size: 13.5px;}
.ka .pr {font-size: 13.5px;}
.ka .ip {height: 20px; padding: 0 6px; font-size: 9px;}
.ka-new {top: 7px; left: 7px;}
.ka-cat {left: 7px; bottom: 7px; max-width: calc(100% - 14px); height: 22px; padding: 0 8px; gap: 5px; font-size: 8.1px; letter-spacing: .06em;}
}
.ka-tx {justify-content: flex-end; gap: 7px; padding: 13px 13px 11px;}
.ka-n {min-height: 0;}
.ka-f {margin-top: 0;}
@media (max-width: 760px){
.ka-tx {gap: 5px; padding: 10px 9px 9px;}
}
.ka-tx {justify-content: flex-start; gap: 7px; padding: 13px 13px 11px;}
.ka-f {margin-top: auto;}
.ka-f {min-height: 22px;}
@media (max-width: 760px){
.ka-f {min-height: 20px;}
}
.ka {position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .25s;}
.ka:hover {transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(255,122,69,.55), 0 22px 44px -20px rgba(255,106,43,.5), 0 30px 60px -30px rgba(0,0,0,.9);}
.ka-tx {position: relative;}
.ka-tx::before {content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,122,69,0), #ff7a45 50%, rgba(255,122,69,0)); transform: scaleX(0); transition: transform .55s var(--ease);}
.ka:hover .ka-tx::before {transform: scaleX(1);}
.ka:hover .ka-f .pr:not(.fr) {color: #ff9a6b;}
.ka:focus-visible {outline: none; box-shadow: 0 0 0 2px var(--o);}
@media (hover: none){
.ka:hover {transform: none; box-shadow: none;}
}
@media (prefers-reduced-motion: reduce){
.ka, .ka-tx::before {transition: none;}
.ka:hover {transform: none;}
}
.ka-im .nsfw-veil {position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 50% 40%, #1c1d22, #0b0c0f); color: rgba(255,255,255,.8); font-size: 12px; text-align: center;}
.ka-im .nsfw-veil svg {width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6;}
.ka-im .nsfw-veil em {font-style: normal; color: rgba(255,255,255,.55); font-size: 11px;}
.ka.is-blurred .ka-im img {filter: blur(18px); transform: scale(1.1);}
.ka .pr .sale-was {margin-left: 6px; color: rgba(244,240,234,.45); font-size: 12px; font-weight: 700;}
.ka .pr.soon {color: rgba(244,240,234,.7); font-size: 13px;}
/* catalogue pages only: heart, featured pill, sensitive and blurred pictures, the 4-column grids */
.ka-hrt { position: absolute; top: 9px; right: 9px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.ka-hrt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ka:hover .ka-hrt, .ka-hrt.is-on, .ka-hrt:focus-visible { opacity: 1; }
.ka-hrt.is-on { color: #ff6a2b; } .ka-hrt.is-on svg { fill: currentColor; }
.ka-new.is-ft { background: rgba(255,106,43,.9); }
.ka-new + .ka-new { left: auto; right: 48px; }
.ka-im .nsfw-veil { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 50% 40%, #1c1d22, #0b0c0f); color: rgba(255,255,255,.8); font-size: 12px; text-align: center; cursor: pointer; }
.ka-im .nsfw-veil svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ka-im .nsfw-veil em { color: rgba(255,255,255,.55); font-size: 11px; font-style: normal; }
.ka.is-revealed .nsfw-veil { display: none; }
.ka.is-blurred .ka-im img { filter: blur(18px); transform: scale(1.1); }
.ka .pr .sale-was { margin-left: 6px; color: rgba(244,240,234,.45); font-size: 12px; font-weight: 700; text-decoration: line-through; }
.ka .pr.soon { color: rgba(244,240,234,.7); font-size: 13px; }
.mv-gr, .library-grid, .home-products.library-empty-picks { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 22px 20px !important; }
.mv-gr .ka, .library-grid .ka { grid-column: auto !important; grid-row: auto !important; }
.mv-cw { display: flex; flex-direction: column; min-width: 0; } .mv-cw > .ka { flex: 1; }
@media (max-width: 1100px) { .mv-gr, .library-grid, .home-products.library-empty-picks { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .mv-gr, .library-grid, .home-products.library-empty-picks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 12px !important; } .ka-hrt { opacity: 1; width: 28px; height: 28px; top: 7px; right: 7px; } }
