/* Стили для шапки с балансом слева и кнопкой справа */
.lel_market-balance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px; /* Фиксированная высота для выравнивания по вертикали */
}

.lel_market-balance-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.lel_market-earn-points-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    font-family: inherit;
    height: fit-content;

    background: var(--primary-color);
    color: white;

}

.lel_market-earn-points-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: white;
    color: var(--primary-color);
}

.lel_market-balance-amount-title {
    font-size: 0.9rem;
    color: var(--text-secondary);

}

.lel_market-balance-amount {
    font-size: 25px;
    font-weight: bold;
}

/* Остальные стили остаются без изменений */
.lel_market-product-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lel_market-product-icon {
    width: 40px;
    height: 40px;
    background: var(--background-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.lel_market-product-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.lel_market-product-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.lel_market-buy-currency {
    flex: 1;
    background: #e91e63;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.lel_market-buy-currency:hover:not(:disabled) {
    background: #c2185b;
}

.lel_market-buy-currency:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lel_market-category-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #333;
}

.lel_market-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lel_market-product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.lel_market-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lel_market-product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 60px;
}

/* Стили для модального окна рекламы */
.lel_market-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lel_market-ad-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.lel_market-ad-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.lel_market-ad-modal-header h3 {
    margin: 0;
    color: #333;
}

.lel_market-close-ad-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.lel_market-close-ad-btn:hover {
    color: #333;
}

.lel_market-ad-container {
    padding: 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lel_market-ad-placeholder {
    color: #666;
}

.lel_market-ad-placeholder p {
    margin: 5px 0;
}

.lel_market-ad-modal-footer {
    padding: 15px 20px;
    background: #f5f5f5;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}



/* Стили для таймера */
.lel_market-product-timer {
    display: flex;
    align-items: center;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    color: #856404;
}

.lel_market-timer-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.lel_market-timer-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.lel_market-timer-time {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}