﻿body.neo-home #app .home-main-root,
body.neo-home #app .bottom-nav {
    display: none !important;
}

body.neo-home #app .home-page {
    background: linear-gradient(0deg, rgb(20 20 20) 0%, rgb(30 30 30) 53%, #01d352f7 140%), url(/img/bg1.png) center top / cover no-repeat;
    min-height: 100vh;
    padding: calc(14px + var(--safe-top-js, 0px)) 10px calc(110px + var(--safe-bottom-js, -32px));
    transition: background 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



body.neo-home #app .home-page.card-theme-green.chip-theme-atb {
    background: linear-gradient(180deg, rgba(83, 131, 215, 0.62) 0%, rgba(56, 101, 180, 0.66) 8%, rgba(14, 34, 57, 0.95) 48%, #0B1626 100%),        url('/img/card/atb.png') center -18px / min(167vw, 570px) auto no-repeat,        url('/img/bg1.png') center top / 100% clamp(340px, 3vh, 517px) no-repeat;
}

body.neo-home #app .home-page.card-theme-green.chip-theme-vugoda {
    background: linear-gradient(180deg, rgba(83, 131, 215, 0.62) 0%, rgba(56, 101, 180, 0.66) 8%, rgba(14, 34, 57, 0.95) 48%, #0B1626 100%),
        url('/img/card/epic.png') center -18px / min(167vw, 570px) auto no-repeat,
        url('/img/bg1.png') center top / 100% clamp(340px, 3vh, 517px) no-repeat;
}

body.neo-home #app .home-page.card-theme-yellow {
    background: linear-gradient(0deg, rgb(20 20 20) 0%, rgb(30 30 30) 53%, #efc04e 150%
140%
), url(/img/bg1.png) center top / cover no-repeat;
}

body.neo-home #app .home-page.card-theme-open {
    background:
        linear-gradient(180deg, rgba(87, 195, 217, 0.72) 0%, rgba(60, 119, 146, 0.46) 36%, rgba(10, 21, 33, 0.94) 74%, #0b1621 100%);
}

body.neo-home #app .home-v2 {
    color: #e8eef6;
    /* --top-shrink: 0; */
    /* --top-scale: 1; */
    --top-shift: 0px;
    min-height: calc(100vh - var(--safe-bottom-js, 0px));
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.home-v2-top {
    text-align: center;
}

.home-v2-top-shell {
    overflow: visible;
    transform: none;
    transform-origin: top center;
    transition: none;
}

.home-v2.is-open-card-mode .home-v2-top-shell {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-v2-top-track {
    width: 300%;
    display: flex;
    transform: translateX(0);
}

.home-v2-top-pane {
    width: 33.3333%;
    flex: 0 0 33.3333%;
}

.home-v2-top-pane:nth-child(2) .home-v2-balance-arrows {
    visibility: hidden;
}


.home-v2-toolbar {

    display: flex;
    align-items: center;
    justify-content: space-between;

}

.home-v2-toolbar-left,
.home-v2-toolbar-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.home-v2-toolbar-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.home-v2-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.home-v2-toolbar-ico {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    position: relative;
}

.home-v2-toolbar-ico.notify {
   /* border: 4px solid #bd4bff;*/
}

.home-v2-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #fa232e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-v2-greeting {
    display: inline-block;
    background: rgba(0, 0, 0, 0.43);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 46px;
    margin: 12px 0 10px;
    line-height: 1;
}

.home-v2-balance {
	margin-top: 40px;
    font-size: 84px;
    letter-spacing: -1.5px;
    font-weight: 500;
    line-height: 0.95;
    color: rgba(239, 246, 255, 0.84);
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 3;
}

.home-v2-balance-arrows {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 72px;
    line-height: 0;
    opacity: 0.93;
}

.home-v2-limit {
    color: #adbaca;
    /* font-size: 55px; */
    margin-top: 8px;
    transition: opacity 160ms ease, max-height 160ms ease, margin 160ms ease;
    max-height: 120px;
    overflow: hidden;
}

.home-v2-limit-info {
    width: 46px;
    height: 46px;
    background: #14df67;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    margin-left: 6px;
    font-weight: 700;
}
.home-v2-card {
    margin-top: 22px;
    min-height: 140px;
    padding: 14px 0 0;
    overflow: hidden;
    will-change: transform, opacity;
    transform: none;
    transform-origin: top center;
    transition: none;
}

.home-v2-card-track {
    width: 300%;
    display: flex;
    transform: translateX(0);
}

.home-v2-card-pane {
    width: 33.3333%;
    flex: 0 0 33.3333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-v2-card-pager {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.home-v2-card-pager-icon {
    color: rgba(224, 232, 241, 0.9);
    font-size: 28px;
    display: flex;
}

.home-v2-card-pager-dots {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 5px 5px;
    background: rgba(63, 78, 96, 0.66);
}

.home-v2-card-pager-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    transition: background-color 160ms ease, transform 160ms ease;
}

.home-v2-card-pager-dot.active {
    background: #13df69;
    transform: scale(1.08);
}

.home-v2-card-open-title {
    font-size: 68px;
    line-height: 1.08;
    font-weight: 500;
    text-align: center;
    color: rgba(240, 246, 255, 0.94);
}

.home-v2-card-open-sub {
    margin-top: 16px;
    max-width: 92%;
    text-align: center;
    font-size: 24px;
    line-height: 1.35;
    color: rgba(202, 214, 228, 0.88);
}

.home-v2-card-open-btn {
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    background: #11df66;
    color: #0c1a12;
    font-size: 22px;
    font-weight: 600;
    padding: 16px 28px;
    min-width: min(84vw, 360px);
}

.home-v2-chip-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: rgb(0 0 0 / 13%);
    border-radius: 14px;
    /* padding: 10px; */
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin 180ms ease, padding 180ms ease;
    max-height: 140px;
}

.home-v2-balance-arrows span {
    cursor: pointer;
    user-select: none;
}

.home-v2-chip {
    background: transparent;
    /* min-width: 94px; */
    /* height: 70px; */
    border-radius: 15px;
    /* padding: 0 12px; */
    color: #6d3434;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    /* transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease; */
    /* font-size: 46px; */
    /* font-weight: 700; */
    /* line-height: 1; */
    /* box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); */
}

.home-v2-chip img {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}



.home-v2-chip.active {
    background: rgb(184 189 197 / 25%);
    color: transparent;
    position: relative;
}

.home-v2-chip:not(.active) {
    transform: scale(0.96);
}

.home-v2-chip.active::after {
    content: none;
}

.home-v2-chip.active::before {
    content: none;
    position: relative;
    z-index: 1;
    font-size: 66px;
    font-weight: 800;
    color: #11161f;
    line-height: 1;
}

.home-v2-chip.active img {
    max-width: 60%;
    max-height: 60%;
    position: relative;
    z-index: 1;
}

.home-v2-card-caption {
    display: flex;
    align-items: baseline;
    gap: 14px;
    color: rgba(226, 234, 241, 0.86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.home-v2-card-second {
    display: none;
}

.home-v2-card-pane-yellow .home-v2-card-second {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(226, 234, 241, 0.86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.home-v2-card-second-logo {
    width: 64px;
    height: 50px;
    border-radius: 11px;
    background: #efc04e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-v2-card-second-logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}

.home-v2-card-second-name,
.home-v2-card-second-mask,
.home-v2-card-second-visa {
    /* font-size: 46px; */
}

.home-v2-card-second-visa {
    font-weight: 700;
}

.home-v2-card-locked {
    width: min(92vw, 840px);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(216, 40, 40, 0.94), rgba(173, 17, 17, 0.9));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    padding: 14px 16px 12px;
}

.home-v2-card-locked-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.home-v2-card-locked-icon {
    font-size: 22px;
}

.home-v2-card-locked-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
}

.home-v2-card-locked-mask {
    font-size: 20px;
}

.home-v2-card-locked-visa {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.home-v2-card-locked-chevron {
    font-size: 36px;
    line-height: 1;
    margin-left: 6px;
}

.home-v2-card-locked-sub {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    text-align: center;
}

.home-v2-card-name {
    /* font-size: 46px; */
    /* font-weight: 500; */
}

.home-v2-card-mask {
    /* font-size: 46px; */
    /* font-weight: 500; */
    letter-spacing: 1px;
}

.home-v2-card-visa {
    /* font-size: 50px; */
    font-weight: 700;
    letter-spacing: -1px;
}

.home-v2-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-v2-actions-static {
    margin-top: 24px;
    transition: transform 160ms ease, opacity 160ms ease;
    transform: none;
    opacity: 1;
    max-height: 420px;
    /*overflow: hidden;*/
}

.home-v2.is-open-card-mode .home-v2-actions-static {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-v2.is-open-card-mode .home-v2-ops-shell {
    overflow: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: auto;
    touch-action: pan-x;
}

.home-v2.is-scrolled-down .home-v2-actions-static {
    opacity: 0;
    transform: none;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-v2.is-scrolled-down .home-v2-chip-row {
    opacity: 0;
    transform: none;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-v2.is-scrolled-down .home-v2-limit {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    pointer-events: none;
}

.home-v2.is-scrolled-down .home-v2-card-track {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, max-height 160ms ease;
}

.home-v2.is-scrolled-down .home-v2-card {
    min-height: 28px;
    max-height: 28px;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.home-v2.is-scrolled-down .home-v2-top {
    margin-bottom: 0;
}

.home-v2.is-scrolled-down .home-v2-top-shell {
    margin-bottom: 0;
}

.home-v2.is-scrolled-down .home-v2-card-caption {
    transform: none;
    transition: none;
}

.home-v2.is-scrolled-down .home-v2-balance {
    margin-top: 40px;
}

.home-v2-ops-shell {
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.home-v2-pull-refresh {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translate(-50%, var(--pull-d, 0px));
    opacity: calc(var(--pull-p, 0));
    pointer-events: none;
    display: inline-flex;
    gap: 4px;
    z-index: 6;
    transition: opacity 180ms ease, transform 180ms ease;
}

.home-v2-pull-refresh.is-visible {
    opacity: calc(var(--pull-p, 0));
}

.home-v2-pull-seg {
    width: 11px;
    height: 4px;
    border-radius: 4px;
    background: #11e26f;
    transform: translateY(0) skewX(26deg) scale(0.9);
    opacity: 0;
    box-shadow: 0 0 10px rgba(17, 226, 111, 0.35);
}

.home-v2-pull-refresh.is-refreshing .home-v2-pull-seg {
    animation: homeV2PullHop 900ms ease-in-out infinite;
}

.home-v2-pull-refresh.is-finishing .home-v2-pull-seg {
    animation: homeV2PullHop 900ms ease-in-out 1;
}

.home-v2-pull-refresh.is-refreshing .home-v2-pull-seg:nth-child(2) { animation-delay: 180ms; }
.home-v2-pull-refresh.is-refreshing .home-v2-pull-seg:nth-child(3) { animation-delay: 360ms; }
.home-v2-pull-refresh.is-finishing .home-v2-pull-seg:nth-child(2) { animation-delay: 180ms; }
.home-v2-pull-refresh.is-finishing .home-v2-pull-seg:nth-child(3) { animation-delay: 360ms; }

@keyframes homeV2PullHop {
    0%, 18%, 100% {
        opacity: 0.9;
        transform: translateY(0) skewX(26deg) scale(0.9);
    }
    9% {
        opacity: 1;
        transform: translateY(-4px) skewX(26deg) scale(1);
    }
    14% {
        opacity: 0.98;
        transform: translateY(-2px) skewX(26deg) scale(0.95);
    }
}

.home-v2.is-scrolled-down .home-v2-ops-shell {
    margin-top: 0;
}

.home-v2-ops-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
}



.home-v2-ops-track {
    width: 300%;
    display: flex;
    transform: translateX(0);
}

.home-v2-ops-pane {
    width: 33.3333%;
    flex: 0 0 33.3333%;
}

.home-v2-empty {
    margin-top: 52px;
    text-align: center;
    color: rgba(215, 224, 236, 0.9);
    font-size: 24px;
    line-height: 1.35;
    padding: 0 18px;
}

.home-v2-action {
    border-radius: 20px;
    padding: 12px 8px;
    font-size: 11px;
    color: #d5dfeb;
}

.home-v2-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgb(48 57 66);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.home-v2-action-icon img {
    width: 28px;
}

.home-v2-history {
    margin-top: 22px;
}

.home-v2-ops-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 4px;
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 4px 0 2px;
}

.home-v2-ops-tools-date {
    color: #8f9daf;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    flex: 1 1 auto;
}

.home-v2-ops-tools-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-v2-ops-tool {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 80, 98, 0.42);
    color: #aebbcf;
    font-size: 10px;
    box-shadow: inset 0 0 0 1px rgba(150, 167, 188, 0.18);
    position: relative;
}

.home-v2-ops-tool-left {
    color: #95a6bc;
    font-size: 10px;
}

.home-v2-ops-tool-plus {
    position: absolute;
    right: 4px;
    bottom: 3px;
    font-size: 6px;
}

.home-v2-day {
    color: #8f9daf;
    margin: 18px 0 10px;
    display: block;
    text-align: center;
    padding: 0;
    font-size: 14px;
}

.home-v2-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    transition: background-color 240ms ease;
}

.home-v2-row-with-icon {
    align-items: center;
    gap: 14px;
}

.home-v2-op-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 93, 110, 0.36);
    box-shadow: inset 0 0 0 2px rgba(153, 166, 183, 0.34);
}

.home-v2-op-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.home-v2-row.is-refresh-flash {
    background: transparent;
}

.home-v2-row-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

.home-v2-row-amount {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
}

.home-v2-row-amount.income {
    color: #12e56f;
}

.home-v2-row-note {
    color: #8d9eb1;
    font-size: 14px;
    margin: 4px 0 14px;
}

.home-v2-row-note-with-icon {
    margin-left: 70px;
}

.home-v2-bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    bottom: 0;
    height: calc(78px + var(--safe-bottom-js, 0px));
    padding: 8px 12px calc(8px + var(--safe-bottom-js, 0px));
    background: rgb(48 57 66);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9999;
}

.home-v2-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a8b1bf;
    font-size: 0;
    font-weight: 500;
    line-height: 1.1;
    gap: 0;
    padding-bottom: 0;
    min-width: 0;
    text-align: center;
}

.home-v2-nav-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: 0.95;
}

.home-v2-nav-item span {
    display: none !important;
}

.home-v2-nav-item.active {
    color: #11e26f;
}

.home-v2-nav-item.active img {
    opacity: 1;
}

@media (max-width: 430px) {
    .home-v2-ops-shell { min-height: 0; }
    .home-v2-toolbar-ico {
        width: 35px;
        height: 35px;
        font-size: 21px;
    }

    .home-v2-avatar {
        width: 35px;
        height: 35px;
    }

    .home-v2-greeting {
        font-size: 19px;
        padding: 8px 14px;
    }

    .home-v2-balance {
        font-size: 44px;
    }

    .home-v2-balance-arrows {
        font-size: 56px;
    }

    .home-v2-limit {
        font-size: 16px;
    }

    .home-v2-limit-info {
        width: 20px;
        height: 20px;
        font-size: 15px;
    }

    .home-v2-chip {
        min-width: 55px;
        height: 52px;
        font-size: 30px;
    }

    .home-v2-chip img {
        max-width: 60%;
        max-height: 60%;
    }

    .home-v2-chip.muted {
        font-size: 17px;
    }

    .home-v2-chip.active {
        min-width: 55px;
        height: 52px;
    }

    .home-v2-chip-row {
        gap: 0px;
        /* padding: 8px; */
    }

    .home-v2-chip.active::after {
        width: 68px;
        height: 46px;
    }

    .home-v2-chip.active::before {
        font-size: 47px;
    }

    .home-v2-card-caption {
        gap: 8px;
        white-space: nowrap;
        color: #ffffff6e;
    }

    .home-v2-card-name,
    .home-v2-card-mask,
    .home-v2-card-visa {
        font-size: 18px;
    }

    .home-v2-card-open-title {
        font-size: 32px;
    }

    .home-v2-card-open-sub {
        margin-top: 10px;
        font-size: 14px;
    }

    .home-v2-card-open-btn {
        margin-top: 14px;
        min-width: min(78vw, 300px);
        font-size: 15px;
        padding: 12px 18px;
    }

    .home-v2-card-locked {
        border-radius: 16px;
        padding: 9px 12px 8px;
    }

    .home-v2-card-locked-icon {
        font-size: 16px;
    }

    .home-v2-card-locked-name,
    .home-v2-card-locked-mask {
        font-size: 16px;
    }

    .home-v2-card-locked-visa {
        font-size: 17px;
    }

    .home-v2-card-locked-chevron {
        font-size: 28px;
    }

    .home-v2-card-locked-sub {
        font-size: 14px;
    }

    .home-v2-card-pane-yellow .home-v2-card-second {
        gap: 8px;
    }

    .home-v2-card-second-logo {
        width: 36px;
        height: 28px;
        border-radius: 7px;
    }

    .home-v2-card-second-name,
    .home-v2-card-second-mask,
    .home-v2-card-second-visa {
        font-size: 18px;
    }

    .home-v2-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-v2-row-title {
        font-size: 16px;
    }

    .home-v2-row-amount {
        font-size: 16px;
    }

    .home-v2-row-note {
        font-size: 13px;
    }

    .home-v2-op-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .home-v2-op-icon img {
        width: 24px;
        height: 24px;
    }

    .home-v2-row-note-with-icon {
        margin-left: 62px;
    }
}
