* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #d4d4f0 0%, #e8e8f5 50%, #f5f5f5 100%);
    min-height: 100vh;
    padding-bottom: 80px;
    color: #000;
    max-width: 428px;
    margin: 0 auto;
}

/* Шапка */
.header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    background: transparent;
}

.header-profile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-icon {
    width: 24px;
    height: 24px;
    background: #9090b8;
    border-radius: 50%;
    position: relative;
}

.profile-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 16px;
    background: #9090b8;
    border-radius: 50% 50% 0 0;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 225, 225, 0.462);
    border-radius: 20px;
    padding: 10px 16px;
}

.search-icon {
    flex-shrink: 0;
}

.search-text {
    font-size: 17px;
    color: #8b8b8b;
    font-weight: 400;
}

.header-menu {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(#000 0 0) 0 0/8px 8px,
        linear-gradient(#000 0 0) 10px 0/8px 8px,
        linear-gradient(#000 0 0) 0 10px/8px 8px,
        linear-gradient(#000 0 0) 10px 10px/8px 8px,
        linear-gradient(#000 0 0) 20px 0/8px 8px,
        linear-gradient(#000 0 0) 20px 10px/8px 8px,
        linear-gradient(#000 0 0) 0 20px/8px 8px,
        linear-gradient(#000 0 0) 10px 20px/8px 8px,
        linear-gradient(#000 0 0) 20px 20px/8px 8px;
    background-repeat: no-repeat;
}

/* Основной контент */
.main-content {
    padding: 0 16px;
}

/* Секция Кошелёк */
.wallet-section {
    margin-bottom: 24px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wallet-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
}

.title-arrow {
    margin-top: 4px;
}

.wallet-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.more-icon {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #000 2px, transparent 2px) 0 0/10px 10px,
        radial-gradient(circle, #000 2px, transparent 2px) 9px 0/10px 10px,
        radial-gradient(circle, #000 2px, transparent 2px) 18px 0/10px 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.hide-icon {
    width: 28px;
    height: 28px;
    position: relative;
}

.hide-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 14px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
}

.hide-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 2px;
    width: 24px;
    height: 2px;
    background: #000;
    transform: rotate(-45deg);
}

.wallet-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-cards.second-row {
    margin-bottom: 0;
}

.wallet-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wallet-card.small {
    aspect-ratio: 1;
    min-height: auto;
    width: 80px;
    height: 95px;
}

.wallet-card.large {
    grid-column: span 2;
}

.wallet-card.card-green {
    background: linear-gradient(135deg, #6ec46e 0%, #4fa84f 100%);
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

.card-icon {
    margin-bottom: auto;
}

.card-balance {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    align-self: flex-start;
    margin-top: auto;
}

.qr-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sber-spasibo {
    background: #fff;
}

.spasibo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6ec46e 0%, #4fa84f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.shield-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card {
    background: #fff;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    height: 100%;
    width: 190px;
}

.descs {
    font-size: 10px;
    color: #8b8b8b;
}

.info__rows {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
}

.account-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.number__schet {
    color: #8b8b8b;
    font-size: 12px;
}

.account-balance {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.bukva_c {
    background: #21a038;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 800;
    border-radius: 100%;
    line-height: 10%;
}

.account-number {
    font-size: 15px;
    color: #8b8b8b;
    font-weight: 400;
}

.spasibo-info {
    background: #fff;
    justify-content: center;
    padding: 16px;
}

.spasibo-balance {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
    text-align: center;
}

.spasibo-label {
    font-size: 12px;
    color: #8b8b8b;
    text-align: center;
    line-height: 1.2;
    font-weight: 400;
}

/* Секция История */
.history-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.section-link {
    font-size: 16px;
    color: #21a038;
    text-decoration: none;
    font-weight: 500;
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.history-item:first-child {
    padding-top: 0;
}

.history-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-icon {
    background: #f5f5f5;
    position: relative;
}

.bank-icon::before {
    content: '';
    width: 28px;
    height: 22px;
    background: linear-gradient(#000 0 0) center/20px 2px,
        linear-gradient(#000 0 0) 4px 8px/2px 14px,
        linear-gradient(#000 0 0) 12px 8px/2px 14px,
        linear-gradient(#000 0 0) 20px 8px/2px 14px;
    background-repeat: no-repeat;
}

.income-icon {
    background: #2d2d2d;
    position: relative;
}

.income-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background: linear-gradient(#fff 0 0) center/16px 3px;
    background-repeat: no-repeat;
    position: relative;
}

.income-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #fff;
}

.transfer-icon {
    background: #2d2d2d;
    position: relative;
}

.transfer-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background: linear-gradient(#fff 0 0) center/16px 3px;
    background-repeat: no-repeat;
}

.transfer-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #fff;
}

.history-details {
    flex: 1;
}

.history-title {
    font-size: 17px;
    font-weight: 500;
    color: #000;
    margin-bottom: 2px;
}

.history-subtitle {
    font-size: 14px;
    color: #8b8b8b;
}

.history-amount {
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
}

.history-amount.positive {
    color: #21a038;
}

.history-amount.negative {
    color: #000;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
    color: #8b8b8b;
}

.loading-indicator i {
    font-size: 20px;
}

.loading-text {
    font-size: 15px;
    font-weight: 400;
}

/* Секция Переводы */
.transfers-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.new-transfer-card {
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    max-width: 72px;
}

.historyicon {
    width: 40px;
    height: 40px;
    background: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}

.transfer-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #21a038 0%, #1c8830 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.mir-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 16px;
    background: linear-gradient(90deg, #00a0e3 0%, #0072bc 50%, #004f9f 100%);
    border-radius: 3px;
    border: 2px solid #fff;
}

.transfer-label {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    text-align: center;
    margin-top: 6px;
}

/* Секция Расходы */
.expenses-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.expenses__body {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
}

.category-icons img {
    width: 100px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon.shopping {
    background: #fff3d4;
}

.category-icon.shopping::before {
    content: '';
    width: 24px;
    height: 20px;
    background: linear-gradient(#000 0 0) 0 0/2px 12px,
        linear-gradient(#000 0 0) 22px 0/2px 12px,
        linear-gradient(#000 0 0) 2px 8px/20px 2px,
        linear-gradient(#000 0 0) 4px 12px/16px 8px;
    background-repeat: no-repeat;
}

.category-icon.home {
    background: #e5d4f5;
}

.category-icon.home::before {
    content: '';
    width: 24px;
    height: 22px;
    background: linear-gradient(#000 0 0) 6px 10px/12px 12px,
        linear-gradient(#000 0 0) 8px 14px/8px 2px;
    background-repeat: no-repeat;
    position: relative;
}

.category-icon.home::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #000;
}

.category-icon.people {
    background: #d4e8f5;
}

.category-icon.people::before {
    content: '';
    width: 28px;
    height: 24px;
    background: radial-gradient(circle, #000 5px, transparent 5px) 8px 3px/12px
            12px,
        radial-gradient(circle, #000 4px, transparent 4px) 2px 4px/10px 10px,
        radial-gradient(circle, #000 4px, transparent 4px) 16px 4px/10px 10px;
    background-repeat: no-repeat;
}

.expenses-placeholder {
    margin-top: 8px;
}

.placeholder-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.placeholder-text {
    font-size: 14px;
    color: #8b8b8b;
    line-height: 1.4;
}

/* Секция Кредиты */
.credits-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.section-header.collapsed {
    position: relative;
}

.collapse-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 8px;
}

.collapse-btn svg {
    transform: rotate(180deg);
}

.add-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-list {
    margin-top: 16px;
}

.credit-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.credit-card:hover {
    background: #f9f9f9;
}

.credit-card:active {
    background: #f5f5f5;
}

.credit-main {
    flex: 1;
}

.credit-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.credit-amount {
    margin-bottom: 8px;
}

.credit-remaining {
    font-size: 15px;
    color: #000;
    font-weight: 500;
}

.credit-payment {
    font-size: 13px;
    color: #8b8b8b;
    font-weight: 400;
}

.credit-arrow {
    flex-shrink: 0;
}

.credits-info {
    margin-top: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.credits-text {
    font-size: 15px;
    color: #000;
    line-height: 1.4;
}

/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 428px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 8px 8px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8b8b8b;
    flex: 1;
    padding: 4px;
}

.nav-item.active {
    color: #21a038;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 428px) {
    body {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }
}
