body.infinity-wallet-page > .wallet-page-layout {
    width: 100%;
    max-width: 1200px;
    height: auto !important;
    min-height: calc(100svh - 56px);
    table-layout: fixed;
}

body.infinity-wallet-page .wallet-page-hero {
    height: clamp(250px, 31svh, 320px) !important;
    padding-top: 58px;
    box-sizing: border-box;
}

body.infinity-wallet-page .wallet-page-hero > p:nth-child(-n + 2) {
    display: none;
}

body.infinity-wallet-page .wallet-page-hero img {
    width: clamp(360px, 42vw, 500px);
    height: auto;
    max-width: 88vw;
}

body.infinity-wallet-page .wallet-page-content {
    height: auto !important;
    padding: 0 14px 42px;
}

body.infinity-wallet-page .wallet-page-well {
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid rgba(137, 167, 230, .5);
    border-radius: 14px;
    background: rgba(248, 251, 255, .9);
    box-shadow: 0 18px 46px rgba(5, 12, 35, .22);
    backdrop-filter: blur(10px);
}

.wallet-account-menu {
    margin-bottom: 14px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.wallet-account-menu .item {
    white-space: nowrap;
}

.wallet-link-card {
    overflow: hidden;
    position: relative;
    padding: 26px;
    border: 1px solid rgba(157, 122, 255, .55);
    border-radius: 18px;
    color: #f7f4ff;
    background:
        radial-gradient(circle at 92% 5%, rgba(255, 183, 67, .18), transparent 26%),
        radial-gradient(circle at 4% 0%, rgba(132, 82, 255, .28), transparent 30%),
        linear-gradient(135deg, rgba(11, 22, 50, .98), rgba(26, 15, 63, .98));
    box-shadow: 0 20px 55px rgba(28, 13, 73, .28);
}

.wallet-link-card::after {
    content: "";
    position: absolute;
    right: -68px;
    bottom: -88px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 206, 92, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(127, 76, 255, .08), 0 0 0 58px rgba(127, 76, 255, .045);
    pointer-events: none;
}

.wallet-link-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wallet-link-orb {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 215, 92, .8);
    border-radius: 50%;
    color: #fff2a9;
    font-size: 27px;
    background: radial-gradient(circle at 35% 30%, #b69aff, #6439ce 54%, #241558 100%);
    box-shadow: 0 0 24px rgba(143, 91, 255, .7), inset 0 0 15px rgba(255, 255, 255, .22);
}

.wallet-link-kicker {
    margin: 0 0 3px;
    color: #d9c9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.wallet-link-heading h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.1;
}

.wallet-link-heading p:last-child {
    margin: 0;
    color: #d9deef;
}

.wallet-link-heading strong {
    color: #ffcf5a;
}

.wallet-link-badge {
    padding: 8px 12px;
    border: 1px solid rgba(255, 199, 88, .65);
    border-radius: 999px;
    color: #ffe29b;
    font-size: 12px;
    font-weight: 800;
    background: rgba(111, 70, 15, .28);
}

.wallet-link-badge.linked {
    border-color: rgba(62, 231, 166, .7);
    color: #84f4ca;
    background: rgba(14, 105, 77, .32);
}

.wallet-current-card {
    display: grid;
    gap: 4px;
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(144, 169, 229, .32);
    border-radius: 13px;
    background: rgba(4, 12, 34, .58);
}

.wallet-current-card span,
.wallet-current-card small {
    color: #abb8d6;
}

.wallet-current-card strong {
    overflow-wrap: anywhere;
    color: #fff1a8;
    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
}

.wallet-link-status {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid rgba(128, 151, 204, .34);
    border-radius: 12px;
    background: rgba(9, 19, 45, .68);
}

.wallet-status-dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #93a3c6;
    box-shadow: 0 0 0 5px rgba(147, 163, 198, .12);
}

.wallet-link-status div {
    display: grid;
    gap: 2px;
}

.wallet-link-status small {
    color: #adb9d4;
}

.wallet-link-status.working .wallet-status-dot {
    background: #ffd05d;
    box-shadow: 0 0 0 5px rgba(255, 208, 93, .15), 0 0 18px rgba(255, 208, 93, .55);
}

.wallet-link-status.success .wallet-status-dot {
    background: #43e6a4;
    box-shadow: 0 0 0 5px rgba(67, 230, 164, .15), 0 0 18px rgba(67, 230, 164, .52);
}

.wallet-link-status.error {
    border-color: rgba(255, 102, 129, .45);
}

.wallet-link-status.error .wallet-status-dot {
    background: #ff6681;
    box-shadow: 0 0 0 5px rgba(255, 102, 129, .15), 0 0 18px rgba(255, 102, 129, .45);
}

.wallet-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.wallet-link-primary,
.wallet-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.wallet-link-primary {
    border: 1px solid #ffc95d;
    color: #fff;
    background: linear-gradient(115deg, #713ddd, #9a5ee4 54%, #e5a32f);
    box-shadow: 0 10px 25px rgba(98, 53, 207, .35);
    cursor: pointer;
}

.wallet-link-primary:disabled {
    cursor: wait;
    filter: grayscale(.2);
    opacity: .72;
}

.wallet-link-secondary {
    border: 1px solid rgba(156, 181, 235, .5);
    color: #eaf0ff !important;
    background: rgba(21, 38, 76, .8);
}

.wallet-link-primary:not(:disabled):hover,
.wallet-link-secondary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.wallet-link-safety {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(151, 170, 214, .22);
    color: #dce5fa;
}

.wallet-link-safety > i {
    margin-top: 2px;
    color: #6ce7b7;
    font-size: 22px;
}

.wallet-link-safety p {
    margin: 4px 0 0;
    color: #aebbd7;
    line-height: 1.55;
}

@media (max-width: 1170px) {
    body.bg2.infinity-wallet-page > table.wallet-page-layout > tbody > tr:first-child > td.wallet-page-hero {
        height: clamp(220px, 29svh, 285px) !important;
        padding-top: 52px !important;
    }

    body.infinity-wallet-page .wallet-page-content {
        padding-inline: 10px;
    }
}

@media (max-width: 767px) {
    body.bg2.infinity-wallet-page > table.wallet-page-layout > tbody > tr:first-child > td.wallet-page-hero {
        height: 185px !important;
        padding-top: 45px !important;
    }

    body.infinity-wallet-page .wallet-page-hero img {
        width: min(78vw, 330px);
    }

    body.infinity-wallet-page .wallet-page-content {
        padding-inline: 6px;
    }

    body.infinity-wallet-page .wallet-page-well {
        padding: 8px;
        border-radius: 11px;
    }

    .wallet-link-card {
        padding: 19px 15px;
    }

    .wallet-link-heading {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .wallet-link-orb {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .wallet-link-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .wallet-link-actions {
        flex-direction: column;
    }

    .wallet-link-primary,
    .wallet-link-secondary {
        width: 100%;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    body.bg2.infinity-wallet-page > table.wallet-page-layout > tbody > tr:first-child > td.wallet-page-hero {
        height: 54px !important;
        padding: 0 !important;
    }

    body.infinity-wallet-page .wallet-page-hero > p,
    body.infinity-wallet-page .breadcrumb {
        display: none !important;
    }

    body.infinity-wallet-page .wallet-page-content {
        padding-top: 8px;
    }
}
