.jh404-redirect {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    padding: 20px;
    font-family: inherit;
}

.jh404-redirect *,
.jh404-redirect *::before,
.jh404-redirect *::after {
    box-sizing: inherit;
}

.jh404-redirect__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(55, 72, 91, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 55px rgba(36, 52, 71, 0.13);
    text-align: center;
}

.jh404-redirect__panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #86a8c5, #6fae95);
}

.jh404-redirect__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #eef5f3;
    color: #385d50;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.jh404-redirect__pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #57937d;
    box-shadow: 0 0 0 0 rgba(87, 147, 125, 0.45);
    animation: jh404-pulse 1.6s infinite;
}

.jh404-redirect--static .jh404-redirect__pulse {
    animation: none;
    box-shadow: none;
}

.jh404-redirect__title {
    margin: 0 0 14px;
    color: #25384b;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.12;
}

.jh404-redirect__message {
    max-width: 590px;
    margin: 0 auto 24px;
    color: #556575;
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.65;
}

.jh404-redirect__match {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 560px;
    margin: 0 auto 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f2f7f5;
    color: #334f45;
}

.jh404-redirect__match strong {
    font-size: 17px;
}

.jh404-redirect__match span {
    font-size: 13px;
}

.jh404-redirect__track {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(54, 74, 94, 0.08);
    border-radius: 999px;
    background: #edf1f4;
    box-shadow: inset 0 1px 3px rgba(36, 52, 71, 0.08);
}

.jh404-redirect__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c9fbd, #69a88f);
    box-shadow: 0 0 15px rgba(105, 168, 143, 0.38);
    transition: width 0.08s linear;
}

.jh404-redirect__countdown {
    margin: 14px 0 20px;
    color: #40566a;
    font-size: 15px;
    font-weight: 700;
}

.jh404-redirect__suggestions {
    max-width: 590px;
    margin: 0 auto 24px;
    text-align: left;
}

.jh404-redirect__suggestions h3 {
    margin: 0 0 10px;
    color: #344a5d;
    font-size: 17px;
    text-align: center;
}

.jh404-redirect__suggestions ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jh404-redirect__suggestions li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(55, 72, 91, 0.12);
}

.jh404-redirect__suggestions a {
    color: #365d7c;
    font-weight: 700;
    text-decoration: none;
}

.jh404-redirect__suggestions a:hover,
.jh404-redirect__suggestions a:focus-visible {
    text-decoration: underline;
}

.jh404-redirect__suggestions span {
    flex: 0 0 auto;
    color: #627383;
    font-size: 12px;
}

.jh404-redirect__search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 18px;
}

.jh404-redirect__search input {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(55, 72, 91, 0.25);
    border-radius: 10px;
    font: inherit;
}

.jh404-redirect__search button,
.jh404-redirect__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #6689a7;
    border-radius: 10px;
    background: transparent;
    color: #365d7c;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.jh404-redirect__search button:hover,
.jh404-redirect__search button:focus-visible,
.jh404-redirect__link:hover,
.jh404-redirect__link:focus-visible {
    background: #365d7c;
    color: #fff;
    transform: translateY(-1px);
}

.jh404-redirect__preview {
    margin: 22px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8df;
    color: #675723;
    font-size: 13px;
}

@keyframes jh404-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(87, 147, 125, 0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(87, 147, 125, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(87, 147, 125, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jh404-redirect__pulse {
        animation: none;
    }

    .jh404-redirect__bar,
    .jh404-redirect__search button,
    .jh404-redirect__link {
        transition: none;
    }
}

@media (max-width: 520px) {
    .jh404-redirect {
        margin: 18px auto;
        padding: 10px;
    }

    .jh404-redirect__panel {
        border-radius: 15px;
    }

    .jh404-redirect__search {
        flex-direction: column;
    }

    .jh404-redirect__search button,
    .jh404-redirect__link {
        width: 100%;
    }
}
