/* Общие стили и сброс */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Светлый фон, можно подстроить */
    color: #333;
    -webkit-tap-highlight-color: transparent; /* Убирает синюю обводку при нажатии на iOS Safari */
}

.app-container {
    max-width: 600px; /* Максимальная ширина для мобильного вида */
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #2c2c2e; /* Темный цвет шапки */
    color: #fff;
    border-bottom-left-radius: 20px; /* Скругление углов как на скрине */
    border-bottom-right-radius: 20px;
    position: relative;
    z-index: 10;
}

.header-user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #555; /* Добавим обводку */
}

.user-nickname {
    font-weight: 600;
    font-size: 1.1em;
}

.user-id {
    font-size: 0.8em;
    color: #bbb;
    margin-left: 10px;
    background-color: #444;
    padding: 3px 8px;
    border-radius: 10px;
}

.header-menu i {
    font-size: 1.2em;
    margin-left: 15px;
    cursor: pointer;
    color: #aaa;
}

/* Balance Section */
.balance-section {
    padding: 20px;
    background-color: #3880ff; /* Синий цвет как на скрине */
    color: #fff;
    margin: -15px 15px 0; /* Поднимаем вверх, чтобы наехать на шапку */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    text-align: center;
}

.section-title {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.balance-eye-icon {
    font-size: 1.2em;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.balance-amount {
    font-size: 2.2em;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
}

.action-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex: 1; /* Чтобы кнопки занимали равную ширину */
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.action-button i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* Promo Section */
.promo-section {
    background-color: #e6f0ff; /* Светло-синий фон */
    border-radius: 15px;
    margin: 20px 15px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-tag {
    background-color: #ffd700; /* Желтый цвет для тега */
    color: #333;
    font-size: 0.7em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.promo-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
}

.promo-icons {
    display: flex;
    gap: 15px;
}

.promo-icon {
    background-color: #3880ff; /* Синий фон иконок */
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}


/* Product List Section */
.product-list-section {
    flex-grow: 1; /* Займет все доступное пространство */
    padding: 0 20px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 2-3 колонки на ширине */
    gap: 15px;
}

.product-card {
    background-color: #f7f7f7; /* Светлый фон карточек */
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* чтобы текст был внизу */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #eee; /* Заглушка для иконки */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    color: #666;
}

.product-name {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 5px;
}

.product-price {
    font-size: 0.8em;
    color: #666;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: #f8f8f8; /* Светлый фон нижней панели */
    border-top: 1px solid #eee;
    position: sticky; /* Прилипает к низу */
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 0.75em;
    padding: 5px 0;
    flex: 1;
}

.nav-item i {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.nav-item.active {
    color: #3880ff; /* Активный пункт синий */
}

/* Footer Note */
.footer-note {
    text-align: center;
    font-size: 0.7em;
    color: #aaa;
    padding: 10px;
    background-color: #f8f8f8;
}

/* Адаптация для экранов пошире (если нужно) */
@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}