/* HMZ Public Test Card Selection V3 */
.public-test-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    isolation: isolate;
}
.public-test-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 100% 0, rgba(37, 99, 235, .10), transparent 42%);
    opacity: 0;
    transition: opacity .25s ease;
}
.public-test-card:hover::after,
.public-test-card.hmz-selected-test::after { opacity: 1; }
.public-test-card:active { transform: translateY(-1px) scale(.995)!important; }
.public-test-card.hmz-selected-test {
    border-color: #2563eb!important;
    background: linear-gradient(145deg, #fff 0%, #eff6ff 100%)!important;
    box-shadow: 0 18px 44px rgba(37, 99, 235, .18)!important;
}
.public-card-selected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    opacity: 0;
    transform: translateY(-6px) scale(.92);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.public-test-card.hmz-selected-test .public-card-selected-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.public-test-card.hmz-selected-test .public-test-price { margin-right: 82px; }
.public-select-test-btn { pointer-events: none; }
.public-test-card.hmz-selected-test .public-select-test-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8)!important;
    color: #fff!important;
}
.public-test-card.hmz-selected-test .public-test-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}
.public-selection-helper {
    margin-top: 22px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: rgba(239, 246, 255, .94);
    box-shadow: 0 14px 34px rgba(30, 64, 175, .10);
    animation: hmzSelectionEnter .25s ease both;
}
.public-selection-helper[hidden] { display: none!important; }
.public-selection-helper > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.public-selection-helper-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #2563eb;
    color: #fff;
}
.public-selection-helper strong,
.public-selection-helper small { display: block; }
.public-selection-helper strong { color: #0f172a; }
.public-selection-helper small { margin-top: 2px; color: #64748b; }
@keyframes hmzSelectionEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
    .public-selection-helper { align-items: stretch; flex-direction: column; }
    .public-selection-helper .btn { width: 100%; }
    .public-card-selected-badge { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-test-card, .public-card-selected-badge, .public-selection-helper { transition: none!important; animation: none!important; }
}


/* Compact Test Card Layout V1.1 */
.public-test-grid {
    gap: 12px !important;
}
.public-test-card {
    min-height: 0 !important;
    padding: 13px 14px 12px !important;
    border-radius: 15px !important;
}
.public-test-card-head {
    margin-bottom: 7px !important;
}
.public-test-card .public-test-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
}
.public-test-card .public-test-price {
    padding: 5px 9px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
}
.public-test-card h3 {
    margin: 0 0 2px !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
}
.public-test-card > p {
    margin: 0 0 7px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}
.public-test-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 0 !important;
}
.public-test-meta span {
    padding: 4px 6px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
}
.public-test-note {
    margin-top: 6px !important;
    padding: 5px 7px !important;
    max-height: 35px !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}
.public-select-test-btn {
    min-height: 30px !important;
    margin-top: 8px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
}
.public-card-selected-badge {
    top: 8px !important;
    right: 8px !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
}
.public-test-card.hmz-selected-test .public-test-price {
    margin-right: 68px !important;
}
@media (min-width: 1200px) {
    .public-test-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767.98px) {
    .public-test-grid {
        gap: 9px !important;
    }
    .public-test-card {
        padding: 11px 12px 10px !important;
        border-radius: 13px !important;
    }
    .public-test-card .public-test-icon {
        width: 35px !important;
        height: 35px !important;
    }
    .public-test-card h3 {
        font-size: 14px !important;
    }
}
