/* ==========================================================================
   9wickets — Hero v4 "Verification Console"
   --------------------------------------------------------------------------
   Alternative to hero-v3 ("Golden Atelier", split copy+photo). Centered +
   search-forward: a slim, pill-shaped search box is the focal point, backed
   by an abstract gradient-mesh + dot-grid field instead of a portrait.
   Generous section-level padding (top/bottom breathing room) but a tight,
   slim internal rhythm — small gaps between title/lead/search/chips/CTA —
   for a compact, premium feel rather than a tall, loose stack.
   hero-v3.css stays on disk, untouched, for rollback.
   ========================================================================== */

.s9h {
    position: relative;
    overflow: hidden;
    padding: 0 var(--vk-pad, 24px);
    background: var(--vk-bg);
}

.s9h__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.s9h__blob {
    position: absolute;
    border-radius: 50%;
    opacity: .5;
    animation: s9hfloat 10s ease-in-out infinite;
}
.s9h__blob--a { width: 380px; height: 380px; top: -150px; left: 8%; background: radial-gradient(circle, #F9E900 0%, transparent 70%); }
.s9h__blob--b { width: 340px; height: 340px; top: -70px; right: 4%; background: radial-gradient(circle, #8C92AC 0%, transparent 70%); animation-delay: -4s; }
@keyframes s9hfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .s9h__blob { animation: none; } }

.s9h__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(8, 65, 92, .16) 1.4px, transparent 1.4px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 25%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 25%, #000 0%, transparent 75%);
}

.s9h__inner {
    position: relative;
    /* higher than .s9h__stats (z-index:1) — they're siblings, so without
       this the stat rail (later in DOM, same z-index) painted on top of
       the search dropdown living inside .s9h__inner, regardless of the
       dropdown's own z-index (that only matters within .s9h__inner's own
       stacking context, not against a sibling). */
    z-index: 5;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.s9h__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #08415C;
    background: #FFFFFF;
    border: 1px solid rgba(8, 65, 92, .16);
    border-radius: 999px;
    padding: 7px 16px;
    box-shadow: 0 4px 14px rgba(8, 65, 92, .07);
}

.s9h__title {
    font-family: var(--vk-font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.6vw, 36px);
    line-height: 1.18;
    color: #08415C;
    margin: 10px 0 8px;
}
.s9h__title .s9h__accent {
    font-family: var(--vk-font-en);
    font-style: italic;
    color: #08415C;
    background: linear-gradient(95deg, #F9E900 0%, #E6D200 100%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 .12em;
    border-radius: 6px;
}

.s9h__lead {
    font-size: 14px;
    line-height: 1.55;
    color: var(--vk-text-mid, #4A5A66);
    max-width: 520px;
    margin: 0 auto 14px;
}

/* ---- search: .search-field / .search-box / .search-box-wrap /
   .search-suggestions are load-bearing — agent-search-ajax.php's JS binds
   to these exact class names for the live autosuggest dropdown. Slim pill
   shape: fixed 52px height, tight padding, no boxy corners. ---- */
.s9h__search { max-width: 460px; margin: 0 auto 12px; }
.s9h__search .search-box-wrap {
    position: relative;
    background: #FFFFFF;
    border-radius: 999px;
    border: 1px solid rgba(8, 65, 92, .12);
    box-shadow: 0 10px 28px rgba(8, 65, 92, .10);
    padding: 4px;
    text-align: left;
}
.s9h__search .search-box { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; }
.s9h__search .search-box svg { flex: none; width: 16px; height: 16px; color: #9AA6AD; }
.s9h__search .search-field {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    font-family: var(--vk-font-bn);
    color: #08415C;
}
.s9h__search .search-field::placeholder { color: #A6B0B6; }
body.vk .s9h__search button[type="submit"] {
    all: unset !important;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9E900 0%, #E6D200 100%) !important;
    color: #08415C !important;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--vk-font-bn);
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.vk .s9h__search button[type="submit"]:hover {
    background: linear-gradient(135deg, #FCEF66 0%, #F2E100 100%) !important;
    color: #08415C !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(249, 233, 0, .38);
}
/* ---- suggestion dropdown: same "premium light" treatment as the header's
   menu search (.vk-search-panel .search-suggestions in wickets-home.css),
   just re-scoped to this hero's own wrapper so it gets the same accent bar,
   hover states and badge styling instead of the unstyled default. ---- */
body.vk .s9h__search .search-suggestions {
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 40;
    margin-top: 10px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(8, 65, 92, .12) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(8, 65, 92, .18), 0 2px 0 rgba(255, 255, 255, .7) inset !important;
    overflow: hidden !important;
    text-align: left;
}
body.vk .s9h__search .search-suggestions:empty { display: none !important; border: 0 !important; box-shadow: none !important; }
body.vk .s9h__search .search-suggestions::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #E6D200, #F9E900, #F9E900);
    z-index: 3;
}
/* base layout — this is what was missing before: without display:flex the
   thumbnail and text stack instead of sitting side by side, and without an
   explicit thumb size the agent photo renders at its natural (huge) size. */
body.vk .s9h__search .search-suggestions .suggestions-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px !important;
    max-height: 340px;
    overflow-y: auto;
}

body.vk .s9h__search .suggestion-item {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    padding: 10px 12px !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
body.vk .s9h__search .suggestion-item::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 58%; border-radius: 0 3px 3px 0;
    background: linear-gradient(#E6D200, #F9E900);
    transition: transform .22s ease;
}
body.vk .s9h__search .suggestion-item:hover,
body.vk .s9h__search .suggestion-item.active {
    background: linear-gradient(180deg, #F7F8FA, #FFFFFF) !important;
    border-color: rgba(249, 233, 0, .55) !important;
    box-shadow: 0 8px 18px -10px rgba(8, 65, 92, .35) !important;
}
body.vk .s9h__search .suggestion-item:hover::before,
body.vk .s9h__search .suggestion-item.active::before { transform: translateY(-50%) scaleY(1); }

body.vk .s9h__search .suggestion-thumb {
    width: 40px !important;
    height: 40px !important;
    flex: none !important;
    overflow: hidden !important;
    border: 1px solid rgba(8, 65, 92, .14) !important;
    background: #F7F8FA !important;
    border-radius: 10px !important;
}
body.vk .s9h__search .suggestion-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
body.vk .s9h__search .suggestion-item:hover .suggestion-thumb,
body.vk .s9h__search .suggestion-item.active .suggestion-thumb { border-color: rgba(249, 233, 0, .6) !important; }

body.vk .s9h__search .suggestion-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 !important;
}
body.vk .s9h__search .suggestion-name {
    color: #08415C !important;
    font-weight: 700 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.vk .s9h__search .suggestion-id {
    color: #8A7D00 !important;
    background: rgba(249, 233, 0, .16) !important;
    border: 1px solid rgba(249, 233, 0, .38) !important;
    padding: 1px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
body.vk .s9h__search .suggestion-category { color: #4A5A66 !important; }
body.vk .s9h__search .suggestion-loading,
body.vk .s9h__search .no-suggestions { color: #4A5A66 !important; font-weight: 500 !important; padding: 14px !important; }
body.vk .s9h__search .suggestion-loading::before,
body.vk .s9h__search .search-suggestions.is-loading::before {
    border-color: rgba(249, 233, 0, .35) !important;
    border-top-color: #F9E900 !important;
}
body.vk .s9h__search .suggestions-list::-webkit-scrollbar-thumb { background: rgba(249, 233, 0, .5) !important; border-radius: 3px !important; }
body.vk .s9h__search .suggestions-list::-webkit-scrollbar-thumb:hover { background: #F9E900 !important; }

.s9h__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.s9h__quick a {
    font-size: 12px;
    font-weight: 600;
    color: #08415C;
    background: rgba(140, 146, 172, .14);
    border: 1px solid rgba(140, 146, 172, .26);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.s9h__quick a:hover { background: rgba(249, 233, 0, .22); border-color: rgba(249, 233, 0, .55); transform: translateY(-1px); }

.s9h__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 4px; }
.s9h__cta .vk-btn { padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; }

.s9h__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #178a55;
    background: rgba(34, 180, 110, .1);
    border-radius: 999px;
    padding: 5px 12px;
    margin-top: 8px;
}
.s9h__live i { width: 6px; height: 6px; border-radius: 50%; background: #22c96e; animation: s9hpulse 1.6s ease-in-out infinite; }
@keyframes s9hpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- full-width stat rail ---- */
.s9h__stats {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #FFFFFF;
    border: 1px solid rgba(8, 65, 92, .1);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(8, 65, 92, .06);
    overflow: hidden;
}
.s9h__stat {
    padding: 8px 8px;
    text-align: center;
    border-left: 1px solid rgba(8, 65, 92, .08);
}
.s9h__stat:first-child { border-left: 0; }
.s9h__stat b {
    display: block;
    font-family: var(--vk-font-en);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    color: #08415C;
}
.s9h__stat span { display: block; font-size: 10px; line-height: 1.3; color: var(--vk-text-mid, #4A5A66); margin-top: 1px; }

@media (max-width: 900px) {
    .s9h__stats { grid-template-columns: repeat(2, 1fr); }
    .s9h__stat:nth-child(2) { border-left: 0; }
    .s9h__stat:nth-child(3) { border-left: 1px solid rgba(8, 65, 92, .08); }
}
@media (max-width: 560px) {
    .s9h { padding: 0 16px; }
    .s9h__search .search-box { padding-left: 14px; }
}

/* scroll reveal — reuses wickets-home.js's [data-reveal] -> .is-in engine */
.s9h [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.s9h [data-reveal].is-in { opacity: 1; transform: none; }
