/* Estilos compartidos */
.credit-card,
.loyalty-card {
    aspect-ratio: 1.586;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Estilos específicos para Credit Card */
.credit-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estilos específicos para Loyalty Card */
.loyalty-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Level Ribbon */
.level-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.level-ribbon-content {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Level Colors */
.level-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
}

.level-silver,
.level-plata {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: #000;
}

.level-gold,
.level-oro {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: #000;
}

.level-platinum,
.level-platino {
    background: linear-gradient(135deg, #e5e4e2 0%, #989898 100%);
    color: #000;
}

.level-diamond,
.level-diamante {
    background: linear-gradient(135deg, #b9f2ff 0%, #00b4d8 100%);
    color: #fff;
}

/* Card Balance */
.card-balance {
    text-align: center;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.balance-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Card Number */
.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Card Holder */
.card-holder {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.card-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-action-primary {
    background: rgba(255,255,255,0.9);
    color: #000;
}

.card-action-primary:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
}

.card-action-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.card-action-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* QR Overlay */
.card-qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loyalty-card:hover .card-qr-overlay {
    opacity: 1;
}

.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Efectos de hover */
.credit-card:hover,
.loyalty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.3);
}

/* Card Logo & Background */
.card-logo,
.card-background {
    max-width: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .credit-card,
    .loyalty-card {
        margin-bottom: 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .level-ribbon {
        width: 100px;
        height: 100px;
    }
    
    .level-ribbon-content {
        font-size: 0.65rem;
        padding: 6px 30px;
    }
}

/* Card variants */
.card-black {
    background: radial-gradient(at top left, #5c5c5c, #000);
}

/* Wallet V2.1 */
body.wallet-ui-v2 {
    background: linear-gradient(180deg, #f6f7fb 0%, #edf1f6 100%) fixed;
    overflow-x: hidden;
}

body.wallet-ui-v2 .wallet-cards-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

body.wallet-ui-v2 .wallet-home-cards {
    width: 100%;
}

body.wallet-ui-v2 .wallet-home-cards-rail {
    --wallet-rail-card-width: clamp(270px, 84vw, 340px);
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-block: 2px 10px;
    padding-inline: max(12px, calc((100% - var(--wallet-rail-card-width)) / 2));
    scroll-padding-inline: max(12px, calc((100% - var(--wallet-rail-card-width)) / 2));
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

body.wallet-ui-v2 .wallet-home-cards-rail::-webkit-scrollbar {
    display: none;
}

body.wallet-ui-v2 .wallet-home-cards-rail:active {
    cursor: grabbing;
}

body.wallet-ui-v2 .wallet-home-cards-rail.is-dragging {
    cursor: grabbing;
    user-select: none;
}

body.wallet-ui-v2 .wallet-home-card-shell {
    width: var(--wallet-rail-card-width);
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (min-width: 640px) and (max-width: 1023px) {
    body.wallet-ui-v2 .wallet-home-cards-rail {
        --wallet-rail-card-width: clamp(320px, 56vw, 420px);
    }

    body.wallet-ui-v2 .wallet-home-card-shell {
        width: var(--wallet-rail-card-width);
    }
}

@media (max-width: 1023px) {
    body.wallet-ui-v2 .wallet-home-cards-rail {
        --wallet-rail-card-width: clamp(280px, 84vw, 360px);
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-block: 2px 10px;
        padding-inline: max(12px, calc((100% - var(--wallet-rail-card-width)) / 2));
        scroll-padding-inline: max(12px, calc((100% - var(--wallet-rail-card-width)) / 2));
        scroll-snap-type: x mandatory;
    }

    body.wallet-ui-v2 .wallet-home-card-shell {
        width: var(--wallet-rail-card-width);
        max-width: none;
        margin-inline: 0;
        position: relative;
        transform-origin: top center;
        scroll-snap-align: center;
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail.is-overlapped .wallet-home-card-shell {
        z-index: auto;
        margin-top: 0;
        transform: none;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail.is-overlapped .wallet-home-card-shell:first-child {
        margin-top: 0;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail.is-focused .wallet-home-card-shell {
        display: block;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail.is-focused .wallet-home-card-shell.is-active {
        display: block;
        margin-top: 0;
        z-index: auto;
        transform: none;
    }
}

body.wallet-ui-v2 .wallet-home-card-shell .wallet-v2-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

body.wallet-ui-v2 .wallet-home-active-detail {
    margin-top: 0;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.995);
    overflow: hidden;
    pointer-events: none;
    transition:
        max-height 340ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 280ms ease;
    will-change: max-height, opacity, transform;
}

body.wallet-ui-v2 .wallet-home-active-detail.is-open {
    margin-top: 12px;
    max-height: 960px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.wallet-ui-v2 .wallet-v2-layout {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.wallet-ui-v2 .wallet-v2-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.wallet-ui-v2 .wallet-v2-stack .wallet-v2-shell:not(:first-child) {
    margin-top: 0;
}

body.wallet-ui-v2 .wallet-v2-shell {
    transition: opacity 0.28s ease, transform 0.28s ease;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    min-width: 0;
    box-sizing: border-box;
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-stack,
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-stack {
    gap: 0;
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell,
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), margin-top 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell.is-active,
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell.is-active {
    z-index: 80;
    margin-top: 0;
    transform: translateY(0) scale(1);
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active),
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) {
    z-index: calc(12 + var(--deck-index, 1));
    margin-top: var(--stack-mt, -132px);
    transform: translateY(calc(var(--stack-depth, 0) * 44px)) scale(calc(0.993 - (var(--stack-depth, 0) * 0.01)));
    filter: saturate(0.92);
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell.is-promoting,
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell.is-promoting {
    animation: walletCardPromote 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell.is-demoting,
body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell.is-demoting {
    animation: walletCardDemote 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.wallet-ui-v2 .wallet-v2-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    padding: 1.4rem 1.35rem 1.2rem;
    color: #f4f8ff;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    aspect-ratio: 1.586 / 1;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.wallet-ui-v2 .wallet-v2-card .card-number,
body.wallet-ui-v2 .wallet-v2-card .card-holder {
    color: rgba(244, 248, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.wallet-ui-v2 .wallet-v2-shell[data-theme-preset="warm-gold"] .wallet-v2-card {
    box-shadow: 0 2px 10px rgba(49, 28, 4, 0.08);
}

body.wallet-ui-v2 .wallet-v2-shell[data-theme-preset="sunset-coral"] .wallet-v2-card {
    box-shadow: 0 2px 10px rgba(65, 18, 26, 0.08);
}

body.wallet-ui-v2 .wallet-v2-shell[data-theme-preset="midnight"] .wallet-v2-card {
    box-shadow: 0 2px 10px rgba(2, 10, 24, 0.1);
}

body.wallet-ui-v2 .wallet-v2-shell.is-active .wallet-v2-card {
    transform: translateY(-1px) scale(1.002);
}

body.wallet-ui-v2 .wallet-v2-shell:not(.is-active) .wallet-v2-card {
    transform: scale(0.99);
    opacity: 0.98;
    filter: saturate(0.9);
}

body.wallet-ui-v2 .wallet-v2-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0) 82%);
    transform: translateX(-120%);
    animation: walletV2CardShimmer 5.2s ease-in-out infinite;
}

body.wallet-ui-v2 .wallet-v2-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 44px;
}

body.wallet-ui-v2 .wallet-v2-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding-inline: 82px;
}

body.wallet-ui-v2 .wallet-v2-head .card-logo {
    display: block;
    margin-inline: auto;
}

body.wallet-ui-v2 .wallet-v2-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

body.wallet-ui-v2 .wallet-v2-tier-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    left: 14px;
    min-height: 22px;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: color-mix(in srgb, var(--tier-ribbon-color, #4C5C77) 78%, black 22%);
    border: 1px solid color-mix(in srgb, var(--tier-ribbon-color, #4C5C77) 86%, white 14%);
    z-index: 2;
}

body.wallet-ui-v2 .wallet-v2-brand {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #f7fbff;
}

body.wallet-ui-v2 .wallet-v2-brand.wallet-v2-brand-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02rem;
    line-height: 1.2;
    max-width: 100%;
}

body.wallet-ui-v2 .wallet-v2-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 24, 40, 0.28);
    color: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
}

body.wallet-ui-v2 .wallet-v2-ghost.wallet-v2-ghost-qr {
    width: 30px;
    height: 30px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(8, 24, 40, 0.2);
    opacity: 0.9;
}

body.wallet-ui-v2 .wallet-v2-ghost.wallet-v2-ghost-qr i {
    font-size: 0.8rem;
}

body.wallet-ui-v2 .wallet-v2-middle {
    margin-top: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    align-self: center;
    width: 100%;
    max-width: 84%;
    margin-inline: auto;
}

body.wallet-ui-v2 .wallet-v2-balance {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: none;
}

body.wallet-ui-v2 .wallet-v2-label {
    margin-top: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.86);
}

body.wallet-ui-v2 .wallet-v2-stamp-preview {
    margin-top: 10px;
    padding: 8px 10px 9px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(6, 14, 24, 0.34);
    backdrop-filter: blur(6px);
}

body.wallet-ui-v2 .wallet-v2-stamp-preview-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

body.wallet-ui-v2 .wallet-v2-stamp-preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

body.wallet-ui-v2 .wallet-v2-stamp-preview-dot.is-filled {
    border-color: rgba(255, 218, 125, 0.78);
    background: radial-gradient(circle at 35% 25%, #fff2c8 0%, #f3cb79 55%, #df9b3e 100%);
    box-shadow: 0 0 8px rgba(244, 191, 90, 0.34);
}

body.wallet-ui-v2 .wallet-v2-stamp-preview-copy {
    margin: 0;
    font-size: 0.67rem;
    line-height: 1.2;
    color: rgba(241, 245, 249, 0.9);
}

@media (min-width: 1024px) {
    body.wallet-ui-v2 .wallet-v2-stamp-preview {
        margin-top: 8px;
        padding: 6px 9px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        max-width: 100%;
    }

    body.wallet-ui-v2 .wallet-v2-stamp-preview-track {
        margin-bottom: 0;
        flex-shrink: 0;
        gap: 5px;
    }

    body.wallet-ui-v2 .wallet-v2-stamp-preview-dot {
        width: 8px;
        height: 8px;
    }

    body.wallet-ui-v2 .wallet-v2-stamp-preview-copy {
        font-size: 0.62rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 190px;
    }
}

body.wallet-ui-v2 .wallet-v2-bottom {
    margin-top: 0;
    padding-top: 4px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 84%;
    margin-inline: auto;
}

body.wallet-ui-v2 .wallet-v2-card .card-number {
    font-size: 1rem;
    letter-spacing: 0.18em;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.wallet-ui-v2 .wallet-v2-card .card-holder {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.wallet-ui-v2 .wallet-v2-open {
    margin-top: 14px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    background: rgba(8, 25, 41, 0.22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

body.wallet-ui-v2 .wallet-v2-shell.is-open .wallet-v2-open i {
    transform: rotate(180deg);
}

body.wallet-ui-v2 .wallet-v2-detail {
    display: none;
    margin-top: 8px;
    border-radius: 18px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    width: 100%;
}

body.wallet-ui-v2 .wallet-v2-shell.is-open .wallet-v2-detail {
    display: block;
    animation: walletV2Reveal 280ms ease;
}

body.wallet-ui-v2 .wallet-v2-shell.is-open .wallet-v2-card {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

body.wallet-ui-v2 .wallet-v2-desktop-pane {
    display: none;
}

body.wallet-ui-v2 .wallet-v2-desktop-card {
    border-radius: 24px;
    padding: 14px;
    background: rgba(8, 20, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

body.wallet-ui-v2 .wallet-v2-desktop-head h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f4f9ff;
}

body.wallet-ui-v2 .wallet-v2-detail.is-desktop-open {
    display: block;
    margin-top: 12px;
}

body.wallet-ui-v2 .wallet-v2-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

body.wallet-ui-v2 .wallet-v2-tabs button,
body.wallet-ui-v2 .wallet-v2-tabs .wallet-v2-route {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.74rem;
    text-decoration: none;
    font-weight: 700;
}

body.wallet-ui-v2 .wallet-v2-tabs button.is-active {
    background: #0a84ff;
    color: #fff;
    border-color: transparent;
}

body.wallet-ui-v2 .wallet-v2-tabs .wallet-v2-route {
    margin-left: auto;
}

body.wallet-ui-v2 .wallet-v2-panel {
    display: none;
}

body.wallet-ui-v2 .wallet-v2-panel.is-active {
    display: block;
}

body.wallet-ui-v2 .wallet-v2-qr-box {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 230px;
    min-height: 230px;
    margin-inline: auto;
}

body.wallet-ui-v2 .wallet-v2-qr-box canvas,
body.wallet-ui-v2 .wallet-v2-qr-box img {
    display: block;
    max-width: 100%;
    height: auto;
}

body.wallet-ui-v2 .wallet-v2-help {
    margin-top: 8px;
    font-size: 0.78rem;
    color: rgba(230, 241, 255, 0.82);
    text-align: center;
}

body.wallet-ui-v2 .wallet-v2-op-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

body.wallet-ui-v2 .wallet-v2-card .level-ribbon,
body.wallet-ui-v2 .wallet-v2-card .level-ribbon-content {
    display: none !important;
}

body.wallet-ui-v2 .wallet-v2-op-title {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.78rem;
}

body.wallet-ui-v2 .wallet-v2-op-meta {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 0.64rem;
}

body.wallet-ui-v2 .wallet-v2-op-amount {
    font-size: 0.76rem;
    font-weight: 800;
    color: #8ef2c5;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    body.wallet-ui-v2.wallet-v2-fullcard .wallet-v2-shell.is-active {
        position: sticky;
        top: 10px;
        z-index: 30;
    }

    body.wallet-ui-v2 .wallet-v2-layout {
        max-width: 100%;
        padding-inline: 2px;
        overflow-x: clip;
    }

    body.wallet-ui-v2 .wallet-v2-stack {
        gap: 10px;
        padding-top: 4px;
    }

    body.wallet-ui-v2 .wallet-v2-stack .wallet-v2-shell:not(:first-child) {
        margin-top: 0;
    }

    body.wallet-ui-v2 .wallet-v2-shell {
        max-width: min(94vw, 430px);
        position: relative;
        z-index: 2;
        margin-inline: auto;
    }

    body.wallet-ui-v2 .wallet-v2-shell.is-active {
        z-index: 24;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell {
        opacity: 1;
        display: block;
        pointer-events: auto;
        transform: none;
        max-width: 100%;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell.is-active,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell.is-active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        z-index: 82;
        margin-top: 0;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active),
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) {
        z-index: calc(20 + var(--deck-index, 1));
        margin-top: var(--stack-mt, -96px);
        transform: translateY(calc(var(--stack-depth, 0) * 18px)) scale(calc(0.996 - (var(--stack-depth, 0) * 0.007)));
        filter: saturate(0.93);
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "head balance"
            "meta balance";
        gap: 4px 12px;
        align-items: center;
        padding: 0.72rem 0.82rem;
        aspect-ratio: auto;
        min-height: 106px;
        border-radius: 18px;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head {
        grid-area: head;
        min-height: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-brand-wrap,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-brand-wrap {
        justify-content: flex-start;
        text-align: left;
        width: auto;
        padding-inline: 0;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head .card-logo,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head .card-logo {
        height: 1.32rem !important;
        margin: 0;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-brand.wallet-v2-brand-text,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-brand.wallet-v2-brand-text {
        font-size: 0.78rem;
        line-height: 1.15;
        -webkit-line-clamp: 1;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head-actions,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-head-actions {
        display: none;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-middle,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-middle {
        grid-area: balance;
        align-self: center;
        justify-self: end;
        max-width: none;
        margin: 0;
        text-align: right;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-balance,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-balance {
        font-size: 1.06rem;
        line-height: 1.05;
        white-space: nowrap;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-bottom,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-bottom {
        grid-area: meta;
        max-width: none;
        margin: 0;
        text-align: left;
        padding-top: 2px;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card .card-number,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card .card-number {
        display: none;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card .card-holder,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-card .card-holder {
        margin-top: 0;
        font-size: 0.62rem;
        letter-spacing: 0.05em;
        opacity: 0.88;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-tier-ribbon,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell:not(.is-active) .wallet-v2-tier-ribbon {
        top: 8px;
        left: 8px;
        min-height: 18px;
        font-size: 0.52rem;
        padding: 2px 7px;
    }

    body.wallet-ui-v2 .wallet-v2-head-actions {
        right: 10px;
    }

    body.wallet-ui-v2 .wallet-v2-card {
        aspect-ratio: 1.586 / 1;
        min-height: 0;
        border-radius: 22px;
        padding: 0.92rem 0.9rem 0.82rem;
    }

    body.wallet-ui-v2 .wallet-v2-brand-wrap {
        padding-inline: 72px;
    }

    body.wallet-ui-v2 .wallet-v2-tier-ribbon {
        top: 12px;
        left: 12px;
    }

    body.wallet-ui-v2 .wallet-v2-brand.wallet-v2-brand-text {
        font-size: 0.88rem;
        line-height: 1.12;
    }

    body.wallet-ui-v2 .wallet-v2-middle {
        margin-top: 0;
    }

    body.wallet-ui-v2 .wallet-v2-balance {
        font-size: clamp(1.06rem, 4.7vw, 1.58rem);
    }

    body.wallet-ui-v2 .wallet-v2-label {
        font-size: 0.64rem;
        letter-spacing: 0.1em;
    }

    body.wallet-ui-v2 .wallet-v2-card .card-number {
        font-size: 0.82rem;
        letter-spacing: 0.12em;
    }

    body.wallet-ui-v2 .wallet-v2-card .card-holder {
        font-size: 0.7rem;
        margin-top: 0.22rem;
    }
}

body.wallet-ui-v2 .wallet-v2-op-item.is-debit .wallet-v2-op-amount {
    color: #ffb4be;
}

body.wallet-ui-v2 .wallet-v2-empty {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.wallet-ui-v2 .wallet-v2-balance-panel {
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.wallet-ui-v2 .wallet-v2-balance-panel span {
    display: block;
    font-size: 0.8rem;
    color: #475569;
}

body.wallet-ui-v2 .wallet-v2-balance-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 1.4rem;
    color: #0f172a;
}

body.wallet-ui-v2 .wallet-v2-visits-panel header {
    text-align: center;
    margin-bottom: 10px;
}

body.wallet-ui-v2 .wallet-v2-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: #64748b;
}

body.wallet-ui-v2 .wallet-v2-visits-panel h4 {
    margin: 4px 0;
    font-size: 1.65rem;
    color: #0f172a;
}

body.wallet-ui-v2 .wallet-v2-visits-panel p {
    margin: 0;
    color: #475569;
    font-size: 0.79rem;
}

body.wallet-ui-v2 .wallet-v2-progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe4ef;
    margin-bottom: 12px;
}

body.wallet-ui-v2 .wallet-v2-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f1bb59 0%, #f6d183 55%, #eaa048 100%);
    box-shadow: 0 4px 10px rgba(241, 185, 88, 0.44);
}

body.wallet-ui-v2 .wallet-v2-stamps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.wallet-ui-v2 .wallet-v2-stamp {
    min-height: 46px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #94a3b8;
    background: #ffffff;
    animation: walletV2StampIn 330ms ease both;
    animation-delay: var(--stamp-delay, 0ms);
}

body.wallet-ui-v2 .wallet-v2-stamp.is-filled {
    color: #422f07;
    border-style: solid;
    border-color: rgba(235, 184, 92, 0.45);
    background: radial-gradient(circle at 34% 18%, #fff2c9 0%, #f1cd83 55%, #e4a44a 100%);
    box-shadow: 0 2px 8px rgba(232, 167, 72, 0.16);
}

body.wallet-ui-v2 .wallet-v2-stamp span {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.6rem;
    color: rgba(10, 23, 37, 0.68);
}

body.wallet-ui-v2 .wallet-v2-visits-panel.is-reward-unlocked {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 228, 167, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(242, 192, 90, 0.3);
}

body.wallet-ui-v2 .wallet-v2-visits-panel.is-reward-unlocked .wallet-v2-progress span {
    animation: walletV2RewardPulse 1.5s ease-in-out infinite;
}

body.wallet-ui-v2 .wallet-v2-reward-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.wallet-ui-v2 .wallet-v2-reward-burst span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd46d;
    opacity: 0;
    animation: walletV2Spark 1.8s ease-out infinite;
}

body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(1) { top: 18%; left: 18%; animation-delay: 0.1s; }
body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(2) { top: 22%; left: 72%; animation-delay: 0.35s; }
body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(3) { top: 48%; left: 32%; animation-delay: 0.6s; }
body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(4) { top: 62%; left: 80%; animation-delay: 0.8s; }
body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(5) { top: 74%; left: 24%; animation-delay: 1.05s; }
body.wallet-ui-v2 .wallet-v2-reward-burst span:nth-child(6) { top: 38%; left: 58%; animation-delay: 1.3s; }

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

@keyframes walletV2StampIn {
    from { opacity: 0; transform: translateY(6px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes walletV2Spark {
    0% { transform: scale(0.2); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-18px) scale(1.2); opacity: 0; }
}

@keyframes walletV2RewardPulse {
    0%, 100% { box-shadow: 0 4px 10px rgba(241, 185, 88, 0.35); }
    50% { box-shadow: 0 8px 18px rgba(255, 214, 120, 0.6); }
}

@keyframes walletV2CardShimmer {
    0% { transform: translateX(-120%); opacity: 0; }
    22% { opacity: 0.9; }
    38% { opacity: 0.95; }
    62% { opacity: 0; transform: translateX(130%); }
    100% { opacity: 0; transform: translateX(130%); }
}

@keyframes walletCardPromote {
    0% { transform: translateY(20px) scale(0.95); }
    62% { transform: translateY(-4px) scale(1.016); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes walletCardDemote {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(calc(var(--stack-depth, 0) * 20px + 14px)) scale(calc(0.995 - (var(--stack-depth, 0) * 0.008))); }
}

.wallet-v2-qr-modal-frame {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.wallet-v2-qr-modal-content {
    position: relative;
    z-index: 1;
    min-height: 320px;
}

.wallet-coupons-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.wallet-coupons-rail::-webkit-scrollbar {
    display: none;
}

.wallet-coupons-rail:active,
.wallet-coupons-rail.is-dragging {
    cursor: grabbing;
}

.wallet-coupon-shell {
    width: min(82vw, 320px);
    min-width: 300px;
    flex: 0 0 auto;
}

.wallet-coupons-rail-page .wallet-coupon-shell {
    width: min(86vw, 360px);
}

.wallet-coupon-card {
    height: 100%;
    min-height: 270px;
}

.wallet-coupon-card.wallet-coupon-card-compact {
    min-height: 188px;
}

@media (min-width: 1024px) {
    .wallet-coupon-shell {
        width: min(46vw, 460px);
        min-width: 380px;
    }
    .wallet-coupons-rail-page .wallet-coupon-shell {
        width: min(32vw, 420px);
    }

    .wallet-coupons-rail {
        scrollbar-width: thin;
        overflow-x: auto !important;
        flex-wrap: nowrap;
    }

    .wallet-coupons-rail::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    .wallet-coupons-rail::-webkit-scrollbar-track {
        background: rgba(148, 163, 184, 0.2);
        border-radius: 999px;
    }

    .wallet-coupons-rail::-webkit-scrollbar-thumb {
        background: rgba(71, 85, 105, 0.45);
        border-radius: 999px;
    }
}

.wallet-v2-qr-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0) 80%);
    transform: translateX(-120%);
    animation: walletV2QrShimmer 2s ease-in-out infinite;
}

#card-detail-container #card-visual-host .wallet-v2-shell {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

#card-detail-container #card-visual-host .wallet-v2-card {
    width: 100%;
}

@media (min-width: 1024px) {
    #card-detail-container #card-visual-host .wallet-v2-shell {
        max-width: 540px;
    }
}

#card-detail-container .wallet-v2-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
}

#card-detail-container .wallet-v2-tabs button,
#card-detail-container .wallet-v2-tabs .wallet-v2-route {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

#card-detail-container .wallet-v2-tabs button.is-active {
    background: #0a84ff;
    color: #ffffff;
    border-color: transparent;
}

#card-detail-container .wallet-v2-balance-panel,
#card-detail-container .wallet-v2-op-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

#card-detail-container .wallet-v2-op-title {
    color: #0f172a;
}

#card-detail-container .wallet-v2-op-meta {
    color: #64748b;
}

#card-detail-container .wallet-v2-op-item.is-credit .wallet-v2-op-amount {
    color: #059669;
}

#card-detail-container .wallet-v2-op-item.is-debit .wallet-v2-op-amount {
    color: #dc2626;
}

#card-detail-container .wallet-v2-empty {
    color: #64748b;
    background: #ffffff;
    border-color: #e2e8f0;
}

.wallet-activity-rail {
    --wallet-activity-card-width: clamp(220px, 68vw, 300px);
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 2px 4px 10px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.wallet-activity-rail::-webkit-scrollbar {
    height: 7px;
}

.wallet-activity-rail::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
}

.wallet-activity-rail::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.4);
    border-radius: 999px;
}

.wallet-activity-card {
    flex: 0 0 var(--wallet-activity-card-width);
    scroll-snap-align: start;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
    padding: 12px;
}

.wallet-activity-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wallet-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.wallet-activity-icon.is-credit {
    background: #dcfce7;
    color: #15803d;
}

.wallet-activity-icon.is-debit {
    background: #fef3c7;
    color: #b45309;
}

.wallet-activity-amount {
    font-size: 0.88rem;
    font-weight: 700;
}

.wallet-activity-amount.is-credit {
    color: #15803d;
}

.wallet-activity-amount.is-debit {
    color: #b45309;
}

.wallet-activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 4px;
}

.wallet-activity-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 6px;
}

.wallet-activity-date {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 0;
}

.wallet-activity-caption {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #64748b;
}

@keyframes walletV2QrShimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(130%); }
}

@media (min-width: 1024px) {
    body.wallet-ui-v2 .wallet-v2-stack .wallet-v2-detail {
        display: none !important;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail::-webkit-scrollbar-track {
        background: rgba(148, 163, 184, 0.2);
        border-radius: 999px;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail::-webkit-scrollbar-thumb {
        background: rgba(71, 85, 105, 0.45);
        border-radius: 999px;
    }

    body.wallet-ui-v2 .wallet-home-cards-rail {
        --wallet-rail-card-width: clamp(300px, 28vw, 380px);
    }

    body.wallet-ui-v2 .wallet-home-card-shell {
        width: var(--wallet-rail-card-width);
    }

    body.wallet-ui-v2 .wallet-home-cards-rail {
        gap: 16px;
        padding-bottom: 12px;
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell {
        opacity: 0.55;
        pointer-events: auto;
        transform: scale(0.95) translateY(6px);
    }

    body.wallet-ui-v2 .wallet-cards-stack.cards-focus .wallet-v2-shell.is-active,
    body.wallet-ui-v2 .wallet-v2-layout.cards-focus .wallet-v2-shell.is-active {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail {
        --wallet-desktop-rail-card-width: clamp(340px, 30vw, 460px);
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px max(12px, calc((100% - var(--wallet-desktop-rail-card-width)) / 2)) 10px;
        scroll-padding-inline: max(12px, calc((100% - var(--wallet-desktop-rail-card-width)) / 2));
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        cursor: grab;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail .wallet-v2-shell {
        flex: 0 0 var(--wallet-desktop-rail-card-width);
        max-width: none;
        margin: 0 !important;
        margin-top: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none;
        z-index: auto !important;
        scroll-snap-align: center;
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail .wallet-v2-detail {
        display: none !important;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail::-webkit-scrollbar {
        height: 8px;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail::-webkit-scrollbar-track {
        background: rgba(148, 163, 184, 0.2);
        border-radius: 999px;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-rail::-webkit-scrollbar-thumb {
        background: rgba(71, 85, 105, 0.45);
        border-radius: 999px;
    }

    body.wallet-ui-v2 .wallet-v2-layout {
        display: grid;
        grid-template-columns: minmax(0, 860px);
        gap: 16px;
        max-width: 980px;
        margin-inline: auto;
        align-items: start;
        justify-content: center;
    }

    body.wallet-ui-v2 .wallet-v2-stack {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0;
        max-height: none;
        overflow: visible;
        padding-right: 2px;
    }

    body.wallet-ui-v2 .wallet-v2-stack > .wallet-v2-shell:not(:first-child) {
        margin-top: -72px;
    }

    body.wallet-ui-v2 .wallet-v2-shell {
        max-width: 520px;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }

    body.wallet-ui-v2 .wallet-v2-shell.is-active {
        z-index: 20;
    }

    body.wallet-ui-v2 .wallet-v2-shell:not(.is-active) {
        z-index: 8;
    }

    body.wallet-ui-v2 .wallet-v2-desktop-pane {
        display: block;
        position: relative;
        top: auto;
        width: 100%;
        max-width: 860px;
        margin-inline: auto;
    }

    body.wallet-ui-v2.wallet-v2-fullcard .wallet-v2-shell.is-active {
        position: relative;
        top: 0;
    }
}
