/* === Inline Tabs (навигация внутри контейнера) === */

.inline-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.inline-tabs::-webkit-scrollbar { display: none; }

.inline-tab {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f7fafc;
    color: #718096;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 0;
}

.inline-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.inline-tab:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

.tab-item .tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

/* Контент вкладок */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === Карточки банков (горизонтальная прокрутка) === */

.banks-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.banks-scroll::-webkit-scrollbar { display: none; }

.bank-card {
    flex: 0 0 130px;
    background: #f7fafc;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    scroll-snap-align: start;
}

.bank-card:hover {
    transform: translateY(-2px);
}

.bank-card.selected {
    border-color: #667eea;
    background: #ebf0ff;
}

.bank-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.bank-card .bank-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-card .bank-rate {
    font-size: 16px;
    font-weight: 700;
    color: #48bb78;
}

/* === Карточки облигаций === */

.bond-card {
    background: #f7fafc;
    border-radius: 14px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bond-card:hover {
    border-color: #667eea;
}

.bond-card.selected {
    border-color: #667eea;
    background: #ebf0ff;
}

.bond-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.bond-info {
    flex: 1;
}

.bond-info .bond-issuer {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
}

.bond-info .bond-brand {
    font-size: 12px;
    color: #a0aec0;
}

.bond-info .bond-rate {
    font-size: 18px;
    font-weight: 700;
    color: #e53e3e;
    margin-top: 2px;
}

.bond-info .bond-period {
    font-size: 11px;
    color: #718096;
}

/* === Форма добавления инвестиции === */

.invest-form {
    background: #f7fafc;
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
    display: none;
}

.invest-form.visible {
    display: block;
    animation: fade-in-up 0.3s ease-out;
}

.invest-form input {
    margin-bottom: 8px;
}

/* === Мои инвестиции (список) === */

.my-investments {
    margin-top: 16px;
}

.investment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.investment-item .inv-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.investment-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.investment-item .inv-name {
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
}

.investment-item .inv-rate {
    font-size: 11px;
    color: #48bb78;
}

.investment-item .inv-amount {
    font-weight: 700;
    font-size: 14px;
    color: #2d3748;
}

/* === Кнопка звука === */

.sound-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* === Профиль === */

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.profile-info {
    text-align: center;
    margin-bottom: 20px;
}

.profile-info .profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.profile-info .profile-email {
    font-size: 13px;
    color: #a0aec0;
}

.btn-logout {
    background: #e53e3e;
    margin-top: 12px;
}

.btn-secondary {
    background: #a0aec0;
}
