.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.4rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wallet-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wallet-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 19, 36, 0.65);
}

.wallet-modal__dialog {
    position: relative;
    width: min(46rem, calc(100% - 2.8rem));
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    border-radius: 2.2rem;
    background: #ffffff;
    border: 1px solid #dce9ff;
    box-shadow: 0 22px 50px rgba(8, 22, 42, 0.22);
    padding: 2rem;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

.wallet-modal.is-visible .wallet-modal__dialog {
    transform: translateY(0) scale(1);
}

.wallet-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
}

.wallet-modal__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b192b;
}

.wallet-modal__close {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f1f5ff;
    color: #58719a;
    font-size: 1.7rem;
    line-height: 1;
}

.wallet-modal__lead {
    font-size: 1.45rem;
    color: #5d6c82;
    margin-bottom: 1.4rem;
    line-height: 1.4;
}

.wallet-modal__step {
    border: 1px solid #e2ebfb;
    border-radius: 1.4rem;
    padding: 1.2rem;
    background: #f8fbff;
    margin-bottom: 1rem;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.wallet-modal__step:last-child {
    margin-bottom: 0;
}

.wallet-modal__step.is-active {
    opacity: 1;
    background: #ffffff;
    border-color: #c6dbff;
    box-shadow: 0 8px 18px rgba(15, 75, 207, 0.12);
}

.wallet-modal__step-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    align-items: center;
}

.wallet-modal__step-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #091a2d;
}

.wallet-modal__step-tag {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f63d3;
    background: #e7efff;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

.wallet-modal__step-text {
    font-size: 1.3rem;
    line-height: 1.35;
    color: #607086;
    margin-bottom: 0.9rem;
}

.wallet-modal__action {
    width: 100%;
    height: 4.2rem;
    border-radius: 1.1rem;
    background: #0f5be8;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.wallet-modal__action:hover {
    background: #0b49bd;
}

.wallet-modal__action:disabled {
    background: #d6e3fb;
    color: #8098bf;
    cursor: not-allowed;
}

.report-card {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    border-radius: 3.2rem;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 26px 45px rgba(13, 30, 52, 0.16);
    padding: 2.2rem 2.2rem 2.4rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: cardIn 0.55s ease both;
}

.home__image:hover .report-card {
    transform: translateY(-6px);
    box-shadow: 0 32px 52px rgba(13, 30, 52, 0.2);
}

.report-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #2f8fff 0%, #1658d6 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(22, 88, 214, 0.35);
    animation: iconPulse 3.2s ease-in-out infinite;
}

.report-card__icon::before {
    content: "";
    width: 30px;
    height: 34px;
    background: #ffffff;
    clip-path: polygon(50% 0, 88% 14%, 88% 52%, 50% 100%, 12% 52%, 12% 14%);
}

.report-card__score {
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    color: #0a1628;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.report-card__desc {
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.45;
    color: #7f8694;
    margin-bottom: 2.2rem;
}

.report-card__metrics {
    margin-bottom: 0;
}

.report-metric {
    margin-bottom: 1.55rem;
}

.report-metric:last-child {
    margin-bottom: 0;
}

.report-metric__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.report-metric__name {
    font-size: 1.7rem;
    font-weight: 700;
    color: #101a29;
}

.report-metric__value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #101a29;
    white-space: nowrap;
}

.report-metric__track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #edf1f6;
    overflow: hidden;
}

.report-metric__fill {
    display: block;
    height: 100%;
    width: calc(var(--value) * 1%);
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    animation: metricGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
}

.report-metric__fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.45) 55%,
        rgba(255, 255, 255, 0) 90%
    );
    transform: translateX(-120%);
    animation: fillShine 2.6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0s) + 0.6s);
}

.report-metric__fill.is-blue {
    background: linear-gradient(90deg, #1a63e8 0%, #2879ff 100%);
}

.report-metric__fill.is-green {
    background: linear-gradient(90deg, #3ea54d 0%, #56bb61 100%);
}

.report-metric__fill.is-amber {
    background: linear-gradient(90deg, #f4a100 0%, #ffc138 100%);
}

@media (max-width: 760px) {
    .wallet-modal {
        padding: 1rem 0.9rem;
    }

    .wallet-modal__dialog {
        width: calc(100% - 1.8rem);
        max-height: calc(100dvh - 2rem);
        padding: 1.6rem;
        border-radius: 1.8rem;
    }

    .wallet-modal__title {
        font-size: 1.9rem;
    }

    .report-card {
        max-width: 100%;
        border-radius: 2.4rem;
        padding: 1.8rem 1.6rem 1.8rem;
    }

    .report-card__icon {
        width: 58px;
        height: 58px;
        margin-bottom: 1rem;
    }

    .report-card__icon::before {
        width: 24px;
        height: 28px;
    }

    .report-card__score {
        font-size: 3.8rem;
    }

    .report-card__desc {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
    }

    .report-metric {
        margin-bottom: 1.25rem;
    }

    .report-metric__name,
    .report-metric__value {
        font-size: 1.45rem;
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes metricGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes fillShine {
    0%,
    45% {
        transform: translateX(-120%);
    }
    75%,
    100% {
        transform: translateX(120%);
    }
}
