:root {
    --neo-bg: #07121b;
    --neo-surface: rgba(19, 30, 44, 0.82);
    --neo-surface-soft: rgba(33, 44, 60, 0.78);
    --neo-stroke: rgba(255, 255, 255, 0.08);
    --neo-text: #e9eef6;
    --neo-muted: #96a3b5;
    --neo-green: #11e26f;
}

body {
    background: var(--neo-bg);
    color: var(--neo-text);
    font-family: "Geomanist", "Segoe UI", sans-serif;
}

.bg-gradient {
    background:
        linear-gradient(180deg, rgba(4, 10, 15, 0.2) 0%, rgba(7, 18, 27, 0.86) 45%, rgba(7, 18, 27, 1) 75%),
        url('/img/bg1.png') center top/cover no-repeat !important;
    opacity: 1 !important;
}

.header {
    background: transparent !important;
    padding: calc(8px + var(--safe-top-js, 0px)) 14px 8px !important;
}

.header-left .avatar {
    width: 44px;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-right {
    gap: 10px;
    align-items: center;
}

.balance-section {
    text-align: center;
    margin-top: 16px;
}

.balance-amount {
    font-size: 62px !important;
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -1.5px;
    color: #ecf5ff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-zone {
    margin-top: 10px !important;
}

.card-underlay {
    display: none !important;
}

.card {
    border-radius: 28px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.44);
}

.top-slider-slide[data-top-slide-index="0"] .card {
    background: linear-gradient(130deg, #00bf54 0%, #0ad66a 42%, #0d1013 110%) !important;
}

.top-slider-slide[data-top-slide-index="1"] .card {
    background: linear-gradient(140deg, #f6f7f8 0%, #d6dce3 100%) !important;
}

.cards-switch-wrap {
    margin-top: 8px !important;
}

.cards-slide-indicator {
    background: rgba(26, 37, 50, 0.92) !important;
    border: 1px solid var(--neo-stroke);
    border-radius: 999px !important;
}

.actions-row {
    gap: 14px !important;
    margin-top: 14px !important;
}

.action-item {
    border-radius: 20px;
    background: var(--neo-surface) !important;
    border: 1px solid var(--neo-stroke);
    padding: 14px 10px !important;
    min-height: 122px;
    backdrop-filter: blur(8px);
}

.icon-circle {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    background: var(--neo-surface-soft) !important;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.transactions-box {
    margin-top: 16px !important;
    border-radius: 22px;
    background: rgba(12, 21, 32, 0.86);
    border: 1px solid var(--neo-stroke);
    padding: 16px 14px !important;
}

.trans-header h3,
.opsx-day {
    color: #c7d1dd !important;
}

.opsx-row {
    padding: 12px 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.opsx-row:last-child {
    border-bottom: 0;
}

.opsx-avatar {
    background: rgba(151, 164, 181, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.opsx-name {
    color: #ebf1f8 !important;
    font-size: 22px !important;
    line-height: 1.05;
    font-weight: 600;
}

.opsx-note {
    color: #9fb0c4 !important;
    font-size: 18px !important;
}

.opsx-amount {
    color: #dbe8f8 !important;
    font-size: 26px !important;
    font-weight: 500 !important;
}

.opsx-amount.income {
    color: var(--neo-green) !important;
}

.bottom-nav {
    background: rgba(39, 46, 58, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.bottom-nav::before {
    display: none !important;
}

.nav-item span {
    color: #a8b2c0 !important;
    font-size: 14px !important;
}

.nav-item.active span {
    color: #ecf8ff !important;
}

.nav-item.active .nav-icon-wrapper img {
    filter: drop-shadow(0 0 10px rgba(17, 226, 111, 0.3));
}

@media (max-width: 430px) {
    .balance-amount {
        font-size: 54px !important;
    }

    .opsx-name {
        font-size: 17px !important;
    }

    .opsx-note {
        font-size: 13px !important;
    }

    .opsx-amount {
        font-size: 18px !important;
    }
}

/* Strong overrides for legacy stylesheet */
body.neo-home,
body.neo-home #app {
    background: #07121b !important;
}

body.neo-home #app .bg-gradient {
    background:
        linear-gradient(180deg, rgba(6, 12, 18, 0.22) 0%, rgba(6, 17, 26, 0.85) 52%, rgba(7, 18, 27, 1) 76%),
        url('/img/bg1.png') center top/cover no-repeat !important;
}

body.neo-home #app .bg-gradient::before,
body.neo-home #app .bg-gradient::after {
    display: none !important;
    content: none !important;
}

body.neo-home #app .fixed-top {
    padding-top: 8px !important;
}

body.neo-home #app .balance-amount {
    font-size: clamp(48px, 11vw, 66px) !important;
    font-weight: 700 !important;
}

body.neo-home #app .card {
    border-radius: 26px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5) !important;
}

body.neo-home #app .top-slider-slide[data-top-slide-index="0"] .card {
    background: linear-gradient(132deg, #08d464 0%, #00bb56 42%, #0c1116 108%) !important;
}

body.neo-home #app .home-view {
    background: linear-gradient(180deg, rgba(8, 20, 31, 0.42) 0%, rgba(7, 18, 27, 0.96) 22%, rgba(7, 18, 27, 1) 100%) !important;
}

body.neo-home #app .action-item,
body.neo-home #app .transactions-box,
body.neo-home #app .bottom-nav {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
